(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["dashboard"],{"02c63":function(e,t,n){"use strict";n("d811")},"030f":function(e,t,n){(function(e){(function(){"use strict";var t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},i=function(e){return function(t){return e===t}},o=n("string"),a=n("object"),s=n("array"),c=i(null),u=r("boolean"),l=i(void 0),d=function(e){return null===e||void 0===e},f=function(e){return!d(e)},h=r("function"),p=r("number"),g=function(e,t){if(s(e)){for(var n=0,r=e.length;n<r;++n)if(!t(e[n]))return!1;return!0}return!1},m=function(){},v=function(e){return function(){return e()}},b=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},y=function(e,t){return function(n){return e(t(n))}},x=function(e){return function(){return e}},_=function(e){return e},w=function(e,t){return e===t};function D(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var C=function(e){return function(t){return!e(t)}},k=function(e){return function(){throw new Error(e)}},T=x(!1),S=x(!0),A=tinymce.util.Tools.resolve("tinymce.ThemeManager"),E=function(){return E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},E.apply(this,arguments)};function U(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function O(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var F=function(){return P},P=function(){var e=function(e){return e()},t=_,n={fold:function(e,t){return e()},isSome:T,isNone:S,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:x(null),getOrUndefined:x(void 0),or:t,orThunk:e,map:F,each:m,bind:F,exists:T,forall:S,filter:function(){return F()},toArray:function(){return[]},toString:x("none()")};return n}(),R=function(e){var t=x(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:S,isNone:T,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return R(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:P},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},N=function(e){return null===e||void 0===e?P:R(e)},M={some:R,none:F,from:N},I=Array.prototype.slice,B=Array.prototype.indexOf,L=Array.prototype.push,z=function(e,t){return B.call(e,t)},W=function(e,t){var n=z(e,t);return-1===n?M.none():M.some(n)},j=function(e,t){return z(e,t)>-1},H=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},V=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},q=function(e,t){for(var n=[],r=0;r<e.length;r+=t){var i=I.call(e,r,r+t);n.push(i)}return n},$=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},G=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},X=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},Y=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},K=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},Z=function(e,t,n){return X(e,(function(e,r){n=t(n,e,r)})),n},J=function(e,t,n){return G(e,(function(e,r){n=t(n,e,r)})),n},Q=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return M.some(o);if(n(o,r))break}return M.none()},ee=function(e,t){return Q(e,t,T)},te=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return M.some(n)}return M.none()},ne=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);L.apply(t,e[n])}return t},re=function(e,t){return ne($(e,t))},ie=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},oe=function(e){var t=I.call(e,0);return t.reverse(),t},ae=function(e,t){return K(e,(function(e){return!j(t,e)}))},se=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},ce=function(e){return[e]},ue=function(e,t){var n=I.call(e,0);return n.sort(t),n},le=function(e,t){return t>=0&&t<e.length?M.some(e[t]):M.none()},de=function(e){return le(e,0)},fe=function(e){return le(e,e.length-1)},he=h(Array.from)?Array.from:function(e){return I.call(e)},pe=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return M.none()},ge=Object.keys,me=Object.hasOwnProperty,ve=function(e,t){for(var n=ge(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},be=function(e,t){return ye(e,(function(e,n){return{k:n,v:t(e,n)}}))},ye=function(e,t){var n={};return ve(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},xe=function(e){return function(t,n){e[n]=t}},_e=function(e,t,n,r){var i={};return ve(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},we=function(e,t){var n={};return _e(e,t,xe(n),m),n},De=function(e,t){var n=[];return ve(e,(function(e,r){n.push(t(e,r))})),n},Ce=function(e,t){for(var n=ge(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];if(t(a,o,e))return M.some(a)}return M.none()},ke=function(e){return De(e,_)},Te=function(e,t){return Se(e,t)?M.from(e[t]):M.none()},Se=function(e,t){return me.call(e,t)},Ae=function(e,t){return Se(e,t)&&void 0!==e[t]&&null!==e[t]},Ee=function(e,t,n){return void 0===n&&(n=w),e.exists((function(e){return n(e,t)}))},Ue=function(e,t,n){return void 0===n&&(n=w),Pe(e,t,n).getOr(e.isNone()&&t.isNone())},Oe=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},Fe=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.isSome())return M.none();t.push(r.getOrDie())}return M.some(t)},Pe=function(e,t,n){return e.isSome()&&t.isSome()?M.some(n(e.getOrDie(),t.getOrDie())):M.none()},Re=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?M.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):M.none()},Ne=function(e,t){return void 0!==e&&null!==e?M.some(t(e)):M.none()},Me=function(e,t){return e?M.some(t):M.none()},Ie=function(e,t){return e+t},Be=function(e,t){return e.substring(t)},Le=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},ze=function(e,t){return He(e,t)?Be(e,t.length):e},We=function(e,t){return Ve(e,t)?e:Ie(e,t)},je=function(e,t){return-1!==e.indexOf(t)},He=function(e,t){return Le(e,t,0)},Ve=function(e,t){return Le(e,t,e.length-t.length)},qe=function(e){return function(t){return t.replace(e,"")}},$e=qe(/^\s+|\s+$/g),Ge=function(e){return e.length>0},Xe=function(e){return!Ge(e)},Ye=function(e){return void 0!==e.style&&h(e.style.getPropertyValue)},Ke=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Qe(r.childNodes[0])},Ze=function(e,t){var n=t||document,r=n.createElement(e);return Qe(r)},Je=function(e,t){var n=t||document,r=n.createTextNode(e);return Qe(r)},Qe=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},et=function(e,t,n){return M.from(e.dom.elementFromPoint(t,n)).map(Qe)},tt={fromHtml:Ke,fromTag:Ze,fromText:Je,fromDom:Qe,fromPoint:et};"undefined"!==typeof window?window:Function("return this;")();var nt,rt=9,it=11,ot=1,at=3,st=function(e){var t=e.dom.nodeName;return t.toLowerCase()},ct=function(e){return e.dom.nodeType},ut=function(e){return function(t){return ct(t)===e}},lt=ut(ot),dt=ut(at),ft=ut(rt),ht=ut(it),pt=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},gt=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),c=i||!o&&a&&r("(min-device-width:768px)"),u=o||a&&!c,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!u&&!c&&!l;return{isiPad:x(i),isiPhone:x(o),isTablet:x(c),isPhone:x(u),isTouch:x(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:x(l),isDesktop:x(d)}},mt=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},vt=function(e,t){var n=mt(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return xt(r(1),r(2))},bt=function(e,t){var n=String(t).toLowerCase();return 0===e.length?yt():vt(e,n)},yt=function(){return xt(0,0)},xt=function(e,t){return{major:e,minor:t}},_t={nu:xt,detect:bt,unknown:yt},wt=function(e,t){return pe(t.brands,(function(t){var n=t.brand.toLowerCase();return ee(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:_t.nu(parseInt(t.version,10),0)}}))}))},Dt=function(e,t){var n=String(t).toLowerCase();return ee(e,(function(e){return e.search(n)}))},Ct=function(e,t){return Dt(e,t).map((function(e){var n=_t.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},kt=function(e,t){return Dt(e,t).map((function(e){var n=_t.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Tt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,St=function(e){return function(t){return je(t,e)}},At=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return je(e,"edge/")&&je(e,"chrome")&&je(e,"safari")&&je(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Tt],search:function(e){return je(e,"chrome")&&!je(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return je(e,"msie")||je(e,"trident")}},{name:"Opera",versionRegexes:[Tt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:St("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:St("firefox")},{name:"Safari",versionRegexes:[Tt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(je(e,"safari")||je(e,"mobile/"))&&je(e,"applewebkit")}}],Et=[{name:"Windows",search:St("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return je(e,"iphone")||je(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:St("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:St("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:St("linux"),versionRegexes:[]},{name:"Solaris",search:St("sunos"),versionRegexes:[]},{name:"FreeBSD",search:St("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:St("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Ut={browsers:x(At),oses:x(Et)},Ot="Edge",Ft="Chrome",Pt="IE",Rt="Opera",Nt="Firefox",Mt="Safari",It=function(){return Bt({current:void 0,version:_t.unknown()})},Bt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Ot),isChrome:r(Ft),isIE:r(Pt),isOpera:r(Rt),isFirefox:r(Nt),isSafari:r(Mt)}},Lt={unknown:It,nu:Bt,edge:x(Ot),chrome:x(Ft),ie:x(Pt),opera:x(Rt),firefox:x(Nt),safari:x(Mt)},zt="Windows",Wt="iOS",jt="Android",Ht="Linux",Vt="OSX",qt="Solaris",$t="FreeBSD",Gt="ChromeOS",Xt=function(){return Yt({current:void 0,version:_t.unknown()})},Yt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(zt),isiOS:r(Wt),isAndroid:r(jt),isOSX:r(Vt),isLinux:r(Ht),isSolaris:r(qt),isFreeBSD:r($t),isChromeOS:r(Gt)}},Kt={unknown:Xt,nu:Yt,windows:x(zt),ios:x(Wt),android:x(jt),linux:x(Ht),osx:x(Vt),solaris:x(qt),freebsd:x($t),chromeos:x(Gt)},Zt=function(e,t,n){var r=Ut.browsers(),i=Ut.oses(),o=t.bind((function(e){return wt(r,e)})).orThunk((function(){return Ct(r,e)})).fold(Lt.unknown,Lt.nu),a=kt(i,e).fold(Kt.unknown,Kt.nu),s=gt(a,o,e,n);return{browser:o,os:a,deviceType:s}},Jt={detect:Zt},Qt=function(e){return window.matchMedia(e).matches},en=pt((function(){return Jt.detect(navigator.userAgent,M.from(navigator.userAgentData),Qt)})),tn=function(){return en()},nn=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},rn=function(e,t){return nn(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},on=function(e,t){var n=e.dom;if(n.nodeType!==ot)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},an=function(e){return e.nodeType!==ot&&e.nodeType!==rt&&e.nodeType!==it||0===e.childElementCount},sn=function(e,t){var n=void 0===t?document:t.dom;return an(n)?[]:$(n.querySelectorAll(e),tt.fromDom)},cn=function(e,t){var n=void 0===t?document:t.dom;return an(n)?M.none():M.from(n.querySelector(e)).map(tt.fromDom)},un=function(e,t){return e.dom===t.dom},ln=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},dn=function(e,t){return rn(e.dom,t.dom)},fn=function(e,t){return tn().browser.isIE()?dn(e,t):ln(e,t)},hn=function(e){return tt.fromDom(e.dom.ownerDocument)},pn=function(e){return ft(e)?e:hn(e)},gn=function(e){return tt.fromDom(pn(e).dom.documentElement)},mn=function(e){return tt.fromDom(pn(e).dom.defaultView)},vn=function(e){return M.from(e.dom.parentNode).map(tt.fromDom)},bn=function(e){return vn(e)},yn=function(e){return M.from(e.dom.offsetParent).map(tt.fromDom)},xn=function(e){return M.from(e.dom.nextSibling).map(tt.fromDom)},_n=function(e){return $(e.dom.childNodes,tt.fromDom)},wn=function(e,t){var n=e.dom.childNodes;return M.from(n[t]).map(tt.fromDom)},Dn=function(e){return wn(e,0)},Cn=function(e,t){return{element:e,offset:t}},kn=function(e,t){var n=_n(e);return n.length>0&&t<n.length?Cn(n[t],0):Cn(e,t)},Tn=function(e){return ht(e)&&f(e.dom.host)},Sn=h(Element.prototype.attachShadow)&&h(Node.prototype.getRootNode),An=x(Sn),En=Sn?function(e){return tt.fromDom(e.dom.getRootNode())}:pn,Un=function(e){return Tn(e)?e:tt.fromDom(pn(e).dom.body)},On=function(e){return Fn(e).isSome()},Fn=function(e){var t=En(e);return Tn(t)?M.some(t):M.none()},Pn=function(e){return tt.fromDom(e.dom.host)},Rn=function(e){if(An()&&f(e.target)){var t=tt.fromDom(e.target);if(lt(t)&&Nn(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return de(n)}}return M.from(e.target)},Nn=function(e){return f(e.dom.shadowRoot)},Mn=function(e){var t=dt(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return Fn(tt.fromDom(t)).fold((function(){return n.body.contains(t)}),y(Mn,Pn))},In=function(){return Bn(tt.fromDom(document))},Bn=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return tt.fromDom(t)},Ln=function(e,t,n){if(!(o(n)||u(n)||p(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},zn=function(e,t,n){Ln(e.dom,t,n)},Wn=function(e,t){var n=e.dom;ve(t,(function(e,t){Ln(n,t,e)}))},jn=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},Hn=function(e,t){return M.from(jn(e,t))},Vn=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},qn=function(e,t){e.dom.removeAttribute(t)},$n=function(e,t,n){if(!o(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);Ye(e)&&e.style.setProperty(t,n)},Gn=function(e,t){Ye(e)&&e.style.removeProperty(t)},Xn=function(e,t,n){var r=e.dom;$n(r,t,n)},Yn=function(e,t){var n=e.dom;ve(t,(function(e,t){$n(n,t,e)}))},Kn=function(e,t){var n=e.dom;ve(t,(function(e,t){e.fold((function(){Gn(n,t)}),(function(e){$n(n,t,e)}))}))},Zn=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||Mn(e)?i:Jn(n,t)},Jn=function(e,t){return Ye(e)?e.style.getPropertyValue(t):""},Qn=function(e,t){var n=e.dom,r=Jn(n,t);return M.from(r).filter((function(e){return e.length>0}))},er=function(e){var t={},n=e.dom;if(Ye(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);t[i]=n.style[i]}return t},tr=function(e,t,n){var r=tt.fromTag(e);Xn(r,t,n);var i=Qn(r,t);return i.isSome()},nr=function(e,t){var n=e.dom;Gn(n,t),Ee(Hn(e,"style").map($e),"")&&qn(e,"style")},rr=function(e){return e.dom.offsetWidth},ir=function(e,t){var n=function(t,n){if(!p(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;Ye(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=Zn(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return J(t,(function(t,n){var r=Zn(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},or=ir("height",(function(e){var t=e.dom;return Mn(e)?t.getBoundingClientRect().height:t.offsetHeight})),ar=function(e){return or.get(e)},sr=function(e){return or.getOuter(e)},cr=function(e,t){var n=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],r=or.max(e,t,n);Xn(e,"max-height",r+"px")},ur=function(e,t){var n=function(n,r){return ur(e+n,t+r)};return{left:e,top:t,translate:n}},lr=ur,dr=function(e){var t=e.getBoundingClientRect();return lr(t.left,t.top)},fr=function(e,t){return void 0!==e?e:void 0!==t?t:0},hr=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return lr(n.offsetLeft,n.offsetTop);var o=fr(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=fr(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=fr(i.clientTop,n.clientTop),c=fr(i.clientLeft,n.clientLeft);return pr(e).translate(a-c,o-s)},pr=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?lr(r.offsetLeft,r.offsetTop):Mn(e)?dr(t):lr(0,0)},gr=ir("width",(function(e){return e.dom.offsetWidth})),mr=function(e,t){return gr.set(e,t)},vr=function(e){return gr.get(e)},br=function(e){return gr.getOuter(e)},yr=function(e,t){var n=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],r=gr.max(e,t,n);Xn(e,"max-width",r+"px")},xr=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},_r=function(e){var t=tt.fromDom(Rn(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},i=b(r,n);return xr(t,e.clientX,e.clientY,n,r,i,e)},wr=function(e,t){return function(n){e(n)&&t(_r(n))}},Dr=function(e,t,n,r,i){var o=wr(n,r);return e.dom.addEventListener(t,o,i),{unbind:D(Tr,e,t,o,i)}},Cr=function(e,t,n,r){return Dr(e,t,n,r,!1)},kr=function(e,t,n,r){return Dr(e,t,n,r,!0)},Tr=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Sr=function(e,t){var n=vn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},Ar=function(e,t){var n=xn(e);n.fold((function(){var n=vn(e);n.each((function(e){Ur(e,t)}))}),(function(e){Sr(e,t)}))},Er=function(e,t){var n=Dn(e);n.fold((function(){Ur(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},Ur=function(e,t){e.dom.appendChild(t.dom)},Or=function(e,t,n){wn(e,n).fold((function(){Ur(e,t)}),(function(e){Sr(e,t)}))},Fr=function(e,t){G(t,(function(t){Sr(e,t)}))},Pr=function(e,t){G(t,(function(t){Ur(e,t)}))},Rr=function(e){e.dom.textContent="",G(_n(e),(function(e){Nr(e)}))},Nr=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Mr=function(e){var t=_n(e);t.length>0&&Fr(e,t),Nr(e)},Ir=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return lr(n,r)},Br=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(e,t)},Lr=function(e){var t=void 0===e?window:e;return tn().browser.isFirefox()?M.none():M.from(t["visualViewport"])},zr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Wr=function(e){var t=void 0===e?window:e,n=t.document,r=Ir(tt.fromDom(n));return Lr(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return zr(r.left,r.top,n,i)}),(function(e){return zr(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},jr=function(e,t){var n=e.view(t);return n.fold(x([]),(function(t){var n=e.owner(t),r=jr(e,n);return[t].concat(r)}))},Hr=function(e,t){var n=t.owner(e),r=jr(t,n);return M.some(r)},Vr=function(e){var t,n=e.dom===document?M.none():M.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(tt.fromDom)},qr=function(e){return hn(e)},$r=Object.freeze({__proto__:null,view:Vr,owner:qr}),Gr=function(e){var t=tt.fromDom(document),n=Ir(t),r=Hr(e,$r);return r.fold(D(hr,e),(function(t){var r=pr(e),i=Z(t,(function(e,t){var n=pr(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return lr(i.left+r.left+n.left,i.top+r.top+n.top)}))},Xr=function(e,t,n){return{point:e,width:t,height:n}},Yr=function(e,t,n,r){return{x:e,y:t,width:n,height:r}},Kr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Zr=function(e){var t=hr(e),n=br(e),r=sr(e);return Kr(t.left,t.top,n,r)},Jr=function(e){var t=Gr(e),n=br(e),r=sr(e);return Kr(t.left,t.top,n,r)},Qr=function(){return Wr(window)},ei=function(e){var t=function(t){return ei(e)},n=function(t){return ei(e)},r=function(t){return ei(t(e))},i=function(t){return ei(e)},o=function(t){t(e)},a=function(t){return t(e)},s=function(t,n){return n(e)},c=function(t){return t(e)},u=function(t){return t(e)},l=function(){return M.some(e)};return{isValue:S,isError:T,getOr:x(e),getOrThunk:x(e),getOrDie:x(e),or:t,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:c,forall:u,toOptional:l}},ti=function(e){var t=function(e){return e()},n=function(){return k(String(e))()},r=_,i=function(e){return e()},o=function(t){return ti(e)},a=function(t){return ti(t(e))},s=function(t){return ti(e)},c=function(t,n){return t(e)};return{isValue:T,isError:S,getOr:_,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:c,map:o,mapError:a,each:m,bind:s,exists:T,forall:S,toOptional:M.none}},ni=function(e,t){return e.fold((function(){return ti(t)}),ei)},ri={value:ei,error:ti,fromOption:ni};(function(e){e[e["Error"]=0]="Error",e[e["Value"]=1]="Value"})(nt||(nt={}));var ii=function(e,t,n){return e.stype===nt.Error?t(e.serror):n(e.svalue)},oi=function(e){var t=[],n=[];return G(e,(function(e){ii(e,(function(e){return n.push(e)}),(function(e){return t.push(e)}))})),{values:t,errors:n}},ai=function(e,t){return e.stype===nt.Error?{stype:nt.Error,serror:t(e.serror)}:e},si=function(e,t){return e.stype===nt.Value?{stype:nt.Value,svalue:t(e.svalue)}:e},ci=function(e,t){return e.stype===nt.Value?t(e.svalue):e},ui=function(e,t){return e.stype===nt.Error?t(e.serror):e},li=function(e){return{stype:nt.Value,svalue:e}},di=function(e){return{stype:nt.Error,serror:e}},fi=function(e){return ii(e,ri.error,ri.value)},hi=function(e){return e.fold(di,li)},pi={fromResult:hi,toResult:fi,svalue:li,partition:oi,serror:di,bind:ci,bindError:ui,map:si,mapError:ai,fold:ii},gi=function(e,t,n,r){return{tag:"field",key:e,newKey:t,presence:n,prop:r}},mi=function(e,t){return{tag:"custom",newKey:e,instantiator:t}},vi=function(e,t,n){switch(e.tag){case"field":return t(e.key,e.newKey,e.presence,e.prop);case"custom":return n(e.newKey,e.instantiator)}},bi=function(e,t){return t},yi=function(e,t){var n=a(e)&&a(t);return n?_i(e,t):t},xi=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)Se(o,a)&&(r[a]=e(r[a],o[a]))}return r}},_i=xi(yi),wi=xi(bi),Di=function(){return{tag:"required",process:{}}},Ci=function(e){return{tag:"defaultedThunk",process:e}},ki=function(e){return Ci(x(e))},Ti=function(){return{tag:"option",process:{}}},Si=function(e){return{tag:"mergeWithThunk",process:e}},Ai=function(e){return Si(x(e))},Ei=function(e,t){return e.length>0?pi.svalue(_i(t,wi.apply(void 0,e))):pi.svalue(t)},Ui=function(e){return b(pi.serror,ne)(e)},Oi=function(e,t){var n=pi.partition(e);return n.errors.length>0?Ui(n.errors):Ei(n.values,t)},Fi=function(e){var t=pi.partition(e);return t.errors.length>0?Ui(t.errors):pi.svalue(t.values)},Pi={consolidateObj:Oi,consolidateArr:Fi},Ri=function(e){return a(e)&&ge(e).length>100?" removed due to size":JSON.stringify(e,null,2)},Ni=function(e){var t=e.length>10?e.slice(0,10).concat([{path:[],getErrorInfo:x("... (only showing first ten failures)")}]):e;return $(t,(function(e){return"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo()}))},Mi=function(e,t){return pi.serror([{path:e,getErrorInfo:t}])},Ii=function(e,t,n){return Mi(e,(function(){return'Could not find valid *required* value for "'+t+'" in '+Ri(n)}))},Bi=function(e,t){return Mi(e,(function(){return'Choice schema did not contain choice key: "'+t+'"'}))},Li=function(e,t,n){return Mi(e,(function(){return'The chosen schema: "'+n+'" did not exist in branches: '+Ri(t)}))},zi=function(e,t){return Mi(e,(function(){return"There are unsupported fields: ["+t.join(", ")+"] specified"}))},Wi=function(e,t){return Mi(e,x(t))},ji=function(e){var t=function(t,n){return pi.bindError(e(n),(function(e){return Wi(t,e)}))},n=x("val");return{extract:t,toString:n}},Hi=ji(pi.svalue),Vi=function(e,t,n,r){return Te(t,n).fold((function(){return Ii(e,n,t)}),r)},qi=function(e,t,n,r){var i=Te(e,t).getOrThunk((function(){return n(e)}));return r(i)},$i=function(e,t,n){return n(Te(e,t))},Gi=function(e,t,n,r){var i=Te(e,t).map((function(t){return!0===t?n(e):t}));return r(i)},Xi=function(e,t,n,r,i){var o=function(e){return i.extract(t.concat([r]),e)},a=function(e){return e.fold((function(){return pi.svalue(M.none())}),(function(e){var n=i.extract(t.concat([r]),e);return pi.map(n,M.some)}))};switch(e.tag){case"required":return Vi(t,n,r,o);case"defaultedThunk":return qi(n,r,e.process,o);case"option":return $i(n,r,a);case"defaultedOptionThunk":return Gi(n,r,e.process,a);case"mergeWithThunk":return qi(n,r,x({}),(function(t){var r=_i(e.process(n),t);return o(r)}))}},Yi=function(e,t,n){for(var r={},i=[],o=0,a=n;o<a.length;o++){var s=a[o];vi(s,(function(n,o,a,s){var c=Xi(a,e,t,n,s);pi.fold(c,(function(e){i.push.apply(i,e)}),(function(e){r[o]=e}))}),(function(e,n){r[e]=n(t)}))}return i.length>0?pi.serror(i):pi.svalue(r)},Ki=function(e){var t=function(t,n){return e().extract(t,n)},n=function(){return e().toString()};return{extract:t,toString:n}},Zi=function(e){return ge(we(e,f))},Ji=function(e){var t=Qi(e),n=Z(e,(function(e,t){return vi(t,(function(t){var n;return _i(e,(n={},n[t]=!0,n))}),x(e))}),{}),r=function(e,r){var i=u(r)?[]:Zi(r),o=K(i,(function(e){return!Ae(n,e)}));return 0===o.length?t.extract(e,r):zi(e,o)};return{extract:r,toString:t.toString}},Qi=function(e){var t=function(t,n){return Yi(t,n,e)},n=function(){var t=$(e,(function(e){return vi(e,(function(e,t,n,r){return e+" -> "+r.toString()}),(function(e,t){return"state("+e+")"}))}));return"obj{\n"+t.join("\n")+"}"};return{extract:t,toString:n}},eo=function(e){var t=function(t,n){var r=$(n,(function(n,r){return e.extract(t.concat(["["+r+"]"]),n)}));return Pi.consolidateArr(r)},n=function(){return"array("+e.toString()+")"};return{extract:t,toString:n}},to=function(e){var t=function(t,n){for(var r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=a.extract(t,n);if(s.stype===nt.Value)return s;r.push(s)}return Pi.consolidateArr(r)},n=function(){return"oneOf("+$(e,(function(e){return e.toString()})).join(", ")+")"};return{extract:t,toString:n}},no=function(e,t){var n=function(t,n){return eo(ji(e)).extract(t,n)},r=function(e,r){var i=ge(r),o=n(e,i);return pi.bind(o,(function(n){var i=$(n,(function(e){return gi(e,e,Di(),t)}));return Qi(i).extract(e,r)}))},i=function(){return"setOf("+t.toString()+")"};return{extract:r,toString:i}},ro=function(e,t){var n=pt(t),r=function(e,t){return n().extract(e,t)},i=function(){return n().toString()};return{extract:r,toString:i}},io=b(eo,Qi),oo=x(Hi),ao=function(e,t){return ji((function(n){var r=typeof n;return e(n)?pi.svalue(n):pi.serror("Expected type: "+t+" but got: "+r)}))},so=ao(p,"number"),co=ao(o,"string"),uo=ao(u,"boolean"),lo=ao(h,"function"),fo=function(e){if(Object(e)!==e)return!0;switch({}.toString.call(e).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(e).every((function(t){return fo(e[t])}));default:return!1}},ho=ji((function(e){return fo(e)?pi.svalue(e):pi.serror("Expected value to be acceptable for sending via postMessage")})),po=function(e,t,n,r){var i=Te(n,r);return i.fold((function(){return Li(e,n,r)}),(function(n){return n.extract(e.concat(["branch: "+r]),t)}))},go=function(e,t){var n=function(n,r){var i=Te(r,e);return i.fold((function(){return Bi(n,e)}),(function(e){return po(n,r,t,e)}))},r=function(){return"chooseOn("+e+"). Possible values: "+ge(t)};return{extract:n,toString:r}},mo=function(){return eo(Hi)},vo=function(e){return ji((function(t){return e(t).fold(pi.serror,pi.svalue)}))},bo=function(e,t){return no((function(t){return pi.fromResult(e(t))}),t)},yo=function(e,t,n){var r=t.extract([e],n);return pi.mapError(r,(function(e){return{input:n,errors:e}}))},xo=function(e,t,n){return pi.toResult(yo(e,t,n))},_o=function(e){return e.fold((function(e){throw new Error(Do(e))}),_)},wo=function(e,t,n){return _o(xo(e,t,n))},Do=function(e){return"Errors: \n"+Ni(e.errors).join("\n")+"\n\nInput object: "+Ri(e.input)},Co=function(e,t){return go(e,be(t,Qi))},ko=function(e,t){return ro(e,t)},To=gi,So=mi,Ao=function(e){return vo((function(t){return j(e,t)?ri.value(t):ri.error('Unsupported value: "'+t+'", choose one of "'+e.join(", ")+'".')}))},Eo=function(e){return To(e,e,Di(),oo())},Uo=function(e,t){return To(e,e,Di(),t)},Oo=function(e){return Uo(e,so)},Fo=function(e){return Uo(e,co)},Po=function(e,t){return To(e,e,Di(),Ao(t))},Ro=function(e){return Uo(e,uo)},No=function(e){return Uo(e,lo)},Mo=function(e,t){return To(e,e,Ti(),ji((function(n){return pi.serror("The field: "+e+" is forbidden. "+t)})))},Io=function(e,t){return To(e,e,Di(),Qi(t))},Bo=function(e,t){return To(e,e,Di(),io(t))},Lo=function(e,t){return To(e,e,Di(),eo(t))},zo=function(e){return To(e,e,Ti(),oo())},Wo=function(e,t){return To(e,e,Ti(),t)},jo=function(e){return Wo(e,so)},Ho=function(e){return Wo(e,co)},Vo=function(e){return Wo(e,lo)},qo=function(e,t){return Wo(e,eo(t))},$o=function(e,t){return Wo(e,Qi(t))},Go=function(e,t){return Wo(e,Ji(t))},Xo=function(e,t){return To(e,e,ki(t),oo())},Yo=function(e,t,n){return To(e,e,ki(t),n)},Ko=function(e,t){return Yo(e,t,so)},Zo=function(e,t){return Yo(e,t,co)},Jo=function(e,t,n){return Yo(e,t,Ao(n))},Qo=function(e,t){return Yo(e,t,uo)},ea=function(e,t){return Yo(e,t,lo)},ta=function(e,t){return Yo(e,t,ho)},na=function(e,t,n){return Yo(e,t,eo(n))},ra=function(e,t,n){return Yo(e,t,Qi(n))},ia=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},oa=function(e){if(!s(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return G(e,(function(r,i){var o=ge(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],c=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!s(c))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==c.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+c.length+" ("+c+"), got "+o);var s=function(e){var r=ge(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=ie(t,(function(e){return j(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:s,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},aa={generate:oa};aa.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var sa,ca=function(e){var t=[],n=[];return G(e,(function(e){e.fold((function(e){t.push(e)}),(function(e){n.push(e)}))})),{errors:t,values:n}},ua=function(e,t){var n={};return ve(e,(function(e,r){j(t,r)||(n[r]=e)})),n},la=function(e,t){var n;return n={},n[e]=t,n},da=function(e){var t={};return G(e,(function(e){t[e.key]=e.value})),t},fa=function(e,t){return ua(e,t)},ha=function(e,t){return la(e,t)},pa=function(e){return da(e)},ga=function(e,t){return 0===e.length?ri.value(t):ri.value(_i(t,wi.apply(void 0,e)))},ma=function(e){return ri.error(ne(e))},va=function(e,t){var n=ca(e);return n.errors.length>0?ma(n.errors):ga(n.values,t)},ba=function(e){return h(e)?e:T},ya=function(e,t,n){var r=e.dom,i=ba(n);while(r.parentNode){r=r.parentNode;var o=tt.fromDom(r),a=t(o);if(a.isSome())return a;if(i(o))break}return M.none()},xa=function(e,t,n){var r=t(e),i=ba(n);return r.orThunk((function(){return i(e)?M.none():ya(e,t,i)}))},_a=function(e,t){return un(e.element,t.event.target)},wa={can:S,abort:T,run:m},Da=function(e){if(!Ae(e,"can")&&!Ae(e,"abort")&&!Ae(e,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(e,null,2)+" does not have can, abort, or run!");return E(E({},wa),e)},Ca=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return J(e,(function(e,r){return e&&t(r).apply(void 0,n)}),!0)}},ka=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return J(e,(function(e,r){return e||t(r).apply(void 0,n)}),!1)}},Ta=function(e){return h(e)?{can:S,abort:T,run:e}:e},Sa=function(e){var t=Ca(e,(function(e){return e.can})),n=ka(e,(function(e){return e.abort})),r=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];G(e,(function(e){e.run.apply(void 0,t)}))};return{can:t,abort:n,run:r}},Aa=x,Ea=Aa("touchstart"),Ua=Aa("touchmove"),Oa=Aa("touchend"),Fa=Aa("touchcancel"),Pa=Aa("mousedown"),Ra=Aa("mousemove"),Na=Aa("mouseout"),Ma=Aa("mouseup"),Ia=Aa("mouseover"),Ba=Aa("focusin"),La=Aa("focusout"),za=Aa("keydown"),Wa=Aa("keyup"),ja=Aa("input"),Ha=Aa("change"),Va=Aa("click"),qa=Aa("transitioncancel"),$a=Aa("transitionend"),Ga=Aa("transitionstart"),Xa=Aa("selectstart"),Ya=function(e){return x("alloy."+e)},Ka={tap:Ya("tap")},Za=Ya("focus"),Ja=Ya("blur.post"),Qa=Ya("paste.post"),es=Ya("receive"),ts=Ya("execute"),ns=Ya("focus.item"),rs=Ka.tap,is=Ya("longpress"),os=Ya("sandbox.close"),as=Ya("typeahead.cancel"),ss=Ya("system.init"),cs=Ya("system.touchmove"),us=Ya("system.touchend"),ls=Ya("system.scroll"),ds=Ya("system.resize"),fs=Ya("system.attached"),hs=Ya("system.detached"),ps=Ya("system.dismissRequested"),gs=Ya("system.repositionRequested"),ms=Ya("focusmanager.shifted"),vs=Ya("slotcontainer.visibility"),bs=Ya("change.tab"),ys=Ya("dismiss.tab"),xs=Ya("highlight"),_s=Ya("dehighlight"),ws=function(e,t){Ts(e,e.element,t,{})},Ds=function(e,t,n){Ts(e,e.element,t,n)},Cs=function(e){ws(e,ts())},ks=function(e,t,n){Ts(e,t,n,{})},Ts=function(e,t,n,r){var i=E({target:t},r);e.getSystem().triggerEvent(n,t,i)},Ss=function(e,t,n,r){e.getSystem().triggerEvent(n,t,r.event)},As=function(e){return pa(e)},Es=function(e,t){return{key:e,value:Da({abort:t})}},Us=function(e,t){return{key:e,value:Da({can:t})}},Os=function(e){return{key:e,value:Da({run:function(e,t){t.event.prevent()}})}},Fs=function(e,t){return{key:e,value:Da({run:t})}},Ps=function(e,t,n){return{key:e,value:Da({run:function(e,r){t.apply(void 0,[e,r].concat(n))}})}},Rs=function(e){return function(t){return Fs(e,t)}},Ns=function(e){return function(t){return{key:e,value:Da({run:function(e,n){_a(e,n)&&t(e,n)}})}}},Ms=function(e,t){return Fs(e,(function(n,r){n.getSystem().getByUid(t).each((function(t){Ss(t,t.element,e,r)}))}))},Is=function(e,t,n){var r=t.partUids[n];return Ms(e,r)},Bs=function(e,t){return Fs(e,(function(e,n){var r=n.event,i=e.getSystem().getByDom(r.target).getOrThunk((function(){var t=xa(r.target,(function(t){return e.getSystem().getByDom(t).toOptional()}),T);return t.getOr(e)}));t(e,i,n)}))},Ls=function(e){return Fs(e,(function(e,t){t.cut()}))},zs=function(e){return Fs(e,(function(e,t){t.stop()}))},Ws=function(e,t){return Ns(e)(t)},js=Ns(fs()),Hs=Ns(hs()),Vs=Ns(ss()),qs=Rs(ts()),$s=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,_n(tt.fromDom(r))},Gs=function(e){return e.dom.innerHTML},Xs=function(e,t){var n=hn(e),r=n.dom,i=tt.fromDom(r.createDocumentFragment()),o=$s(t,r);Pr(i,o),Rr(e),Ur(e,i)},Ys=function(e){var t=tt.fromTag("div"),n=tt.fromDom(e.dom.cloneNode(!0));return Ur(t,n),Gs(t)},Ks=function(e,t){return tt.fromDom(e.dom.cloneNode(t))},Zs=function(e){return Ks(e,!1)},Js=function(e){if(Tn(e))return"#shadow-root";var t=Zs(e);return Ys(t)},Qs=function(e){return Js(e)},ec=function(e,t,n){return un(t,e.element)&&!un(t,n)},tc=As([Us(Za(),(function(e,t){var n=t.event,r=n.originator,i=n.target;return!ec(e,r,i)||(console.warn(Za()+" did not get interpreted by the desired target. \nOriginator: "+Qs(r)+"\nTarget: "+Qs(i)+"\nCheck the "+Za()+" event handlers"),!1)}))]),nc=Object.freeze({__proto__:null,events:tc}),rc=0,ic=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return rc++,e+"_"+r+rc+String(n)},oc=x("alloy-id-"),ac=x("data-alloy-id"),sc=oc(),cc=ac(),uc=function(e,t){var n=ic(sc+e);return lc(t,n),n},lc=function(e,t){Object.defineProperty(e.dom,cc,{value:t,writable:!0})},dc=function(e){var t=lt(e)?e.dom[cc]:null;return M.from(t)},fc=function(e){return ic(e)},hc=_,pc=function(e){var t=function(t){return"The component must be in a context to execute: "+t+(e?"\n"+Qs(e().element)+" is not in context.":"")},n=function(e){return function(){throw new Error(t(e))}},r=function(e){return function(){console.warn(t(e))}};return{debugInfo:x("fake"),triggerEvent:r("triggerEvent"),triggerFocus:r("triggerFocus"),triggerEscape:r("triggerEscape"),broadcast:r("broadcast"),broadcastOn:r("broadcastOn"),broadcastEvent:r("broadcastEvent"),build:n("build"),addToWorld:n("addToWorld"),removeFromWorld:n("removeFromWorld"),addToGui:n("addToGui"),removeFromGui:n("removeFromGui"),getByUid:n("getByUid"),getByDom:n("getByDom"),isConnected:T}},gc=pc(),mc=function(e,t,n){var r=n.toString(),i=r.indexOf(")")+1,o=r.indexOf("("),a=r.substring(o+1,i-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:vc(a.slice(0,1).concat(a.slice(3)))}},e},vc=function(e){return $(e,(function(e){return Ve(e,"/*")?e.substring(0,e.length-"/*".length):e}))},bc=function(e,t){var n=e.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:vc(o)}},e},yc=function(e,t){var n=t.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:vc(o.slice(1))}},e},xc=ic("alloy-premade"),_c=function(e){return ha(xc,e)},wc=function(e){return Te(e,xc)},Dc=function(e){return yc((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.apply(void 0,O([t.getApis(),t],n,!1))}),e)},Cc={init:function(){return kc({readState:x("No State required")})}},kc=function(e){return e},Tc=function(e,t){var n=$(t,(function(e){return $o(e.name(),[Eo("config"),Xo("state",Cc)])})),r=xo("component.behaviours",Qi(n),e.behaviours).fold((function(t){throw new Error(Do(t)+"\nComplete spec:\n"+JSON.stringify(e,null,2))}),_);return{list:t,data:be(r,(function(e){var t=e.map((function(e){return{config:e.config,state:e.state.init(e.config)}}));return x(t)}))}},Sc=function(e){return e.list},Ac=function(e){return e.data},Ec=function(e,t){var n={};return ve(e,(function(e,r){ve(e,(function(e,i){var o=Te(n,i).getOr([]);n[i]=o.concat([t(r,e)])}))})),n},Uc=function(e){return{classes:l(e.classes)?[]:e.classes,attributes:l(e.attributes)?{}:e.attributes,styles:l(e.styles)?{}:e.styles}},Oc=function(e,t){return E(E({},e),{attributes:E(E({},e.attributes),t.attributes),styles:E(E({},e.styles),t.styles),classes:e.classes.concat(t.classes)})},Fc=function(e,t,n,r){var i=E({},t);G(n,(function(t){i[t.name()]=t.exhibit(e,r)}));var o=Ec(i,(function(e,t){return{name:e,modification:t}})),a=function(e){return Z(e,(function(e,t){return E(E({},t.modification),e)}),{})},s=Z(o.classes,(function(e,t){return t.modification.concat(e)}),[]),c=a(o.attributes),u=a(o.styles);return Uc({classes:s,attributes:c,styles:u})},Pc=function(e,t,n,r){try{var i=ue(n,(function(n,i){var o=n[t],a=i[t],s=r.indexOf(o),c=r.indexOf(a);if(-1===s)throw new Error("The ordering for "+e+" does not have an entry for "+o+".\nOrder specified: "+JSON.stringify(r,null,2));if(-1===c)throw new Error("The ordering for "+e+" does not have an entry for "+a+".\nOrder specified: "+JSON.stringify(r,null,2));return s<c?-1:c<s?1:0}));return ri.value(i)}catch(o){return ri.error([o])}},Rc=function(e,t){return{handler:e,purpose:t}},Nc=function(e,t){return{cHandler:e,purpose:t}},Mc=function(e,t){return Nc(D.apply(void 0,[e.handler].concat(t)),e.purpose)},Ic=function(e){return e.cHandler},Bc=function(e,t){return{name:e,handler:t}},Lc=function(e,t){var n={};return G(e,(function(e){n[e.name()]=e.handlers(t)})),n},zc=function(e,t,n){var r=E(E({},n),Lc(t,e));return Ec(r,Bc)},Wc=function(e,t,n,r){var i=zc(e,n,r);return qc(i,t)},jc=function(e){var t=Ta(e);return function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=[e,n].concat(r);t.abort.apply(void 0,o)?n.stop():t.can.apply(void 0,o)&&t.run.apply(void 0,o)}},Hc=function(e,t){return ri.error(["The event ("+e+') has more than one behaviour that listens to it.\nWhen this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).\nThe behaviours that can trigger it are: '+JSON.stringify($(t,(function(e){return e.name})),null,2)])},Vc=function(e,t,n){var r=t[n];return r?Pc("Event: "+n,"name",e,r).map((function(e){var t=$(e,(function(e){return e.handler}));return Sa(t)})):Hc(n,e)},qc=function(e,t){var n=De(e,(function(e,n){var r=1===e.length?ri.value(e[0].handler):Vc(e,t,n);return r.map((function(r){var i=jc(r),o=e.length>1?K(t[n],(function(t){return H(e,(function(e){return e.name===t}))})).join(" > "):e[0].name;return ha(n,Rc(i,o))}))}));return va(n,{})},$c="alloy.base.behaviour",Gc=Qi([To("dom","dom",Di(),Qi([Eo("tag"),Xo("styles",{}),Xo("classes",[]),Xo("attributes",{}),zo("value"),zo("innerHtml")])),Eo("components"),Eo("uid"),Xo("events",{}),Xo("apis",{}),To("eventOrder","eventOrder",Ai((sa={},sa[ts()]=["disabling",$c,"toggling","typeaheadevents"],sa[Za()]=[$c,"focusing","keying"],sa[ss()]=[$c,"disabling","toggling","representing"],sa[ja()]=[$c,"representing","streaming","invalidating"],sa[hs()]=[$c,"representing","item-events","tooltipping"],sa[Pa()]=["focusing",$c,"item-type-events"],sa[Ea()]=["focusing",$c,"item-type-events"],sa[Ia()]=["item-type-events","tooltipping"],sa[es()]=["receiving","reflecting","tooltipping"],sa)),oo()),zo("domModification")]),Xc=function(e){return xo("custom.definition",Gc,e)},Yc=function(e){return E(E({},e.dom),{uid:e.uid,domChildren:$(e.components,(function(e){return e.element}))})},Kc=function(e){return e.domModification.fold((function(){return Uc({})}),Uc)},Zc=function(e){return e.events},Jc=function(e,t){var n=jn(e,t);return void 0===n||""===n?[]:n.split(" ")},Qc=function(e,t,n){var r=Jc(e,t),i=r.concat([n]);return zn(e,t,i.join(" ")),!0},eu=function(e,t,n){var r=K(Jc(e,t),(function(e){return e!==n}));return r.length>0?zn(e,t,r.join(" ")):qn(e,t),!1},tu=function(e){return void 0!==e.dom.classList},nu=function(e){return Jc(e,"class")},ru=function(e,t){return Qc(e,"class",t)},iu=function(e,t){return eu(e,"class",t)},ou=function(e,t){tu(e)?e.dom.classList.add(t):ru(e,t)},au=function(e){var t=tu(e)?e.dom.classList:nu(e);0===t.length&&qn(e,"class")},su=function(e,t){if(tu(e)){var n=e.dom.classList;n.remove(t)}else iu(e,t);au(e)},cu=function(e,t){return tu(e)&&e.dom.classList.contains(t)},uu=function(e,t){G(t,(function(t){ou(e,t)}))},lu=function(e,t){G(t,(function(t){su(e,t)}))},du=function(e,t){return ie(t,(function(t){return cu(e,t)}))},fu=function(e){return e.dom.value},hu=function(e,t){if(void 0===t)throw new Error("Value.set was undefined");e.dom.value=t},pu=function(e){var t=tt.fromTag(e.tag);Wn(t,e.attributes),uu(t,e.classes),Yn(t,e.styles),e.innerHtml.each((function(e){return Xs(t,e)}));var n=e.domChildren;return Pr(t,n),e.value.each((function(e){hu(t,e)})),e.uid,lc(t,e.uid),t},gu=function(e){var t=Te(e,"behaviours").getOr({});return re(ge(t),(function(e){var n=t[e];return f(n)?[n.me]:[]}))},mu=function(e,t){return Tc(e,t)},vu=function(e){var t=gu(e);return mu(e,t)},bu=function(e,t,n){var r=Yc(e),i=Kc(e),o={"alloy.base.modification":i},a=t.length>0?Fc(n,o,t,r):i;return Oc(r,a)},yu=function(e,t,n){var r={"alloy.base.behaviour":Zc(e)};return Wc(n,e.eventOrder,t,r).getOrDie()},xu=function(e){var t=function(){return y},n=ia(gc),r=_o(Xc(e)),i=vu(e),o=Sc(i),a=Ac(i),s=bu(r,o,a),c=pu(s),u=yu(r,o,a),l=ia(r.components),d=function(e){n.set(e)},f=function(){n.set(pc(t))},p=function(){var e=_n(c),t=re(e,(function(e){return n.get().getByDom(e).fold((function(){return[]}),ce)}));l.set(t)},g=function(t){var n=a,r=h(n[t.name()])?n[t.name()]:function(){throw new Error("Could not find "+t.name()+" in "+JSON.stringify(e,null,2))};return r()},m=function(e){return h(a[e.name()])},v=function(){return r.apis},b=function(e){return a[e]().map((function(e){return e.state.readState()})).getOr("not enabled")},y={uid:e.uid,getSystem:n.get,config:g,hasConfigured:m,spec:e,readState:b,getApis:v,connect:d,disconnect:f,element:c,syncComponents:p,components:l.get,events:u};return y},_u=function(e){var t=Te(e,"components").getOr([]);return $(t,Su)},wu=function(e){var t=hc(e),n=t.events,r=U(t,["events"]),i=_u(r),o=E(E({},r),{events:E(E({},nc),n),components:i});return ri.value(xu(o))},Du=function(e){var t=tt.fromText(e);return Cu({element:t})},Cu=function(e){var t=wo("external.component",Ji([Eo("element"),zo("uid")]),e),n=ia(pc()),r=function(e){n.set(e)},i=function(){n.set(pc((function(){return a})))},o=t.uid.getOrThunk((function(){return fc("external")}));lc(t.element,o);var a={uid:o,getSystem:n.get,config:M.none,hasConfigured:T,connect:r,disconnect:i,getApis:function(){return{}},element:t.element,spec:e,readState:x("No state"),syncComponents:m,components:x([]),events:{}};return _c(a)},ku=fc,Tu=function(e){return Se(e,"uid")},Su=function(e){return wc(e).getOrThunk((function(){var t=Tu(e)?e:E({uid:ku("")},e);return wu(t).getOrDie()}))},Au=_c;function Eu(e,t,n,r,i){return e(n,r)?M.some(n):h(i)&&i(n)?M.none():t(n,r,i)}var Uu,Ou=function(e,t,n){var r=e.dom,i=h(n)?n:T;while(r.parentNode){r=r.parentNode;var o=tt.fromDom(r);if(t(o))return M.some(o);if(i(o))break}return M.none()},Fu=function(e,t,n){var r=function(e,t){return t(e)};return Eu(r,Ou,e,t,n)},Pu=function(e,t){var n=function(e){return t(tt.fromDom(e))},r=ee(e.dom.childNodes,n);return r.map(tt.fromDom)},Ru=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var i=tt.fromDom(e.childNodes[r]);if(t(i))return M.some(i);var o=n(e.childNodes[r]);if(o.isSome())return o}return M.none()};return n(e.dom)},Nu=function(e,t,n){return Fu(e,t,n).isSome()},Mu=function(e,t,n){return Ou(e,(function(e){return on(e,t)}),n)},Iu=function(e,t){return Pu(e,(function(e){return on(e,t)}))},Bu=function(e,t){return cn(t,e)},Lu=function(e,t,n){var r=function(e,t){return on(e,t)};return Eu(r,Mu,e,t,n)},zu=function(e){var t=Fu(e,(function(e){if(!lt(e))return!1;var t=jn(e,"id");return void 0!==t&&t.indexOf("aria-owns")>-1}));return t.bind((function(e){var t=jn(e,"id"),n=En(e);return Bu(n,'[aria-owns="'+t+'"]')}))},Wu=function(){var e=ic("aria-owns"),t=function(t){zn(t,"aria-owns",e)},n=function(e){qn(e,"aria-owns")};return{id:e,link:t,unlink:n}},ju=function(e,t){return zu(t).exists((function(t){return Hu(e,t)}))},Hu=function(e,t){return Nu(t,(function(t){return un(t,e.element)}),T)||ju(e,t)},Vu="unknown";(function(e){e[e["STOP"]=0]="STOP",e[e["NORMAL"]=1]="NORMAL",e[e["LOGGING"]=2]="LOGGING"})(Uu||(Uu={}));var qu=ia({}),$u=function(e,t){var n=[],r=(new Date).getTime();return{logEventCut:function(e,t,r){n.push({outcome:"cut",target:t,purpose:r})},logEventStopped:function(e,t,r){n.push({outcome:"stopped",target:t,purpose:r})},logNoParent:function(e,t,r){n.push({outcome:"no-parent",target:t,purpose:r})},logEventNoHandlers:function(e,t){n.push({outcome:"no-handlers-left",target:t})},logEventResponse:function(e,t,r){n.push({outcome:"response",purpose:r,target:t})},write:function(){var i=(new Date).getTime();j(["mousemove","mouseover","mouseout",ss()],e)||console.log(e,{event:e,time:i-r,target:t.dom,sequence:$(n,(function(e){return j(["cut","stopped","response"],e.outcome)?"{"+e.purpose+"} "+e.outcome+" at ("+Qs(e.target)+")":e.outcome}))})}}},Gu=function(e,t,n){var r=Te(qu.get(),e).orThunk((function(){var t=ge(qu.get());return pe(t,(function(t){return e.indexOf(t)>-1?M.some(qu.get()[t]):M.none()}))})).getOr(Uu.NORMAL);switch(r){case Uu.NORMAL:return n(Ju());case Uu.LOGGING:var i=$u(e,t),o=n(i);return i.write(),o;case Uu.STOP:return!0}},Xu=["alloy/data/Fields","alloy/debugging/Debugging"],Yu=function(){var e=new Error;if(void 0!==e.stack){var t=e.stack.split("\n");return ee(t,(function(e){return e.indexOf("alloy")>0&&!H(Xu,(function(t){return e.indexOf(t)>-1}))})).getOr(Vu)}return Vu},Ku={logEventCut:m,logEventStopped:m,logNoParent:m,logEventNoHandlers:m,logEventResponse:m,write:m},Zu=function(e,t,n){return Gu(e,t,n)},Ju=x(Ku),Qu=x([Eo("menu"),Eo("selectedMenu")]),el=x([Eo("item"),Eo("selectedItem")]);x(Qi(el().concat(Qu())));var tl=x(Qi(el())),nl=Io("initSize",[Eo("numColumns"),Eo("numRows")]),rl=function(){return Uo("markers",tl())},il=function(){return Io("markers",[Eo("backgroundMenu")].concat(Qu()).concat(el()))},ol=function(e){return Io("markers",$(e,Eo))},al=function(e,t,n){return Yu(),To(t,t,n,vo((function(e){return ri.value((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.apply(void 0,t)}))})))},sl=function(e){return al("onHandler",e,ki(m))},cl=function(e){return al("onKeyboardHandler",e,ki(M.none))},ul=function(e){return al("onHandler",e,Di())},ll=function(e){return al("onKeyboardHandler",e,Di())},dl=function(e,t){return So(e,x(t))},fl=function(e){return So(e,_)},hl=x(nl),pl=function(e,t,n,r,i,o,a,s){return void 0===s&&(s=!1),{x:e,y:t,bubble:n,direction:r,placement:i,restriction:o,label:a+"-"+i,alwaysFit:s}},gl=aa.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),ml=function(e,t,n,r,i,o,a,s,c){return e.fold(t,n,r,i,o,a,s,c)},vl=function(e,t,n,r){return e.fold(t,t,r,r,t,r,n,n)},bl=function(e,t,n,r){return e.fold(t,r,t,r,n,n,t,r)},yl=gl.southeast,xl=gl.southwest,_l=gl.northeast,wl=gl.northwest,Dl=gl.south,Cl=gl.north,kl=gl.east,Tl=gl.west,Sl=function(e,t,n,r){var i=e+t;return i>r?n:i<n?r:i},Al=function(e,t,n){return Math.min(Math.max(e,t),n)},El=function(e,t){switch(t){case 1:return e.x;case 0:return e.x+e.width;case 2:return e.y;case 3:return e.y+e.height}},Ul=function(e,t){return se(["left","right","top","bottom"],(function(n){return Te(t,n).map((function(t){return El(e,t)}))}))},Ol=function(e,t,n){var r=function(r,i){return t[r].map((function(t){var o="top"===r||"bottom"===r,a=o?n.top:n.left,s="left"===r||"top"===r?Math.max:Math.min,c=s(t,i)+a;return o?Al(c,e.y,e.bottom):Al(c,e.x,e.right)})).getOr(i)},i=r("left",e.x),o=r("top",e.y),a=r("right",e.right),s=r("bottom",e.bottom);return Kr(i,o,a-i,s-o)},Fl="layout",Pl=function(e){return e.x},Rl=function(e,t){return e.x+e.width/2-t.width/2},Nl=function(e,t){return e.x+e.width-t.width},Ml=function(e,t){return e.y-t.height},Il=function(e){return e.y+e.height},Bl=function(e,t){return e.y+e.height/2-t.height/2},Ll=function(e){return e.x+e.width},zl=function(e,t){return e.x-t.width},Wl=function(e,t,n){return pl(Pl(e),Il(e),n.southeast(),yl(),"southeast",Ul(e,{left:1,top:3}),Fl)},jl=function(e,t,n){return pl(Nl(e,t),Il(e),n.southwest(),xl(),"southwest",Ul(e,{right:0,top:3}),Fl)},Hl=function(e,t,n){return pl(Pl(e),Ml(e,t),n.northeast(),_l(),"northeast",Ul(e,{left:1,bottom:2}),Fl)},Vl=function(e,t,n){return pl(Nl(e,t),Ml(e,t),n.northwest(),wl(),"northwest",Ul(e,{right:0,bottom:2}),Fl)},ql=function(e,t,n){return pl(Rl(e,t),Ml(e,t),n.north(),Cl(),"north",Ul(e,{bottom:2}),Fl)},$l=function(e,t,n){return pl(Rl(e,t),Il(e),n.south(),Dl(),"south",Ul(e,{top:3}),Fl)},Gl=function(e,t,n){return pl(Ll(e),Bl(e,t),n.east(),kl(),"east",Ul(e,{left:0}),Fl)},Xl=function(e,t,n){return pl(zl(e,t),Bl(e,t),n.west(),Tl(),"west",Ul(e,{right:1}),Fl)},Yl=function(){return[Wl,jl,Hl,Vl,$l,ql,Gl,Xl]},Kl=function(){return[jl,Wl,Vl,Hl,$l,ql,Gl,Xl]},Zl=function(){return[Hl,Vl,Wl,jl,ql,$l]},Jl=function(){return[Vl,Hl,jl,Wl,ql,$l]},Ql=function(){return[Wl,jl,Hl,Vl,$l,ql]},ed=function(){return[jl,Wl,Vl,Hl,$l,ql]},td=function(e,t){return t.universal?e:K(e,(function(e){return j(t.channels,e)}))},nd=function(e){return As([Fs(es(),(function(t,n){var r=e.channels,i=ge(r),o=n,a=td(i,o);G(a,(function(e){var n=r[e],i=n.schema,a=wo("channel["+e+"] data\nReceiver: "+Qs(t.element),i,o.data);n.onReceive(t,a)}))}))])},rd=Object.freeze({__proto__:null,events:nd}),id=[Uo("channels",bo(ri.value,Ji([ul("onReceive"),Xo("schema",oo())])))],od=function(e,t,n){return qs((function(r){n(r,e,t)}))},ad=function(e,t,n){return Vs((function(r,i){n(r,e,t)}))},sd=function(e,t,n,r,i,o){var a=Ji(e),s=$o(t,[Go("config",e)]);return dd(a,s,t,n,r,i,o)},cd=function(e,t,n,r,i,o){var a=e,s=$o(t,[Wo("config",e)]);return dd(a,s,t,n,r,i,o)},ud=function(e,t,n){var r=function(r){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=[r].concat(i);return r.config({name:x(e)}).fold((function(){throw new Error("We could not find any behaviour configuration for: "+e+". Using API: "+n)}),(function(e){var n=Array.prototype.slice.call(a,1);return t.apply(void 0,[r,e.config,e.state].concat(n))}))};return mc(r,n,t)},ld=function(e){return{key:e,value:void 0}},dd=function(e,t,n,r,i,o,a){var s=function(e){return Ae(e,n)?e[n]():M.none()},c=be(i,(function(e,t){return ud(n,e,t)})),u=be(o,(function(e,t){return bc(e,t)})),l=E(E(E({},u),c),{revoke:D(ld,n),config:function(t){var r=wo(n+"-config",e,t);return{key:n,value:{config:r,me:l,configAsRaw:pt((function(){return wo(n+"-config",e,t)})),initialConfig:t,state:a}}},schema:x(t),exhibit:function(e,t){return Pe(s(e),Te(r,"exhibit"),(function(e,n){return n(t,e.config,e.state)})).getOrThunk((function(){return Uc({})}))},name:x(n),handlers:function(e){return s(e).map((function(e){var t=Te(r,"events").getOr((function(){return{}}));return t(e.config,e.state)})).getOr({})}});return l},fd=function(e){return pa(e)},hd=Ji([Eo("fields"),Eo("name"),Xo("active",{}),Xo("apis",{}),Xo("state",Cc),Xo("extra",{})]),pd=function(e){var t=wo("Creating behaviour: "+e.name,hd,e);return sd(t.fields,t.name,t.active,t.apis,t.extra,t.state)},gd=Ji([Eo("branchKey"),Eo("branches"),Eo("name"),Xo("active",{}),Xo("apis",{}),Xo("state",Cc),Xo("extra",{})]),md=function(e){var t=wo("Creating behaviour: "+e.name,gd,e);return cd(Co(t.branchKey,t.branches),t.name,t.active,t.apis,t.extra,t.state)},vd=x(void 0),bd=pd({fields:id,name:"receiving",active:rd}),yd=function(e,t){return Uc({classes:[],styles:t.useFixed()?{}:{position:"relative"}})},xd=Object.freeze({__proto__:null,exhibit:yd}),_d=function(){return tt.fromDom(document)},wd=function(e){return e.dom.focus()},Dd=function(e){return e.dom.blur()},Cd=function(e){var t=En(e).dom;return e.dom===t.activeElement},kd=function(e){return void 0===e&&(e=_d()),M.from(e.dom.activeElement).map(tt.fromDom)},Td=function(e){return kd(En(e)).filter((function(t){return e.dom.contains(t.dom)}))},Sd=function(e,t){var n=En(t),r=kd(n).bind((function(e){var n=function(t){return un(e,t)};return n(t)?M.some(t):Ru(t,n)})),i=e(t);return r.each((function(e){kd(n).filter((function(t){return un(t,e)})).fold((function(){wd(e)}),m)})),i},Ad=function(e,t,n,r,i){var o=function(e){return e+"px"};return{position:e,left:t.map(o),top:n.map(o),right:r.map(o),bottom:i.map(o)}},Ed=function(e){return E(E({},e),{position:M.some(e.position)})},Ud=function(e,t){Kn(e,Ed(t))},Od=aa.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),Fd=function(e,t,n,r,i,o){var a=t.rect,s=a.x-n,c=a.y-r,u=a.width,l=a.height,d=i-(s+u),f=o-(c+l),h=M.some(s),p=M.some(c),g=M.some(d),m=M.some(f),v=M.none();return ml(t.direction,(function(){return Ad(e,h,p,v,v)}),(function(){return Ad(e,v,p,g,v)}),(function(){return Ad(e,h,v,v,m)}),(function(){return Ad(e,v,v,g,m)}),(function(){return Ad(e,h,p,v,v)}),(function(){return Ad(e,h,v,v,m)}),(function(){return Ad(e,h,p,v,v)}),(function(){return Ad(e,v,p,g,v)}))},Pd=function(e,t){return e.fold((function(){var e=t.rect;return Ad("absolute",M.some(e.x),M.some(e.y),M.none(),M.none())}),(function(e,n,r,i){return Fd("absolute",t,e,n,r,i)}),(function(e,n,r,i){return Fd("fixed",t,e,n,r,i)}))},Rd=function(e,t){var n=D(Gr,t),r=e.fold(n,n,(function(){var e=Ir();return Gr(t).translate(-e.left,-e.top)})),i=br(t),o=sr(t);return Kr(r.left,r.top,i,o)},Nd=function(e,t){return t.fold((function(){return e.fold(Qr,Qr,Kr)}),(function(t){return e.fold(t,t,(function(){var n=t(),r=Md(e,n.x,n.y);return Kr(r.left,r.top,n.width,n.height)}))}))},Md=function(e,t,n){var r=lr(t,n),i=function(){var e=Ir();return r.translate(-e.left,-e.top)};return e.fold(x(r),x(r),i)},Id=function(e,t,n,r){return e.fold(t,n,r)};Od.none;var Bd,Ld=Od.relative,zd=Od.fixed,Wd=function(e,t){return{anchorBox:e,origin:t}},jd=function(e,t){return Wd(e,t)},Hd="data-alloy-placement",Vd=function(e,t){zn(e,Hd,t)},qd=function(e){return Hn(e,Hd)},$d=function(e){return qn(e,Hd)},Gd=aa.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Xd=function(e,t){var n=t.x,r=t.y,i=t.right,o=t.bottom,a=e.x,s=e.y,c=e.right,u=e.bottom,l=e.width,d=e.height,f=a>=n&&a<=i,h=s>=r&&s<=o,p=f&&h,g=c<=i&&c>=n,m=u<=o&&u>=r,v=g&&m,b=Math.min(l,a>=n?i-a:c-n),y=Math.min(d,s>=r?o-s:u-r);return{originInBounds:p,sizeInBounds:v,visibleW:b,visibleH:y}},Yd=function(e,t){var n=t.x,r=t.y,i=t.right,o=t.bottom,a=e.x,s=e.y,c=e.width,u=e.height,l=Math.max(n,i-c),d=Math.max(r,o-u),f=Al(a,n,l),h=Al(s,r,d),p=Math.min(f+c,i)-f,g=Math.min(h+u,o)-h;return Kr(f,h,p,g)},Kd=function(e,t,n){var r=x(t.bottom-n.y),i=x(n.bottom-t.y),o=vl(e,i,i,r),a=x(t.right-n.x),s=x(n.right-t.x),c=bl(e,s,s,a);return{maxWidth:c,maxHeight:o}},Zd=function(e,t,n,r){var i=e.bubble,o=i.offset,a=Ol(r,e.restriction,o),s=e.x+o.left,c=e.y+o.top,u=Kr(s,c,t,n),l=Xd(u,a),d=l.originInBounds,f=l.sizeInBounds,h=l.visibleW,p=l.visibleH,g=d&&f,m=g?u:Yd(u,a),v=m.width>0&&m.height>0,b=Kd(e.direction,m,r),y=b.maxWidth,x=b.maxHeight,_={rect:m,maxHeight:x,maxWidth:y,direction:e.direction,placement:e.placement,classes:{on:i.classesOn,off:i.classesOff},layout:e.label,testY:c};return g||e.alwaysFit?Gd.fit(_):Gd.nofit(_,h,p,v)},Jd=function(e,t,n,r,i,o){var a=r.width,s=r.height,c=function(t,c,u,l,d){var f=t(n,r,i,e,o),h=Zd(f,a,s,o);return h.fold(x(h),(function(e,t,n,r){var i=d===r?n>l||t>u:!d&&r;return i?h:Gd.nofit(c,u,l,d)}))},u=J(t,(function(e,t){var n=D(c,t);return e.fold(x(e),n)}),Gd.nofit({rect:n,maxHeight:r.height,maxWidth:r.width,direction:yl(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:n.y},-1,-1,!1));return u.fold(_,_)},Qd=function(e){var t=ia(M.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(M.none())},i=function(){return t.get().isSome()},o=function(){return t.get()},a=function(e){n(),t.set(M.some(e))};return{clear:r,isSet:i,get:o,set:a}},ef=function(){return Qd((function(e){return e.destroy()}))},tf=function(){return Qd((function(e){return e.unbind()}))},nf=function(){var e=ef(),t=function(t){return e.get().each(t)};return E(E({},e),{run:t})},rf=function(){var e=Qd(m),t=function(t){return e.get().each(t)};return E(E({},e),{on:t})},of=S,af=function(e,t,n){return Cr(e,t,of,n)},sf=function(e,t,n){return kr(e,t,of,n)},cf=_r,uf=["top","bottom","right","left"],lf="data-alloy-transition-timer",df=function(e,t){return du(e,t.classes)},ff=function(e,t,n){return n.exists((function(n){var r=e.mode;return"all"===r||n[r]!==t[r]}))},hf=function(e,t){var n=function(e){return parseFloat(e).toFixed(3)};return Ce(t,(function(t,r){var i=e[r].map(n),o=t.map(n);return!Ue(i,o)})).isSome()},pf=function(e){var t=function(t){var n=Zn(e,t),r=o(n)?n.split(/\s*,\s*/):[];return K(r,Ge)},n=function(e){if(o(e)&&/^[\d.]+/.test(e)){var t=parseFloat(e);return Ve(e,"ms")?t:1e3*t}return 0},r=t("transition-delay"),i=t("transition-duration");return J(i,(function(e,t,i){var o=n(r[i])+n(t);return Math.max(e,o)}),0)},gf=function(e,t){var n,r=tf(),i=tf(),o=function(t){var n,r=null!==(n=t.raw.pseudoElement)&&void 0!==n?n:"";return un(t.target,e)&&Xe(r)&&j(uf,t.raw.propertyName)},a=function(a){if(d(a)||o(a)){r.clear(),i.clear();var s=null===a||void 0===a?void 0:a.raw.type;(d(s)||s===$a())&&(clearTimeout(n),qn(e,lf),lu(e,t.classes))}},s=function(){r.set(af(e,$a(),a)),i.set(af(e,qa(),a))};if("ontransitionstart"in e.dom)var c=af(e,Ga(),(function(e){o(e)&&(c.unbind(),s())}));else s();var u=pf(e);requestAnimationFrame((function(){n=setTimeout(a,u+17),zn(e,lf,n)}))},mf=function(e,t){uu(e,t.classes),Hn(e,lf).each((function(t){clearTimeout(parseInt(t,10)),qn(e,lf)})),gf(e,t)},vf=function(e,t,n,r,i,o){var a=ff(r,i,o);if(a||df(e,r)){Xn(e,"position",n.position);var s=Rd(t,e),c=Pd(t,E(E({},i),{rect:s})),u=se(uf,(function(e){return c[e]}));hf(n,u)&&(Kn(e,u),a&&mf(e,r),rr(e))}else lu(e,r.classes)},bf=function(e){return{width:br(e),height:sr(e)}},yf=function(e,t,n,r){nr(t,"max-height"),nr(t,"max-width");var i=bf(t);return Jd(t,r.preference,e,i,n,r.bounds)},xf=function(e,t){var n=t.classes;lu(e,n.off),uu(e,n.on)},_f=function(e,t,n){var r=n.maxHeightFunction;r(e,t.maxHeight)},wf=function(e,t,n){var r=n.maxWidthFunction;r(e,t.maxWidth)},Df=function(e,t,n){var r=Pd(n.origin,t);n.transition.each((function(i){vf(e,n.origin,r,i,t,n.lastPlacement)})),Ud(e,r)},Cf=function(e,t){Vd(e,t.placement)},kf=function(e,t){cr(e,Math.floor(t))},Tf=x((function(e,t){kf(e,t),Yn(e,{"overflow-x":"hidden","overflow-y":"auto"})})),Sf=x((function(e,t){kf(e,t)})),Af=function(e,t,n){return void 0===e[t]?n:e[t]},Ef=function(e,t,n,r,i,o,a,s){var c=Af(a,"maxHeightFunction",Tf()),u=Af(a,"maxWidthFunction",m),l=e.anchorBox,d=e.origin,f={bounds:Nd(d,o),origin:d,preference:r,maxHeightFunction:c,maxWidthFunction:u,lastPlacement:i,transition:s};return Uf(l,t,n,f)},Uf=function(e,t,n,r){var i=yf(e,t,n,r);return Df(t,i,r),Cf(t,i),xf(t,i),_f(t,i,r),wf(t,i,r),{layout:i.layout,placement:i.placement}},Of=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Ff=function(e,t,n,r){void 0===r&&(r=1);var i=e*r,o=t*r,a=function(e){return Te(n,e).getOr([])},s=function(e,t,n){var r=ae(Of,n);return{offset:lr(e,t),classesOn:re(n,a),classesOff:re(r,a)}};return{southeast:function(){return s(-e,t,["top","alignLeft"])},southwest:function(){return s(e,t,["top","alignRight"])},south:function(){return s(-e/2,t,["top","alignCentre"])},northeast:function(){return s(-e,-t,["bottom","alignLeft"])},northwest:function(){return s(e,-t,["bottom","alignRight"])},north:function(){return s(-e/2,-t,["bottom","alignCentre"])},east:function(){return s(e,-t/2,["valignCentre","left"])},west:function(){return s(-e,-t/2,["valignCentre","right"])},insetNortheast:function(){return s(i,o,["top","alignLeft","inset"])},insetNorthwest:function(){return s(-i,o,["top","alignRight","inset"])},insetNorth:function(){return s(-i/2,o,["top","alignCentre","inset"])},insetSoutheast:function(){return s(i,-o,["bottom","alignLeft","inset"])},insetSouthwest:function(){return s(-i,-o,["bottom","alignRight","inset"])},insetSouth:function(){return s(-i/2,-o,["bottom","alignCentre","inset"])},insetEast:function(){return s(-i,-o/2,["valignCentre","right","inset"])},insetWest:function(){return s(i,-o/2,["valignCentre","left","inset"])}}},Pf=function(){return Ff(0,0,{})},Rf=_,Nf=function(e,t){return function(n){return"rtl"===Mf(n)?t:e}},Mf=function(e){return"rtl"===Zn(e,"direction")?"rtl":"ltr"};(function(e){e["TopToBottom"]="toptobottom",e["BottomToTop"]="bottomtotop"})(Bd||(Bd={}));var If="data-alloy-vertical-dir",Bf=function(e){return Nu(e,(function(e){return lt(e)&&jn(e,"data-alloy-vertical-dir")===Bd.BottomToTop}))},Lf=function(){return $o("layouts",[Eo("onLtr"),Eo("onRtl"),zo("onBottomLtr"),zo("onBottomRtl")])},zf=function(e,t,n,r,i,o,a){var s=a.map(Bf).getOr(!1),c=t.layouts.map((function(t){return t.onLtr(e)})),u=t.layouts.map((function(t){return t.onRtl(e)})),l=s?t.layouts.bind((function(t){return t.onBottomLtr.map((function(t){return t(e)}))})).or(c).getOr(i):c.getOr(n),d=s?t.layouts.bind((function(t){return t.onBottomRtl.map((function(t){return t(e)}))})).or(u).getOr(o):u.getOr(r),f=Nf(l,d);return f(e)},Wf=function(e,t,n){var r=t.hotspot,i=Rd(n,r.element),o=zf(e.element,t,Ql(),ed(),Zl(),Jl(),M.some(t.hotspot.element));return M.some(Rf({anchorBox:i,bubble:t.bubble.getOr(Pf()),overrides:t.overrides,layouts:o,placer:M.none()}))},jf=[Eo("hotspot"),zo("bubble"),Xo("overrides",{}),Lf(),dl("placement",Wf)],Hf=function(e,t,n){var r=Md(n,t.x,t.y),i=Kr(r.left,r.top,t.width,t.height),o=zf(e.element,t,Yl(),Kl(),Yl(),Kl(),M.none());return M.some(Rf({anchorBox:i,bubble:t.bubble,overrides:t.overrides,layouts:o,placer:M.none()}))},Vf=[Eo("x"),Eo("y"),Xo("height",0),Xo("width",0),Xo("bubble",Pf()),Xo("overrides",{}),Lf(),dl("placement",Hf)],qf=aa.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),$f=function(e){return e.fold(_,(function(e,t,n){return e.translate(-t,-n)}))},Gf=function(e){return e.fold(_,_)},Xf=function(e){return J(e,(function(e,t){return e.translate(t.left,t.top)}),lr(0,0))},Yf=function(e){var t=$(e,$f);return Xf(t)},Kf=function(e){var t=$(e,Gf);return Xf(t)},Zf=qf.screen,Jf=qf.absolute,Qf=function(e,t,n){var r=mn(n.root).dom,i=function(t){var n=hn(t),r=hn(e.element);return un(n,r)};return M.from(r.frameElement).map(tt.fromDom).filter(i).map(hr)},eh=function(e,t,n){var r=hn(e.element),i=Ir(r),o=Qf(e,t,n).getOr(i);return Jf(o,i.left,i.top)},th=function(e,t,n,r){var i=Zf(lr(e,t));return M.some(Xr(i,n,r))},nh=function(e,t,n,r,i){return e.map((function(e){var o=[t,e.point],a=Id(r,(function(){return Kf(o)}),(function(){return Kf(o)}),(function(){return Yf(o)})),s=Yr(a.left,a.top,e.width,e.height),c=n.showAbove?Zl():Ql(),u=n.showAbove?Jl():ed(),l=zf(i,n,c,u,c,u,M.none());return Rf({anchorBox:s,bubble:n.bubble.getOr(Pf()),overrides:n.overrides,layouts:l,placer:M.none()})}))},rh=function(e,t,n){var r=eh(e,n,t);return t.node.filter(Mn).bind((function(i){var o=i.dom.getBoundingClientRect(),a=th(o.left,o.top,o.width,o.height),s=t.node.getOr(e.element);return nh(a,r,t,n,s)}))},ih=[Eo("node"),Eo("root"),zo("bubble"),Lf(),Xo("overrides",{}),Xo("showAbove",!1),dl("placement",rh)],oh="\ufeff",ah=" ",sh=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},ch={create:sh},uh=aa.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),lh=function(e,t,n,r){return e.fold(t,n,r)},dh=function(e){return e.fold(_,_,_)},fh=uh.before,hh=uh.on,ph=uh.after,gh={before:fh,on:hh,after:ph,cata:lh,getStart:dh},mh=aa.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),vh=function(e){return mh.exact(e.start,e.soffset,e.finish,e.foffset)},bh=function(e){return e.match({domRange:function(e){return tt.fromDom(e.startContainer)},relative:function(e,t){return gh.getStart(e)},exact:function(e,t,n,r){return e}})},yh=mh.domRange,xh=mh.relative,_h=mh.exact,wh=function(e){var t=bh(e);return mn(t)},Dh=ch.create,Ch={domRange:yh,relative:xh,exact:_h,exactFromRange:vh,getWin:wh,range:Dh},kh=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},Th=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},Sh=function(e,t,n){var r=e.document.createRange();return kh(r,t),Th(r,n),r},Ah=function(e,t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},Eh=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},Uh=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?M.some(n).map(Eh):M.none()},Oh=function(e){var t=e.getBoundingClientRect();return t.width>0||t.height>0?M.some(t).map(Eh):M.none()},Fh=aa.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Ph=function(e,t,n){return t(tt.fromDom(n.startContainer),n.startOffset,tt.fromDom(n.endContainer),n.endOffset)},Rh=function(e,t){return t.match({domRange:function(e){return{ltr:x(e),rtl:M.none}},relative:function(t,n){return{ltr:pt((function(){return Sh(e,t,n)})),rtl:pt((function(){return M.some(Sh(e,n,t))}))}},exact:function(t,n,r,i){return{ltr:pt((function(){return Ah(e,t,n,r,i)})),rtl:pt((function(){return M.some(Ah(e,r,i,t,n))}))}}})},Nh=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return Fh.rtl(tt.fromDom(e.endContainer),e.endOffset,tt.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return Ph(e,Fh.ltr,n)}))}return Ph(e,Fh.ltr,n)},Mh=function(e,t){var n=Rh(e,t);return Nh(e,n)},Ih=function(e,t){var n=Mh(e,t);return n.match({ltr:function(t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rtl:function(t,n,r,i){var o=e.document.createRange();return o.setStart(r.dom,i),o.setEnd(t.dom,n),o}})};Fh.ltr,Fh.rtl;var Bh,Lh=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?M.from(t.dom.nodeValue):M.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},zh=Lh(dt,"text"),Wh=function(e){return zh.get(e)},jh=function(e){return zh.getOption(e)},Hh=function(e){return"img"===st(e)?1:jh(e).fold((function(){return _n(e).length}),(function(e){return e.length}))},Vh=function(e){return jh(e).filter((function(e){return 0!==e.trim().length||e.indexOf(ah)>-1})).isSome()},qh=["img","br"],$h=function(e){var t=Vh(e);return t||j(qh,st(e))},Gh=function(e){return Xh(e,$h)},Xh=function(e,t){var n=function(e){for(var r=_n(e),i=r.length-1;i>=0;i--){var o=r[i];if(t(o))return M.some(o);var a=n(o);if(a.isSome())return a}return M.none()};return n(e)},Yh=function(e,t){return sn(t,e)},Kh=function(e,t,n,r){var i=hn(e),o=i.dom.createRange();return o.setStart(e.dom,t),o.setEnd(n.dom,r),o},Zh=function(e,t,n,r){var i=Kh(e,t,n,r),o=un(e,n)&&t===r;return i.collapsed&&!o},Jh=function(e){return M.from(e.getSelection())},Qh=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return M.some(ch.create(tt.fromDom(t.startContainer),t.startOffset,tt.fromDom(n.endContainer),n.endOffset))}return M.none()},ep=function(e){if(null===e.anchorNode||null===e.focusNode)return Qh(e);var t=tt.fromDom(e.anchorNode),n=tt.fromDom(e.focusNode);return Zh(t,e.anchorOffset,n,e.focusOffset)?M.some(ch.create(t,e.anchorOffset,n,e.focusOffset)):Qh(e)},tp=function(e){return Jh(e).filter((function(e){return e.rangeCount>0})).bind(ep)},np=function(e,t){var n=Ih(e,t);return Uh(n)},rp=function(e,t){var n=Ih(e,t);return Oh(n)},ip=function(e,t){return{element:e,offset:t}},op=function(e,t){var n=_n(e);if(0===n.length)return ip(e,t);if(t<n.length)return ip(n[t],0);var r=n[n.length-1],i=dt(r)?Wh(r).length:_n(r).length;return ip(r,i)},ap=function(e,t){return dt(e)?ip(e,t):op(e,t)},sp=function(e,t){var n=t.getSelection.getOrThunk((function(){return function(){return tp(e)}}));return n().map((function(e){var t=ap(e.start,e.soffset),n=ap(e.finish,e.foffset);return Ch.range(t.element,t.offset,n.element,n.offset)}))},cp=function(e,t,n){var r=mn(t.root).dom,i=eh(e,n,t),o=sp(r,t).bind((function(e){var t=rp(r,Ch.exactFromRange(e)).orThunk((function(){var t=tt.fromText(oh);Sr(e.start,t);var n=np(r,Ch.exact(t,0,t,1));return Nr(t),n}));return t.bind((function(e){return th(e.left,e.top,e.width,e.height)}))})),a=sp(r,t).bind((function(e){return lt(e.start)?M.some(e.start):bn(e.start)})),s=a.getOr(e.element);return nh(o,i,t,n,s)},up=[zo("getSelection"),Eo("root"),zo("bubble"),Lf(),Xo("overrides",{}),Xo("showAbove",!1),dl("placement",cp)],lp="link-layout",dp=function(e){return e.x+e.width},fp=function(e,t){return e.x-t.width},hp=function(e,t){return e.y-t.height+e.height},pp=function(e){return e.y},gp=function(e,t,n){return pl(dp(e),pp(e),n.southeast(),yl(),"southeast",Ul(e,{left:0,top:2}),lp)},mp=function(e,t,n){return pl(fp(e,t),pp(e),n.southwest(),xl(),"southwest",Ul(e,{right:1,top:2}),lp)},vp=function(e,t,n){return pl(dp(e),hp(e,t),n.northeast(),_l(),"northeast",Ul(e,{left:0,bottom:3}),lp)},bp=function(e,t,n){return pl(fp(e,t),hp(e,t),n.northwest(),wl(),"northwest",Ul(e,{right:1,bottom:3}),lp)},yp=function(){return[gp,mp,vp,bp]},xp=function(){return[mp,gp,bp,vp]},_p=function(e,t,n){var r=Rd(n,t.item.element),i=zf(e.element,t,yp(),xp(),yp(),xp(),M.none());return M.some(Rf({anchorBox:r,bubble:Pf(),overrides:t.overrides,layouts:i,placer:M.none()}))},wp=[Eo("item"),Lf(),Xo("overrides",{}),dl("placement",_p)],Dp=Co("type",{selection:up,node:ih,hotspot:jf,submenu:wp,makeshift:Vf}),Cp=[Lo("classes",co),Jo("mode","all",["all","layout","placement"])],kp=[Xo("useFixed",T),zo("getBounds")],Tp=[Uo("anchor",Dp),$o("transition",Cp)],Sp=function(){var e=document.documentElement;return zd(0,0,e.clientWidth,e.clientHeight)},Ap=function(e){var t=hr(e.element),n=e.element.dom.getBoundingClientRect();return Ld(t.left,t.top,n.width,n.height)},Ep=function(e,t,n,r,i,o,a){var s=jd(n.anchorBox,t);return Ef(s,i.element,n.bubble,n.layouts,o,r,n.overrides,a)},Up=function(e,t,n,r,i){Op(e,t,n,r,i,M.none())},Op=function(e,t,n,r,i,o){var a=o.map(Zr);return Fp(e,t,n,r,i,a)},Fp=function(e,t,n,r,i,o){var a=wo("placement.info",Qi(Tp),i),s=a.anchor,c=r.element,u=n.get(r.uid);Sd((function(){Xn(c,"position","fixed");var i=Qn(c,"visibility");Xn(c,"visibility","hidden");var l=t.useFixed()?Sp():Ap(e),d=s.placement,f=o.map(x).or(t.getBounds);d(e,s,l).each((function(t){var i=t.placer.getOr(Ep),o=i(e,l,t,f,r,u,a.transition);n.set(r.uid,o)})),i.fold((function(){nr(c,"visibility")}),(function(e){Xn(c,"visibility",e)})),Qn(c,"left").isNone()&&Qn(c,"top").isNone()&&Qn(c,"right").isNone()&&Qn(c,"bottom").isNone()&&Ee(Qn(c,"position"),"fixed")&&nr(c,"position")}),c)},Pp=function(e,t,n){return t.useFixed()?"fixed":"absolute"},Rp=function(e,t,n,r){var i=r.element;G(["position","left","right","top","bottom"],(function(e){return nr(i,e)})),$d(i),n.clear(r.uid)},Np=Object.freeze({__proto__:null,position:Up,positionWithin:Op,positionWithinBounds:Fp,getMode:Pp,reset:Rp}),Mp=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return Te(e,t)},r=function(t){f(t)?delete e[t]:e={}};return kc({readState:function(){return e},clear:r,set:t,get:n})},Ip=Object.freeze({__proto__:null,init:Mp}),Bp=pd({fields:kp,name:"positioning",active:xd,apis:Np,state:Ip}),Lp=function(e){ws(e,hs());var t=e.components();G(t,Lp)},zp=function(e){var t=e.components();G(t,zp),ws(e,fs())},Wp=function(e,t){Ur(e.element,t.element)},jp=function(e){G(e.components(),(function(e){return Nr(e.element)})),Rr(e.element),e.syncComponents()},Hp=function(e,t){var n=e.components();jp(e);var r=ae(n,t);G(r,(function(t){Lp(t),e.getSystem().removeFromWorld(t)})),G(t,(function(t){t.getSystem().isConnected()?Wp(e,t):(e.getSystem().addToWorld(t),Wp(e,t),Mn(e.element)&&zp(t)),e.syncComponents()}))},Vp=function(e,t){qp(e,t,Ur)},qp=function(e,t,n){e.getSystem().addToWorld(t),n(e.element,t.element),Mn(e.element)&&zp(t),e.syncComponents()},$p=function(e){Lp(e),Nr(e.element),e.getSystem().removeFromWorld(e)},Gp=function(e){var t=vn(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}));$p(e),t.each((function(e){e.syncComponents()}))},Xp=function(e){var t=e.components();G(t,$p),Rr(e.element),e.syncComponents()},Yp=function(e,t){Zp(e,t,Ur)},Kp=function(e,t){Zp(e,t,Ar)},Zp=function(e,t,n){n(e,t.element);var r=_n(t.element);G(r,(function(e){t.getByDom(e).each(zp)}))},Jp=function(e){var t=_n(e.element);G(t,(function(t){e.getByDom(t).each(Lp)})),Nr(e.element)},Qp=function(e,t,n,r){n.get().each((function(t){Xp(e)}));var i=t.getAttachPoint(e);Vp(i,e);var o=e.getSystem().build(r);return Vp(e,o),n.set(o),o},eg=function(e,t,n,r){var i=Qp(e,t,n,r);return t.onOpen(e,i),i},tg=function(e,t,n,r){return n.get().map((function(){return Qp(e,t,n,r)}))},ng=function(e,t,n,r,i){ug(e,t),eg(e,t,n,r),i(),dg(e,t)},rg=function(e,t,n){n.get().each((function(r){Xp(e),Gp(e),t.onClose(e,r),n.clear()}))},ig=function(e,t,n){return n.isOpen()},og=function(e,t,n,r){return ig(e,t,n)&&n.get().exists((function(n){return t.isPartOf(e,n,r)}))},ag=function(e,t,n){return n.get()},sg=function(e,t,n,r){Qn(e.element,t).fold((function(){qn(e.element,n)}),(function(t){zn(e.element,n,t)})),Xn(e.element,t,r)},cg=function(e,t,n){Hn(e.element,n).fold((function(){return nr(e.element,t)}),(function(n){return Xn(e.element,t,n)}))},ug=function(e,t,n){var r=t.getAttachPoint(e);Xn(e.element,"position",Bp.getMode(r)),sg(e,"visibility",t.cloakVisibilityAttr,"hidden")},lg=function(e){return H(["top","left","right","bottom"],(function(t){return Qn(e,t).isSome()}))},dg=function(e,t,n){lg(e.element)||nr(e.element,"position"),cg(e,"visibility",t.cloakVisibilityAttr)},fg=Object.freeze({__proto__:null,cloak:ug,decloak:dg,open:eg,openWhileCloaked:ng,close:rg,isOpen:ig,isPartOf:og,getState:ag,setContent:tg}),hg=function(e,t){return As([Fs(os(),(function(n,r){rg(n,e,t)}))])},pg=Object.freeze({__proto__:null,events:hg}),gg=[sl("onOpen"),sl("onClose"),Eo("isPartOf"),Eo("getAttachPoint"),Xo("cloakVisibilityAttr","data-precloak-visibility")],mg=function(){var e=rf(),t=x("not-implemented");return kc({readState:t,isOpen:e.isSet,clear:e.clear,set:e.set,get:e.get})},vg=Object.freeze({__proto__:null,init:mg}),bg=pd({fields:gg,name:"sandboxing",active:pg,apis:fg,state:vg}),yg=x("dismiss.popups"),xg=x("reposition.popups"),_g=x("mouse.released"),wg=Ji([Xo("isExtraPart",T),$o("fireEventInstead",[Xo("event",ps())])]),Dg=function(e){var t,n=wo("Dismissal",wg,e);return t={},t[yg()]={schema:Ji([Eo("target")]),onReceive:function(e,t){if(bg.isOpen(e)){var r=bg.isPartOf(e,t.target)||n.isExtraPart(e,t.target);r||n.fireEventInstead.fold((function(){return bg.close(e)}),(function(t){return ws(e,t.event)}))}}},t},Cg=Ji([$o("fireEventInstead",[Xo("event",gs())]),No("doReposition")]),kg=function(e){var t,n=wo("Reposition",Cg,e);return t={},t[xg()]={onReceive:function(e){bg.isOpen(e)&&n.fireEventInstead.fold((function(){return n.doReposition(e)}),(function(t){return ws(e,t.event)}))}},t},Tg=function(e,t,n){t.store.manager.onLoad(e,t,n)},Sg=function(e,t,n){t.store.manager.onUnload(e,t,n)},Ag=function(e,t,n,r){t.store.manager.setValue(e,t,n,r)},Eg=function(e,t,n){return t.store.manager.getValue(e,t,n)},Ug=function(e,t,n){return n},Og=Object.freeze({__proto__:null,onLoad:Tg,onUnload:Sg,setValue:Ag,getValue:Eg,getState:Ug}),Fg=function(e,t){var n=e.resetOnDom?[js((function(n,r){Tg(n,e,t)})),Hs((function(n,r){Sg(n,e,t)}))]:[ad(e,t,Tg)];return As(n)},Pg=Object.freeze({__proto__:null,events:Fg}),Rg=function(){var e=ia(null),t=function(){return{mode:"memory",value:e.get()}},n=function(){return null===e.get()},r=function(){e.set(null)};return kc({set:e.set,get:e.get,isNotSet:n,clear:r,readState:t})},Ng=function(){var e=m;return kc({readState:e})},Mg=function(){var e=ia({}),t=ia({}),n=function(){return{mode:"dataset",dataByValue:e.get(),dataByText:t.get()}},r=function(){e.set({}),t.set({})},i=function(n){return Te(e.get(),n).orThunk((function(){return Te(t.get(),n)}))},o=function(n){var r=e.get(),i=t.get(),o={},a={};G(n,(function(e){o[e.value]=e,Te(e,"meta").each((function(t){Te(t,"text").each((function(t){a[t]=e}))}))})),e.set(E(E({},r),o)),t.set(E(E({},i),a))};return kc({readState:n,lookup:i,update:o,clear:r})},Ig=function(e){return e.store.manager.state(e)},Bg=Object.freeze({__proto__:null,memory:Rg,dataset:Mg,manual:Ng,init:Ig}),Lg=function(e,t,n,r){var i=t.store;n.update([r]),i.setValue(e,r),t.onSetValue(e,r)},zg=function(e,t,n){var r=t.store,i=r.getDataKey(e);return n.lookup(i).getOrThunk((function(){return r.getFallbackEntry(i)}))},Wg=function(e,t,n){var r=t.store;r.initialValue.each((function(r){Lg(e,t,n,r)}))},jg=function(e,t,n){n.clear()},Hg=[zo("initialValue"),Eo("getFallbackEntry"),Eo("getDataKey"),Eo("setValue"),dl("manager",{setValue:Lg,getValue:zg,onLoad:Wg,onUnload:jg,state:Mg})],Vg=function(e,t,n){return t.store.getValue(e)},qg=function(e,t,n,r){t.store.setValue(e,r),t.onSetValue(e,r)},$g=function(e,t,n){t.store.initialValue.each((function(n){t.store.setValue(e,n)}))},Gg=[Eo("getValue"),Xo("setValue",m),zo("initialValue"),dl("manager",{setValue:qg,getValue:Vg,onLoad:$g,onUnload:m,state:Cc.init})],Xg=function(e,t,n,r){n.set(r),t.onSetValue(e,r)},Yg=function(e,t,n){return n.get()},Kg=function(e,t,n){t.store.initialValue.each((function(e){n.isNotSet()&&n.set(e)}))},Zg=function(e,t,n){n.clear()},Jg=[zo("initialValue"),dl("manager",{setValue:Xg,getValue:Yg,onLoad:Kg,onUnload:Zg,state:Rg})],Qg=[Yo("store",{mode:"memory"},Co("mode",{memory:Jg,manual:Gg,dataset:Hg})),sl("onSetValue"),Xo("resetOnDom",!1)],em=pd({fields:Qg,name:"representing",active:Pg,apis:Og,extra:{setValueFrom:function(e,t){var n=em.getValue(t);em.setValue(e,n)}},state:Bg}),tm=function(e,t){return ra(e,{},$(t,(function(t){return Mo(t.name(),"Cannot configure "+t.name()+" for "+e)})).concat([So("dump",_)]))},nm=function(e){return e.dump},rm=function(e,t){return E(E({},fd(t)),e.dump)},im={field:tm,augment:rm,get:nm},om="placeholder",am=aa.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),sm=function(e){return Se(e,"uiType")},cm=function(e,t,n,r){return e.exists((function(e){return e!==n.owner}))?am.single(!0,x(n)):Te(r,n.name).fold((function(){throw new Error("Unknown placeholder component: "+n.name+"\nKnown: ["+ge(r)+"]\nNamespace: "+e.getOr("none")+"\nSpec: "+JSON.stringify(n,null,2))}),(function(e){return e.replace()}))},um=function(e,t,n,r){return sm(n)&&n.uiType===om?cm(e,t,n,r):am.single(!1,x(n))},lm=function(e,t,n,r){var i=um(e,t,n,r);return i.fold((function(i,o){var a=sm(n)?o(t,n.config,n.validated):o(t),s=Te(a,"components").getOr([]),c=re(s,(function(n){return lm(e,t,n,r)}));return[E(E({},a),{components:c})]}),(function(e,r){if(sm(n)){var i=r(t,n.config,n.validated),o=n.validated.preprocess.getOr(_);return o(i)}return r(t)}))},dm=function(e,t,n,r){return re(n,(function(n){return lm(e,t,n,r)}))},fm=function(e,t){var n=!1,r=function(){return n},i=function(){if(n)throw new Error("Trying to use the same placeholder more than once: "+e);return n=!0,t},o=function(){return t.fold((function(e,t){return e}),(function(e,t){return e}))};return{name:x(e),required:o,used:r,replace:i}},hm=function(e,t,n,r){var i=be(r,(function(e,t){return fm(t,e)})),o=dm(e,t,n,i);return ve(i,(function(n){if(!1===n.used()&&n.required())throw new Error("Placeholder: "+n.name()+" was not found in components list\nNamespace: "+e.getOr("none")+"\nComponents: "+JSON.stringify(t.components,null,2))})),o},pm=am.single,gm=am.multiple,mm=x(om),vm=aa.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),bm=Xo("factory",{sketch:_}),ym=Xo("schema",[]),xm=Eo("name"),_m=To("pname","pname",Ci((function(e){return"<alloy."+ic(e.name)+">"})),oo()),wm=So("schema",(function(){return[zo("preprocess")]})),Dm=Xo("defaults",x({})),Cm=Xo("overrides",x({})),km=Qi([bm,ym,xm,_m,Dm,Cm]),Tm=Qi([bm,ym,xm,Dm,Cm]),Sm=Qi([bm,ym,xm,_m,Dm,Cm]),Am=Qi([bm,wm,xm,Eo("unit"),_m,Dm,Cm]),Em=function(e){return e.fold(M.some,M.none,M.some,M.some)},Um=function(e){var t=function(e){return e.name};return e.fold(t,t,t,t)},Om=function(e){return e.fold(_,_,_,_)},Fm=function(e,t){return function(n){var r=wo("Converting part type",t,n);return e(r)}},Pm=Fm(vm.required,km),Rm=Fm(vm.external,Tm),Nm=Fm(vm.optional,Sm),Mm=Fm(vm.group,Am),Im=x("entirety"),Bm=Object.freeze({__proto__:null,required:Pm,external:Rm,optional:Nm,group:Mm,asNamedPart:Em,name:Um,asCommon:Om,original:Im}),Lm=function(e,t,n,r){return _i(t.defaults(e,n,r),n,{uid:e.partUids[t.name]},t.overrides(e,n,r))},zm=function(e,t,n){var r={},i={};return G(n,(function(e){e.fold((function(e){r[e.pname]=pm(!0,(function(t,n,r){return e.factory.sketch(Lm(t,e,n,r))}))}),(function(e){var n=t.parts[e.name];i[e.name]=x(e.factory.sketch(Lm(t,e,n[Im()]),n))}),(function(e){r[e.pname]=pm(!1,(function(t,n,r){return e.factory.sketch(Lm(t,e,n,r))}))}),(function(e){r[e.pname]=gm(!0,(function(t,n,r){var i=t[e.name];return $(i,(function(n){return e.factory.sketch(_i(e.defaults(t,n,r),n,e.overrides(t,n)))}))}))}))})),{internals:x(r),externals:x(i)}},Wm=function(e,t){var n={};return G(t,(function(t){Em(t).each((function(t){var r=jm(e,t.pname);n[t.name]=function(n){var i=wo("Part: "+t.name+" in "+e,Qi(t.schema),n);return E(E({},r),{config:n,validated:i})}}))})),n},jm=function(e,t){return{uiType:mm(),owner:e,name:t}},Hm=function(e,t,n){return{uiType:mm(),owner:e,name:t,config:n,validated:{}}},Vm=function(e){return re(e,(function(e){return e.fold(M.none,M.some,M.none,M.none).map((function(e){return Io(e.name,e.schema.concat([fl(Im())]))})).toArray()}))},qm=function(e){return $(e,Um)},$m=function(e,t,n){return zm(e,t,n)},Gm=function(e,t,n){return hm(M.some(e),t,t.components,n)},Xm=function(e,t,n){var r=t.partUids[n];return e.getSystem().getByUid(r).toOptional()},Ym=function(e,t,n){return Xm(e,t,n).getOrDie("Could not find part: "+n)},Km=function(e,t,n){var r={},i=t.partUids,o=e.getSystem();return G(n,(function(e){r[e]=x(o.getByUid(i[e]))})),r},Zm=function(e,t){var n=e.getSystem();return be(t.partUids,(function(e,t){return x(n.getByUid(e))}))},Jm=function(e){return ge(e.partUids)},Qm=function(e,t,n){var r={},i=t.partUids,o=e.getSystem();return G(n,(function(e){r[e]=x(o.getByUid(i[e]).getOrDie())})),r},ev=function(e,t){var n=qm(t);return pa($(n,(function(t){return{key:t,value:e+"-"+t}})))},tv=function(e){return To("partUids","partUids",Si((function(t){return ev(t.uid,e)})),oo())},nv=Object.freeze({__proto__:null,generate:Wm,generateOne:Hm,schemas:Vm,names:qm,substitutes:$m,components:Gm,defaultUids:ev,defaultUidsSchema:tv,getAllParts:Zm,getAllPartNames:Jm,getPart:Xm,getPartOrDie:Ym,getParts:Km,getPartsOrDie:Qm}),rv=function(e,t){var n=e.length>0?[Io("parts",e)]:[];return n.concat([Eo("uid"),Xo("dom",{}),Xo("components",[]),fl("originalSpec"),Xo("debug.sketcher",{})]).concat(t)},iv=function(e,t,n,r,i){var o=rv(r,i);return wo(e+" [SpecSchema]",Ji(o.concat(t)),n)},ov=function(e,t,n,r){var i=cv(r),o=iv(e,t,i,[],[]);return n(o,i)},av=function(e,t,n,r,i){var o=cv(i),a=Vm(n),s=tv(n),c=iv(e,t,o,a,[s]),u=$m(e,c,n),l=Gm(e,c,u.internals());return r(c,l,o,u.externals())},sv=function(e){return Se(e,"uid")},cv=function(e){return sv(e)?e:E(E({},e),{uid:fc("uid")})},uv=function(e){return void 0!==e.uid},lv=Ji([Eo("name"),Eo("factory"),Eo("configFields"),Xo("apis",{}),Xo("extraApis",{})]),dv=Ji([Eo("name"),Eo("factory"),Eo("configFields"),Eo("partFields"),Xo("apis",{}),Xo("extraApis",{})]),fv=function(e){var t=wo("Sketcher for "+e.name,lv,e),n=function(e){return ov(t.name,t.configFields,t.factory,e)},r=be(t.apis,Dc),i=be(t.extraApis,(function(e,t){return bc(e,t)}));return E(E({name:t.name,configFields:t.configFields,sketch:n},r),i)},hv=function(e){var t=wo("Sketcher for "+e.name,dv,e),n=function(e){return av(t.name,t.configFields,t.partFields,t.factory,e)},r=Wm(t.name,t.partFields),i=be(t.apis,Dc),o=be(t.extraApis,(function(e,t){return bc(e,t)}));return E(E({name:t.name,partFields:t.partFields,configFields:t.configFields,sketch:n,parts:r},i),o)},pv=function(e){return"input"===st(e)&&"radio"!==jn(e,"type")||"textarea"===st(e)},gv=function(e,t,n){return t.find(e)},mv=Object.freeze({__proto__:null,getCurrent:gv}),vv=[Eo("find")],bv=pd({fields:vv,name:"composing",apis:mv}),yv=["input","button","textarea","select"],xv=function(e,t,n){var r=t.disabled()?Av:Ev;r(e,t)},_v=function(e,t){return!0===t.useNative&&j(yv,st(e.element))},wv=function(e){return Vn(e.element,"disabled")},Dv=function(e){zn(e.element,"disabled","disabled")},Cv=function(e){qn(e.element,"disabled")},kv=function(e){return"true"===jn(e.element,"aria-disabled")},Tv=function(e){zn(e.element,"aria-disabled","true")},Sv=function(e){zn(e.element,"aria-disabled","false")},Av=function(e,t,n){t.disableClass.each((function(t){ou(e.element,t)}));var r=_v(e,t)?Dv:Tv;r(e),t.onDisabled(e)},Ev=function(e,t,n){t.disableClass.each((function(t){su(e.element,t)}));var r=_v(e,t)?Cv:Sv;r(e),t.onEnabled(e)},Uv=function(e,t){return _v(e,t)?wv(e):kv(e)},Ov=function(e,t,n,r){var i=r?Av:Ev;i(e,t)},Fv=Object.freeze({__proto__:null,enable:Ev,disable:Av,isDisabled:Uv,onLoad:xv,set:Ov}),Pv=function(e,t){return Uc({classes:t.disabled()?t.disableClass.toArray():[]})},Rv=function(e,t){return As([Es(ts(),(function(t,n){return Uv(t,e)})),ad(e,t,xv)])},Nv=Object.freeze({__proto__:null,exhibit:Pv,events:Rv}),Mv=[ea("disabled",T),Xo("useNative",!0),zo("disableClass"),sl("onDisabled"),sl("onEnabled")],Iv=pd({fields:Mv,name:"disabling",active:Nv,apis:Fv}),Bv=function(e,t,n,r){var i=Yh(e.element,"."+t.highlightClass);G(i,(function(n){H(r,(function(e){return e.element===n}))||(su(n,t.highlightClass),e.getSystem().getByDom(n).each((function(n){t.onDehighlight(e,n),ws(n,_s())})))}))},Lv=function(e,t,n){return Bv(e,t,n,[])},zv=function(e,t,n,r){$v(e,t,n,r)&&(su(r.element,t.highlightClass),t.onDehighlight(e,r),ws(r,_s()))},Wv=function(e,t,n,r){Bv(e,t,n,[r]),$v(e,t,n,r)||(ou(r.element,t.highlightClass),t.onHighlight(e,r),ws(r,xs()))},jv=function(e,t,n){Yv(e,t).each((function(r){Wv(e,t,n,r)}))},Hv=function(e,t,n){Kv(e,t).each((function(r){Wv(e,t,n,r)}))},Vv=function(e,t,n,r){Xv(e,t,n,r).fold((function(e){throw e}),(function(r){Wv(e,t,n,r)}))},qv=function(e,t,n,r){var i=eb(e,t),o=ee(i,r);o.each((function(r){Wv(e,t,n,r)}))},$v=function(e,t,n,r){return cu(r.element,t.highlightClass)},Gv=function(e,t,n){return Bu(e.element,"."+t.highlightClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Xv=function(e,t,n,r){var i=Yh(e.element,"."+t.itemClass);return M.from(i[r]).fold((function(){return ri.error(new Error("No element found with index "+r))}),e.getSystem().getByDom)},Yv=function(e,t,n){return Bu(e.element,"."+t.itemClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Kv=function(e,t,n){var r=Yh(e.element,"."+t.itemClass),i=r.length>0?M.some(r[r.length-1]):M.none();return i.bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Zv=function(e,t,n,r){var i=Yh(e.element,"."+t.itemClass),o=te(i,(function(e){return cu(e,t.highlightClass)}));return o.bind((function(t){var n=Sl(t,r,0,i.length-1);return e.getSystem().getByDom(i[n]).toOptional()}))},Jv=function(e,t,n){return Zv(e,t,n,-1)},Qv=function(e,t,n){return Zv(e,t,n,1)},eb=function(e,t,n){var r=Yh(e.element,"."+t.itemClass);return Oe($(r,(function(t){return e.getSystem().getByDom(t).toOptional()})))},tb=Object.freeze({__proto__:null,dehighlightAll:Lv,dehighlight:zv,highlight:Wv,highlightFirst:jv,highlightLast:Hv,highlightAt:Vv,highlightBy:qv,isHighlighted:$v,getHighlighted:Gv,getFirst:Yv,getLast:Kv,getPrevious:Jv,getNext:Qv,getCandidates:eb}),nb=[Eo("highlightClass"),Eo("itemClass"),sl("onHighlight"),sl("onDehighlight")],rb=pd({fields:nb,name:"highlighting",apis:tb}),ib=[8],ob=[9],ab=[13],sb=[27],cb=[32],ub=[37],lb=[38],db=[39],fb=[40],hb=function(e,t,n){var r=oe(e.slice(0,t)),i=oe(e.slice(t+1));return ee(r.concat(i),n)},pb=function(e,t,n){var r=oe(e.slice(0,t));return ee(r,n)},gb=function(e,t,n){var r=e.slice(0,t),i=e.slice(t+1);return ee(i.concat(r),n)},mb=function(e,t,n){var r=e.slice(t+1);return ee(r,n)},vb=function(e){return function(t){var n=t.raw;return j(e,n.which)}},bb=function(e){return function(t){return ie(e,(function(e){return e(t)}))}},yb=function(e){var t=e.raw;return!0===t.shiftKey},xb=function(e){var t=e.raw;return!0===t.ctrlKey},_b=C(yb),wb=function(e,t){return{matches:e,classification:t}},Db=function(e,t){var n=ee(e,(function(e){return e.matches(t)}));return n.map((function(e){return e.classification}))},Cb=function(e,t,n){var r=t.exists((function(e){return n.exists((function(t){return un(t,e)}))}));r||Ds(e,ms(),{prevFocus:t,newFocus:n})},kb=function(){var e=function(e){return Td(e.element)},t=function(t,n){var r=e(t);t.getSystem().triggerFocus(n,t.element);var i=e(t);Cb(t,r,i)};return{get:e,set:t}},Tb=function(){var e=function(e){return rb.getHighlighted(e).map((function(e){return e.element}))},t=function(t,n){var r=e(t);t.getSystem().getByDom(n).fold(m,(function(e){rb.highlight(t,e)}));var i=e(t);Cb(t,r,i)};return{get:e,set:t}};(function(e){e["OnFocusMode"]="onFocus",e["OnEnterOrSpaceMode"]="onEnterOrSpace",e["OnApiMode"]="onApi"})(Bh||(Bh={}));var Sb=function(e,t,n,r,i){var o=function(){return e.concat([Xo("focusManager",kb()),Yo("focusInside","onFocus",vo((function(e){return j(["onFocus","onEnterOrSpace","onApi"],e)?ri.value(e):ri.error("Invalid value for focusInside")}))),dl("handler",c),dl("state",t),dl("sendFocusIn",i)])},a=function(e,t,n,r,i){var o=n(e,t,r,i);return Db(o,t.event).bind((function(n){return n(e,t,r,i)}))},s=function(e,t){var o=e.focusInside!==Bh.OnFocusMode?M.none():i(e).map((function(n){return Fs(Za(),(function(r,i){n(r,e,t),i.stop()}))})),s=function(n,r){var o=vb(cb.concat(ab))(r.event);e.focusInside===Bh.OnEnterOrSpaceMode&&o&&_a(n,r)&&i(e).each((function(i){i(n,e,t),r.stop()}))},c=[Fs(za(),(function(r,i){a(r,i,n,e,t).fold((function(){s(r,i)}),(function(e){i.stop()}))})),Fs(Wa(),(function(n,i){a(n,i,r,e,t).each((function(e){i.stop()}))}))];return As(o.toArray().concat(c))},c={schema:o,processKey:a,toEvents:s};return c},Ab=function(e){var t=[zo("onEscape"),zo("onEnter"),Xo("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Xo("firstTabstop",0),Xo("useTabstopAt",S),zo("visibilitySelector")].concat([e]),n=function(e,t){var n=e.visibilitySelector.bind((function(e){return Lu(t,e)})).getOr(t);return ar(n)>0},r=function(e,t){var r=Yh(e.element,t.selector),i=K(r,(function(e){return n(t,e)}));return M.from(i[t.firstTabstop])},i=function(e,t){return t.focusManager.get(e).bind((function(e){return Lu(e,t.selector)}))},o=function(e,t){return n(e,t)&&e.useTabstopAt(t)},a=function(e,t,n){r(e,t).each((function(n){t.focusManager.set(e,n)}))},s=function(e,t,n,r,i){return i(t,n,(function(e){return o(r,e)})).fold((function(){return r.cyclic?M.some(!0):M.none()}),(function(t){return r.focusManager.set(e,t),M.some(!0)}))},c=function(e,t,n,r){var o=Yh(e.element,n.selector);return i(e,n).bind((function(t){var i=te(o,D(un,t));return i.bind((function(t){return s(e,o,t,n,r)}))}))},u=function(e,t,n){var r=n.cyclic?hb:pb;return c(e,t,n,r)},l=function(e,t,n){var r=n.cyclic?gb:mb;return c(e,t,n,r)},d=function(e,t,n){return n.onEnter.bind((function(n){return n(e,t)}))},f=function(e,t,n){return n.onEscape.bind((function(n){return n(e,t)}))},h=x([wb(bb([yb,vb(ob)]),u),wb(vb(ob),l),wb(vb(sb),f),wb(bb([_b,vb(ab)]),d)]),p=x([]);return Sb(t,Cc.init,h,p,(function(){return M.some(a)}))},Eb=Ab(So("cyclic",T)),Ub=Ab(So("cyclic",S)),Ob=function(e,t,n){return ks(e,n,ts()),M.some(!0)},Fb=function(e,t,n){var r=pv(n)&&vb(cb)(t.event);return r?M.none():Ob(e,t,n)},Pb=function(e,t){return M.some(!0)},Rb=[Xo("execute",Fb),Xo("useSpace",!1),Xo("useEnter",!0),Xo("useControlEnter",!1),Xo("useDown",!1)],Nb=function(e,t,n){return n.execute(e,t,e.element)},Mb=function(e,t,n,r){var i=n.useSpace&&!pv(e.element)?cb:[],o=n.useEnter?ab:[],a=n.useDown?fb:[],s=i.concat(o).concat(a);return[wb(vb(s),Nb)].concat(n.useControlEnter?[wb(bb([xb,vb(ab)]),Nb)]:[])},Ib=function(e,t,n,r){return n.useSpace&&!pv(e.element)?[wb(vb(cb),Pb)]:[]},Bb=Sb(Rb,Cc.init,Mb,Ib,(function(){return M.none()})),Lb=function(){var e=rf(),t=function(t,n){e.set({numRows:t,numColumns:n})},n=function(){return e.get().map((function(e){return e.numRows}))},r=function(){return e.get().map((function(e){return e.numColumns}))};return kc({readState:function(){return e.get().map((function(e){return{numRows:String(e.numRows),numColumns:String(e.numColumns)}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:t,getNumRows:n,getNumColumns:r})},zb=function(e){return e.state(e)},Wb=Object.freeze({__proto__:null,flatgrid:Lb,init:zb}),jb=function(e){return function(t,n,r,i){var o=e(t.element);return $b(o,t,n,r,i)}},Hb=function(e,t){var n=Nf(e,t);return jb(n)},Vb=function(e,t){var n=Nf(t,e);return jb(n)},qb=function(e){return function(t,n,r,i){return $b(e,t,n,r,i)}},$b=function(e,t,n,r,i){var o=r.focusManager.get(t).bind((function(n){return e(t.element,n,r,i)}));return o.map((function(e){return r.focusManager.set(t,e),!0}))},Gb=qb,Xb=qb,Yb=qb,Kb=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},Zb=function(e){return!Kb(e.dom)},Jb=function(e,t){return te(e,t).map((function(t){return{index:t,candidates:e}}))},Qb=function(e,t,n){var r=function(e){return un(e,t)},i=Yh(e,n),o=K(i,Zb);return Jb(o,r)},ey=function(e,t){return te(e,(function(e){return un(t,e)}))},ty=function(e,t,n,r){var i=Math.floor(t/n),o=t%n;return r(i,o).bind((function(t){var r=t.row*n+t.column;return r>=0&&r<e.length?M.some(e[r]):M.none()}))},ny=function(e,t,n,r,i){return ty(e,t,r,(function(t,o){var a=t===n-1,s=a?e.length-t*r:r,c=Sl(o,i,0,s-1);return M.some({row:t,column:c})}))},ry=function(e,t,n,r,i){return ty(e,t,r,(function(t,o){var a=Sl(t,i,0,n-1),s=a===n-1,c=s?e.length-a*r:r,u=Al(o,0,c-1);return M.some({row:a,column:u})}))},iy=function(e,t,n,r){return ny(e,t,n,r,1)},oy=function(e,t,n,r){return ny(e,t,n,r,-1)},ay=function(e,t,n,r){return ry(e,t,n,r,-1)},sy=function(e,t,n,r){return ry(e,t,n,r,1)},cy=[Eo("selector"),Xo("execute",Fb),cl("onEscape"),Xo("captureTab",!1),hl()],uy=function(e,t,n){Bu(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))},ly=function(e,t){return t.focusManager.get(e).bind((function(e){return Lu(e,t.selector)}))},dy=function(e,t,n,r){return ly(e,n).bind((function(r){return n.execute(e,t,r)}))},fy=function(e){return function(t,n,r,i){return Qb(t,n,r.selector).bind((function(t){return e(t.candidates,t.index,i.getNumRows().getOr(r.initSize.numRows),i.getNumColumns().getOr(r.initSize.numColumns))}))}},hy=function(e,t,n){return n.captureTab?M.some(!0):M.none()},py=function(e,t,n){return n.onEscape(e,t)},gy=fy(oy),my=fy(iy),vy=fy(ay),by=fy(sy),yy=x([wb(vb(ub),Hb(gy,my)),wb(vb(db),Vb(gy,my)),wb(vb(lb),Gb(vy)),wb(vb(fb),Xb(by)),wb(bb([yb,vb(ob)]),hy),wb(bb([_b,vb(ob)]),hy),wb(vb(sb),py),wb(vb(cb.concat(ab)),dy)]),xy=x([wb(vb(cb),Pb)]),_y=Sb(cy,Lb,yy,xy,(function(){return M.some(uy)})),wy=function(e,t,n,r){var i=function(e){return"button"===st(e)&&"disabled"===jn(e,"disabled")},o=function(e,t,n){var a=Sl(t,r,0,n.length-1);return a===e?M.none():i(n[a])?o(e,a,n):M.from(n[a])};return Qb(e,n,t).bind((function(e){var t=e.index,n=e.candidates;return o(t,t,n)}))},Dy=[Eo("selector"),Xo("getInitial",M.none),Xo("execute",Fb),cl("onEscape"),Xo("executeOnMove",!1),Xo("allowVertical",!0)],Cy=function(e,t){return t.focusManager.get(e).bind((function(e){return Lu(e,t.selector)}))},ky=function(e,t,n){return Cy(e,n).bind((function(r){return n.execute(e,t,r)}))},Ty=function(e,t,n){t.getInitial(e).orThunk((function(){return Bu(e.element,t.selector)})).each((function(n){t.focusManager.set(e,n)}))},Sy=function(e,t,n){return wy(e,n.selector,t,-1)},Ay=function(e,t,n){return wy(e,n.selector,t,1)},Ey=function(e){return function(t,n,r,i){return e(t,n,r,i).bind((function(){return r.executeOnMove?ky(t,n,r):M.some(!0)}))}},Uy=function(e,t,n){return n.onEscape(e,t)},Oy=function(e,t,n,r){var i=ub.concat(n.allowVertical?lb:[]),o=db.concat(n.allowVertical?fb:[]);return[wb(vb(i),Ey(Hb(Sy,Ay))),wb(vb(o),Ey(Vb(Sy,Ay))),wb(vb(ab),ky),wb(vb(cb),ky),wb(vb(sb),Uy)]},Fy=x([wb(vb(cb),Pb)]),Py=Sb(Dy,Cc.init,Oy,Fy,(function(){return M.some(Ty)})),Ry=function(e,t,n){return M.from(e[t]).bind((function(e){return M.from(e[n]).map((function(e){return{rowIndex:t,columnIndex:n,cell:e}}))}))},Ny=function(e,t,n,r){var i=e[t],o=i.length,a=Sl(n,r,0,o-1);return Ry(e,t,a)},My=function(e,t,n,r){var i=Sl(n,r,0,e.length-1),o=e[i].length,a=Al(t,0,o-1);return Ry(e,i,a)},Iy=function(e,t,n,r){var i=e[t],o=i.length,a=Al(n+r,0,o-1);return Ry(e,t,a)},By=function(e,t,n,r){var i=Al(n+r,0,e.length-1),o=e[i].length,a=Al(t,0,o-1);return Ry(e,i,a)},Ly=function(e,t,n){return Ny(e,t,n,1)},zy=function(e,t,n){return Ny(e,t,n,-1)},Wy=function(e,t,n){return My(e,n,t,-1)},jy=function(e,t,n){return My(e,n,t,1)},Hy=function(e,t,n){return Iy(e,t,n,-1)},Vy=function(e,t,n){return Iy(e,t,n,1)},qy=function(e,t,n){return By(e,n,t,-1)},$y=function(e,t,n){return By(e,n,t,1)},Gy=[Io("selectors",[Eo("row"),Eo("cell")]),Xo("cycles",!0),Xo("previousSelector",M.none),Xo("execute",Fb)],Xy=function(e,t,n){var r=t.previousSelector(e).orThunk((function(){var n=t.selectors;return Bu(e.element,n.cell)}));r.each((function(n){t.focusManager.set(e,n)}))},Yy=function(e,t,n){return Td(e.element).bind((function(r){return n.execute(e,t,r)}))},Ky=function(e,t){return $(e,(function(e){return Yh(e,t.selectors.cell)}))},Zy=function(e,t){return function(n,r,i){var o=i.cycles?e:t;return Lu(r,i.selectors.row).bind((function(e){var t=Yh(e,i.selectors.cell);return ey(t,r).bind((function(t){var r=Yh(n,i.selectors.row);return ey(r,e).bind((function(e){var n=Ky(r,i);return o(n,e,t).map((function(e){return e.cell}))}))}))}))}},Jy=Zy(zy,Hy),Qy=Zy(Ly,Vy),ex=Zy(Wy,qy),tx=Zy(jy,$y),nx=x([wb(vb(ub),Hb(Jy,Qy)),wb(vb(db),Vb(Jy,Qy)),wb(vb(lb),Gb(ex)),wb(vb(fb),Xb(tx)),wb(vb(cb.concat(ab)),Yy)]),rx=x([wb(vb(cb),Pb)]),ix=Sb(Gy,Cc.init,nx,rx,(function(){return M.some(Xy)})),ox=[Eo("selector"),Xo("execute",Fb),Xo("moveOnTab",!1)],ax=function(e,t,n){return n.focusManager.get(e).bind((function(r){return n.execute(e,t,r)}))},sx=function(e,t,n){Bu(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))},cx=function(e,t,n){return wy(e,n.selector,t,-1)},ux=function(e,t,n){return wy(e,n.selector,t,1)},lx=function(e,t,n,r){return n.moveOnTab?Yb(cx)(e,t,n,r):M.none()},dx=function(e,t,n,r){return n.moveOnTab?Yb(ux)(e,t,n,r):M.none()},fx=x([wb(vb(lb),Yb(cx)),wb(vb(fb),Yb(ux)),wb(bb([yb,vb(ob)]),lx),wb(bb([_b,vb(ob)]),dx),wb(vb(ab),ax),wb(vb(cb),ax)]),hx=x([wb(vb(cb),Pb)]),px=Sb(ox,Cc.init,fx,hx,(function(){return M.some(sx)})),gx=[cl("onSpace"),cl("onEnter"),cl("onShiftEnter"),cl("onLeft"),cl("onRight"),cl("onTab"),cl("onShiftTab"),cl("onUp"),cl("onDown"),cl("onEscape"),Xo("stopSpaceKeyup",!1),zo("focusIn")],mx=function(e,t,n){return[wb(vb(cb),n.onSpace),wb(bb([_b,vb(ab)]),n.onEnter),wb(bb([yb,vb(ab)]),n.onShiftEnter),wb(bb([yb,vb(ob)]),n.onShiftTab),wb(bb([_b,vb(ob)]),n.onTab),wb(vb(lb),n.onUp),wb(vb(fb),n.onDown),wb(vb(ub),n.onLeft),wb(vb(db),n.onRight),wb(vb(cb),n.onSpace),wb(vb(sb),n.onEscape)]},vx=function(e,t,n){return n.stopSpaceKeyup?[wb(vb(cb),Pb)]:[]},bx=Sb(gx,Cc.init,mx,vx,(function(e){return e.focusIn})),yx=Eb.schema(),xx=Ub.schema(),_x=Py.schema(),wx=_y.schema(),Dx=ix.schema(),Cx=Bb.schema(),kx=px.schema(),Tx=bx.schema(),Sx=Object.freeze({__proto__:null,acyclic:yx,cyclic:xx,flow:_x,flatgrid:wx,matrix:Dx,execution:Cx,menu:kx,special:Tx}),Ax=function(e){return Ae(e,"setGridSize")},Ex=md({branchKey:"mode",branches:Sx,name:"keying",active:{events:function(e,t){var n=e.handler;return n.toEvents(e,t)}},apis:{focusIn:function(e,t,n){t.sendFocusIn(t).fold((function(){e.getSystem().triggerFocus(e.element,e.element)}),(function(r){r(e,t,n)}))},setGridSize:function(e,t,n,r,i){Ax(n)?n.setGridSize(r,i):console.error("Layout does not support setGridSize")}},state:Wb}),Ux=function(e,t,n,r){Sd((function(){var t=$(r,e.getSystem().build);Hp(e,t)}),e.element)},Ox=function(e,t,n,r){var i=e.getSystem().build(r);qp(e,i,n)},Fx=function(e,t,n,r){Ox(e,t,Ur,r)},Px=function(e,t,n,r){Ox(e,t,Er,r)},Rx=function(e,t,n,r){var i=Nx(e),o=ee(i,(function(e){return un(r.element,e.element)}));o.each(Gp)},Nx=function(e,t){return e.components()},Mx=function(e,t,n,r,i){var o=Nx(e);return M.from(o[r]).map((function(o){return Rx(e,t,n,o),i.each((function(n){Ox(e,t,(function(e,t){Or(e,t,r)}),n)})),o}))},Ix=function(e,t,n,r,i){var o=Nx(e);return te(o,r).bind((function(r){return Mx(e,t,n,r,i)}))},Bx=Object.freeze({__proto__:null,append:Fx,prepend:Px,remove:Rx,replaceAt:Mx,replaceBy:Ix,set:Ux,contents:Nx}),Lx=pd({fields:[],name:"replacing",apis:Bx}),zx=function(e,t){var n=As(t);return pd({fields:[Eo("enabled")],name:e,active:{events:x(n)}})},Wx=function(e,t){var n=zx(e,t);return{key:e,value:{config:{},me:n,configAsRaw:x({}),initialConfig:{},state:Cc}}},jx=function(e,t){t.ignore||(wd(e.element),t.onFocus(e))},Hx=function(e,t){t.ignore||Dd(e.element)},Vx=function(e){return Cd(e.element)},qx=Object.freeze({__proto__:null,focus:jx,blur:Hx,isFocused:Vx}),$x=function(e,t){var n=t.ignore?{}:{attributes:{tabindex:"-1"}};return Uc(n)},Gx=function(e){return As([Fs(Za(),(function(t,n){jx(t,e),n.stop()}))].concat(e.stopMousedown?[Fs(Pa(),(function(e,t){t.event.prevent()}))]:[]))},Xx=Object.freeze({__proto__:null,exhibit:$x,events:Gx}),Yx=[sl("onFocus"),Xo("stopMousedown",!1),Xo("ignore",!1)],Kx=pd({fields:Yx,name:"focusing",active:Xx,apis:qx}),Zx=function(e){var t=function(){var t=ia(e),n=function(){return t.get()},r=function(e){return t.set(e)},i=function(){return t.set(e)},o=function(){return t.get()};return{get:n,set:r,clear:i,readState:o}};return{init:t}},Jx=function(e,t,n){var r=t.aria;r.update(e,r,n.get())},Qx=function(e,t,n){t.toggleClass.each((function(t){n.get()?ou(e.element,t):su(e.element,t)}))},e_=function(e,t,n){r_(e,t,n,!n.get())},t_=function(e,t,n){n.set(!0),Qx(e,t,n),Jx(e,t,n)},n_=function(e,t,n){n.set(!1),Qx(e,t,n),Jx(e,t,n)},r_=function(e,t,n,r){var i=r?t_:n_;i(e,t,n)},i_=function(e,t,n){return n.get()},o_=function(e,t,n){r_(e,t,n,t.selected)},a_=Object.freeze({__proto__:null,onLoad:o_,toggle:e_,isOn:i_,on:t_,off:n_,set:r_}),s_=function(){return Uc({})},c_=function(e,t){var n=od(e,t,e_),r=ad(e,t,o_);return As(ne([e.toggleOnExecute?[n]:[],[r]]))},u_=Object.freeze({__proto__:null,exhibit:s_,events:c_}),l_=function(e,t,n){zn(e.element,"aria-pressed",n),t.syncWithExpanded&&h_(e,t,n)},d_=function(e,t,n){zn(e.element,"aria-selected",n)},f_=function(e,t,n){zn(e.element,"aria-checked",n)},h_=function(e,t,n){zn(e.element,"aria-expanded",n)},p_=[Xo("selected",!1),zo("toggleClass"),Xo("toggleOnExecute",!0),Yo("aria",{mode:"none"},Co("mode",{pressed:[Xo("syncWithExpanded",!1),dl("update",l_)],checked:[dl("update",f_)],expanded:[dl("update",h_)],selected:[dl("update",d_)],none:[dl("update",m)]}))],g_=pd({fields:p_,name:"toggling",active:u_,apis:a_,state:Zx(!1)}),m_=function(){var e=function(e,t){t.stop(),Cs(e)};return[Fs(Va(),e),Fs(rs(),e),Ls(Ea()),Ls(Pa())]},v_=function(e){var t=function(e){return qs((function(t,n){e(t),n.stop()}))};return As(ne([e.map(t).toArray(),m_()]))},b_="alloy.item-hover",y_="alloy.item-focus",x_=function(e){(Td(e.element).isNone()||Kx.isFocused(e))&&(Kx.isFocused(e)||Kx.focus(e),Ds(e,b_,{item:e}))},__=function(e){Ds(e,y_,{item:e})},w_=x(b_),D_=x(y_),C_=function(e){return{dom:e.dom,domModification:E(E({},e.domModification),{attributes:E(E(E({role:e.toggling.isSome()?"menuitemcheckbox":"menuitem"},e.domModification.attributes),{"aria-haspopup":e.hasSubmenu}),e.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:im.augment(e.itemBehaviours,[e.toggling.fold(g_.revoke,(function(e){return g_.config(E({aria:{mode:"checked"}},e))})),Kx.config({ignore:e.ignoreFocus,stopMousedown:e.ignoreFocus,onFocus:function(e){__(e)}}),Ex.config({mode:"execution"}),em.config({store:{mode:"memory",initialValue:e.data}}),Wx("item-type-events",O(O([],m_(),!0),[Fs(Ia(),x_),Fs(ns(),Kx.focus)],!1))]),components:e.components,eventOrder:e.eventOrder}},k_=[Eo("data"),Eo("components"),Eo("dom"),Xo("hasSubmenu",!1),zo("toggling"),im.field("itemBehaviours",[g_,Kx,Ex,em]),Xo("ignoreFocus",!1),Xo("domModification",{}),dl("builder",C_),Xo("eventOrder",{})],T_=function(e){return{dom:e.dom,components:e.components,events:As([zs(ns())])}},S_=[Eo("dom"),Eo("components"),dl("builder",T_)],A_=x("item-widget"),E_=x([Pm({name:"widget",overrides:function(e){return{behaviours:fd([em.config({store:{mode:"manual",getValue:function(t){return e.data},setValue:m}})])}}})]),U_=function(e){var t=$m(A_(),e,E_()),n=Gm(A_(),e,t.internals()),r=function(t){return Xm(t,e,"widget").map((function(e){return Ex.focusIn(e),e}))},i=function(t,n){return pv(n.event.target)?M.none():function(){return e.autofocus?(n.setSource(t.element),M.none()):M.none()}()};return{dom:e.dom,components:n,domModification:e.domModification,events:As([qs((function(e,t){r(e).each((function(e){t.stop()}))})),Fs(Ia(),x_),Fs(ns(),(function(t,n){e.autofocus?r(t):Kx.focus(t)}))]),behaviours:im.augment(e.widgetBehaviours,[em.config({store:{mode:"memory",initialValue:e.data}}),Kx.config({ignore:e.ignoreFocus,onFocus:function(e){__(e)}}),Ex.config({mode:"special",focusIn:e.autofocus?function(e){r(e)}:vd(),onLeft:i,onRight:i,onEscape:function(t,n){return Kx.isFocused(t)||e.autofocus?e.autofocus?(n.setSource(t.element),M.none()):M.none():(Kx.focus(t),M.some(!0))}})])}},O_=[Eo("uid"),Eo("data"),Eo("components"),Eo("dom"),Xo("autofocus",!1),Xo("ignoreFocus",!1),im.field("widgetBehaviours",[em,Kx,Ex]),Xo("domModification",{}),tv(E_()),dl("builder",U_)],F_=Co("type",{widget:O_,item:k_,separator:S_}),P_=function(e,t){return{mode:"flatgrid",selector:"."+e.markers.item,initSize:{numColumns:t.initSize.numColumns,numRows:t.initSize.numRows},focusManager:e.focusManager}},R_=function(e,t){return{mode:"matrix",selectors:{row:t.rowSelector,cell:"."+e.markers.item},focusManager:e.focusManager}},N_=function(e,t){return{mode:"menu",selector:"."+e.markers.item,moveOnTab:t.moveOnTab,focusManager:e.focusManager}},M_=x([Mm({factory:{sketch:function(e){var t=wo("menu.spec item",F_,e);return t.builder(t)}},name:"items",unit:"item",defaults:function(e,t){return Se(t,"uid")?t:E(E({},t),{uid:fc("item")})},overrides:function(e,t){return{type:t.type,ignoreFocus:e.fakeFocus,domModification:{classes:[e.markers.item]}}}})]),I_=x([Eo("value"),Eo("items"),Eo("dom"),Eo("components"),Xo("eventOrder",{}),tm("menuBehaviours",[rb,em,bv,Ex]),Yo("movement",{mode:"menu",moveOnTab:!0},Co("mode",{grid:[hl(),dl("config",P_)],matrix:[dl("config",R_),Eo("rowSelector")],menu:[Xo("moveOnTab",!0),dl("config",N_)]})),rl(),Xo("fakeFocus",!1),Xo("focusManager",kb()),sl("onHighlight")]),B_=x("alloy.menu-focus"),L_=function(e,t,n,r){return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:rm(e.menuBehaviours,[rb.config({highlightClass:e.markers.selectedItem,itemClass:e.markers.item,onHighlight:e.onHighlight}),em.config({store:{mode:"memory",initialValue:e.value}}),bv.config({find:M.some}),Ex.config(e.movement.config(e,e.movement))]),events:As([Fs(D_(),(function(e,t){var n=t.event;e.getSystem().getByDom(n.target).each((function(n){rb.highlight(e,n),t.stop(),Ds(e,B_(),{menu:e,item:n})}))})),Fs(w_(),(function(e,t){var n=t.event.item;rb.highlight(e,n)}))]),components:t,eventOrder:e.eventOrder,domModification:{attributes:{role:"menu"}}}},z_=hv({name:"Menu",configFields:I_(),partFields:M_(),factory:L_}),W_=function(e){return ye(e,(function(e,t){return{k:e,v:t}}))},j_=function(e,t,n,r){return Te(n,r).bind((function(r){return Te(e,r).bind((function(r){var i=j_(e,t,n,r);return M.some([r].concat(i))}))})).getOr([])},H_=function(e,t){var n={};ve(e,(function(e,t){G(e,(function(e){n[e]=t}))}));var r=t,i=W_(t),o=be(i,(function(e,t){return[t].concat(j_(n,r,i,t))}));return be(n,(function(e){return Te(o,e).getOr([e])}))},V_=function(){var e=ia({}),t=ia({}),n=ia({}),r=rf(),i=ia({}),o=function(){e.set({}),t.set({}),n.set({}),r.clear()},a=function(){return r.get().isNone()},s=function(e,n){var r;t.set(E(E({},t.get()),(r={},r[e]={type:"prepared",menu:n},r)))},c=function(o,a,s,c){r.set(o),e.set(s),t.set(a),i.set(c);var u=H_(c,s);n.set(u)},u=function(t){return Ce(e.get(),(function(e,n){return e===t}))},l=function(e,t,n){return g(e).bind((function(r){return u(e).bind((function(e){return t(e).map((function(e){return{triggeredMenu:r,triggeringItem:e,triggeringPath:n}}))}))}))},d=function(e,t){var i=K(v(e).toArray(),(function(e){return g(e).isSome()}));return Te(n.get(),e).bind((function(e){var n=oe(i.concat(e)),o=re(n,(function(e,i){return l(e,t,n.slice(0,i+1)).fold((function(){return Ee(r.get(),e)?[]:[M.none()]}),(function(e){return[M.some(e)]}))}));return Fe(o)}))},f=function(t){return Te(e.get(),t).map((function(e){var r=Te(n.get(),t).getOr([]);return[e].concat(r)}))},h=function(e){return Te(n.get(),e).bind((function(e){return e.length>1?M.some(e.slice(1)):M.none()}))},p=function(e){return Te(n.get(),e)},g=function(e){return m(e).bind(q_)},m=function(e){return Te(t.get(),e)},v=function(t){return Te(e.get(),t)},b=function(e){var t=i.get();return ae(ge(t),e)},y=function(){return r.get().bind(g)},x=function(){return t.get()};return{setMenuBuilt:s,setContents:c,expand:f,refresh:p,collapse:h,lookupMenu:m,lookupItem:v,otherMenus:b,getPrimary:y,getMenus:x,clear:o,isClear:a,getTriggeringPath:d}},q_=function(e){return"prepared"===e.type?M.some(e.menu):M.none()},$_={init:V_,extractPreparedMenu:q_},G_=function(e,t){var n,r=rf(),i=function(t,n,r){return be(r,(function(r,i){var o=function(){return z_.sketch(E(E({},r),{value:i,markers:e.markers,fakeFocus:e.fakeFocus,onHighlight:e.onHighlight,focusManager:e.fakeFocus?Tb():kb()}))};return i===n?{type:"prepared",menu:t.getSystem().build(o())}:{type:"notbuilt",nbMenu:o}}))},o=$_.init(),a=function(t){var n=i(t,e.data.primary,e.data.menus),r=u();return o.setContents(e.data.primary,n,e.data.expansions,r),o.getPrimary()},s=function(e){return em.getValue(e).value},c=function(e,t,n){return pe(t,(function(e){if(!e.getSystem().isConnected())return M.none();var t=rb.getCandidates(e);return ee(t,(function(e){return s(e)===n}))}))},u=function(t){return be(e.data.menus,(function(e,t){return re(e.items,(function(e){return"separator"===e.type?[]:[e.data.value]}))}))},l=function(e,t){rb.highlight(e,t),rb.getHighlighted(t).orThunk((function(){return rb.getFirst(t)})).each((function(t){ks(e,t.element,ns())}))},d=function(e,t){return Oe($(t,(function(t){return e.lookupMenu(t).bind((function(e){return"prepared"===e.type?M.some(e.menu):M.none()}))})))},f=function(t,n,r){var i=d(n,n.otherMenus(r));G(i,(function(n){lu(n.element,[e.markers.backgroundMenu]),e.stayInDom||Lx.remove(t,n)}))},h=function(t){return r.get().getOrThunk((function(){var n={},i=Yh(t.element,"."+e.markers.item),o=K(i,(function(e){return"true"===jn(e,"aria-haspopup")}));return G(o,(function(e){t.getSystem().getByDom(e).each((function(e){var t=s(e);n[t]=e}))})),r.set(n),n}))},p=function(e,t){var n=h(e);ve(n,(function(e,n){var r=j(t,n);zn(e.element,"aria-expanded",r)}))},g=function(t,n,r){return M.from(r[0]).bind((function(i){return n.lookupMenu(i).bind((function(i){if("notbuilt"===i.type)return M.none();var o=i.menu,a=d(n,r.slice(1));return G(a,(function(t){ou(t.element,e.markers.backgroundMenu)})),Mn(o.element)||Lx.append(t,Au(o)),lu(o.element,[e.markers.backgroundMenu]),l(t,o),f(t,n,r),M.some(o)}))}))};(function(e){e[e["HighlightSubmenu"]=0]="HighlightSubmenu",e[e["HighlightParent"]=1]="HighlightParent"})(n||(n={}));var v=function(e,t,n){if("notbuilt"===n.type){var r=e.getSystem().build(n.nbMenu());return o.setMenuBuilt(t,r),r}return n.menu},b=function(t,r,i){if(void 0===i&&(i=n.HighlightSubmenu),r.hasConfigured(Iv)&&Iv.isDisabled(r))return M.some(r);var a=s(r);return o.expand(a).bind((function(a){return p(t,a),M.from(a[0]).bind((function(s){return o.lookupMenu(s).bind((function(c){var u=v(t,s,c);return Mn(u.element)||Lx.append(t,Au(u)),e.onOpenSubmenu(t,r,u,oe(a)),i===n.HighlightSubmenu?(rb.highlightFirst(u),g(t,o,a)):(rb.dehighlightAll(u),M.some(r))}))}))}))},y=function(t,n){var r=s(n);return o.collapse(r).bind((function(r){return p(t,r),g(t,o,r).map((function(r){return e.onCollapseMenu(t,n,r),r}))}))},x=function(e,t){var n=s(t);return o.refresh(n).bind((function(t){return p(e,t),g(e,o,t)}))},_=function(e,t){return pv(t.element)?M.none():b(e,t,n.HighlightSubmenu)},w=function(e,t){return pv(t.element)?M.none():y(e,t)},D=function(t,n){return y(t,n).orThunk((function(){return e.onEscape(t,n).map((function(){return t}))}))},C=function(t){return function(n,r){return Lu(r.getSource(),"."+e.markers.item).bind((function(e){return n.getSystem().getByDom(e).toOptional().bind((function(e){return t(n,e).map(S)}))}))}},k=As([Fs(B_(),(function(e,t){var n=t.event.item;o.lookupItem(s(n)).each((function(){var n=t.event.menu;rb.highlight(e,n);var r=s(t.event.item);o.refresh(r).each((function(t){return f(e,o,t)}))}))})),qs((function(t,r){var i=r.event.target;t.getSystem().getByDom(i).each((function(r){var i=s(r);0===i.indexOf("collapse-item")&&y(t,r),b(t,r,n.HighlightSubmenu).fold((function(){e.onExecute(t,r)}),m)}))})),js((function(t,n){a(t).each((function(n){Lx.append(t,Au(n)),e.onOpenMenu(t,n),e.highlightImmediately&&l(t,n)}))}))].concat(e.navigateOnHover?[Fs(w_(),(function(t,r){var i=r.event.item;x(t,i),b(t,i,n.HighlightParent),e.onHover(t,i)}))]:[])),T=function(e){return rb.getHighlighted(e).bind(rb.getHighlighted)},A=function(e){T(e).each((function(t){y(e,t)}))},U=function(e){o.getPrimary().each((function(t){l(e,t)}))},O=function(e){return M.from(e.components()[0]).filter((function(e){return"menu"===jn(e.element,"role")}))},F=function(t){var n=o.getPrimary().bind((function(e){return T(t).bind((function(e){var n=s(e),r=ke(o.getMenus()),i=Oe($(r,$_.extractPreparedMenu));return o.getTriggeringPath(n,(function(e){return c(t,i,e)}))})).map((function(t){return{primary:e,triggeringPath:t}}))}));n.fold((function(){O(t).each((function(n){e.onRepositionMenu(t,n,[])}))}),(function(n){var r=n.primary,i=n.triggeringPath;e.onRepositionMenu(t,r,i)}))},P={collapseMenu:A,highlightPrimary:U,repositionMenus:F};return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:rm(e.tmenuBehaviours,[Ex.config({mode:"special",onRight:C(_),onLeft:C(w),onEscape:C(D),focusIn:function(e,t){o.getPrimary().each((function(t){ks(e,t.element,ns())}))}}),rb.config({highlightClass:e.markers.selectedMenu,itemClass:e.markers.menu}),bv.config({find:function(e){return rb.getHighlighted(e)}}),Lx.config({})]),eventOrder:e.eventOrder,apis:P,events:k}},X_=x("collapse-item"),Y_=function(e,t,n){return{primary:e,menus:t,expansions:n}},K_=function(e,t){return{primary:e,menus:ha(e,t),expansions:{}}},Z_=function(e){return{value:ic(X_()),meta:{text:e}}},J_=fv({name:"TieredMenu",configFields:[ll("onExecute"),ll("onEscape"),ul("onOpenMenu"),ul("onOpenSubmenu"),sl("onRepositionMenu"),sl("onCollapseMenu"),Xo("highlightImmediately",!0),Io("data",[Eo("primary"),Eo("menus"),Eo("expansions")]),Xo("fakeFocus",!1),sl("onHighlight"),sl("onHover"),il(),Eo("dom"),Xo("navigateOnHover",!0),Xo("stayInDom",!1),tm("tmenuBehaviours",[Ex,rb,bv,Lx]),Xo("eventOrder",{})],apis:{collapseMenu:function(e,t){e.collapseMenu(t)},highlightPrimary:function(e,t){e.highlightPrimary(t)},repositionMenus:function(e,t){e.repositionMenus(t)}},factory:G_,extraApis:{tieredData:Y_,singleData:K_,collapseItem:Z_}}),Q_=function(e,t,n,r,i){var o=function(){return e.lazySink(t)},a="horizontal"===r.type?{layouts:{onLtr:function(){return Ql()},onRtl:function(){return ed()}}}:{},s=function(e){return 2===e.length},c=function(e){return s(e)?a:{}};return J_.sketch({dom:{tag:"div"},data:r.data,markers:r.menu.markers,highlightImmediately:r.menu.highlightImmediately,onEscape:function(){return bg.close(t),e.onEscape.map((function(e){return e(t)})),M.some(!0)},onExecute:function(){return M.some(!0)},onOpenMenu:function(e,t){Bp.positionWithinBounds(o().getOrDie(),t,n,i())},onOpenSubmenu:function(e,t,n,r){var i=o().getOrDie();Bp.position(i,n,{anchor:E({type:"submenu",item:t},c(r))})},onRepositionMenu:function(e,t,r){var a=o().getOrDie();Bp.positionWithinBounds(a,t,n,i()),G(r,(function(e){var t=c(e.triggeringPath);Bp.position(a,e.triggeredMenu,{anchor:E({type:"submenu",item:e.triggeringItem},t)})}))}})},ew=function(e,t){var n=function(t,n){var r=e.getRelated(t);return r.exists((function(e){return Hu(e,n)}))},r=function(e,t){bg.setContent(e,t)},i=function(e,t,n){o(e,t,n,M.none())},o=function(e,t,n,r){a(e,t,n,(function(){return r.map((function(e){return Zr(e)}))}))},a=function(t,n,r,i){var o=e.lazySink(t).getOrDie();bg.openWhileCloaked(t,n,(function(){return Bp.positionWithinBounds(o,t,r,i())})),em.setValue(t,M.some({mode:"position",config:r,getBounds:i}))},s=function(e,t,n){c(e,t,n,M.none)},c=function(t,n,r,i){var o=Q_(e,t,n,r,i);bg.open(t,o),em.setValue(t,M.some({mode:"menu",menu:o}))},u=function(e){bg.isOpen(e)&&(em.setValue(e,M.none()),bg.close(e))},l=function(e){return bg.getState(e)},d=function(t){bg.isOpen(t)&&em.getValue(t).each((function(n){switch(n.mode){case"menu":bg.getState(t).each(J_.repositionMenus);break;case"position":var r=e.lazySink(t).getOrDie();Bp.positionWithinBounds(r,t,n.config,n.getBounds());break}}))},f={setContent:r,showAt:i,showWithin:o,showWithinBounds:a,showMenuAt:s,showMenuWithinBounds:c,hide:u,getContent:l,reposition:d,isOpen:bg.isOpen};return{uid:e.uid,dom:e.dom,behaviours:rm(e.inlineBehaviours,[bg.config({isPartOf:function(e,t,r){return Hu(t,r)||n(e,r)},getAttachPoint:function(t){return e.lazySink(t).getOrDie()},onOpen:function(t){e.onShow(t)},onClose:function(t){e.onHide(t)}}),em.config({store:{mode:"memory",initialValue:M.none()}}),bd.config({channels:E(E({},Dg(E({isExtraPart:t.isExtraPart},e.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),kg(E(E({},e.fireRepositionEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})),{doReposition:d})))})]),eventOrder:e.eventOrder,apis:f}},tw=fv({name:"InlineView",configFields:[Eo("lazySink"),sl("onShow"),sl("onHide"),Vo("onEscape"),tm("inlineBehaviours",[bg,em,bd]),$o("fireDismissalEventInstead",[Xo("event",ps())]),$o("fireRepositionEventInstead",[Xo("event",gs())]),Xo("getRelated",M.none),Xo("isExtraPart",T),Xo("eventOrder",M.none)],factory:ew,apis:{showAt:function(e,t,n,r){e.showAt(t,n,r)},showWithin:function(e,t,n,r,i){e.showWithin(t,n,r,i)},showWithinBounds:function(e,t,n,r,i){e.showWithinBounds(t,n,r,i)},showMenuAt:function(e,t,n,r){e.showMenuAt(t,n,r)},showMenuWithinBounds:function(e,t,n,r,i){e.showMenuWithinBounds(t,n,r,i)},hide:function(e,t){e.hide(t)},isOpen:function(e,t){return e.isOpen(t)},getContent:function(e,t){return e.getContent(t)},setContent:function(e,t,n){e.setContent(t,n)},reposition:function(e,t){e.reposition(t)}}}),nw="layout-inset",rw=function(e){return e.x},iw=function(e,t){return e.x+e.width/2-t.width/2},ow=function(e,t){return e.x+e.width-t.width},aw=function(e){return e.y},sw=function(e,t){return e.y+e.height-t.height},cw=function(e,t){return e.y+e.height/2-t.height/2},uw=function(e,t,n){return pl(ow(e,t),sw(e,t),n.insetSouthwest(),wl(),"southwest",Ul(e,{right:0,bottom:3}),nw)},lw=function(e,t,n){return pl(rw(e),sw(e,t),n.insetSoutheast(),_l(),"southeast",Ul(e,{left:1,bottom:3}),nw)},dw=function(e,t,n){return pl(ow(e,t),aw(e),n.insetNorthwest(),xl(),"northwest",Ul(e,{right:0,top:2}),nw)},fw=function(e,t,n){return pl(rw(e),aw(e),n.insetNortheast(),yl(),"northeast",Ul(e,{left:1,top:2}),nw)},hw=function(e,t,n){return pl(iw(e,t),aw(e),n.insetNorth(),Dl(),"north",Ul(e,{top:2}),nw)},pw=function(e,t,n){return pl(iw(e,t),sw(e,t),n.insetSouth(),Cl(),"south",Ul(e,{bottom:3}),nw)},gw=function(e,t,n){return pl(ow(e,t),cw(e,t),n.insetEast(),Tl(),"east",Ul(e,{right:0}),nw)},mw=function(e,t,n){return pl(rw(e),cw(e,t),n.insetWest(),kl(),"west",Ul(e,{left:1}),nw)},vw=function(e){switch(e){case"north":return hw;case"northeast":return fw;case"northwest":return dw;case"south":return pw;case"southeast":return lw;case"southwest":return uw;case"east":return gw;case"west":return mw}},bw=function(e,t,n,r,i){var o=qd(r).map(vw).getOr(hw);return o(e,t,n,r,i)},yw=function(e){switch(e){case"north":return pw;case"northeast":return lw;case"northwest":return uw;case"south":return hw;case"southeast":return fw;case"southwest":return dw;case"east":return mw;case"west":return gw}},xw=function(e,t,n,r,i){var o=qd(r).map(yw).getOr(hw);return o(e,t,n,r,i)},_w=tinymce.util.Tools.resolve("tinymce.util.Delay"),ww=function(e){var t=v_(e.action),n=e.dom.tag,r=function(t){return Te(e.dom,"attributes").bind((function(e){return Te(e,t)}))},i=function(){if("button"===n){var e=r("type").getOr("button"),t=r("role").map((function(e){return{role:e}})).getOr({});return E({type:e},t)}var i=r("role").getOr("button");return{role:i}};return{uid:e.uid,dom:e.dom,components:e.components,events:t,behaviours:im.augment(e.buttonBehaviours,[Kx.config({}),Ex.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:i()},eventOrder:e.eventOrder}},Dw=fv({name:"Button",factory:ww,configFields:[Xo("uid",void 0),Eo("dom"),Xo("components",[]),im.field("buttonBehaviours",[Kx,Ex]),zo("action"),zo("role"),Xo("eventOrder",{})]}),Cw=function(e){var t=void 0!==e.dom.attributes?e.dom.attributes:[];return J(t,(function(e,t){var n;return"class"===t.name?e:E(E({},e),(n={},n[t.name]=t.value,n))}),{})},kw=function(e){return Array.prototype.slice.call(e.dom.classList,0)},Tw=function(e){var t=tt.fromHtml(e),n=_n(t),r=Cw(t),i=kw(t),o=0===n.length?{}:{innerHtml:Gs(t)};return E({tag:st(t),classes:i,attributes:r},o)},Sw=function(e){var t=uv(e)&&Ae(e,"uid")?e.uid:fc("memento"),n=function(e){return e.getSystem().getByUid(t).getOrDie()},r=function(e){return e.getSystem().getByUid(t).toOptional()},i=function(){return E(E({},e),{uid:t})};return{get:n,getOpt:r,asSpec:i}};function Aw(e){return Aw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Aw(e)}function Ew(e,t){return Ew=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ew(e,t)}function Uw(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Ow(e,t,n){return Ow=Uw()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),o=new i;return n&&Ew(o,n.prototype),o},Ow.apply(null,arguments)}function Fw(e){return Pw(e)||Rw(e)||Nw(e)||Iw()}function Pw(e){if(Array.isArray(e))return Mw(e)}function Rw(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Nw(e,t){if(e){if("string"===typeof e)return Mw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mw(e,t):void 0}}function Mw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Iw(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Bw=Object.hasOwnProperty,Lw=Object.setPrototypeOf,zw=Object.isFrozen,Ww=Object.getPrototypeOf,jw=Object.getOwnPropertyDescriptor,Hw=Object.freeze,Vw=Object.seal,qw=Object.create,$w="undefined"!==typeof Reflect&&Reflect,Gw=$w.apply,Xw=$w.construct;Gw||(Gw=function(e,t,n){return e.apply(t,n)}),Hw||(Hw=function(e){return e}),Vw||(Vw=function(e){return e}),Xw||(Xw=function(e,t){return Ow(e,Fw(t))});var Yw=oD(Array.prototype.forEach),Kw=oD(Array.prototype.pop),Zw=oD(Array.prototype.push),Jw=oD(String.prototype.toLowerCase),Qw=oD(String.prototype.match),eD=oD(String.prototype.replace),tD=oD(String.prototype.indexOf),nD=oD(String.prototype.trim),rD=oD(RegExp.prototype.test),iD=aD(TypeError);function oD(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Gw(e,t,r)}}function aD(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Xw(e,n)}}function sD(e,t){Lw&&Lw(e,null);var n=t.length;while(n--){var r=t[n];if("string"===typeof r){var i=Jw(r);i!==r&&(zw(t)||(t[n]=i),r=i)}e[r]=!0}return e}function cD(e){var t,n=qw(null);for(t in e)Gw(Bw,e,[t])&&(n[t]=e[t]);return n}function uD(e,t){while(null!==e){var n=jw(e,t);if(n){if(n.get)return oD(n.get);if("function"===typeof n.value)return oD(n.value)}e=Ww(e)}function r(e){return console.warn("fallback value for",e),null}return r}var lD=Hw(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),dD=Hw(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fD=Hw(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),hD=Hw(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),pD=Hw(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),gD=Hw(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mD=Hw(["#text"]),vD=Hw(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),bD=Hw(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),yD=Hw(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xD=Hw(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_D=Vw(/\{\{[\w\W]*|[\w\W]*\}\}/gm),wD=Vw(/<%[\w\W]*|[\w\W]*%>/gm),DD=Vw(/^data-[\-\w.\u00B7-\uFFFF]/),CD=Vw(/^aria-[\-\w]+$/),kD=Vw(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),TD=Vw(/^(?:\w+script|data):/i),SD=Vw(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),AD=Vw(/^html$/i),ED=function(){return"undefined"===typeof window?null:window},UD=function(e,t){if("object"!==Aw(e)||"function"!==typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(o){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function OD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ED(),t=function(e){return OD(e)};if(t.version="2.3.8",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,i=e.DocumentFragment,o=e.HTMLTemplateElement,a=e.Node,s=e.Element,c=e.NodeFilter,u=e.NamedNodeMap,l=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,d=e.HTMLFormElement,f=e.DOMParser,h=e.trustedTypes,p=s.prototype,g=uD(p,"cloneNode"),m=uD(p,"nextSibling"),v=uD(p,"childNodes"),b=uD(p,"parentNode");if("function"===typeof o){var y=r.createElement("template");y.content&&y.content.ownerDocument&&(r=y.content.ownerDocument)}var x=UD(h,n),_=x?x.createHTML(""):"",w=r,D=w.implementation,C=w.createNodeIterator,k=w.createDocumentFragment,T=w.getElementsByTagName,S=n.importNode,A={};try{A=cD(r).documentMode?r.documentMode:{}}catch(We){}var E={};t.isSupported="function"===typeof b&&D&&"undefined"!==typeof D.createHTMLDocument&&9!==A;var U,O,F=_D,P=wD,R=DD,N=CD,M=TD,I=SD,B=kD,L=null,z=sD({},[].concat(Fw(lD),Fw(dD),Fw(fD),Fw(pD),Fw(mD))),W=null,j=sD({},[].concat(Fw(vD),Fw(bD),Fw(yD),Fw(xD))),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,q=null,$=!0,G=!0,X=!1,Y=!1,K=!1,Z=!1,J=!1,Q=!1,ee=!1,te=!1,ne=!0,re=!0,ie=!1,oe={},ae=null,se=sD({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ce=null,ue=sD({},["audio","video","img","source","image","track"]),le=null,de=sD({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",ge=pe,me=!1,ve=["application/xhtml+xml","text/html"],be="text/html",ye=null,xe=r.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},we=function(e){ye&&ye===e||(e&&"object"===Aw(e)||(e={}),e=cD(e),L="ALLOWED_TAGS"in e?sD({},e.ALLOWED_TAGS):z,W="ALLOWED_ATTR"in e?sD({},e.ALLOWED_ATTR):j,le="ADD_URI_SAFE_ATTR"in e?sD(cD(de),e.ADD_URI_SAFE_ATTR):de,ce="ADD_DATA_URI_TAGS"in e?sD(cD(ue),e.ADD_DATA_URI_TAGS):ue,ae="FORBID_CONTENTS"in e?sD({},e.FORBID_CONTENTS):se,V="FORBID_TAGS"in e?sD({},e.FORBID_TAGS):{},q="FORBID_ATTR"in e?sD({},e.FORBID_ATTR):{},oe="USE_PROFILES"in e&&e.USE_PROFILES,$=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,X=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,K=e.WHOLE_DOCUMENT||!1,Q=e.RETURN_DOM||!1,ee=e.RETURN_DOM_FRAGMENT||!1,te=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,re=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,ge=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),U=U=-1===ve.indexOf(e.PARSER_MEDIA_TYPE)?be:e.PARSER_MEDIA_TYPE,O="application/xhtml+xml"===U?function(e){return e}:Jw,Y&&(G=!1),ee&&(Q=!0),oe&&(L=sD({},Fw(mD)),W=[],!0===oe.html&&(sD(L,lD),sD(W,vD)),!0===oe.svg&&(sD(L,dD),sD(W,bD),sD(W,xD)),!0===oe.svgFilters&&(sD(L,fD),sD(W,bD),sD(W,xD)),!0===oe.mathMl&&(sD(L,pD),sD(W,yD),sD(W,xD))),e.ADD_TAGS&&(L===z&&(L=cD(L)),sD(L,e.ADD_TAGS)),e.ADD_ATTR&&(W===j&&(W=cD(W)),sD(W,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&sD(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ae===se&&(ae=cD(ae)),sD(ae,e.FORBID_CONTENTS)),re&&(L["#text"]=!0),K&&sD(L,["html","head","body"]),L.table&&(sD(L,["tbody"]),delete V.tbody),Hw&&Hw(e),ye=e)},De=sD({},["mi","mo","mn","ms","mtext"]),Ce=sD({},["foreignobject","desc","title","annotation-xml"]),ke=sD({},["title","style","font","a","script"]),Te=sD({},dD);sD(Te,fD),sD(Te,hD);var Se=sD({},pD);sD(Se,gD);var Ae=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=Jw(e.tagName),r=Jw(t.tagName);return e.namespaceURI===he?t.namespaceURI===pe?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===r||De[r]):Boolean(Te[n]):e.namespaceURI===fe?t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&Ce[r]:Boolean(Se[n]):e.namespaceURI===pe&&(!(t.namespaceURI===he&&!Ce[r])&&(!(t.namespaceURI===fe&&!De[r])&&(!Se[n]&&(ke[n]||!Te[n]))))},Ee=function(e){Zw(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(We){try{e.outerHTML=_}catch(We){e.remove()}}},Ue=function(e,n){try{Zw(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(We){Zw(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!W[e])if(Q||ee)try{Ee(n)}catch(We){}else try{n.setAttribute(e,"")}catch(We){}},Oe=function(e){var t,n;if(J)e="<remove></remove>"+e;else{var i=Qw(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===U&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=x?x.createHTML(e):e;if(ge===pe)try{t=(new f).parseFromString(o,U)}catch(We){}if(!t||!t.documentElement){t=D.createDocument(ge,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(We){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),ge===pe?T.call(t,K?"html":"body")[0]:K?t.documentElement:a},Fe=function(e){return C.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Pe=function(e){return e instanceof d&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof l)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore)},Re=function(e){return"object"===Aw(a)?e instanceof a:e&&"object"===Aw(e)&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Ne=function(e,n,r){E[e]&&Yw(E[e],(function(e){e.call(t,n,r,ye)}))},Me=function(e){var n;if(Ne("beforeSanitizeElements",e,null),Pe(e))return Ee(e),!0;if(rD(/[\u0080-\uFFFF]/,e.nodeName))return Ee(e),!0;var r=O(e.nodeName);if(Ne("uponSanitizeElement",e,{tagName:r,allowedTags:L}),e.hasChildNodes()&&!Re(e.firstElementChild)&&(!Re(e.content)||!Re(e.content.firstElementChild))&&rD(/<[/\w]/g,e.innerHTML)&&rD(/<[/\w]/g,e.textContent))return Ee(e),!0;if("select"===r&&rD(/<template/i,e.innerHTML))return Ee(e),!0;if(!L[r]||V[r]){if(!V[r]&&Be(r)){if(H.tagNameCheck instanceof RegExp&&rD(H.tagNameCheck,r))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(r))return!1}if(re&&!ae[r]){var i=b(e)||e.parentNode,o=v(e)||e.childNodes;if(o&&i)for(var a=o.length,c=a-1;c>=0;--c)i.insertBefore(g(o[c],!0),m(e))}return Ee(e),!0}return e instanceof s&&!Ae(e)?(Ee(e),!0):"noscript"!==r&&"noembed"!==r||!rD(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(n=e.textContent,n=eD(n,F," "),n=eD(n,P," "),e.textContent!==n&&(Zw(t.removed,{element:e.cloneNode()}),e.textContent=n)),Ne("afterSanitizeElements",e,null),!1):(Ee(e),!0)},Ie=function(e,t,n){if(ne&&("id"===t||"name"===t)&&(n in r||n in xe))return!1;if(G&&!q[t]&&rD(R,t));else if($&&rD(N,t));else if(!W[t]||q[t]){if(!(Be(e)&&(H.tagNameCheck instanceof RegExp&&rD(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&rD(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&rD(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(le[t]);else if(rD(B,eD(n,I,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==tD(n,"data:")||!ce[e]){if(X&&!rD(M,eD(n,I,"")));else if(n)return!1}else;return!0},Be=function(e){return e.indexOf("-")>0},Le=function(e){var n,r,i,o;Ne("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W};o=a.length;while(o--){n=a[o];var c=n,u=c.name,l=c.namespaceURI;if(r="value"===u?n.value:nD(n.value),i=O(u),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,Ne("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(Ue(u,e),s.keepAttr))if(rD(/\/>/i,r))Ue(u,e);else{Y&&(r=eD(r,F," "),r=eD(r,P," "));var d=O(e.nodeName);if(Ie(d,i,r))try{l?e.setAttributeNS(l,u,r):e.setAttribute(u,r),Kw(t.removed)}catch(We){}}}Ne("afterSanitizeAttributes",e,null)}},ze=function e(t){var n,r=Fe(t);Ne("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())Ne("uponSanitizeShadowNode",n,null),Me(n)||(n.content instanceof i&&e(n.content),Le(n));Ne("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,o){var s,c,u,l,d;if(me=!r,me&&(r="\x3c!--\x3e"),"string"!==typeof r&&!Re(r)){if("function"!==typeof r.toString)throw iD("toString is not a function");if(r=r.toString(),"string"!==typeof r)throw iD("dirty is not a string, aborting")}if(!t.isSupported){if("object"===Aw(e.toStaticHTML)||"function"===typeof e.toStaticHTML){if("string"===typeof r)return e.toStaticHTML(r);if(Re(r))return e.toStaticHTML(r.outerHTML)}return r}if(Z||we(o),t.removed=[],"string"===typeof r&&(ie=!1),ie){if(r.nodeName){var f=O(r.nodeName);if(!L[f]||V[f])throw iD("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof a)s=Oe("\x3c!----\x3e"),c=s.ownerDocument.importNode(r,!0),1===c.nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Q&&!Y&&!K&&-1===r.indexOf("<"))return x&&te?x.createHTML(r):r;if(s=Oe(r),!s)return Q?null:te?_:""}s&&J&&Ee(s.firstChild);var h=Fe(ie?r:s);while(u=h.nextNode())3===u.nodeType&&u===l||Me(u)||(u.content instanceof i&&ze(u.content),Le(u),l=u);if(l=null,ie)return r;if(Q){if(ee){d=k.call(s.ownerDocument);while(s.firstChild)d.appendChild(s.firstChild)}else d=s;return W.shadowroot&&(d=S.call(n,d,!0)),d}var p=K?s.outerHTML:s.innerHTML;return K&&L["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&rD(AD,s.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+p),Y&&(p=eD(p,F," "),p=eD(p,P," ")),x&&te?x.createHTML(p):p},t.setConfig=function(e){we(e),Z=!0},t.clearConfig=function(){ye=null,Z=!1},t.isValidAttribute=function(e,t,n){ye||we({});var r=O(e),i=O(t);return Ie(r,i,n)},t.addHook=function(e,t){"function"===typeof t&&(E[e]=E[e]||[],Zw(E[e],t))},t.removeHook=function(e){if(E[e])return Kw(E[e])},t.removeHooks=function(e){E[e]&&(E[e]=[])},t.removeAllHooks=function(){E={}},t}var FD=OD(),PD=function(e){return FD().sanitize(e)},RD=tinymce.util.Tools.resolve("tinymce.util.I18n"),ND={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},MD="temporary-placeholder",ID=function(e){return function(){return Te(e,MD).getOr("!not found!")}},BD=function(e,t){var n=e.toLowerCase();if(RD.isRtl()){var r=We(n,"-rtl");return Se(t,r)?r:n}return n},LD=function(e,t){return Te(t,BD(e,t))},zD=function(e,t){var n=t();return LD(e,n).getOrThunk(ID(n))},WD=function(e,t,n){var r=t();return LD(e,r).or(n).getOrThunk(ID(r))},jD=function(e){return!!RD.isRtl()&&Se(ND,e)},HD=function(){return Wx("add-focusable",[js((function(e){Iu(e.element,"svg").each((function(e){return zn(e,"focusable","false")}))}))])},VD=function(e,t,n,r){var i,o,a=jD(t)?["tox-icon--flip"]:[],s=Te(n,BD(t,n)).or(r).getOrThunk(ID(n));return{dom:{tag:e.tag,attributes:null!==(i=e.attributes)&&void 0!==i?i:{},classes:e.classes.concat(a),innerHtml:s},behaviours:fd(O(O([],null!==(o=e.behaviours)&&void 0!==o?o:[],!0),[HD()],!1))}},qD=function(e,t,n,r){return void 0===r&&(r=M.none()),VD(t,e,n(),r)},$D=function(e,t,n){var r=n(),i=ee(e,(function(e){return Se(r,BD(e,r))}));return VD(t,i.getOr(MD),r,M.none())},GD={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},XD=function(e){var t=Sw({dom:Tw("<p>"+PD(e.translationProvider(e.text))+"</p>"),behaviours:fd([Lx.config({})])}),n=function(e){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+e+"%"}}}},r=function(e){return{dom:{tag:"div",classes:["tox-text"],innerHtml:e+"%"}}},i=Sw({dom:{tag:"div",classes:e.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(0)]},r(0)],behaviours:fd([Lx.config({})])}),o=function(e,t){e.getSystem().isConnected()&&i.getOpt(e).each((function(e){Lx.set(e,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(t)]},r(t)])}))},a=function(e,n){if(e.getSystem().isConnected()){var r=t.get(e);Lx.set(r,[Du(n)])}},s={updateProgress:o,updateText:a},c=ne([e.icon.toArray(),e.level.toArray(),e.level.bind((function(e){return M.from(GD[e])})).toArray()]),u=Sw(Dw.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[qD("close",{tag:"div",classes:["tox-icon"],attributes:{"aria-label":e.translationProvider("Close")}},e.iconProvider)],action:function(t){e.onAction(t)}})),l=$D(c,{tag:"div",classes:["tox-notification__icon"]},e.iconProvider),d={dom:{tag:"div",classes:["tox-notification__body"]},components:[t.asSpec()],behaviours:fd([Lx.config({})])},f=[l,d];return{uid:e.uid,dom:{tag:"div",attributes:{role:"alert"},classes:e.level.map((function(e){return["tox-notification","tox-notification--in","tox-notification--"+e]})).getOr(["tox-notification","tox-notification--in"])},behaviours:fd([Kx.config({}),Wx("notification-events",[Fs(Ba(),(function(e){u.getOpt(e).each(Kx.focus)}))])]),components:f.concat(e.progress?[i.asSpec()]:[]).concat(e.closeButton?[u.asSpec()]:[]),apis:s}},YD=fv({name:"Notification",factory:XD,configFields:[zo("level"),Eo("progress"),Eo("icon"),Eo("onAction"),Eo("text"),Eo("iconProvider"),Eo("translationProvider"),Qo("closeButton",!0)],apis:{updateProgress:function(e,t,n){e.updateProgress(t,n)},updateText:function(e,t,n){e.updateText(t,n)}}});function KD(e,t,n){var r=t.backstage.shared,i=function(e){switch(e){case"bc-bc":return pw;case"tc-tc":return hw;case"tc-bc":return ql;case"bc-tc":default:return $l}},o=function(e){e.length>0&&G(e,(function(t,n){0===n?t.moveRel(null,"banner"):t.moveRel(e[n-1].getEl(),"bc-tc")}))},a=function(t,o){var a=!t.closeButton&&t.timeout&&(t.timeout>0||t.timeout<0),s=function(){o(),tw.hide(u)},c=Su(YD.sketch({text:t.text,level:j(["success","error","warning","warn","info"],t.type)?t.type:void 0,progress:!0===t.progressBar,icon:M.from(t.icon),closeButton:!a,onAction:s,iconProvider:r.providers.icons,translationProvider:r.providers.translate})),u=Su(tw.sketch(E({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:r.getSink,fireDismissalEventInstead:{}},r.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));n.add(u),t.timeout>0&&_w.setTimeout((function(){s()}),t.timeout);var l=function(){var t=Zr(tt.fromDom(e.getContentAreaContainer())),n=Qr(),r=Al(n.x,t.x,t.right),i=Al(n.y,t.y,t.bottom),o=Math.max(t.right,n.right),a=Math.max(t.bottom,n.bottom);return M.some(Kr(r,i,o-r,a-i))};return{close:s,moveTo:function(e,t){tw.showAt(u,Au(c),{anchor:{type:"makeshift",x:e,y:t}})},moveRel:function(e,t){var n=Au(c),o={maxHeightFunction:Sf()};if("banner"!==t&&f(e)){var a=i(t),s={type:"node",root:In(),node:M.some(tt.fromDom(e)),overrides:o,layouts:{onRtl:function(){return[a]},onLtr:function(){return[a]}}};tw.showWithinBounds(u,n,{anchor:s},l)}else{var d=E(E({},r.anchors.banner()),{overrides:o});tw.showWithinBounds(u,n,{anchor:d},l)}},text:function(e){YD.updateText(c,e)},settings:t,getEl:function(){return c.element.dom},progressBar:{value:function(e){YD.updateProgress(c,e)}}}},s=function(e){e.close()},c=function(e){return e.settings};return{open:a,close:s,reposition:o,getArgs:c}}var ZD,JD=function(e,t){var n=null,r=function(){c(n)||(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];c(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))};return{cancel:r,throttle:i}},QD=function(e,t){var n=null,r=function(){c(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},eC=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),tC=function(e,t){return e.isBlock(t)||j(["BR","IMG","HR","INPUT"],t.nodeName)||"false"===e.getContentEditable(t)},nC=function(e,t,n,r,i){var o=eC(e,(function(t){return tC(e,t)}));return M.from(o.backwards(t,n,r,i))},rC="[data-mce-autocompleter]",iC=function(e,t){return oC(tt.fromDom(e.selection.getNode())).getOrThunk((function(){var n=tt.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',e.getDoc());return Ur(n,tt.fromDom(t.extractContents())),t.insertNode(n.dom),vn(n).each((function(e){return e.dom.normalize()})),Gh(n).map((function(t){e.selection.setCursorLocation(t.dom,Hh(t))})),n}))},oC=function(e){return Lu(e,rC)},aC=function(e){return e.collapsed&&3===e.startContainer.nodeType},sC=function(e){return e.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},cC=function(e){return""!==e&&-1!=="  \f\n\r\t\v".indexOf(e)},uC=function(e,t){return e.substring(t.length)},lC=function(e,t,n){var r;for(r=t-1;r>=0;r--){var i=e.charAt(r);if(cC(i))return M.none();if(i===n)break}return M.some(r)},dC=function(e,t,n,r){if(void 0===r&&(r=0),!aC(t))return M.none();var i=function(e,t,r){return lC(r,t,n).getOr(t)},o=e.getParent(t.startContainer,e.isBlock)||e.getRoot();return nC(e,t.startContainer,t.startOffset,i,o).bind((function(e){var i=t.cloneRange();if(i.setStart(e.container,e.offset),i.setEnd(t.endContainer,t.endOffset),i.collapsed)return M.none();var o=sC(i),a=o.lastIndexOf(n);return 0!==a||uC(o,n).length<r?M.none():M.some({text:uC(o,n),range:i,triggerChar:n})}))},fC=function(e,t,n,r){return void 0===r&&(r=0),oC(tt.fromDom(t.startContainer)).fold((function(){return dC(e,t,n,r)}),(function(t){var r=e.createRng();r.selectNode(t.dom);var i=sC(r);return M.some({range:r,text:uC(i,n),triggerChar:n})}))},hC=function(e,t){t.on("keypress compositionend",e.onKeypress.throttle),t.on("remove",e.onKeypress.cancel);var n=function(e,t){Ds(e,za(),{raw:t})};t.on("keydown",(function(t){var r=function(){return e.getView().bind(rb.getHighlighted)};8===t.which&&e.onKeypress.throttle(t),e.isActive()&&(27===t.which&&e.cancelIfNecessary(),e.isMenuOpen()?13===t.which?(r().each(Cs),t.preventDefault()):40===t.which?(r().fold((function(){e.getView().each(rb.highlightFirst)}),(function(e){n(e,t)})),t.preventDefault(),t.stopImmediatePropagation()):37!==t.which&&38!==t.which&&39!==t.which||r().each((function(e){n(e,t),t.preventDefault(),t.stopImmediatePropagation()})):13!==t.which&&38!==t.which&&40!==t.which||e.cancelIfNecessary())})),t.on("NodeChange",(function(t){e.isActive()&&!e.isProcessingAction()&&oC(tt.fromDom(t.element)).isNone()&&e.cancelIfNecessary()}))},pC={setup:hC},gC=tinymce.util.Tools.resolve("tinymce.util.Promise"),mC=function(e,t){return{container:e,offset:t}},vC=function(e){return e.nodeType===at},bC=function(e){return e.nodeType===ot},yC=function(e){if(vC(e))return mC(e,e.data.length);var t=e.childNodes;return t.length>0?yC(t[t.length-1]):mC(e,t.length)},xC=function(e,t){var n=e.childNodes;return n.length>0&&t<n.length?xC(n[t],0):n.length>0&&bC(e)&&n.length===t?yC(n[n.length-1]):mC(e,t)},_C=function(e,t){return nC(e,t.container,t.offset,(function(e,t){return 0===t?-1:t}),e.getRoot()).filter((function(e){var t=e.container.data.charAt(e.offset-1);return!cC(t)})).isSome()},wC=function(e){return function(t){var n=xC(t.startContainer,t.startOffset);return!_C(e,n)}},DC=function(e,t,n){return pe(n.triggerChars,(function(n){return fC(e,t,n)}))},CC=function(e,t){var n=t(),r=e.selection.getRng();return DC(e.dom,r,n).bind((function(n){return kC(e,t,n)}))},kC=function(e,t,n,r){void 0===r&&(r={});var i=t(),o=e.selection.getRng(),a=o.startContainer.nodeValue,s=K(i.lookupByChar(n.triggerChar),(function(t){return n.text.length>=t.minChars&&t.matches.getOrThunk((function(){return wC(e.dom)}))(n.range,a,n.text)}));if(0===s.length)return M.none();var c=gC.all($(s,(function(e){var t=e.fetch(n.text,e.maxResults,r);return t.then((function(t){return{matchText:n.text,items:t,columns:e.columns,onAction:e.onAction,highlightOn:e.highlightOn}}))})));return M.some({lookupData:c,context:n})},TC=Qi([Fo("type"),Ho("text")]),SC=function(e){return xo("separatormenuitem",TC,e)},AC=Qi([Xo("type","autocompleteitem"),Xo("active",!1),Xo("disabled",!1),Xo("meta",{}),Fo("value"),Ho("text"),Ho("icon")]),EC=Qi([Fo("type"),Fo("ch"),Ko("minChars",1),Xo("columns",1),Ko("maxResults",10),Vo("matches"),No("fetch"),No("onAction"),na("highlightOn",[],co)]),UC=function(e){return xo("Autocompleter.Separator",TC,e)},OC=function(e){return xo("Autocompleter.Item",AC,e)},FC=function(e){return xo("Autocompleter",EC,e)},PC=[Qo("disabled",!1),Ho("tooltip"),Ho("icon"),Ho("text"),ea("onSetup",(function(){return m}))],RC=Qi([Fo("type"),No("onAction")].concat(PC)),NC=function(e){return xo("toolbarbutton",RC,e)},MC=[Qo("active",!1)].concat(PC),IC=Qi(MC.concat([Fo("type"),No("onAction")])),BC=function(e){return xo("ToggleButton",IC,e)},LC=[ea("predicate",T),Jo("scope","node",["node","editor"]),Jo("position","selection",["node","selection","line"])],zC=PC.concat([Xo("type","contextformbutton"),Xo("primary",!1),No("onAction"),So("original",_)]),WC=MC.concat([Xo("type","contextformbutton"),Xo("primary",!1),No("onAction"),So("original",_)]),jC=PC.concat([Xo("type","contextformbutton")]),HC=MC.concat([Xo("type","contextformtogglebutton")]),VC=Co("type",{contextformbutton:zC,contextformtogglebutton:WC}),qC=Qi([Xo("type","contextform"),ea("initValue",x("")),Ho("label"),Lo("commands",VC),Wo("launch",Co("type",{contextformbutton:jC,contextformtogglebutton:HC}))].concat(LC)),$C=function(e){return xo("ContextForm",qC,e)},GC=Qi([Xo("type","contexttoolbar"),Fo("items")].concat(LC)),XC=function(e){return xo("ContextToolbar",GC,e)},YC=function(e){var t={};return G(e,(function(e){t[e]={}})),ge(t)},KC=function(e){var t=e.ui.registry.getAll().popups,n=be(t,(function(e){return FC(e).fold((function(e){throw new Error(Do(e))}),_)})),r=YC(De(n,(function(e){return e.ch}))),i=ke(n),o=function(e){return K(i,(function(t){return t.ch===e}))};return{dataset:n,triggerChars:r,lookupByChar:o}};(function(e){e[e["CLOSE_ON_EXECUTE"]=0]="CLOSE_ON_EXECUTE",e[e["BUBBLE_TO_SANDBOX"]=1]="BUBBLE_TO_SANDBOX"})(ZD||(ZD={}));var ZC,JC=ZD,QC="tox-menu-nav__js",ek="tox-collection__item",tk="tox-swatch",nk={normal:QC,color:tk},rk="tox-collection__item--enabled",ik="tox-collection__group-heading",ok="tox-collection__item-icon",ak="tox-collection__item-label",sk="tox-collection__item-accessory",ck="tox-collection__item-caret",uk="tox-collection__item-checkmark",lk="tox-collection__item--active",dk="tox-collection__item-container",fk="tox-collection__item-container--column",hk="tox-collection__item-container--row",pk="tox-collection__item-container--align-right",gk="tox-collection__item-container--align-left",mk="tox-collection__item-container--valign-top",vk="tox-collection__item-container--valign-middle",bk="tox-collection__item-container--valign-bottom",yk=function(e){return Te(nk,e).getOr(QC)},xk=function(e){return"color"===e?"tox-swatches":"tox-menu"},_k=function(e){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:xk(e),tieredMenu:"tox-tiered-menu"}},wk=function(e){var t=_k(e);return{backgroundMenu:t.backgroundMenu,selectedMenu:t.selectedMenu,menu:t.menu,selectedItem:t.selectedItem,item:yk(e)}},Dk=function(e,t,n){var r=_k(n);return{tag:"div",classes:ne([[r.menu,"tox-menu-"+t+"-column"],e?[r.hasIcons]:[]])}},Ck=[z_.parts.items({})],kk=function(e,t,n){var r=_k(n),i={tag:"div",classes:ne([[r.tieredMenu]])};return{dom:i,markers:wk(n)}},Tk=function(e,t){return function(n){var r=q(n,t);return $(r,(function(t){return{dom:e,components:t}}))}},Sk=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[z_.parts.items({preprocess:"auto"!==e?Tk({tag:"div",classes:["tox-swatches__row"]},e):_})]}]}},Ak=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[z_.parts.items({preprocess:Tk({tag:"div",classes:["tox-collection__group"]},e)})]}},Ek=function(e,t){var n=[],r=[];return G(e,(function(e,i){t(e,i)?(r.length>0&&n.push(r),r=[],Se(e.dom,"innerHtml")&&r.push(e)):r.push(e)})),r.length>0&&n.push(r),$(n,(function(e){return{dom:{tag:"div",classes:["tox-collection__group"]},components:e}}))},Uk=function(e,t,n){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[z_.parts.items({preprocess:function(n){return"auto"!==e&&e>1?Tk({tag:"div",classes:["tox-collection__group"]},e)(n):Ek(n,(function(e,n){return"separator"===t[n].type}))}})]}},Ok=function(e,t){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[z_.parts.items({preprocess:function(t){return Ek(t,(function(t,n){return"separator"===e[n].type}))}})]}},Fk=function(e){return H(e,(function(e){return"icon"in e&&void 0!==e.icon}))},Pk=function(e){return console.error(Do(e)),console.log(e),M.none()},Rk=function(e,t,n,r,i){var o=Ok(n);return{value:e,dom:o.dom,components:o.components,items:n}},Nk=function(e,t,n,r,i){if("color"===i){var o=Sk(r);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i&&"auto"===r){o=Uk(r,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i&&1===r){o=Uk(1,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i){o=Uk(r,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("listpreview"===i&&"auto"!==r){o=Ak(r);return{value:e,dom:o.dom,components:o.components,items:n}}return{value:e,dom:Dk(t,r,i),components:Ck,items:n}},Mk=[Fo("type"),Fo("src"),Ho("alt"),na("classes",[],co)],Ik=Qi(Mk),Bk=[Fo("type"),Fo("text"),Ho("name"),na("classes",["tox-collection__item-label"],co)],Lk=Qi(Bk),zk=Ki((function(){return go("type",{cardimage:Ik,cardtext:Lk,cardcontainer:Wk})})),Wk=Qi([Fo("type"),Zo("direction","horizontal"),Zo("align","left"),Zo("valign","middle"),Lo("items",zk)]),jk=[Qo("disabled",!1),Ho("text"),Ho("shortcut"),To("value","value",Ci((function(){return ic("menuitem-value")})),oo()),Xo("meta",{})],Hk=Qi([Fo("type"),Ho("label"),Lo("items",zk),ea("onSetup",(function(){return m})),ea("onAction",m)].concat(jk)),Vk=function(e){return xo("cardmenuitem",Hk,e)},qk=Qi([Fo("type"),Qo("active",!1),Ho("icon")].concat(jk)),$k=function(e){return xo("choicemenuitem",qk,e)},Gk=[Fo("type"),Fo("fancytype"),ea("onAction",m)],Xk=[Xo("initData",{})].concat(Gk),Yk=[ra("initData",{},[Qo("allowCustomColors",!0),qo("colors",oo())])].concat(Gk),Kk=Co("fancytype",{inserttable:Xk,colorswatch:Yk}),Zk=function(e){return xo("fancymenuitem",Kk,e)},Jk=Qi([Fo("type"),ea("onSetup",(function(){return m})),ea("onAction",m),Ho("icon")].concat(jk)),Qk=function(e){return xo("menuitem",Jk,e)},eT=Qi([Fo("type"),No("getSubmenuItems"),ea("onSetup",(function(){return m})),Ho("icon")].concat(jk)),tT=function(e){return xo("nestedmenuitem",eT,e)},nT=Qi([Fo("type"),Ho("icon"),Qo("active",!1),ea("onSetup",(function(){return m})),No("onAction")].concat(jk)),rT=function(e){return xo("togglemenuitem",nT,e)},iT=function(e,t,n){var r=Yh(e.element,"."+n);if(r.length>0){var i=te(r,(function(e){var n=e.dom.getBoundingClientRect().top,i=r[0].dom.getBoundingClientRect().top;return Math.abs(n-i)>t})).getOr(r.length);return M.some({numColumns:i,numRows:Math.ceil(r.length/i)})}return M.none()},oT=function(e,t){return fd([Wx(e,t)])},aT=function(e){return oT(ic("unnamed-events"),e)},sT={namedEvents:oT,unnamedEvents:aT},cT=ic("tooltip.exclusive"),uT=ic("tooltip.show"),lT=ic("tooltip.hide"),dT=function(e,t,n){e.getSystem().broadcastOn([cT],{})},fT=function(e,t,n,r){n.getTooltip().each((function(e){e.getSystem().isConnected()&&Lx.set(e,r)}))},hT=Object.freeze({__proto__:null,hideAllExclusive:dT,setComponents:fT}),pT=function(e,t){var n=function(n){t.getTooltip().each((function(r){Gp(r),e.onHide(n,r),t.clearTooltip()})),t.clearTimer()},r=function(n){if(!t.isShowing()){dT(n);var r=e.lazySink(n).getOrDie(),i=n.getSystem().build({dom:e.tooltipDom,components:e.tooltipComponents,events:As("normal"===e.mode?[Fs(Ia(),(function(e){ws(n,uT)})),Fs(Na(),(function(e){ws(n,lT)}))]:[]),behaviours:fd([Lx.config({})])});t.setTooltip(i),Vp(r,i),e.onShow(n,i),Bp.position(r,i,{anchor:e.anchor(n)})}};return As(ne([[Fs(uT,(function(n){t.resetTimer((function(){r(n)}),e.delay)})),Fs(lT,(function(r){t.resetTimer((function(){n(r)}),e.delay)})),Fs(es(),(function(e,t){var r=t;r.universal||j(r.channels,cT)&&n(e)})),Hs((function(e){n(e)}))],"normal"===e.mode?[Fs(Ba(),(function(e){ws(e,uT)})),Fs(Ja(),(function(e){ws(e,lT)})),Fs(Ia(),(function(e){ws(e,uT)})),Fs(Na(),(function(e){ws(e,lT)}))]:[Fs(xs(),(function(e,t){ws(e,uT)})),Fs(_s(),(function(e){ws(e,lT)}))]]))},gT=Object.freeze({__proto__:null,events:pT}),mT=[Eo("lazySink"),Eo("tooltipDom"),Xo("exclusive",!0),Xo("tooltipComponents",[]),Xo("delay",300),Jo("mode","normal",["normal","follow-highlight"]),Xo("anchor",(function(e){return{type:"hotspot",hotspot:e,layouts:{onLtr:x([$l,ql,Wl,Hl,jl,Vl]),onRtl:x([$l,ql,Wl,Hl,jl,Vl])}}})),sl("onHide"),sl("onShow")],vT=function(){var e=rf(),t=rf(),n=function(){e.on(clearTimeout)},r=function(t,r){n(),e.set(setTimeout(t,r))},i=x("not-implemented");return kc({getTooltip:t.get,isShowing:t.isSet,setTooltip:t.set,clearTooltip:t.clear,clearTimer:n,resetTimer:r,readState:i})},bT=Object.freeze({__proto__:null,init:vT}),yT=pd({fields:mT,name:"tooltipping",active:gT,state:bT,apis:hT}),xT=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},_T=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),wT=tinymce.util.Tools.resolve("tinymce.EditorManager"),DT=function(e){var t=e.getParam("skin"),n=e.getParam("skin_url");if(!1!==t){var r=t||"oxide";n=n?e.documentBaseURI.toAbsolute(n):wT.baseURL+"/skins/ui/"+r}return n},CT=function(e){return e.getParam("readonly",!1,"boolean")},kT=function(e){return!1===e.getParam("skin")},TT=function(e){return e.getParam("height",Math.max(e.getElement().offsetHeight,200))},ST=function(e){return e.getParam("width",_T.DOM.getStyle(e.getElement(),"width"))},AT=function(e){return M.from(e.getParam("min_width")).filter(p)},ET=function(e){return M.from(e.getParam("min_height")).filter(p)},UT=function(e){return M.from(e.getParam("max_width")).filter(p)},OT=function(e){return M.from(e.getParam("max_height")).filter(p)},FT=function(e){return M.from(e.getParam("style_formats")).filter(s)},PT=function(e){return e.getParam("style_formats_merge",!1,"boolean")},RT=function(e){return e.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},NT=function(e){return e.getParam("content_langs",void 0,"array")},MT=function(e){return e.getParam("removed_menuitems","")},IT=function(e){return!1!==e.getParam("menubar",!0,"boolean")},BT=function(e){var t=e.getParam("toolbar",!0),n=!0===t,r=o(t),i=s(t)&&t.length>0;return!zT(e)&&(i||r||n)},LT=function(e){var t=V(9,(function(t){return e.getParam("toolbar"+(t+1),!1,"string")})),n=K(t,(function(e){return"string"===typeof e}));return n.length>0?M.some(n):M.none()},zT=function(e){return LT(e).fold((function(){var t=e.getParam("toolbar",[],"string[]");return t.length>0}),S)};(function(e){e["default"]="wrap",e["floating"]="floating",e["sliding"]="sliding",e["scrolling"]="scrolling"})(ZC||(ZC={}));var WT,jT=function(e){return e.getParam("toolbar_mode","","string")};(function(e){e["auto"]="auto",e["top"]="top",e["bottom"]="bottom"})(WT||(WT={}));var HT,VT=function(e){return e.getParam("toolbar_groups",{},"object")},qT=function(e){return e.getParam("toolbar_location",WT.auto,"string")},$T=function(e){return qT(e)===WT.bottom},GT=function(e){return e.getParam("fixed_toolbar_container","","string")},XT=function(e){return e.getParam("fixed_toolbar_container_target")},YT=function(e){return e.getParam("toolbar_persist",!1,"boolean")},KT=function(e){if(!e.inline)return M.none();var t=GT(e);if(t.length>0)return Bu(In(),t);var n=XT(e);return f(n)?M.some(tt.fromDom(n)):M.none()},ZT=function(e){return e.inline&&KT(e).isSome()},JT=function(e){var t=KT(e);return t.getOrThunk((function(){return Un(En(tt.fromDom(e.getElement())))}))},QT=function(e){return e.inline&&!IT(e)&&!BT(e)&&!zT(e)},eS=function(e){var t=e.getParam("toolbar_sticky",!1,"boolean");return(t||e.inline)&&!ZT(e)&&!QT(e)},tS=function(e){return e.getParam("toolbar_sticky_offset",0,"number")},nS=function(e){return e.getParam("draggable_modal",!1,"boolean")},rS=function(e){var t=e.getParam("menu");return t?be(t,(function(e){return E(E({},e),{items:e.items})})):{}},iS=function(e){return e.getParam("menubar")},oS=function(e){return e.getParam("toolbar",!0)},aS=function(e){return e.getParam("file_picker_callback")},sS=function(e){return e.getParam("file_picker_types")},cS=function(e){return e.getParam("file_browser_callback_types")},uS=function(e){return!1===e.getParam("typeahead_urls")},lS=function(e){return e.getParam("anchor_top","#top")},dS=function(e){return e.getParam("anchor_bottom","#bottom")},fS=function(e){var t=e.getParam("file_picker_validator_handler",void 0,"function");return void 0===t?e.getParam("filepicker_validator_handler",void 0,"function"):t},hS="silver.readonly",pS=Qi([Ro("readonly")]),gS=function(e,t){var n=e.outerContainer,r=n.element;t&&(e.mothership.broadcastOn([yg()],{target:r}),e.uiMothership.broadcastOn([yg()],{target:r})),e.mothership.broadcastOn([hS],{readonly:t}),e.uiMothership.broadcastOn([hS],{readonly:t})},mS=function(e,t){e.on("init",(function(){e.mode.isReadOnly()&&gS(t,!0)})),e.on("SwitchMode",(function(){return gS(t,e.mode.isReadOnly())})),CT(e)&&e.setMode("readonly")},vS=function(){var e;return bd.config({channels:(e={},e[hS]={schema:pS,onReceive:function(e,t){Iv.set(e,t.readonly)}},e)})},bS=function(e){return Iv.config({disabled:e,disableClass:"tox-collection__item--state-disabled"})},yS=function(e){return Iv.config({disabled:e})},xS=function(e){return Iv.config({disabled:e,disableClass:"tox-tbtn--disabled"})},_S=function(e){return Iv.config({disabled:e,disableClass:"tox-tbtn--disabled",useNative:!1})},wS={item:bS,button:yS,splitButton:xS,toolbarButton:_S},DS=function(e,t){var n=e.getApi(t);return function(e){e(n)}},CS=function(e,t){return js((function(n){var r=DS(e,n);r((function(n){var r=e.onSetup(n);h(r)&&t.set(r)}))}))},kS=function(e,t){return Hs((function(n){return DS(e,n)(t.get())}))},TS=function(e,t){return qs((function(n,r){DS(e,n)(e.onAction),e.triggersSubmenu||t!==JC.CLOSE_ON_EXECUTE||(ws(n,os()),r.stop())}))},SS=(HT={},HT[ts()]=["disabling","alloy.base.behaviour","toggling","item-events"],HT),AS=Oe,ES=function(e,t,n,r){var i=ia(m);return{type:"item",dom:t.dom,components:AS(t.optComponents),data:e.data,eventOrder:SS,hasSubmenu:e.triggersSubmenu,itemBehaviours:fd([Wx("item-events",[TS(e,n),CS(e,i),kS(e,i)]),wS.item((function(){return e.disabled||r.isDisabled()})),vS(),Lx.config({})].concat(e.itemBehaviours))}},US=function(e){return{value:e.value,meta:E({text:e.text.getOr("")},e.meta)}},OS=tinymce.util.Tools.resolve("tinymce.Env"),FS=function(e){var t={alt:"&#x2325;",ctrl:"&#x2303;",shift:"&#x21E7;",meta:"&#x2318;",access:"&#x2303;&#x2325;"},n={meta:"Ctrl",access:"Shift+Alt"},r=OS.mac?t:n,i=e.split("+"),o=$(i,(function(e){var t=e.toLowerCase().trim();return Se(r,t)?r[t]:e}));return OS.mac?o.join(""):o.join("+")},PS=function(e,t,n){return void 0===n&&(n=[ok]),qD(e,{tag:"div",classes:n},t)},RS=function(e){return{dom:{tag:"div",classes:[ak]},components:[Du(RD.translate(e))]}},NS=function(e,t){return{dom:{tag:"div",classes:t,innerHtml:e}}},MS=function(e,t){return{dom:{tag:"div",classes:[ak]},components:[{dom:{tag:e.tag,styles:e.styles},components:[Du(RD.translate(t))]}]}},IS=function(e){return{dom:{tag:"div",classes:[sk],innerHtml:FS(e)}}},BS=function(e){return PS("checkmark",e,[uk])},LS=function(e){return PS("chevron-right",e,[ck])},zS=function(e){return PS("chevron-down",e,[ck])},WS=function(e,t){var n="vertical"===e.direction?fk:hk,r="left"===e.align?gk:pk,i=function(){switch(e.valign){case"top":return mk;case"middle":return vk;case"bottom":return bk}};return{dom:{tag:"div",classes:[dk,n,r,i()]},components:t}},jS=function(e,t,n){return{dom:{tag:"img",classes:t,attributes:{src:e,alt:n.getOr("")}}}},HS=function(e,t,n){var r="custom",i="remove",o=e.ariaLabel,a=e.value,s=e.iconContent.map((function(e){return WD(e,t.icons,n)})),c=function(){var e=tk,n=s.getOr(""),c=o.map((function(e){return{title:t.translate(e)}})).getOr({}),u={tag:"div",attributes:c,classes:[e]};return E(E({},u),a===r?{tag:"button",classes:O(O([],u.classes,!0),["tox-swatches__picker-btn"],!1),innerHtml:n}:a===i?{classes:O(O([],u.classes,!0),["tox-swatch--remove"],!1),innerHtml:n}:{attributes:E(E({},u.attributes),{"data-mce-color":a}),styles:{"background-color":a}})};return{dom:c(),optComponents:[]}},VS=function(e){var t=e.map((function(e){return{attributes:{title:RD.translate(e)}}})).getOr({});return E({tag:"div",classes:[QC,ek]},t)},qS=function(e,t,n,r){var i={tag:"div",classes:[ok]},o=function(e){return qD(e,i,t.icons,r)},a=function(){return M.some({dom:i})},s=n?e.iconContent.map(o).orThunk(a):M.none(),c=e.checkMark,u=M.from(e.meta).fold((function(){return RS}),(function(e){return Se(e,"style")?D(MS,e.style):RS})),l=e.htmlContent.fold((function(){return e.textContent.map(u)}),(function(e){return M.some(NS(e,[ak]))})),d={dom:VS(e.ariaLabel),optComponents:[s,l,e.shortcutContent.map(IS),c,e.caret]};return d},$S=function(e,t,n,r){return void 0===r&&(r=M.none()),"color"===e.presets?HS(e,t,r):qS(e,t,n,r)},GS=function(e,t){return Te(e,"tooltipWorker").map((function(e){return[yT.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(e){return{type:"submenu",item:e,overrides:{maxHeightFunction:Sf}}},mode:"follow-highlight",onShow:function(t,n){e((function(e){yT.setComponents(t,[Cu({element:tt.fromDom(e)})])}))}})]})).getOr([])},XS=function(e){return _T.DOM.encode(e)},YS=function(e,t){var n=RD.translate(e),r=XS(n);if(t.length>0){var i=new RegExp(xT(t),"gi");return r.replace(i,(function(e){return'<span class="tox-autocompleter-highlight">'+e+"</span>"}))}return r},KS=function(e,t,n,r,i,o,a,s){void 0===s&&(s=!0);var c=$S({presets:r,textContent:M.none(),htmlContent:n?e.text.map((function(e){return YS(e,t)})):M.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:M.none(),checkMark:M.none(),caret:M.none(),value:e.value},a.providers,s,e.icon);return ES({data:US(e),disabled:e.disabled,getApi:x({}),onAction:function(t){return i(e.value,e.meta)},onSetup:x(m),triggersSubmenu:!1,itemBehaviours:GS(e.meta,a)},c,o,a.providers)},ZS=function(e,t){return $(e,(function(e){switch(e.type){case"cardcontainer":return WS(e,ZS(e.items,t));case"cardimage":return jS(e.src,e.classes,e.alt);case"cardtext":var n=e.name.exists((function(e){return j(t.cardText.highlightOn,e)})),r=n?M.from(t.cardText.matchText).getOr(""):"";return NS(YS(e.text,r),e.classes)}}))},JS=function(e,t,n,r){var i=function(e){return{isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){Iv.set(e,t),G(Yh(e.element,"*"),(function(n){e.getSystem().getByDom(n).each((function(e){e.hasConfigured(Iv)&&Iv.set(e,t)}))}))}}},o={dom:VS(e.label),optComponents:[M.some({dom:{tag:"div",classes:[dk,hk]},components:ZS(e.items,r)})]};return ES({data:US(E({text:M.none()},e)),disabled:e.disabled,getApi:i,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:M.from(r.itemBehaviours).getOr([])},o,t,n.providers)},QS=function(e,t,n,r,i,o,a,s){void 0===s&&(s=!0);var c=function(e){return{setActive:function(t){g_.set(e,t)},isActive:function(){return g_.isOn(e)},isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)}}},u=$S({presets:n,textContent:t?e.text:M.none(),htmlContent:M.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:t?e.shortcut:M.none(),checkMark:t?M.some(BS(a.icons)):M.none(),caret:M.none(),value:e.value},a,s);return _i(ES({data:US(e),disabled:e.disabled,getApi:c,onAction:function(t){return r(e.value)},onSetup:function(e){return e.setActive(i),m},triggersSubmenu:!1,itemBehaviours:[]},u,o,a),{toggling:{toggleClass:rk,toggleOnExecute:!1,selected:e.active}})},eA=Wm(A_(),E_()),tA=function(e){return{value:e}},nA=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,rA=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,iA=function(e){return nA.test(e)||rA.test(e)},oA=function(e){return ze(e,"#").toUpperCase()},aA=function(e){return iA(e)?M.some({value:oA(e)}):M.none()},sA=function(e){var t=e.value.replace(nA,(function(e,t,n,r){return t+t+n+n+r+r}));return{value:t}},cA=function(e){var t=sA(e),n=rA.exec(t.value);return null===n?["FFFFFF","FF","FF","FF"]:n},uA=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},lA=function(e){var t=uA(e.red)+uA(e.green)+uA(e.blue);return tA(t)},dA=Math.min,fA=Math.max,hA=Math.round,pA=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,gA=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,mA=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},vA=function(e){var t=parseInt(e,10);return t.toString()===e&&t>=0&&t<=255},bA=function(e){var t,n,r,i=(e.hue||0)%360,o=e.saturation/100,a=e.value/100;if(o=fA(0,dA(o,1)),a=fA(0,dA(a,1)),0===o)return t=n=r=hA(255*a),mA(t,n,r,1);var s=i/60,c=a*o,u=c*(1-Math.abs(s%2-1)),l=a-c;switch(Math.floor(s)){case 0:t=c,n=u,r=0;break;case 1:t=u,n=c,r=0;break;case 2:t=0,n=c,r=u;break;case 3:t=0,n=u,r=c;break;case 4:t=u,n=0,r=c;break;case 5:t=c,n=0,r=u;break;default:t=n=r=0}return t=hA(255*(t+l)),n=hA(255*(n+l)),r=hA(255*(r+l)),mA(t,n,r,1)},yA=function(e){var t=cA(e),n=parseInt(t[1],16),r=parseInt(t[2],16),i=parseInt(t[3],16);return mA(n,r,i,1)},xA=function(e,t,n,r){var i=parseInt(e,10),o=parseInt(t,10),a=parseInt(n,10),s=parseFloat(r);return mA(i,o,a,s)},_A=function(e){if("transparent"===e)return M.some(mA(0,0,0,0));var t=pA.exec(e);if(null!==t)return M.some(xA(t[1],t[2],t[3],"1"));var n=gA.exec(e);return null!==n?M.some(xA(n[1],n[2],n[3],n[4])):M.none()},wA=function(e){return"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"},DA=mA(255,0,0,1),CA=function(e){return e.fire("SkinLoaded")},kA=function(e,t){return e.fire("SkinLoadError",t)},TA=function(e){return e.fire("ResizeEditor")},SA=function(e,t){return e.fire("ResizeContent",t)},AA=function(e,t){return e.fire("ScrollContent",t)},EA=function(e,t){return e.fire("TextColorChange",t)},UA=function(e,t,n){return{hue:e,saturation:t,value:n}},OA=function(e){var t=0,n=0,r=0,i=e.red/255,o=e.green/255,a=e.blue/255,s=Math.min(i,Math.min(o,a)),c=Math.max(i,Math.max(o,a));if(s===c)return r=s,UA(0,0,100*r);var u=i===s?o-a:a===s?i-o:a-i;return t=i===s?3:a===s?1:5,t=60*(t-u/(c-s)),n=(c-s)/c,r=c,UA(Math.round(t),Math.round(100*n),Math.round(100*r))},FA=function(e){return OA(yA(e))},PA=function(e){return lA(bA(e))},RA=function(e){return aA(e).orThunk((function(){return _A(e).map(lA)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,i=r[0],o=r[1],a=r[2],s=r[3];return lA(mA(i,o,a,s))}))},NA=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),MA="tinymce-custom-colors";function IA(e){void 0===e&&(e=10);var t=NA.getItem(MA),n=o(t)?JSON.parse(t):[],r=function(t){var n=e-t.length;return n<0?t.slice(0,e):t},i=r(n),a=function(t){W(i,t).each(s),i.unshift(t),i.length>e&&i.pop(),NA.setItem(MA,JSON.stringify(i))},s=function(e){i.splice(e,1)},c=function(){return i.slice(0)};return{add:a,state:c}}var BA,LA="choiceitem",zA=[{type:LA,text:"Light Green",value:"#BFEDD2"},{type:LA,text:"Light Yellow",value:"#FBEEB8"},{type:LA,text:"Light Red",value:"#F8CAC6"},{type:LA,text:"Light Purple",value:"#ECCAFA"},{type:LA,text:"Light Blue",value:"#C2E0F4"},{type:LA,text:"Green",value:"#2DC26B"},{type:LA,text:"Yellow",value:"#F1C40F"},{type:LA,text:"Red",value:"#E03E2D"},{type:LA,text:"Purple",value:"#B96AD9"},{type:LA,text:"Blue",value:"#3598DB"},{type:LA,text:"Dark Turquoise",value:"#169179"},{type:LA,text:"Orange",value:"#E67E23"},{type:LA,text:"Dark Red",value:"#BA372A"},{type:LA,text:"Dark Purple",value:"#843FA1"},{type:LA,text:"Dark Blue",value:"#236FA1"},{type:LA,text:"Light Gray",value:"#ECF0F1"},{type:LA,text:"Medium Gray",value:"#CED4D9"},{type:LA,text:"Gray",value:"#95A5A6"},{type:LA,text:"Dark Gray",value:"#7E8C8D"},{type:LA,text:"Navy Blue",value:"#34495E"},{type:LA,text:"Black",value:"#000000"},{type:LA,text:"White",value:"#ffffff"}],WA=IA(10),jA=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push({text:e[n+1],value:"#"+RA(e[n]).value,type:"choiceitem"});return t},HA=function(e,t){return e.getParam("color_cols",t,"number")},VA=function(e){return!1!==e.getParam("custom_colors")},qA=function(e){return e.getParam("color_map")},$A=function(e){var t=qA(e);return void 0!==t?jA(t):zA},GA=function(){return $(WA.state(),(function(e){return{type:LA,text:e,value:e}}))},XA=function(e){WA.add(e)},YA="#000000",KA=function(e,t){var n;return e.dom.getParents(e.selection.getStart(),(function(e){var r;(r=e.style["forecolor"===t?"color":"background-color"])&&(n=n||r)})),M.from(n)},ZA=function(e,t,n){e.undoManager.transact((function(){e.focus(),e.formatter.apply(t,{value:n}),e.nodeChanged()}))},JA=function(e,t){e.undoManager.transact((function(){e.focus(),e.formatter.remove(t,{value:null},null,!0),e.nodeChanged()}))},QA=function(e){e.addCommand("mceApplyTextcolor",(function(t,n){ZA(e,t,n)})),e.addCommand("mceRemoveTextcolor",(function(t){JA(e,t)}))},eE=function(e){return Math.max(5,Math.ceil(Math.sqrt(e)))},tE=function(e){var t=$A(e),n=eE(t.length);return HA(e,n)},nE=function(e){var t="choiceitem",n={type:t,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},r={type:t,text:"Custom color",icon:"color-picker",value:"custom"};return e?[n,r]:[n]},rE=function(e,t,n,r){if("custom"===n){var i=uE(e);i((function(n){n.each((function(n){XA(n),e.execCommand("mceApplyTextcolor",t,n),r(n)}))}),YA)}else"remove"===n?(r(""),e.execCommand("mceRemoveTextcolor",t)):(r(n),e.execCommand("mceApplyTextcolor",t,n))},iE=function(e,t){return e.concat(GA().concat(nE(t)))},oE=function(e,t){return function(n){n(iE(e,t))}},aE=function(e,t,n){var r="forecolor"===t?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";e.setIconFill(r,n)},sE=function(e,t,n,r,i){e.ui.registry.addSplitButton(t,{tooltip:r,presets:"color",icon:"forecolor"===t?"text-color":"highlight-bg-color",select:function(t){var r=KA(e,n);return r.bind((function(e){return _A(e).map((function(e){var n=lA(e).value;return je(t.toLowerCase(),n)}))})).getOr(!1)},columns:tE(e),fetch:oE($A(e),VA(e)),onAction:function(t){rE(e,n,i.get(),m)},onItemAction:function(r,o){rE(e,n,o,(function(n){i.set(n),EA(e,{name:t,color:n})}))},onSetup:function(n){aE(n,t,i.get());var r=function(e){e.name===t&&aE(n,e.name,e.color)};return e.on("TextColorChange",r),function(){e.off("TextColorChange",r)}}})},cE=function(e,t,n,r){e.ui.registry.addNestedMenuItem(t,{text:r,icon:"forecolor"===t?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(t){rE(e,n,t.value,m)}}]}})},uE=function(e){return function(t,n){var r=!1,i=function(n){var i=n.getData(),o=i.colorpicker;r?(t(M.from(o)),n.close()):e.windowManager.alert(e.translate(["Invalid hex color code: {0}",o]))},o=function(e,t){"hex-valid"===t.name&&(r=t.value)},a={colorpicker:n};e.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:a,onAction:o,onSubmit:i,onClose:m,onCancel:function(){t(M.none())}})}},lE=function(e){QA(e);var t=ia(YA),n=ia(YA);sE(e,"forecolor","forecolor","Text color",t),sE(e,"backcolor","hilitecolor","Background color",n),cE(e,"forecolor","forecolor","Text color"),cE(e,"backcolor","hilitecolor","Background color")},dE=function(e,t,n,r,i,o,a,s){var c=Fk(t),u="color"!==i?"normal":"color",l=fE(t,n,r,u,o,a,s);return Nk(e,c,l,r,i)},fE=function(e,t,n,r,i,o,a){return Oe($(e,(function(s){return"choiceitem"===s.type?$k(s).fold(Pk,(function(c){return M.some(QS(c,1===n,r,t,o(s.value),i,a,Fk(e)))})):M.none()})))},hE=function(e,t){var n=wk(t);if(1===e)return{mode:"menu",moveOnTab:!0};if("auto"===e)return{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}};var r="color"===t?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+r}},pE=function(e,t){return 1===e?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===e?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===t?".tox-swatches__row":".tox-collection__group",cell:"color"===t?"."+tk:"."+ek}}},gE=function(e,t){var n=mE(e,t),r=t.colorinput.getColorCols(),i="color",o=dE(ic("menu-value"),n,(function(t){e.onAction({value:t})}),r,i,JC.CLOSE_ON_EXECUTE,T,t.shared.providers),a=E(E({},o),{markers:wk(i),movement:hE(r,i)});return{type:"widget",data:{value:ic("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[eA.widget(z_.sketch(a))]}},mE=function(e,t){var n=e.initData.allowCustomColors&&t.colorinput.hasCustomColors();return e.initData.colors.fold((function(){return iE(t.colorinput.getColors(),n)}),(function(e){return e.concat(nE(n))}))},vE=ic("cell-over"),bE=ic("cell-execute"),yE=function(e,t,n){var r,i=function(n){return Ds(n,vE,{row:e,col:t})},o=function(n){return Ds(n,bE,{row:e,col:t})},a=function(e,t){t.stop(),o(e)};return Su({dom:{tag:"div",attributes:(r={role:"button"},r["aria-labelledby"]=n,r)},behaviours:fd([Wx("insert-table-picker-cell",[Fs(Ia(),Kx.focus),Fs(ts(),o),Fs(Va(),a),Fs(rs(),a)]),g_.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Kx.config({onFocus:i})])})},xE=function(e,t,n){for(var r=[],i=0;i<t;i++){for(var o=[],a=0;a<n;a++)o.push(yE(i,a,e));r.push(o)}return r},_E=function(e,t,n,r,i){for(var o=0;o<r;o++)for(var a=0;a<i;a++)g_.set(e[o][a],o<=t&&a<=n)},wE=function(e){return re(e,(function(e){return $(e,Au)}))},DE=function(e,t){return Du(t+"x"+e)},CE=function(e){var t=10,n=10,r=ic("size-label"),i=xE(r,t,n),o=DE(0,0),a=Sw({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:r}},components:[o],behaviours:fd([Lx.config({})])});return{type:"widget",data:{value:ic("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[eA.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:wE(i).concat(a.asSpec()),behaviours:fd([Wx("insert-table-picker",[js((function(e){Lx.set(a.get(e),[o])})),Bs(vE,(function(e,r,o){var s=o.event,c=s.row,u=s.col;_E(i,c,u,t,n),Lx.set(a.get(e),[DE(c+1,u+1)])})),Bs(bE,(function(t,n,r){var i=r.event,o=i.row,a=i.col;e.onAction({numRows:o+1,numColumns:a+1}),ws(t,os())}))]),Ex.config({initSize:{numRows:t,numColumns:n},mode:"flatgrid",selector:'[role="button"]'})])})]}},kE={inserttable:CE,colorswatch:gE},TE=function(e,t){return Te(kE,e.fancytype).map((function(n){return n(e,t)}))},SE=function(e,t,n,r,i){void 0===r&&(r=!0),void 0===i&&(i=!1);var o=i?zS(n.icons):LS(n.icons),a=function(e){return{isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)}}},s=$S({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:M.none(),ariaLabel:e.text,caret:M.some(o),checkMark:M.none(),shortcutContent:e.shortcut},n,r);return ES({data:US(e),getApi:a,disabled:e.disabled,onAction:m,onSetup:e.onSetup,triggersSubmenu:!0,itemBehaviours:[]},s,t,n)},AE=function(e,t,n,r){void 0===r&&(r=!0);var i=function(e){return{isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)}}},o=$S({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:M.none(),ariaLabel:e.text,caret:M.none(),checkMark:M.none(),shortcutContent:e.shortcut},n,r);return ES({data:US(e),getApi:i,disabled:e.disabled,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,t,n)},EE=function(e){var t=e.text.fold((function(){return{}}),(function(e){return{innerHtml:e}}));return{type:"separator",dom:E({tag:"div",classes:[ek,ik]},t),components:[]}},UE=function(e,t,n,r){void 0===r&&(r=!0);var i=function(e){return{setActive:function(t){g_.set(e,t)},isActive:function(){return g_.isOn(e)},isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)}}},o=$S({iconContent:e.icon,textContent:e.text,htmlContent:M.none(),ariaLabel:e.text,checkMark:M.some(BS(n.icons)),caret:M.none(),shortcutContent:e.shortcut,presets:"normal",meta:e.meta},n,r);return _i(ES({data:US(e),disabled:e.disabled,getApi:i,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,t,n),{toggling:{toggleClass:rk,toggleOnExecute:!1,selected:e.active}})},OE=KS,FE=EE,PE=AE,RE=SE,NE=UE,ME=TE,IE=JS;(function(e){e[e["ContentFocus"]=0]="ContentFocus",e[e["UiFocus"]=1]="UiFocus"})(BA||(BA={}));var BE=function(e,t,n,r,i){var o=n.shared.providers,a=function(e){return i?E(E({},e),{shortcut:M.none(),icon:e.text.isSome()?M.none():e.icon}):e};switch(e.type){case"menuitem":return Qk(e).fold(Pk,(function(e){return M.some(PE(a(e),t,o,r))}));case"nestedmenuitem":return tT(e).fold(Pk,(function(e){return M.some(RE(a(e),t,o,r,i))}));case"togglemenuitem":return rT(e).fold(Pk,(function(e){return M.some(NE(a(e),t,o,r))}));case"separator":return SC(e).fold(Pk,(function(e){return M.some(FE(e))}));case"fancymenuitem":return Zk(e).fold(Pk,(function(e){return ME(a(e),n)}));default:return console.error("Unknown item in general menu",e),M.none()}},LE=function(e,t,n,r,i,o,a){var s=1===r,c=!s||Fk(e);return Oe($(e,(function(e){switch(e.type){case"separator":return UC(e).fold(Pk,(function(e){return M.some(FE(e))}));case"cardmenuitem":return Vk(e).fold(Pk,(function(e){return M.some(IE(E(E({},e),{onAction:function(t){e.onAction(t),n(e.value,e.meta)}}),i,o,{itemBehaviours:GS(e.meta,o),cardText:{matchText:t,highlightOn:a}}))}));case"autocompleteitem":default:return OC(e).fold(Pk,(function(e){return M.some(OE(e,t,s,"normal",n,i,o,c))}))}})))},zE=function(e,t,n,r,i){var o=Fk(t),a=Oe($(t,(function(e){var t=function(e){return i?!Se(e,"text"):o},a=function(e){return BE(e,n,r,t(e),i)};return"nestedmenuitem"===e.type&&e.getSubmenuItems().length<=0?a(E(E({},e),{disabled:!0})):a(e)}))),s=i?Rk:Nk;return s(e,o,a,1,"normal")},WE=function(e){return J_.singleData(e.value,e)},jE=function(e,t,n,r){var i=n===BA.ContentFocus?Tb():kb(),o=hE(t,r),a=wk(r);return{dom:e.dom,components:e.components,items:e.items,value:e.value,markers:{selectedItem:a.selectedItem,item:a.item},movement:o,fakeFocus:n===BA.ContentFocus,focusManager:i,menuBehaviours:sT.unnamedEvents("auto"!==t?[]:[js((function(e,t){iT(e,4,a.item).each((function(t){var n=t.numColumns,r=t.numRows;Ex.setGridSize(e,r,n)}))}))])}},HE=function(e,t){var n=rf(),r=ia(!1),i=Su(tw.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:fd([Wx("dismissAutocompleter",[Fs(ps(),(function(){return c()}))])]),lazySink:t.getSink})),o=function(){return tw.isOpen(i)},a=function(){return n.get().isSome()},s=function(){a()&&tw.hide(i)},c=function(){if(a()){var t=n.get().map((function(e){return e.element}));oC(t.getOr(tt.fromDom(e.selection.getNode()))).each(Mr),s(),n.clear(),r.set(!1)}},u=pt((function(){return KC(e)})),l=function(n,i){var o=pe(i,(function(e){return M.from(e.columns)})).getOr(1);return re(i,(function(i){var a=i.items;return LE(a,i.matchText,(function(t,o){var a=e.selection.getRng();fC(e.dom,a,n).fold((function(){return console.error("Lost context. Cursor probably moved")}),(function(e){var n=e.range,a={hide:function(){c()},reload:function(e){s(),p(e)}};r.set(!0),i.onAction(a,n,t,o),r.set(!1)}))}),o,JC.BUBBLE_TO_SANDBOX,t,i.highlightOn)}))},d=function(t){if(!a()){var i=iC(e,t.range);n.set({triggerChar:t.triggerChar,element:i,matchLength:t.text.length}),r.set(!1)}},f=function(t,n,r,o){t.matchLength=n.text.length;var a=pe(r,(function(e){return M.from(e.columns)})).getOr(1);tw.showAt(i,z_.sketch(jE(Nk("autocompleter-value",!0,o,a,"normal"),a,BA.ContentFocus,"normal")),{anchor:{type:"node",root:tt.fromDom(e.getBody()),node:M.from(t.element)}}),tw.getContent(i).each(rb.highlightFirst)},h=function(t){return n.get().map((function(n){return fC(e.dom,e.selection.getRng(),n.triggerChar).bind((function(n){return kC(e,u,n,t)}))})).getOrThunk((function(){return CC(e,u)}))},p=function(e){h(e).fold(c,(function(e){d(e.context),e.lookupData.then((function(t){n.get().map((function(n){var r=e.context;if(n.triggerChar===r.triggerChar){var i=l(r.triggerChar,t);i.length>0?f(n,r,t,i):r.text.length-n.matchLength>=10?c():s()}}))}))}))},g=QD((function(e){27!==e.which&&p()}),50),m={onKeypress:g,cancelIfNecessary:c,isMenuOpen:o,isActive:a,isProcessingAction:r.get,getView:function(){return tw.getContent(i)}};!1===e.hasPlugin("rtc")&&pC.setup(m,e)},VE={register:HE},qE=function(e,t,n){return Lu(e,t,n).isSome()},$E=function(e,t){var n=null,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n=setTimeout((function(){e.apply(null,r),n=null}),t)},i=function(){null!==n&&(clearTimeout(n),n=null)};return{cancel:i,schedule:r}},GE=5,XE=400,YE=function(e){var t=e.raw;return void 0===t.touches||1!==t.touches.length?M.none():M.some(t.touches[0])},KE=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>GE||r>GE},ZE=function(e){var t=rf(),n=ia(!1),r=$E((function(t){e.triggerEvent(is(),t),n.set(!0)}),XE),i=function(e){return YE(e).each((function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:e.target};r.schedule(e),n.set(!1),t.set(o)})),M.none()},o=function(e){return r.cancel(),YE(e).each((function(e){t.on((function(n){KE(e,n)&&t.clear()}))})),M.none()},a=function(i){r.cancel();var o=function(e){return un(e.target,i.target)};return t.get().filter(o).map((function(t){return n.get()?(i.prevent(),!1):e.triggerEvent(rs(),i)}))},s=pa([{key:Ea(),value:i},{key:Ua(),value:o},{key:Oa(),value:a}]),c=function(e,t){return Te(s,t).bind((function(t){return t(e)}))};return{fireIfReady:c}},JE=function(e){var t=e.raw;return t.which===ib[0]&&!j(["input","textarea"],st(e.target))&&!qE(e.target,'[contenteditable="true"]')},QE=function(){return tn().browser.isFirefox()},eU=function(e,t){return QE()?sf(e,"focus",t):af(e,"focusin",t)},tU=function(e,t){return QE()?sf(e,"blur",t):af(e,"focusout",t)},nU=function(e,t){var n=E({stopBackspace:!0},t),r=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],i=ZE(n),o=$(r.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(t){return af(e,t,(function(e){i.fireIfReady(e,t).each((function(t){t&&e.kill()}));var r=n.triggerEvent(t,e);r&&e.kill()}))})),a=rf(),s=af(e,"paste",(function(e){i.fireIfReady(e,"paste").each((function(t){t&&e.kill()}));var t=n.triggerEvent("paste",e);t&&e.kill(),a.set(setTimeout((function(){n.triggerEvent(Qa(),e)}),0))})),c=af(e,"keydown",(function(e){var t=n.triggerEvent("keydown",e);t?e.kill():n.stopBackspace&&JE(e)&&e.prevent()})),u=eU(e,(function(e){var t=n.triggerEvent("focusin",e);t&&e.kill()})),l=rf(),d=tU(e,(function(e){var t=n.triggerEvent("focusout",e);t&&e.kill(),l.set(setTimeout((function(){n.triggerEvent(Ja(),e)}),0))})),f=function(){G(o,(function(e){e.unbind()})),c.unbind(),u.unbind(),d.unbind(),s.unbind(),a.on(clearTimeout),l.on(clearTimeout)};return{unbind:f}},rU=function(e,t){var n=Te(e,"target").getOr(t);return ia(n)},iU=function(e,t){var n=ia(!1),r=ia(!1),i=function(){n.set(!0)},o=function(){r.set(!0)};return{stop:i,cut:o,isStopped:n.get,isCut:r.get,event:e,setSource:t.set,getSource:t.get}},oU=function(e){var t=ia(!1),n=function(){t.set(!0)};return{stop:n,cut:m,isStopped:t.get,isCut:T,event:e,setSource:k("Cannot set source of a broadcasted event"),getSource:k("Cannot get source of a broadcasted event")}},aU=aa.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),sU=function(e,t,n,r,i,o){var a=e(t,r),s=iU(n,i);return a.fold((function(){return o.logEventNoHandlers(t,r),aU.complete()}),(function(e){var n=e.descHandler,r=Ic(n);return r(s),s.isStopped()?(o.logEventStopped(t,e.element,n.purpose),aU.stopped()):s.isCut()?(o.logEventCut(t,e.element,n.purpose),aU.complete()):vn(e.element).fold((function(){return o.logNoParent(t,e.element,n.purpose),aU.complete()}),(function(r){return o.logEventResponse(t,e.element,n.purpose),aU.resume(r)}))}))},cU=function(e,t,n,r,i,o){return sU(e,t,n,r,i,o).fold(S,(function(r){return cU(e,t,n,r,i,o)}),T)},uU=function(e,t,n,r,i){var o=rU(n,r);return sU(e,t,n,r,o,i)},lU=function(e,t,n){var r=oU(t);return G(e,(function(e){var t=e.descHandler,n=Ic(t);n(r)})),r.isStopped()},dU=function(e,t,n,r){return fU(e,t,n,n.target,r)},fU=function(e,t,n,r,i){var o=rU(n,r);return cU(e,t,n,r,o,i)},hU=function(e,t){return{element:e,descHandler:t}},pU=function(e,t){return{id:e,descHandler:t}},gU=function(){var e={},t=function(t,n,r){ve(r,(function(r,i){var o=void 0!==e[i]?e[i]:{};o[n]=Mc(r,t),e[i]=o}))},n=function(e,t){return dc(t).bind((function(t){return Te(e,t)})).map((function(e){return hU(t,e)}))},r=function(t){return Te(e,t).map((function(e){return De(e,(function(e,t){return pU(t,e)}))})).getOr([])},i=function(t,r,i){return Te(e,r).bind((function(e){return xa(i,(function(t){return n(e,t)}),t)}))},o=function(t){ve(e,(function(e,n){Se(e,t)&&delete e[t]}))};return{registerId:t,unregisterId:o,filterByType:r,find:i}},mU=function(){var e=gU(),t={},n=function(e){var t=e.element;return dc(t).getOrThunk((function(){return uc("uid-",e.element)}))},r=function(e,n){var r=t[n];if(r!==e)throw new Error('The tagId "'+n+'" is already used by: '+Qs(r.element)+"\nCannot use it for: "+Qs(e.element)+"\nThe conflicting element is"+(Mn(r.element)?" ":" not ")+"already in the DOM");o(e)},i=function(i){var o=n(i);Ae(t,o)&&r(i,o);var a=[i];e.registerId(a,o,i.events),t[o]=i},o=function(n){dc(n.element).each((function(n){delete t[n],e.unregisterId(n)}))},a=function(t){return e.filterByType(t)},s=function(t,n,r){return e.find(t,n,r)},c=function(e){return Te(t,e)};return{find:s,filter:a,register:i,unregister:o,getById:c}},vU=function(e){var t=e.dom,n=t.attributes,r=U(t,["attributes"]);return{uid:e.uid,dom:E({tag:"div",attributes:E({role:"presentation"},n)},r),components:e.components,behaviours:nm(e.containerBehaviours),events:e.events,domModification:e.domModification,eventOrder:e.eventOrder}},bU=fv({name:"Container",factory:vU,configFields:[Xo("components",[]),tm("containerBehaviours",[]),Xo("events",{}),Xo("domModification",{}),Xo("eventOrder",{})]}),yU=function(e){var t=function(t){return vn(e.element).fold(S,(function(e){return un(t,e)}))},n=mU(),r=function(e,r){return n.find(t,e,r)},i=nU(e.element,{triggerEvent:function(e,t){return Zu(e,t.target,(function(n){return dU(r,e,t,n)}))}}),o={debugInfo:x("real"),triggerEvent:function(e,t,n){Zu(e,t,(function(i){return fU(r,e,n,t,i)}))},triggerFocus:function(e,t){dc(e).fold((function(){wd(e)}),(function(n){Zu(Za(),e,(function(n){return uU(r,Za(),{originator:t,kill:m,prevent:m,target:e},e,n),!1}))}))},triggerEscape:function(e,t){o.triggerEvent("keydown",e.element,t.event)},getByUid:function(e){return g(e)},getByDom:function(e){return v(e)},build:Su,addToGui:function(e){c(e)},removeFromGui:function(e){u(e)},addToWorld:function(e){a(e)},removeFromWorld:function(e){s(e)},broadcast:function(e){f(e)},broadcastOn:function(e,t){h(e,t)},broadcastEvent:function(e,t){p(e,t)},isConnected:S},a=function(e){e.connect(o),dt(e.element)||(n.register(e),G(e.components(),a),o.triggerEvent(ss(),e.element,{target:e.element}))},s=function(e){dt(e.element)||(G(e.components(),s),n.unregister(e)),e.disconnect()},c=function(t){Vp(e,t)},u=function(e){Gp(e)},l=function(){i.unbind(),Nr(e.element)},d=function(e){var t=n.filter(es());G(t,(function(t){var n=t.descHandler,r=Ic(n);r(e)}))},f=function(e){d({universal:!0,data:e})},h=function(e,t){d({universal:!1,channels:e,data:t})},p=function(e,t){var r=n.filter(e);return lU(r,t)},g=function(e){return n.getById(e).fold((function(){return ri.error(new Error('Could not find component with uid: "'+e+'" in system.'))}),ri.value)},v=function(e){var t=dc(e).getOr("not found");return g(t)};return a(e),{root:e,element:e.element,destroy:l,add:c,remove:u,getByUid:g,getByDom:v,addToWorld:a,removeFromWorld:s,broadcast:f,broadcastOn:h,broadcastEvent:p}},xU=function(e,t){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:$(e.items,t.interpreter)}},_U=x([Xo("prefix","form-field"),tm("fieldBehaviours",[bv,em])]),wU=x([Nm({schema:[Eo("dom")],name:"label"}),Nm({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[Eo("text")],name:"aria-descriptor"}),Pm({factory:{sketch:function(e){var t=fa(e,["factory"]);return e.factory.sketch(t)}},schema:[Eo("factory")],name:"field"})]),DU=function(e,t,n,r){var i=rm(e.fieldBehaviours,[bv.config({find:function(t){return Xm(t,e,"field")}}),em.config({store:{mode:"manual",getValue:function(e){return bv.getCurrent(e).bind(em.getValue)},setValue:function(e,t){bv.getCurrent(e).each((function(e){em.setValue(e,t)}))}}})]),o=As([js((function(t,n){var r=Km(t,e,["label","field","aria-descriptor"]);r.field().each((function(t){var n=ic(e.prefix);r.label().each((function(e){zn(e.element,"for",n),zn(t.element,"id",n)})),r["aria-descriptor"]().each((function(n){var r=ic(e.prefix);zn(n.element,"id",r),zn(t.element,"aria-describedby",r)}))}))}))]),a={getField:function(t){return Xm(t,e,"field")},getLabel:function(t){return Xm(t,e,"label")}};return{uid:e.uid,dom:e.dom,components:t,behaviours:i,events:o,apis:a}},CU=hv({name:"FormField",configFields:_U(),partFields:wU(),factory:DU,apis:{getField:function(e,t){return e.getField(t)},getLabel:function(e,t){return e.getLabel(t)}}}),kU=function(e,t){return Uc({attributes:pa([{key:t.tabAttr,value:"true"}])})},TU=Object.freeze({__proto__:null,exhibit:kU}),SU=[Xo("tabAttr","data-alloy-tabstop")],AU=pd({fields:SU,name:"tabstopping",active:TU}),EU=tinymce.util.Tools.resolve("tinymce.html.Entities"),UU=function(e,t,n,r){var i=FU(e,t,n,r);return CU.sketch(i)},OU=function(e,t){return UU(e,t,[],[])},FU=function(e,t,n,r){return{dom:RU(n),components:e.toArray().concat([t]),fieldBehaviours:fd(r)}},PU=function(){return RU([])},RU=function(e){return{tag:"div",classes:["tox-form__group"].concat(e)}},NU=function(e,t){return CU.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}})},MU=ic("form-component-change"),IU=ic("form-close"),BU=ic("form-cancel"),LU=ic("form-action"),zU=ic("form-submit"),WU=ic("form-block"),jU=ic("form-unblock"),HU=ic("form-tabchange"),VU=ic("form-resize"),qU=function(e,t){var n,r=e.label.map((function(e){return NU(e,t)})),i=function(e){return function(t,n){Lu(n.event.target,"[data-collection-item-value]").each((function(r){e(t,n,r,jn(r,"data-collection-item-value"))}))}},o=function(n,r){var i=$(r,(function(n){var r=RD.translate(n.text),i=1===e.columns?'<div class="tox-collection__item-label">'+r+"</div>":"",o='<div class="tox-collection__item-icon">'+n.icon+"</div>",a={_:" "," - ":" ","-":" "},s=r.replace(/\_| \- |\-/g,(function(e){return a[e]})),c=t.isDisabled()?" tox-collection__item--state-disabled":"";return'<div class="tox-collection__item'+c+'" tabindex="-1" data-collection-item-value="'+EU.encodeAllRaw(n.value)+'" title="'+s+'" aria-label="'+s+'">'+o+i+"</div>"})),o="auto"!==e.columns&&e.columns>1?q(i,e.columns):[i],a=$(o,(function(e){return'<div class="tox-collection__group">'+e.join("")+"</div>"}));Xs(n.element,a.join(""))},a=i((function(n,r,i,o){r.stop(),t.isDisabled()||Ds(n,LU,{name:e.name,value:o})})),s=[Fs(Ia(),i((function(e,t,n){wd(n)}))),Fs(Va(),a),Fs(rs(),a),Fs(Ba(),i((function(e,t,n){Bu(e.element,"."+lk).each((function(e){su(e,lk)})),ou(n,lk)}))),Fs(La(),i((function(e){Bu(e.element,"."+lk).each((function(e){su(e,lk)}))}))),qs(i((function(t,n,r,i){Ds(t,LU,{name:e.name,value:i})})))],c=function(e,t){return $(Yh(e.element,".tox-collection__item"),t)},u=CU.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==e.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:_},behaviours:fd([Iv.config({disabled:t.isDisabled,onDisabled:function(e){c(e,(function(e){ou(e,"tox-collection__item--state-disabled"),zn(e,"aria-disabled",!0)}))},onEnabled:function(e){c(e,(function(e){su(e,"tox-collection__item--state-disabled"),qn(e,"aria-disabled")}))}}),vS(),Lx.config({}),em.config({store:{mode:"memory",initialValue:[]},onSetValue:function(t,n){o(t,n),"auto"===e.columns&&iT(t,5,"tox-collection__item").each((function(e){var n=e.numRows,r=e.numColumns;Ex.setGridSize(t,n,r)})),ws(t,VU)}}),AU.config({}),Ex.config(pE(e.columns,"normal")),Wx("collection-events",s)]),eventOrder:(n={},n[ts()]=["disabling","alloy.base.behaviour","collection-events"],n)}),l=["tox-form__group--collection"];return UU(r,u,l,[])},$U=x([zo("data"),Xo("inputAttributes",{}),Xo("inputStyles",{}),Xo("tag","input"),Xo("inputClasses",[]),sl("onSetValue"),Xo("styles",{}),Xo("eventOrder",{}),tm("inputBehaviours",[em,Kx]),Xo("selectOnFocus",!0)]),GU=function(e){return fd([Kx.config({onFocus:e.selectOnFocus?function(e){var t=e.element,n=fu(t);t.dom.setSelectionRange(0,n.length)}:m})])},XU=function(e){return E(E({},GU(e)),rm(e.inputBehaviours,[em.config({store:E(E({mode:"manual"},e.data.map((function(e){return{initialValue:e}})).getOr({})),{getValue:function(e){return fu(e.element)},setValue:function(e,t){var n=fu(e.element);n!==t&&hu(e.element,t)}}),onSetValue:e.onSetValue})]))},YU=function(e){return{tag:e.tag,attributes:E({type:"text"},e.inputAttributes),styles:e.inputStyles,classes:e.inputClasses}},KU=function(e,t){return{uid:e.uid,dom:YU(e),components:[],behaviours:XU(e),eventOrder:e.eventOrder}},ZU=fv({name:"Input",configFields:$U(),factory:KU}),JU={},QU={exports:JU};(function(t,n,r,i){(function(e,i){"object"===typeof n&&"undefined"!==typeof r?r.exports=i():"function"===typeof t&&t.amd?t(i):(e="undefined"!==typeof globalThis?globalThis:e||self,e.EphoxContactWrapper=i())})(this,(function(){var t="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},n={exports:{}};(function(e){(function(t){var n=setTimeout;function r(){}function i(e,t){return function(){e.apply(t,arguments)}}function o(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void c(t.promise,i)}s(t.promise,r)}else(1===e._state?s:c)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void u(e);if("function"===typeof n)return void d(i(n,t),e)}e._state=1,e._value=t,u(e)}catch(r){c(e,r)}}function c(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(r){if(n)return;n=!0,c(t,r)}}o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},o.all=function(e){var t=Array.prototype.slice.call(e);return new o((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(c){n(c)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},o.resolve=function(e){return e&&"object"===typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},o._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},o._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},e.exports?e.exports=o:t.Promise||(t.Promise=o)})(t)})(n);var r=n.exports,i=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),o={boltExport:i.Promise||r};return o}))})(void 0,JU,QU);var eO,tO=QU.exports.boltExport,nO=function(e){var t=M.none(),n=[],r=function(e){return nO((function(t){i((function(n){t(e(n))}))}))},i=function(e){a()?c(e):n.push(e)},o=function(e){a()||(t=M.some(e),s(n),n=[])},a=function(){return t.isSome()},s=function(e){G(e,c)},c=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(o),{get:i,map:r,isReady:a}},rO=function(e){return nO((function(t){t(e)}))},iO={nu:nO,pure:rO},oO=function(e){setTimeout((function(){throw e}),0)},aO=function(e){var t=function(t){e().then(t,oO)},n=function(t){return aO((function(){return e().then(t)}))},r=function(t){return aO((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return aO((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return iO.nu(t)},a=function(){var t=null;return aO((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},sO=function(e){return aO((function(){return new tO(e)}))},cO=function(e){return aO((function(){return tO.resolve(e)}))},uO={nu:sO,pure:cO},lO=["input","textarea"],dO=function(e){var t=st(e);return j(lO,t)},fO=function(e,t){var n=t.getRoot(e).getOr(e.element);su(n,t.invalidClass),t.notify.each((function(t){dO(e.element)&&zn(e.element,"aria-invalid",!1),t.getContainer(e).each((function(e){Xs(e,t.validHtml)})),t.onValid(e)}))},hO=function(e,t,n,r){var i=t.getRoot(e).getOr(e.element);ou(i,t.invalidClass),t.notify.each((function(t){dO(e.element)&&zn(e.element,"aria-invalid",!0),t.getContainer(e).each((function(e){Xs(e,r)})),t.onInvalid(e,r)}))},pO=function(e,t,n){return t.validator.fold((function(){return uO.pure(ri.value(!0))}),(function(t){return t.validate(e)}))},gO=function(e,t,n){return t.notify.each((function(t){t.onValidate(e)})),pO(e,t).map((function(r){return e.getSystem().isConnected()?r.fold((function(r){return hO(e,t,n,r),ri.error(r)}),(function(n){return fO(e,t),ri.value(n)})):ri.error("No longer in system")}))},mO=function(e,t){var n=t.getRoot(e).getOr(e.element);return cu(n,t.invalidClass)},vO=Object.freeze({__proto__:null,markValid:fO,markInvalid:hO,query:pO,run:gO,isInvalid:mO}),bO=function(e,t){return e.validator.map((function(n){return As([Fs(n.onEvent,(function(n){gO(n,e,t).get(_)}))].concat(n.validateOnLoad?[js((function(n){gO(n,e,t).get(m)}))]:[]))})).getOr({})},yO=Object.freeze({__proto__:null,events:bO}),xO=[Eo("invalidClass"),Xo("getRoot",M.none),$o("notify",[Xo("aria","alert"),Xo("getContainer",M.none),Xo("validHtml",""),sl("onValid"),sl("onInvalid"),sl("onValidate")]),$o("validator",[Eo("validate"),Xo("onEvent","input"),Xo("validateOnLoad",!0)])],_O=pd({fields:xO,name:"invalidating",active:yO,apis:vO,extra:{validation:function(e){return function(t){var n=em.getValue(t);return uO.pure(e(n))}}}}),wO=function(e,t,n,r){return n.getOrCreate(e,t,r)},DO=Object.freeze({__proto__:null,getCoupled:wO}),CO=[Uo("others",bo(ri.value,oo()))],kO=function(){var e={},t=function(t,n,r){var i=ge(n.others);if(i)return Te(e,r).getOrThunk((function(){var i=Te(n.others,r).getOrDie("No information found for coupled component: "+r),o=i(t),a=t.getSystem().build(o);return e[r]=a,a}));throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+JSON.stringify(i,null,2))},n=x({});return kc({readState:n,getOrCreate:t})},TO=Object.freeze({__proto__:null,init:kO}),SO=pd({fields:CO,name:"coupling",apis:DO,state:TO}),AO=x("sink"),EO=x(Nm({name:AO(),overrides:x({dom:{tag:"div"},behaviours:fd([Bp.config({useFixed:S})]),events:As([Ls(za()),Ls(Pa()),Ls(Va())])})}));(function(e){e[e["HighlightFirst"]=0]="HighlightFirst",e[e["HighlightNone"]=1]="HighlightNone"})(eO||(eO={}));var UO,OO=function(e,t){var n=e.getHotspot(t).getOr(t),r="hotspot",i=e.getAnchorOverrides();return e.layouts.fold((function(){return{type:r,hotspot:n,overrides:i}}),(function(e){return{type:r,hotspot:n,overrides:i,layouts:e}}))},FO=function(e,t,n){var r=e.fetch;return r(n).map(t)},PO=function(e,t,n,r,i,o,a){var s=FO(e,t,r),c=BO(r,e);return s.map((function(e){return e.bind((function(e){return M.from(J_.sketch(E(E({},o.menu()),{uid:fc(""),data:e,highlightImmediately:a===eO.HighlightFirst,onOpenMenu:function(e,t){var r=c().getOrDie();Bp.position(r,t,{anchor:n}),bg.decloak(i)},onOpenSubmenu:function(e,t,n){var r=c().getOrDie();Bp.position(r,n,{anchor:{type:"submenu",item:t}}),bg.decloak(i)},onRepositionMenu:function(e,t,r){var i=c().getOrDie();Bp.position(i,t,{anchor:n}),G(r,(function(e){Bp.position(i,e.triggeredMenu,{anchor:{type:"submenu",item:e.triggeringItem}})}))},onEscape:function(){return Kx.focus(r),bg.close(i),M.some(!0)}})))}))}))},RO=function(e,t,n,r,i,o,a){var s=OO(e,n),c=PO(e,t,s,n,r,i,a);return c.map((function(e){return e.fold((function(){bg.isOpen(r)&&bg.close(r)}),(function(e){bg.cloak(r),bg.open(r,e),o(r)})),r}))},NO=function(e,t,n,r,i,o,a){return bg.close(r),uO.pure(r)},MO=function(e,t,n,r,i,o){var a=SO.getCoupled(n,"sandbox"),s=bg.isOpen(a),c=s?NO:RO;return c(e,t,n,a,r,i,o)},IO=function(e,t,n){var r=bv.getCurrent(t).getOr(t),i=vr(e.element);n?Xn(r.element,"min-width",i+"px"):mr(r.element,i)},BO=function(e,t){return e.getSystem().getByUid(t.uid+"-"+AO()).map((function(e){return function(){return ri.value(e)}})).getOrThunk((function(){return t.lazySink.fold((function(){return function(){return ri.error(new Error("No internal sink is specified, nor could an external sink be found"))}}),(function(t){return function(){return t(e)}}))}))},LO=function(e){bg.getState(e).each((function(e){J_.repositionMenus(e)}))},zO=function(e,t,n){var r=Wu(),i=function(i,o){var a=OO(e,t);r.link(t.element),e.matchWidth&&IO(a.hotspot,o,e.useMinWidth),e.onOpen(a,i,o),void 0!==n&&void 0!==n.onOpen&&n.onOpen(i,o)},o=function(e,i){r.unlink(t.element),void 0!==n&&void 0!==n.onClose&&n.onClose(e,i)},a=BO(t,e);return{dom:{tag:"div",classes:e.sandboxClasses,attributes:{id:r.id,role:"listbox"}},behaviours:im.augment(e.sandboxBehaviours,[em.config({store:{mode:"memory",initialValue:t}}),bg.config({onOpen:i,onClose:o,isPartOf:function(e,n,r){return Hu(n,r)||Hu(t,r)},getAttachPoint:function(){return a().getOrDie()}}),bv.config({find:function(e){return bg.getState(e).bind((function(e){return bv.getCurrent(e)}))}}),bd.config({channels:E(E({},Dg({isExtraPart:T})),kg({doReposition:LO}))})])}},WO=function(e){var t=SO.getCoupled(e,"sandbox");LO(t)},jO=function(){return[Xo("sandboxClasses",[]),im.field("sandboxBehaviours",[bv,bd,bg,em])]},HO=x([Eo("dom"),Eo("fetch"),sl("onOpen"),cl("onExecute"),Xo("getHotspot",M.some),Xo("getAnchorOverrides",x({})),Lf(),tm("dropdownBehaviours",[g_,SO,Ex,Kx]),Eo("toggleClass"),Xo("eventOrder",{}),zo("lazySink"),Xo("matchWidth",!1),Xo("useMinWidth",!1),zo("role")].concat(jO())),VO=x([Rm({schema:[il()],name:"menu",defaults:function(e){return{onExecute:e.onExecute}}}),EO()]),qO=function(e,t,n,r){var i,o=function(t){return Te(e.dom,"attributes").bind((function(e){return Te(e,t)}))},a=function(e){bg.getState(e).each((function(e){J_.highlightPrimary(e)}))},s=function(t){var n=a;MO(e,_,t,r,n,eO.HighlightFirst).get(m)},c={expand:function(t){g_.isOn(t)||MO(e,_,t,r,m,eO.HighlightNone).get(m)},open:function(t){g_.isOn(t)||MO(e,_,t,r,m,eO.HighlightFirst).get(m)},isOpen:g_.isOn,close:function(t){g_.isOn(t)&&MO(e,_,t,r,m,eO.HighlightFirst).get(m)},repositionMenus:function(e){g_.isOn(e)&&WO(e)}},u=function(e,t){return Cs(e),M.some(!0)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rm(e.dropdownBehaviours,[g_.config({toggleClass:e.toggleClass,aria:{mode:"expanded"}}),SO.config({others:{sandbox:function(t){return zO(e,t,{onOpen:function(){return g_.on(t)},onClose:function(){return g_.off(t)}})}}}),Ex.config({mode:"special",onSpace:u,onEnter:u,onDown:function(e,t){if($O.isOpen(e)){var n=SO.getCoupled(e,"sandbox");a(n)}else $O.open(e);return M.some(!0)},onEscape:function(e,t){return $O.isOpen(e)?($O.close(e),M.some(!0)):M.none()}}),Kx.config({})]),events:v_(M.some(s)),eventOrder:E(E({},e.eventOrder),(i={},i[ts()]=["disabling","toggling","alloy.base.behaviour"],i)),apis:c,domModification:{attributes:E(E({"aria-haspopup":"true"},e.role.fold((function(){return{}}),(function(e){return{role:e}}))),"button"===e.dom.tag?{type:o("type").getOr("button")}:{})}}},$O=hv({name:"Dropdown",configFields:HO(),partFields:VO(),factory:qO,apis:{open:function(e,t){return e.open(t)},expand:function(e,t){return e.expand(t)},close:function(e,t){return e.close(t)},isOpen:function(e,t){return e.isOpen(t)},repositionMenus:function(e,t){return e.repositionMenus(t)}}}),GO=function(){return Uc({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},XO=function(){return As([Es(Xa(),S)])},YO=Object.freeze({__proto__:null,events:XO,exhibit:GO}),KO=pd({fields:[],name:"unselecting",active:YO}),ZO=function(e,t){return $O.sketch({dom:e.dom,components:e.components,toggleClass:"mce-active",dropdownBehaviours:fd([wS.button(t.providers.isDisabled),vS(),KO.config({}),AU.config({})]),layouts:e.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:t.getSink,fetch:function(n){return uO.nu((function(t){return e.fetch(t)})).map((function(r){return M.from(WE(_i(dE(ic("menu-value"),r,(function(t){e.onItemAction(n,t)}),e.columns,e.presets,JC.CLOSE_ON_EXECUTE,T,t.providers),{movement:hE(e.columns,e.presets)})))}))},parts:{menu:kk(!1,1,e.presets)}})},JO=ic("color-input-change"),QO=ic("color-swatch-change"),eF=ic("color-picker-cancel"),tF=function(e,t,n){var r=CU.parts.field({factory:ZU,inputClasses:["tox-textfield"],onSetValue:function(e){return _O.run(e).get(m)},inputBehaviours:fd([Iv.config({disabled:t.providers.isDisabled}),vS(),AU.config({}),_O.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(e){return vn(e.element)},notify:{onValid:function(e){var t=em.getValue(e);Ds(e,JO,{color:t})}},validator:{validateOnLoad:!1,validate:function(e){var t=em.getValue(e);if(0===t.length)return uO.pure(ri.value(!0));var n=tt.fromTag("span");Xn(n,"background-color",t);var r=Qn(n,"background-color").fold((function(){return ri.error("blah")}),(function(e){return ri.value(t)}));return uO.pure(r)}}})]),selectOnFocus:!1}),i=e.label.map((function(e){return NU(e,t.providers)})),o=function(e,t){Ds(e,QO,{value:t})},a=function(e,t){s.getOpt(e).each((function(e){"custom"===t?n.colorPicker((function(t){t.fold((function(){return ws(e,eF)}),(function(t){o(e,t),XA(t)}))}),"#ffffff"):o(e,"remove"===t?"":t)}))},s=Sw(ZO({dom:{tag:"span",attributes:{"aria-label":t.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[jl,Wl,$l]},onLtr:function(){return[Wl,jl,$l]}},components:[],fetch:oE(n.getColors(),n.hasCustomColors()),columns:n.getColorCols(),presets:"color",onItemAction:a},t));return CU.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:i.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[r,s.asSpec()]}]),fieldBehaviours:fd([Wx("form-field-events",[Fs(JO,(function(t,n){s.getOpt(t).each((function(e){Xn(e.element,"background-color",n.event.color)})),Ds(t,MU,{name:e.name})})),Fs(QO,(function(e,t){CU.getField(e).each((function(n){em.setValue(n,t.event.value),bv.getCurrent(e).each(Kx.focus)}))})),Fs(eF,(function(e,t){CU.getField(e).each((function(t){bv.getCurrent(e).each(Kx.focus)}))}))])])})},nF=Nm({schema:[Eo("dom")],name:"label"}),rF=function(e){return Nm({name:e+"-edge",overrides:function(t){var n=t.model.manager.edgeActions[e];return n.fold((function(){return{}}),(function(e){return{events:As([Ps(Ea(),(function(t,n,r){return e(t,r)}),[t]),Ps(Pa(),(function(t,n,r){return e(t,r)}),[t]),Ps(Ra(),(function(t,n,r){r.mouseIsDown.get()&&e(t,r)}),[t])])}}))}})},iF=rF("top-left"),oF=rF("top"),aF=rF("top-right"),sF=rF("right"),cF=rF("bottom-right"),uF=rF("bottom"),lF=rF("bottom-left"),dF=rF("left"),fF=Pm({name:"thumb",defaults:x({dom:{styles:{position:"absolute"}}}),overrides:function(e){return{events:As([Is(Ea(),e,"spectrum"),Is(Ua(),e,"spectrum"),Is(Oa(),e,"spectrum"),Is(Pa(),e,"spectrum"),Is(Ra(),e,"spectrum"),Is(Ma(),e,"spectrum")])}}}),hF=Pm({schema:[So("mouseIsDown",(function(){return ia(!1)}))],name:"spectrum",overrides:function(e){var t=e.model,n=t.manager,r=function(t,r){return n.getValueFromEvent(r).map((function(r){return n.setValueFrom(t,e,r)}))};return{behaviours:fd([Ex.config({mode:"special",onLeft:function(t){return n.onLeft(t,e)},onRight:function(t){return n.onRight(t,e)},onUp:function(t){return n.onUp(t,e)},onDown:function(t){return n.onDown(t,e)}}),Kx.config({})]),events:As([Fs(Ea(),r),Fs(Ua(),r),Fs(Pa(),r),Fs(Ra(),(function(t,n){e.mouseIsDown.get()&&r(t,n)}))])}}}),pF=[nF,dF,sF,oF,uF,iF,aF,lF,cF,fF,hF],gF="slider.change.value",mF=x(gF),vF=function(e){return-1!==e.type.indexOf("touch")},bF=function(e){var t=e.event.raw;if(vF(t)){var n=t;return void 0!==n.touches&&1===n.touches.length?M.some(n.touches[0]).map((function(e){return lr(e.clientX,e.clientY)})):M.none()}var r=t;return void 0!==r.clientX?M.some(r).map((function(e){return lr(e.clientX,e.clientY)})):M.none()},yF="top",xF="right",_F="bottom",wF="left",DF=function(e){return e.model.minX},CF=function(e){return e.model.minY},kF=function(e){return e.model.minX-1},TF=function(e){return e.model.minY-1},SF=function(e){return e.model.maxX},AF=function(e){return e.model.maxY},EF=function(e){return e.model.maxX+1},UF=function(e){return e.model.maxY+1},OF=function(e,t,n){return t(e)-n(e)},FF=function(e){return OF(e,SF,DF)},PF=function(e){return OF(e,AF,CF)},RF=function(e){return FF(e)/2},NF=function(e){return PF(e)/2},MF=function(e){return e.stepSize},IF=function(e){return e.snapToGrid},BF=function(e){return e.snapStart},LF=function(e){return e.rounded},zF=function(e,t){return void 0!==e[t+"-edge"]},WF=function(e){return zF(e,wF)},jF=function(e){return zF(e,xF)},HF=function(e){return zF(e,yF)},VF=function(e){return zF(e,_F)},qF=function(e){return e.model.value.get()},$F=function(e){return{x:e}},GF=function(e){return{y:e}},XF=function(e,t){return{x:e,y:t}},YF=function(e,t){Ds(e,mF(),{value:t})},KF=function(e,t){YF(e,XF(kF(t),TF(t)))},ZF=function(e,t){YF(e,GF(TF(t)))},JF=function(e,t){YF(e,XF(RF(t),TF(t)))},QF=function(e,t){YF(e,XF(EF(t),TF(t)))},eP=function(e,t){YF(e,$F(EF(t)))},tP=function(e,t){YF(e,XF(EF(t),NF(t)))},nP=function(e,t){YF(e,XF(EF(t),UF(t)))},rP=function(e,t){YF(e,GF(UF(t)))},iP=function(e,t){YF(e,XF(RF(t),UF(t)))},oP=function(e,t){YF(e,XF(kF(t),UF(t)))},aP=function(e,t){YF(e,$F(kF(t)))},sP=function(e,t){YF(e,XF(kF(t),NF(t)))},cP=function(e,t,n,r){return e<t?e:e>n?n:e===t?t-1:Math.max(t,e-r)},uP=function(e,t,n,r){return e>n?e:e<t?t:e===n?n+1:Math.min(n,e+r)},lP=function(e,t,n){return Math.max(t,Math.min(n,e))},dP=function(e,t,n,r,i){return i.fold((function(){var i=e-t,o=Math.round(i/r)*r;return lP(t+o,t-1,n+1)}),(function(t){var i=(e-t)%r,o=Math.round(i/r),a=Math.floor((e-t)/r),s=Math.floor((n-t)/r),c=Math.min(s,a+o),u=t+c*r;return Math.max(t,u)}))},fP=function(e,t,n){return Math.min(n,Math.max(e,t))-t},hP=function(e){var t=e.min,n=e.max,r=e.range,i=e.value,o=e.step,a=e.snap,s=e.snapStart,c=e.rounded,u=e.hasMinEdge,l=e.hasMaxEdge,d=e.minBound,f=e.maxBound,h=e.screenRange,p=u?t-1:t,g=l?n+1:n;if(i<d)return p;if(i>f)return g;var m=fP(i,d,f),v=lP(m/h*r+t,p,g);return a&&v>=t&&v<=n?dP(v,t,n,o,s):c?Math.round(v):v},pP=function(e){var t=e.min,n=e.max,r=e.range,i=e.value,o=e.hasMinEdge,a=e.hasMaxEdge,s=e.maxBound,c=e.maxOffset,u=e.centerMinEdge,l=e.centerMaxEdge;return i<t?o?0:u:i>n?a?s:l:(i-t)/r*c},gP="top",mP="right",vP="bottom",bP="left",yP="width",xP="height",_P=function(e){return e.element.dom.getBoundingClientRect()},wP=function(e,t){return e[t]},DP=function(e){var t=_P(e);return wP(t,bP)},CP=function(e){var t=_P(e);return wP(t,mP)},kP=function(e){var t=_P(e);return wP(t,gP)},TP=function(e){var t=_P(e);return wP(t,vP)},SP=function(e){var t=_P(e);return wP(t,yP)},AP=function(e){var t=_P(e);return wP(t,xP)},EP=function(e,t,n){return(e+t)/2-n},UP=function(e,t){var n=_P(e),r=_P(t),i=wP(n,bP),o=wP(n,mP),a=wP(r,bP);return EP(i,o,a)},OP=function(e,t){var n=_P(e),r=_P(t),i=wP(n,gP),o=wP(n,vP),a=wP(r,gP);return EP(i,o,a)},FP=function(e,t){Ds(e,mF(),{value:t})},PP=function(e){return{x:e}},RP=function(e,t,n){var r={min:DF(t),max:SF(t),range:FF(t),value:n,step:MF(t),snap:IF(t),snapStart:BF(t),rounded:LF(t),hasMinEdge:WF(t),hasMaxEdge:jF(t),minBound:DP(e),maxBound:CP(e),screenRange:SP(e)};return hP(r)},NP=function(e,t,n){var r=RP(e,t,n),i=PP(r);return FP(e,i),r},MP=function(e,t){var n=DF(t);FP(e,PP(n))},IP=function(e,t){var n=SF(t);FP(e,PP(n))},BP=function(e,t,n){var r=e>0?uP:cP,i=r(qF(n).x,DF(n),SF(n),MF(n));return FP(t,PP(i)),M.some(i)},LP=function(e){return function(t,n){return BP(e,t,n).map(S)}},zP=function(e){var t=bF(e);return t.map((function(e){return e.left}))},WP=function(e,t,n,r,i){var o=0,a=SP(e),s=r.bind((function(t){return M.some(UP(t,e))})).getOr(o),c=i.bind((function(t){return M.some(UP(t,e))})).getOr(a),u={min:DF(t),max:SF(t),range:FF(t),value:n,hasMinEdge:WF(t),hasMaxEdge:jF(t),minBound:DP(e),minOffset:o,maxBound:CP(e),maxOffset:a,centerMinEdge:s,centerMaxEdge:c};return pP(u)},jP=function(e,t,n,r,i,o){var a=WP(t,o,n,r,i);return DP(t)-DP(e)+a},HP=function(e,t,n,r){var i=qF(n),o=jP(e,r.getSpectrum(e),i.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=vr(t.element)/2;Xn(t.element,"left",o-a+"px")},VP=LP(-1),qP=LP(1),$P=M.none,GP=M.none,XP={"top-left":M.none(),top:M.none(),"top-right":M.none(),right:M.some(eP),"bottom-right":M.none(),bottom:M.none(),"bottom-left":M.none(),left:M.some(aP)},YP=Object.freeze({__proto__:null,setValueFrom:NP,setToMin:MP,setToMax:IP,findValueOfOffset:RP,getValueFromEvent:zP,findPositionOfValue:jP,setPositionFromValue:HP,onLeft:VP,onRight:qP,onUp:$P,onDown:GP,edgeActions:XP}),KP=function(e,t){Ds(e,mF(),{value:t})},ZP=function(e){return{y:e}},JP=function(e,t,n){var r={min:CF(t),max:AF(t),range:PF(t),value:n,step:MF(t),snap:IF(t),snapStart:BF(t),rounded:LF(t),hasMinEdge:HF(t),hasMaxEdge:VF(t),minBound:kP(e),maxBound:TP(e),screenRange:AP(e)};return hP(r)},QP=function(e,t,n){var r=JP(e,t,n),i=ZP(r);return KP(e,i),r},eR=function(e,t){var n=CF(t);KP(e,ZP(n))},tR=function(e,t){var n=AF(t);KP(e,ZP(n))},nR=function(e,t,n){var r=e>0?uP:cP,i=r(qF(n).y,CF(n),AF(n),MF(n));return KP(t,ZP(i)),M.some(i)},rR=function(e){return function(t,n){return nR(e,t,n).map(S)}},iR=function(e){var t=bF(e);return t.map((function(e){return e.top}))},oR=function(e,t,n,r,i){var o=0,a=AP(e),s=r.bind((function(t){return M.some(OP(t,e))})).getOr(o),c=i.bind((function(t){return M.some(OP(t,e))})).getOr(a),u={min:CF(t),max:AF(t),range:PF(t),value:n,hasMinEdge:HF(t),hasMaxEdge:VF(t),minBound:kP(e),minOffset:o,maxBound:TP(e),maxOffset:a,centerMinEdge:s,centerMaxEdge:c};return pP(u)},aR=function(e,t,n,r,i,o){var a=oR(t,o,n,r,i);return kP(t)-kP(e)+a},sR=function(e,t,n,r){var i=qF(n),o=aR(e,r.getSpectrum(e),i.y,r.getTopEdge(e),r.getBottomEdge(e),n),a=ar(t.element)/2;Xn(t.element,"top",o-a+"px")},cR=M.none,uR=M.none,lR=rR(-1),dR=rR(1),fR={"top-left":M.none(),top:M.some(ZF),"top-right":M.none(),right:M.none(),"bottom-right":M.none(),bottom:M.some(rP),"bottom-left":M.none(),left:M.none()},hR=Object.freeze({__proto__:null,setValueFrom:QP,setToMin:eR,setToMax:tR,findValueOfOffset:JP,getValueFromEvent:iR,findPositionOfValue:aR,setPositionFromValue:sR,onLeft:cR,onRight:uR,onUp:lR,onDown:dR,edgeActions:fR}),pR=function(e,t){Ds(e,mF(),{value:t})},gR=function(e,t){return{x:e,y:t}},mR=function(e,t,n){var r=RP(e,t,n.left),i=JP(e,t,n.top),o=gR(r,i);return pR(e,o),o},vR=function(e,t,n,r){var i=e>0?uP:cP,o=t?qF(r).x:i(qF(r).x,DF(r),SF(r),MF(r)),a=t?i(qF(r).y,CF(r),AF(r),MF(r)):qF(r).y;return pR(n,gR(o,a)),M.some(o)},bR=function(e,t){return function(n,r){return vR(e,t,n,r).map(S)}},yR=function(e,t){var n=DF(t),r=CF(t);pR(e,gR(n,r))},xR=function(e,t){var n=SF(t),r=AF(t);pR(e,gR(n,r))},_R=function(e){return bF(e)},wR=function(e,t,n,r){var i=qF(n),o=jP(e,r.getSpectrum(e),i.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=aR(e,r.getSpectrum(e),i.y,r.getTopEdge(e),r.getBottomEdge(e),n),s=vr(t.element)/2,c=ar(t.element)/2;Xn(t.element,"left",o-s+"px"),Xn(t.element,"top",a-c+"px")},DR=bR(-1,!1),CR=bR(1,!1),kR=bR(-1,!0),TR=bR(1,!0),SR={"top-left":M.some(KF),top:M.some(JF),"top-right":M.some(QF),right:M.some(tP),"bottom-right":M.some(nP),bottom:M.some(iP),"bottom-left":M.some(oP),left:M.some(sP)},AR=Object.freeze({__proto__:null,setValueFrom:mR,setToMin:yR,setToMax:xR,getValueFromEvent:_R,setPositionFromValue:wR,onLeft:DR,onRight:CR,onUp:kR,onDown:TR,edgeActions:SR}),ER=[Xo("stepSize",1),Xo("onChange",m),Xo("onChoose",m),Xo("onInit",m),Xo("onDragStart",m),Xo("onDragEnd",m),Xo("snapToGrid",!1),Xo("rounded",!0),zo("snapStart"),Uo("model",Co("mode",{x:[Xo("minX",0),Xo("maxX",100),So("value",(function(e){return ia(e.mode.minX)})),Eo("getInitialValue"),dl("manager",YP)],y:[Xo("minY",0),Xo("maxY",100),So("value",(function(e){return ia(e.mode.minY)})),Eo("getInitialValue"),dl("manager",hR)],xy:[Xo("minX",0),Xo("maxX",100),Xo("minY",0),Xo("maxY",100),So("value",(function(e){return ia({x:e.mode.minX,y:e.mode.minY})})),Eo("getInitialValue"),dl("manager",AR)]})),tm("sliderBehaviours",[Ex,em]),So("mouseIsDown",(function(){return ia(!1)}))],UR=function(e,t,n,r){var i,o=function(t){return Ym(t,e,"thumb")},a=function(t){return Ym(t,e,"spectrum")},s=function(t){return Xm(t,e,"left-edge")},c=function(t){return Xm(t,e,"right-edge")},u=function(t){return Xm(t,e,"top-edge")},l=function(t){return Xm(t,e,"bottom-edge")},d=e.model,f=d.manager,h=function(t,n){f.setPositionFromValue(t,n,e,{getLeftEdge:s,getRightEdge:c,getTopEdge:u,getBottomEdge:l,getSpectrum:a})},p=function(e,t){d.value.set(t);var n=o(e);h(e,n)},g=function(t,n){p(t,n);var r=o(t);return e.onChange(t,r,n),M.some(!0)},m=function(t){f.setToMin(t,e)},v=function(t){f.setToMax(t,e)},b=function(t){var n=function(){Xm(t,e,"thumb").each((function(n){var r=d.value.get();e.onChoose(t,n,r)}))},r=e.mouseIsDown.get();e.mouseIsDown.set(!1),r&&n()},y=function(t,n){n.stop(),e.mouseIsDown.set(!0),e.onDragStart(t,o(t))},x=function(t,n){n.stop(),e.onDragEnd(t,o(t)),b(t)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rm(e.sliderBehaviours,[Ex.config({mode:"special",focusIn:function(t){return Xm(t,e,"spectrum").map(Ex.focusIn).map(S)}}),em.config({store:{mode:"manual",getValue:function(e){return d.value.get()}}}),bd.config({channels:(i={},i[_g()]={onReceive:b},i)})]),events:As([Fs(mF(),(function(e,t){g(e,t.event.value)})),js((function(t,n){var r=d.getInitialValue();d.value.set(r);var i=o(t);h(t,i);var s=a(t);e.onInit(t,i,s,d.value.get())})),Fs(Ea(),y),Fs(Oa(),x),Fs(Pa(),y),Fs(Ma(),x)]),apis:{resetToMin:m,resetToMax:v,setValue:p,refresh:h},domModification:{styles:{position:"relative"}}}},OR=hv({name:"Slider",configFields:ER,partFields:pF,factory:UR,apis:{setValue:function(e,t,n){e.setValue(t,n)},resetToMin:function(e,t){e.resetToMin(t)},resetToMax:function(e,t){e.resetToMax(t)},refresh:function(e,t){e.refresh(t)}}}),FR=ic("rgb-hex-update"),PR=ic("slider-update"),RR=ic("palette-update"),NR=function(e,t){var n=OR.parts.spectrum({dom:{tag:"div",classes:[t("hue-slider-spectrum")],attributes:{role:"presentation"}}}),r=OR.parts.thumb({dom:{tag:"div",classes:[t("hue-slider-thumb")],attributes:{role:"presentation"}}});return OR.sketch({dom:{tag:"div",classes:[t("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:x({y:0})},components:[n,r],sliderBehaviours:fd([Kx.config({})]),onChange:function(e,t,n){Ds(e,PR,{value:n})}})},MR="form",IR=[tm("formBehaviours",[em])],BR=function(e){return"<alloy.field."+e+">"},LR=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Hm(MR,BR(t),n)};return{field:t,record:x(e)}}(),n=e(t),r=t.record(),i=$(r,(function(e){return Pm({name:e,pname:BR(e)})}));return av(MR,IR,i,WR,n)},zR=function(e,t){return e.fold((function(){return ri.error(t)}),ri.value)},WR=function(e,t){return{uid:e.uid,dom:e.dom,components:t,behaviours:rm(e.formBehaviours,[em.config({store:{mode:"manual",getValue:function(t){var n=Zm(t,e);return be(n,(function(e,t){return e().bind((function(e){var n=bv.getCurrent(e);return zR(n,new Error("Cannot find a current component to extract the value from for form part '"+t+"': "+Qs(e.element)))})).map(em.getValue)}))},setValue:function(t,n){ve(n,(function(n,r){Xm(t,e,r).each((function(e){bv.getCurrent(e).each((function(e){em.setValue(e,n)}))}))}))}}})]),apis:{getField:function(t,n){return Xm(t,e,n).bind(bv.getCurrent)}}}},jR={getField:Dc((function(e,t,n){return e.getField(t,n)})),sketch:LR},HR=ic("valid-input"),VR=ic("invalid-input"),qR=ic("validating-input"),$R="colorcustom.rgb.",GR=function(e,t,n,r){var i=function(n,r){return _O.config({invalidClass:t("invalid"),notify:{onValidate:function(e){Ds(e,qR,{type:n})},onValid:function(e){Ds(e,HR,{type:n,value:em.getValue(e)})},onInvalid:function(e){Ds(e,VR,{type:n,value:em.getValue(e)})}},validator:{validate:function(t){var n=em.getValue(t),i=r(n)?ri.value(!0):ri.error(e("aria.input.invalid"));return uO.pure(i)},validateOnLoad:!1}})},o=function(n,r,o,a,s){var c=e($R+"range"),u=CU.parts.label({dom:{tag:"label",innerHtml:o,attributes:{"aria-label":a}}}),l=CU.parts.field({data:s,factory:ZU,inputAttributes:E({type:"text"},"hex"===r?{"aria-live":"polite"}:{}),inputClasses:[t("textfield")],inputBehaviours:fd([i(r,n),AU.config({})]),onSetValue:function(e){if(_O.isInvalid(e)){var t=_O.run(e);t.get(m)}}}),d=[u,l],f="hex"!==r?[CU.parts["aria-descriptor"]({text:c})]:[],h=d.concat(f);return{dom:{tag:"div",attributes:{role:"presentation"}},components:h}},a=function(e,t){var n=lA(t);return jR.getField(e,"hex").each((function(t){Kx.isFocused(t)||em.setValue(e,{hex:n.value})})),n},s=function(e,t){var n=t.red,r=t.green,i=t.blue;em.setValue(e,{red:n,green:r,blue:i})},c=Sw({dom:{tag:"div",classes:[t("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),u=function(e,t){c.getOpt(e).each((function(e){Xn(e.element,"background-color","#"+t.value)}))},l=function(){var i={red:ia(M.some(255)),green:ia(M.some(255)),blue:ia(M.some(255)),hex:ia(M.some("ffffff"))},l=function(e,t){var n=yA(t);s(e,n),p(n)},d=function(e){return i[e].get()},f=function(e,t){i[e].set(t)},h=function(){return d("red").bind((function(e){return d("green").bind((function(t){return d("blue").map((function(n){return mA(e,t,n,1)}))}))}))},p=function(e){var t=e.red,n=e.green,r=e.blue;f("red",M.some(t)),f("green",M.some(n)),f("blue",M.some(r))},g=function(e,t){var n=t.event;"hex"!==n.type?f(n.type,M.none()):r(e)},m=function(e,t){n(e);var r=tA(t);f("hex",M.some(t));var i=yA(r);s(e,i),p(i),Ds(e,FR,{hex:r}),u(e,r)},v=function(e,t,n){var r=parseInt(n,10);f(t,M.some(r)),h().each((function(t){var n=a(e,t);Ds(e,FR,{hex:n}),u(e,n)}))},b=function(e){return"hex"===e.type},y=function(e,t){var n=t.event;b(n)?m(e,n.value):v(e,n.type,n.value)},x=function(t){return{label:e($R+t+".label"),description:e($R+t+".description")}},_=x("red"),w=x("green"),D=x("blue"),C=x("hex");return _i(jR.sketch((function(n){return{dom:{tag:"form",classes:[t("rgb-form")],attributes:{"aria-label":e("aria.color.picker")}},components:[n.field("red",CU.sketch(o(vA,"red",_.label,_.description,255))),n.field("green",CU.sketch(o(vA,"green",w.label,w.description,255))),n.field("blue",CU.sketch(o(vA,"blue",D.label,D.description,255))),n.field("hex",CU.sketch(o(iA,"hex",C.label,C.description,"ffffff"))),c.asSpec()],formBehaviours:fd([_O.config({invalidClass:t("form-invalid")}),Wx("rgb-form-events",[Fs(HR,y),Fs(VR,g),Fs(qR,g)])])}})),{apis:{updateHex:function(e,t){em.setValue(e,{hex:t.value}),l(e,t),u(e,t)}}})},d=fv({factory:l,name:"RgbForm",configFields:[],apis:{updateHex:function(e,t,n){e.updateHex(t,n)}},extraApis:{}});return d},XR=function(e,t){var n=OR.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[t("sv-palette-spectrum")]}}),r=OR.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette-thumb")],innerHtml:"<div class="+t("sv-palette-inner-thumb")+' role="presentation"></div>'}}),i=function(e,t){var n=e.width,r=e.height,i=e.getContext("2d");if(null!==i){i.fillStyle=t,i.fillRect(0,0,n,r);var o=i.createLinearGradient(0,0,n,0);o.addColorStop(0,"rgba(255,255,255,1)"),o.addColorStop(1,"rgba(255,255,255,0)"),i.fillStyle=o,i.fillRect(0,0,n,r);var a=i.createLinearGradient(0,0,0,r);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),i.fillStyle=a,i.fillRect(0,0,n,r)}},o=function(e,t){var n=e.components()[0].element.dom,r=UA(t,100,100),o=bA(r);i(n,wA(o))},a=function(e,t){var n=OA(yA(t));OR.setValue(e,{x:n.saturation,y:100-n.value})},s=function(e){var o=x({x:0,y:0}),a=function(e,t,n){Ds(e,RR,{value:n})},s=function(e,t,n,r){i(n.element.dom,wA(DA))},c=fd([bv.config({find:M.some}),Kx.config({})]);return OR.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette")]},model:{mode:"xy",getInitialValue:o},rounded:!1,components:[n,r],onChange:a,onInit:s,sliderBehaviours:c})},c=fv({factory:s,name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:function(e,t,n){o(t,n)},setThumb:function(e,t,n){a(t,n)}},extraApis:{}});return c},YR=function(e,t){var n=function(n){var r=GR(e,t,n.onValidHex,n.onInvalidHex),i=XR(e,t),o=function(e){return(100-e)/100*360},a=function(e){return 100-e/360*100},s={paletteRgba:ia(DA),paletteHue:ia(0)},c=Sw(NR(e,t)),u=Sw(i.sketch({})),l=Sw(r.sketch({})),d=function(e,t,n){u.getOpt(e).each((function(e){i.setHue(e,n)}))},f=function(e,t){l.getOpt(e).each((function(e){r.updateHex(e,t)}))},h=function(e,t,n){c.getOpt(e).each((function(e){OR.setValue(e,{y:a(n)})}))},p=function(e,t){u.getOpt(e).each((function(e){i.setThumb(e,t)}))},g=function(e,t){var n=yA(e);s.paletteRgba.set(n),s.paletteHue.set(t)},m=function(e,t,n,r){g(t,n),G(r,(function(r){r(e,t,n)}))},v=function(){var e=[f];return function(t,n){var r=n.event.value,i=s.paletteHue.get(),o=UA(i,r.x,100-r.y),a=PA(o);m(t,a,i,e)}},b=function(){var e=[d,f];return function(t,n){var r=o(n.event.value.y),i=s.paletteRgba.get(),a=OA(i),c=UA(r,a.saturation,a.value),u=PA(c);m(t,u,r,e)}},y=function(){var e=[d,h,p];return function(t,n){var r=n.event.hex,i=FA(r);m(t,r,i.hue,e)}};return{uid:n.uid,dom:n.dom,components:[u.asSpec(),c.asSpec(),l.asSpec()],behaviours:fd([Wx("colour-picker-events",[Fs(FR,y()),Fs(RR,v()),Fs(PR,b())]),bv.config({find:function(e){return l.getOpt(e)}}),Ex.config({mode:"acyclic"})])}},r=fv({name:"ColourPicker",configFields:[Eo("dom"),Xo("onValidHex",m),Xo("onInvalidHex",m)],factory:n});return r},KR=function(){return bv.config({find:M.some})},ZR=function(e){return bv.config({find:e.getOpt})},JR=function(e){return bv.config({find:function(t){return wn(t.element,e).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))}})},QR={self:KR,memento:ZR,childAt:JR},eN={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},tN=function(e){return eN[e]},nN=function(e){return tN(e)},rN=function(e){var t=function(e){return"tox-"+e},n=YR(nN,t),r=function(e){Ds(e,LU,{name:"hex-valid",value:!0})},i=function(e){Ds(e,LU,{name:"hex-valid",value:!1})},o=Sw(n.sketch({dom:{tag:"div",classes:[t("color-picker-container")],attributes:{role:"presentation"}},onValidHex:r,onInvalidHex:i}));return{dom:{tag:"div"},components:[o.asSpec()],behaviours:fd([em.config({store:{mode:"manual",getValue:function(e){var t=o.get(e),n=bv.getCurrent(t),r=n.bind((function(e){var t=em.getValue(e);return t.hex}));return r.map((function(e){return"#"+e})).getOr("")},setValue:function(e,t){var n=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,r=n.exec(t),i=o.get(e),a=bv.getCurrent(i);a.fold((function(){console.log("Can not find form")}),(function(e){em.setValue(e,{hex:M.from(r[1]).getOr("")}),jR.getField(e,"hex").each((function(e){ws(e,ja())}))}))}}}),QR.self()])}},iN=tinymce.util.Tools.resolve("tinymce.Resource"),oN=function(e){return Se(e,"init")},aN=function(e){var t=rf(),n=Sw({dom:{tag:e.tag}}),r=rf();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:fd([Wx("custom-editor-events",[js((function(i){n.getOpt(i).each((function(n){(oN(e)?e.init(n.element.dom):iN.load(e.scriptId,e.scriptUrl).then((function(t){return t(n.element.dom,e.settings)}))).then((function(e){r.on((function(t){e.setValue(t)})),r.clear(),t.set(e)}))}))}))]),em.config({store:{mode:"manual",getValue:function(){return t.get().fold((function(){return r.get().getOr("")}),(function(e){return e.getValue()}))},setValue:function(e,n){t.get().fold((function(){r.set(n)}),(function(e){return e.setValue(n)}))}}}),QR.self()]),components:[n.asSpec()]}},sN=tinymce.util.Tools.resolve("tinymce.util.Tools"),cN=Qi([Xo("preprocess",_),Xo("postprocess",_)]),uN=function(e,t){var n=wo("RepresentingConfigs.memento processors",cN,t);return em.config({store:{mode:"manual",getValue:function(t){var r=e.get(t),i=em.getValue(r);return n.postprocess(i)},setValue:function(t,r){var i=n.preprocess(r),o=e.get(t);em.setValue(o,i)}}})},lN=function(e,t,n){return em.config(_i({store:{mode:"manual",getValue:t,setValue:n}},e.map((function(e){return{store:{initialValue:e}}})).getOr({})))},dN=function(e,t,n){return lN(e,(function(e){return t(e.element)}),(function(e,t){return n(e.element,t)}))},fN=function(e){return dN(e,fu,hu)},hN=function(e){return dN(e,Gs,Xs)},pN=function(e){return em.config({store:{mode:"memory",initialValue:e}})},gN={memento:uN,withElement:dN,withComp:lN,domValue:fN,domHtml:hN,memory:pN},mN="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",vN=function(e,t){var n=sN.explode(t.getSetting("images_file_types",mN,"string")),r=function(e){return H(n,(function(t){return Ve(e.name.toLowerCase(),"."+t.toLowerCase())}))};return K(he(e),r)},bN=function(e,t){var n=function(e,t){t.stop()},r=function(e){return function(t,n){G(e,(function(e){e(t,n)}))}},i=function(e,t){if(!Iv.isDisabled(e)){var n=t.event.raw;a(e,n.dataTransfer.files)}},o=function(e,t){var n=t.event.raw.target;a(e,n.files)},a=function(n,r){em.setValue(n,vN(r,t)),Ds(n,MU,{name:e.name})},s=Sw({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:fd([Wx("input-file-events",[Ls(Va()),Ls(rs())])])}),c=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:fd([gN.memory([]),QR.self(),Iv.config({}),g_.config({toggleClass:"dragenter",toggleOnExecute:!1}),Wx("dropzone-events",[Fs("dragenter",r([n,g_.toggle])),Fs("dragleave",r([n,g_.toggle])),Fs("dragover",n),Fs("drop",r([n,i])),Fs(Ha(),o)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:t.translate("Drop an image here")}},Dw.sketch({dom:{tag:"button",innerHtml:t.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[s.asSpec()],action:function(e){var t=s.get(e);t.element.dom.click()},buttonBehaviours:fd([AU.config({}),wS.button(t.isDisabled),vS()])})]}]}},u=e.label.map((function(e){return NU(e,t)})),l=CU.parts.field({factory:{sketch:c}});return UU(u,l,["tox-form__group--stretched"],[])},yN=function(e,t){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+e.columns+"col"]},components:$(e.items,t.interpreter)}},xN=ic("alloy-fake-before-tabstop"),_N=ic("alloy-fake-after-tabstop"),wN=function(e){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:e},behaviours:fd([Kx.config({ignore:!0}),AU.config({})])}},DN=function(e){return{dom:{tag:"div",classes:["tox-navobj"]},components:[wN([xN]),e,wN([_N])],behaviours:fd([QR.childAt(1)])}},CN=function(e,t){Ds(e,za(),{raw:{which:9,shiftKey:t}})},kN=function(e,t){var n=t.element;cu(n,xN)?CN(e,!0):cu(n,_N)&&CN(e,!1)},TN=function(e){return qE(e,["."+xN,"."+_N].join(","),T)},SN=!(tn().browser.isIE()||tn().browser.isEdge()),AN=function(e){var t=ia("");return{getValue:function(e){return t.get()},setValue:function(n,r){if(e)zn(n.element,"srcdoc",r);else{zn(n.element,"src","javascript:''");var i=n.element.dom.contentWindow.document;i.open(),i.write(r),i.close()}t.set(r)}}},EN=function(e,t){var n=SN&&e.sandboxed,r=E(E({},e.label.map((function(e){return{title:e}})).getOr({})),n?{sandbox:"allow-scripts allow-same-origin"}:{}),i=AN(n),o=e.label.map((function(e){return NU(e,t)})),a=function(e){return DN({uid:e.uid,dom:{tag:"iframe",attributes:r},behaviours:fd([AU.config({}),Kx.config({}),gN.withComp(M.none(),i.getValue,i.setValue)])})},s=CU.parts.field({factory:{sketch:a}});return UU(o,s,["tox-form__group--stretched"],[])},UN=function(e,t){return PN(document.createElement("canvas"),e,t)},ON=function(e){var t=UN(e.width,e.height),n=FN(t);return n.drawImage(e,0,0),t},FN=function(e){return e.getContext("2d")},PN=function(e,t,n){return e.width=t,e.height=n,e},RN=function(e){return e.naturalWidth||e.width},NN=function(e){return e.naturalHeight||e.height},MN=function(e){return new tO((function(t,n){var r=URL.createObjectURL(e),i=new Image,o=function(){i.removeEventListener("load",a),i.removeEventListener("error",s)},a=function(){o(),t(i)},s=function(){o(),n("Unable to load data of type "+e.type+": "+r)};i.addEventListener("load",a),i.addEventListener("error",s),i.src=r,i.complete&&setTimeout(a,0)}))},IN=function(e){var t=e.split(","),n=/data:([^;]+)/.exec(t[0]);if(!n)return M.none();for(var r=n[1],i=t[1],o=1024,a=atob(i),s=a.length,c=Math.ceil(s/o),u=new Array(c),l=0;l<c;++l){for(var d=l*o,f=Math.min(d+o,s),h=new Array(f-d),p=d,g=0;p<f;++g,++p)h[g]=a[p].charCodeAt(0);u[l]=new Uint8Array(h)}return M.some(new Blob(u,{type:r}))},BN=function(e){return new tO((function(t,n){IN(e).fold((function(){n("uri is not base64: "+e)}),t)}))},LN=function(e,t,n){return t=t||"image/png",h(HTMLCanvasElement.prototype.toBlob)?new tO((function(r,i){e.toBlob((function(e){e?r(e):i()}),t,n)})):BN(e.toDataURL(t,n))},zN=function(e,t,n){return t=t||"image/png",e.toDataURL(t,n)},WN=function(e){return MN(e).then((function(e){HN(e);var t=UN(RN(e),NN(e)),n=FN(t);return n.drawImage(e,0,0),t}))},jN=function(e){return new tO((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},HN=function(e){URL.revokeObjectURL(e.src)},VN=function(e,t,n){var r=t.type,i=x(r),o=function(){return tO.resolve(t)},a=x(n),s=function(){return n.split(",")[1]},c=function(t,n){return e.then((function(e){return LN(e,t,n)}))},u=function(t,n){return e.then((function(e){return zN(e,t,n)}))},l=function(e,t){return u(e,t).then((function(e){return e.split(",")[1]}))},d=function(){return e.then(ON)};return{getType:i,toBlob:o,toDataURL:a,toBase64:s,toAdjustedBlob:c,toAdjustedDataURL:u,toAdjustedBase64:l,toCanvas:d}},qN=function(e){return jN(e).then((function(t){return VN(WN(e),e,t)}))},$N=function(e,t){return LN(e,t).then((function(t){return VN(tO.resolve(e),t,e.toDataURL())}))},GN=function(e){return qN(e)},XN=function(e,t,n){var r="string"===typeof e?parseFloat(e):e;return r>n?r=n:r<t&&(r=t),r},YN=function(){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]},KN=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],ZN=function(e,t){for(var n,r=[],i=new Array(25),o=0;o<5;o++){for(var a=0;a<5;a++)r[a]=t[a+5*o];for(a=0;a<5;a++){n=0;for(var s=0;s<5;s++)n+=e[a+5*s]*r[s];i[a+5*o]=n}}return i},JN=function(e,t){var n;return t=XN(t,-1,1),t*=100,t<0?n=127+t/100*127:(n=t%1,n=0===n?KN[t]:KN[Math.floor(t)]*(1-n)+KN[Math.floor(t)+1]*n,n=127*n+127),ZN(e,[n/127,0,0,0,.5*(127-n),0,n/127,0,0,.5*(127-n),0,0,n/127,0,.5*(127-n),0,0,0,1,0,0,0,0,0,1])},QN=function(e,t){return t=XN(255*t,-255,255),ZN(e,[1,0,0,0,t,0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1])},eM=function(e,t,n,r){return t=XN(t,0,2),n=XN(n,0,2),r=XN(r,0,2),ZN(e,[t,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0,0,0,0,0,1])},tM=function(e,t){return e.toCanvas().then((function(n){return nM(n,e.getType(),t)}))},nM=function(e,t,n){var r=FN(e),i=function(e,t){for(var n,r,i,o,a=e.data,s=t[0],c=t[1],u=t[2],l=t[3],d=t[4],f=t[5],h=t[6],p=t[7],g=t[8],m=t[9],v=t[10],b=t[11],y=t[12],x=t[13],_=t[14],w=t[15],D=t[16],C=t[17],k=t[18],T=t[19],S=0;S<a.length;S+=4)n=a[S],r=a[S+1],i=a[S+2],o=a[S+3],a[S]=n*s+r*c+i*u+o*l+d,a[S+1]=n*f+r*h+i*p+o*g+m,a[S+2]=n*v+r*b+i*y+o*x+_,a[S+3]=n*w+r*D+i*C+o*k+T;return e},o=i(r.getImageData(0,0,e.width,e.height),n);return r.putImageData(o,0,0),$N(e,t)},rM=function(e,t){return e.toCanvas().then((function(n){return iM(n,e.getType(),t)}))},iM=function(e,t,n){var r=FN(e),i=function(e,t,n){for(var r=function(e,t,n){return e>n?e=n:e<t&&(e=t),e},i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),a=e.data,s=t.data,c=e.width,u=e.height,l=0;l<u;l++)for(var d=0;d<c;d++){for(var f=0,h=0,p=0,g=0;g<i;g++)for(var m=0;m<i;m++){var v=r(d+m-o,0,c-1),b=r(l+g-o,0,u-1),y=4*(b*c+v),x=n[g*i+m];f+=a[y]*x,h+=a[y+1]*x,p+=a[y+2]*x}var _=4*(l*c+d);s[_]=r(f,0,255),s[_+1]=r(h,0,255),s[_+2]=r(p,0,255)}return t},o=r.getImageData(0,0,e.width,e.height),a=r.getImageData(0,0,e.width,e.height);return a=i(o,a,n),r.putImageData(a,0,0),$N(e,t)},oM=function(e){var t=function(t,n,r){for(var i=FN(t),o=new Array(256),a=function(e,t){for(var n=e.data,r=0;r<n.length;r+=4)n[r]=t[n[r]],n[r+1]=t[n[r+1]],n[r+2]=t[n[r+2]];return e},s=0;s<o.length;s++)o[s]=e(s,r);var c=a(i.getImageData(0,0,t.width,t.height),o);return i.putImageData(c,0,0),$N(t,n)};return function(e,n){return e.toCanvas().then((function(r){return t(r,e.getType(),n)}))}},aM=function(e){return function(t,n){return tM(t,e(YN(),n))}},sM=function(e){return function(t){return tM(t,e)}},cM=function(e){return function(t){return rM(t,e)}},uM=sM([-1,0,0,0,255,0,-1,0,0,255,0,0,-1,0,255,0,0,0,1,0,0,0,0,0,1]),lM=aM(QN),dM=aM(JN),fM=function(e,t,n,r){return tM(e,eM(YN(),t,n,r))},hM=cM([0,-1,0,-1,5,-1,0,-1,0]),pM=oM((function(e,t){return 255*Math.pow(e/255,1-t)})),gM=function(e,t,n){var r=RN(e),i=NN(e),o=t/r,a=n/i,s=!1;(o<.5||o>2)&&(o=o<.5?.5:2,s=!0),(a<.5||a>2)&&(a=a<.5?.5:2,s=!0);var c=mM(e,o,a);return s?c.then((function(e){return gM(e,t,n)})):c},mM=function(e,t,n){return new tO((function(r){var i=RN(e),o=NN(e),a=Math.floor(i*t),s=Math.floor(o*n),c=UN(a,s),u=FN(c);u.drawImage(e,0,0,i,o,0,0,a,s),r(c)}))},vM=function(e,t){void 0===t&&(t=2);var n=Math.pow(10,t),r=Math.round(e*n);return Math.ceil(r/n)},bM=function(e,t){return e.toCanvas().then((function(n){return yM(n,e.getType(),t)}))},yM=function(e,t,n){var r=n<0?360+n:n,i=r*Math.PI/180,o=e.width,a=e.height,s=Math.sin(i),c=Math.cos(i),u=vM(Math.abs(o*c)+Math.abs(a*s)),l=vM(Math.abs(o*s)+Math.abs(a*c)),d=UN(u,l),f=FN(d);return f.translate(u/2,l/2),f.rotate(i),f.drawImage(e,-o/2,-a/2),$N(d,t)},xM=function(e,t){return e.toCanvas().then((function(n){return _M(n,e.getType(),t)}))},_M=function(e,t,n){var r=UN(e.width,e.height),i=FN(r);return"v"===n?(i.scale(1,-1),i.drawImage(e,0,-r.height)):(i.scale(-1,1),i.drawImage(e,-r.width,0)),$N(r,t)},wM=function(e,t,n,r,i){return e.toCanvas().then((function(o){return DM(o,e.getType(),t,n,r,i)}))},DM=function(e,t,n,r,i,o){var a=UN(i,o),s=FN(a);return s.drawImage(e,-n,-r),$N(a,t)},CM=function(e,t,n){return e.toCanvas().then((function(r){return gM(r,t,n).then((function(t){return $N(t,e.getType())}))}))},kM=function(e){return uM(e)},TM=function(e){return hM(e)},SM=function(e,t){return pM(e,t)},AM=function(e,t,n,r){return fM(e,t,n,r)},EM=function(e,t){return lM(e,t)},UM=function(e,t){return dM(e,t)},OM=function(e,t){return xM(e,t)},FM=function(e,t,n,r,i){return wM(e,t,n,r,i)},PM=function(e,t,n){return CM(e,t,n)},RM=function(e,t){return bM(e,t)},NM=function(e,t,n){return qD(e,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:n},t)},MM=function(e,t){return NM(e,t,[])},IM=function(e,t){return NM(e,t,[Lx.config({})])},BM=function(e,t,n){return{dom:{tag:"span",innerHtml:n.translate(e),classes:[t+"__select-label"]},behaviours:fd([Lx.config({})])}},LM=ic("toolbar.button.execute"),zM=function(e){return qs((function(t,n){DS(e,t)((function(n){Ds(t,LM,{buttonApi:n}),e.onAction(n)}))}))},WM=(UO={},UO[ts()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],UO),jM=ic("update-menu-text"),HM=ic("update-menu-icon"),VM=function(e,t,n){var r=ia(m),i=e.text.map((function(e){return Sw(BM(e,t,n.providers))})),o=e.icon.map((function(e){return Sw(IM(e,n.providers.icons))})),a=function(e,t){var n=em.getValue(e);return Kx.focus(n),Ds(n,"keydown",{raw:t.event.raw}),$O.close(n),M.some(!0)},s=e.role.fold((function(){return{}}),(function(e){return{role:e}})),c=e.tooltip.fold((function(){return{}}),(function(e){var t=n.providers.translate(e);return{title:t,"aria-label":t}})),u=qD("chevron-down",{tag:"div",classes:[t+"__select-chevron"]},n.providers.icons),l=Sw($O.sketch(E(E(E({},e.uid?{uid:e.uid}:{}),s),{dom:{tag:"button",classes:[t,t+"--select"].concat($(e.classes,(function(e){return t+"--"+e}))),attributes:E({},c)},components:AS([o.map((function(e){return e.asSpec()})),i.map((function(e){return e.asSpec()})),M.some(u)]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:fd(O(O([],e.dropdownBehaviours,!0),[wS.button((function(){return e.disabled||n.providers.isDisabled()})),vS(),KO.config({}),Lx.config({}),Wx("dropdown-events",[CS(e,r),kS(e,r)]),Wx("menubutton-update-display-text",[Fs(jM,(function(e,t){i.bind((function(t){return t.getOpt(e)})).each((function(e){Lx.set(e,[Du(n.providers.translate(t.event.text))])}))})),Fs(HM,(function(e,t){o.bind((function(t){return t.getOpt(e)})).each((function(e){Lx.set(e,[IM(t.event.icon,n.providers.icons)])}))}))])],!1)),eventOrder:_i(WM,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:fd([Ex.config({mode:"special",onLeft:a,onRight:a})]),lazySink:n.getSink,toggleClass:t+"--active",parts:{menu:kk(!1,e.columns,e.presets)},fetch:function(t){return uO.nu(D(e.fetch,t))}})));return l.asSpec()},qM=function(e){return o(e)},$M=function(e){return"separator"===e.type},GM=function(e){return Se(e,"getSubmenuItems")},XM={type:"separator"},YM=function(e,t){var n=J(e,(function(e,n){return qM(n)?""===n?e:"|"===n?e.length>0&&!$M(e[e.length-1])?e.concat([XM]):e:Se(t,n.toLowerCase())?e.concat([t[n.toLowerCase()]]):e:e.concat([n])}),[]);return n.length>0&&$M(n[n.length-1])&&n.pop(),n},KM=function(e,t){var n=e.getSubmenuItems(),r=QM(n,t),i=_i(r.menus,ha(e.value,r.items)),o=_i(r.expansions,ha(e.value,e.value));return{item:e,menus:i,expansions:o}},ZM=function(e,t){return GM(e)?KM(e,t):{item:e,menus:{},expansions:{}}},JM=function(e){if($M(e))return e;var t=Te(e,"value").getOrThunk((function(){return ic("generated-menu-item")}));return _i({value:t},e)},QM=function(e,t){var n=YM(o(e)?e.split(" "):e,t);return Z(n,(function(e,n){var r=JM(n),i=ZM(r,t);return{menus:_i(e.menus,i.menus),items:[i.item].concat(e.items),expansions:_i(e.expansions,i.expansions)}}),{menus:{},expansions:{},items:[]})},eI=function(e,t,n,r){var i=ic("primary-menu"),o=QM(e,n.shared.providers.menuItems());if(0===o.items.length)return M.none();var a=zE(i,o.items,t,n,r),s=be(o.menus,(function(e,r){return zE(r,e,t,n,!1)})),c=_i(s,ha(i,a));return M.from(J_.tieredData(i,c,o.expansions))},tI=function(e){return{isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)},setActive:function(t){var n=e.element;t?(ou(n,"tox-tbtn--enabled"),zn(n,"aria-pressed",!0)):(su(n,"tox-tbtn--enabled"),qn(n,"aria-pressed"))},isActive:function(){return cu(e.element,"tox-tbtn--enabled")}}},nI=function(e,t,n,r){return VM({text:e.text,icon:e.icon,tooltip:e.tooltip,role:r,fetch:function(t,r){e.fetch((function(e){r(eI(e,JC.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:e.onSetup,getApi:tI,columns:1,presets:"normal",classes:[],dropdownBehaviours:[AU.config({})]},t,n.shared)},rI=function(e,t,n){var r=function(e){return function(r){var i=!r.isActive();r.setActive(i),e.storage.set(i),n.shared.getSink().each((function(n){t().getOpt(n).each((function(t){wd(t.element),Ds(t,LU,{name:e.name,value:e.storage.get()})}))}))}},i=function(e){return function(t){t.setActive(e.storage.get())}};return function(t){t($(e,(function(e){var t=e.text.fold((function(){return{}}),(function(e){return{text:e}}));return E(E({type:e.type,active:!1},t),{onAction:r(e),onSetup:i(e)})})))}},iI=function(e,t,n,r,i,o){void 0===n&&(n=[]);var a=t.fold((function(){return{}}),(function(e){return{action:e}})),s=E({buttonBehaviours:fd([wS.button((function(){return e.disabled||o.isDisabled()})),vS(),AU.config({}),Wx("button press",[Os("click"),Os("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),c=_i(s,{dom:r});return _i(c,{components:i})},oI=function(e,t,n,r){void 0===r&&(r=[]);var i=e.tooltip.map((function(e){return{"aria-label":n.translate(e),title:n.translate(e)}})).getOr({}),o={tag:"button",classes:["tox-tbtn"],attributes:i},a=e.icon.map((function(e){return MM(e,n.icons)})),s=AS([a]);return iI(e,t,r,o,s,n)},aI=function(e,t,n,r){void 0===r&&(r=[]);var i=oI(e,M.some(t),n,r);return Dw.sketch(i)},sI=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=n.translate(e.text),a=e.icon?e.icon.map((function(e){return MM(e,n.icons)})):M.none(),s=a.isSome()?AS([a]):[],c=a.isSome()?{}:{innerHtml:o},u=O(O(O(O([],e.primary||e.borderless?["tox-button"]:["tox-button","tox-button--secondary"],!0),a.isSome()?["tox-button--icon"]:[],!0),e.borderless?["tox-button--naked"]:[],!0),i,!0),l=E(E({tag:"button",classes:u},c),{attributes:{title:o}});return iI(e,t,r,l,s,n)},cI=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=sI(e,M.some(t),n,r,i);return Dw.sketch(o)},uI=function(e,t){return function(n){"custom"===t?Ds(n,LU,{name:e,value:{}}):"submit"===t?ws(n,zU):"cancel"===t?ws(n,BU):console.error("Unknown button type: ",t)}},lI=function(e,t){return"menu"===t},dI=function(e,t){return"custom"===t||"cancel"===t||"submit"===t},fI=function(e,t,n){if(lI(e,t)){var r=function(){return a},i=e,o=E(E({},e),{onSetup:function(t){return t.setDisabled(e.disabled),m},fetch:rI(i.items,r,n)}),a=Sw(nI(o,"tox-tbtn",n,M.none()));return a.asSpec()}if(dI(e,t)){var s=uI(e.name,t),c=E(E({},e),{borderless:!1});return cI(c,s,n.shared.providers,[])}console.error("Unknown footer button type: ",t)},hI=function(e,t){var n=uI(e.name,"custom");return OU(M.none(),CU.parts.field(E({factory:Dw},sI(e,M.some(n),t,[gN.memory(""),QR.self()]))))},pI=x([Xo("field1Name","field1"),Xo("field2Name","field2"),ul("onLockedChange"),ol(["lockClass"]),Xo("locked",!1),im.field("coupledFieldBehaviours",[bv,em])]),gI=function(e,t,n){return Xm(e,t,n).bind(bv.getCurrent)},mI=function(e,t){return Pm({factory:CU,name:e,overrides:function(e){return{fieldBehaviours:fd([Wx("coupled-input-behaviour",[Fs(ja(),(function(n){gI(n,e,t).each((function(t){Xm(n,e,"lock").each((function(r){g_.isOn(r)&&e.onLockedChange(n,t,r)}))}))}))])])}}})},vI=x([mI("field1","field2"),mI("field2","field1"),Pm({factory:Dw,schema:[Eo("dom")],name:"lock",overrides:function(e){return{buttonBehaviours:fd([g_.config({selected:e.locked,toggleClass:e.markers.lockClass,aria:{mode:"pressed"}})])}}})]),bI=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:im.augment(e.coupledFieldBehaviours,[bv.config({find:M.some}),em.config({store:{mode:"manual",getValue:function(t){var n,r=Qm(t,e,["field1","field2"]);return n={},n[e.field1Name]=em.getValue(r.field1()),n[e.field2Name]=em.getValue(r.field2()),n},setValue:function(t,n){var r=Qm(t,e,["field1","field2"]);Ae(n,e.field1Name)&&em.setValue(r.field1(),n[e.field1Name]),Ae(n,e.field2Name)&&em.setValue(r.field2(),n[e.field2Name])}}})]),apis:{getField1:function(t){return Xm(t,e,"field1")},getField2:function(t){return Xm(t,e,"field2")},getLock:function(t){return Xm(t,e,"lock")}}}},yI=hv({name:"FormCoupledInputs",configFields:pI(),partFields:vI(),factory:bI,apis:{getField1:function(e,t){return e.getField1(t)},getField2:function(e,t){return e.getField2(t)},getLock:function(e,t){return e.getLock(t)}}}),xI=function(e){var t={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},n=function(e){return e in t?t[e]:1},r=e.value.toFixed(n(e.unit));return-1!==r.indexOf(".")&&(r=r.replace(/\.?0*$/,"")),r+e.unit},_I=function(e){var t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,n=t.exec(e);if(null!==n){var r=parseFloat(n[1]),i=n[2];return ri.value({value:r,unit:i})}return ri.error(e)},wI=function(e,t){var n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},r=function(e){return Se(n,e)};return e.unit===t?M.some(e.value):r(e.unit)&&r(t)?n[e.unit]===n[t]?M.some(e.value):M.some(e.value/n[e.unit]*n[t]):M.none()},DI=function(e){return M.none()},CI=function(e,t){return function(n){return wI(n,t).map((function(n){return{value:n*e,unit:t}}))}},kI=function(e,t){var n=_I(e).toOptional(),r=_I(t).toOptional();return Pe(n,r,(function(e,t){return wI(e,t.unit).map((function(e){return t.value/e})).map((function(e){return CI(e,t.unit)})).getOr(DI)})).getOr(DI)},TI=function(e,t){var n=DI,r=ic("ratio-event"),i=function(e){return qD(e,{tag:"span",classes:["tox-icon","tox-lock-icon__"+e]},t.icons)},o=yI.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:t.translate(e.label.getOr("Constrain proportions"))}},components:[i("lock"),i("unlock")],buttonBehaviours:fd([Iv.config({disabled:function(){return e.disabled||t.isDisabled()}}),vS(),AU.config({})])}),a=function(e){return{dom:{tag:"div",classes:["tox-form__group"]},components:e}},s=function(n){return CU.parts.field({factory:ZU,inputClasses:["tox-textfield"],inputBehaviours:fd([Iv.config({disabled:function(){return e.disabled||t.isDisabled()}}),vS(),AU.config({}),Wx("size-input-events",[Fs(Ba(),(function(e,t){Ds(e,r,{isField1:n})})),Fs(Ha(),(function(t,n){Ds(t,MU,{name:e.name})}))])]),selectOnFocus:!1})},c=function(e){return{dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}},u=yI.parts.field1(a([CU.parts.label(c("Width")),s(!0)])),l=yI.parts.field2(a([CU.parts.label(c("Height")),s(!1)]));return yI.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[u,l,a([c("&nbsp;"),o])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(e,t,r){_I(em.getValue(e)).each((function(e){n(e).each((function(e){em.setValue(t,xI(e))}))}))},coupledFieldBehaviours:fd([Iv.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){yI.getField1(e).bind(CU.getField).each(Iv.disable),yI.getField2(e).bind(CU.getField).each(Iv.disable),yI.getLock(e).each(Iv.disable)},onEnabled:function(e){yI.getField1(e).bind(CU.getField).each(Iv.enable),yI.getField2(e).bind(CU.getField).each(Iv.enable),yI.getLock(e).each(Iv.enable)}}),vS(),Wx("size-input-events2",[Fs(r,(function(e,t){var r=t.event.isField1,i=r?yI.getField1(e):yI.getField2(e),o=r?yI.getField2(e):yI.getField1(e),a=i.map(em.getValue).getOr(""),s=o.map(em.getValue).getOr("");n=kI(a,s)}))])])})},SI=x(ic("undo")),AI=x(ic("redo")),EI=x(ic("zoom")),UI=x(ic("back")),OI=x(ic("apply")),FI=x(ic("swap")),PI=x(ic("transform")),RI=x(ic("temp-transform")),NI=x(ic("transform-apply")),MI={undo:SI,redo:AI,zoom:EI,back:UI,apply:OI,swap:FI,transform:PI,tempTransform:RI,transformApply:NI},II=x("save-state"),BI=x("disable"),LI=x("enable"),zI={formActionEvent:LU,saveState:II,disable:BI,enable:LI},WI=function(e,t){var n=function(e,n,r,i){return Sw(cI({name:e,text:e,disabled:r,primary:i,icon:M.none(),borderless:!1},n,t))},r=function(e,n,r,i){return Sw(aI({name:e,icon:M.some(e),tooltip:M.some(n),disabled:i,primary:!1,borderless:!1},r,t))},i=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(Iv)&&Iv.disable(n)}))},o=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(Iv)&&Iv.enable(n)}))},a={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},s=m,c=function(e,t,n){Ds(e,t,n)},u=function(e){return ws(e,zI.disable())},l=function(e){return ws(e,zI.enable())},d=function(e,t){u(e),c(e,MI.transform(),{transform:t}),l(e)},f=function(e,t){u(e),c(e,MI.tempTransform(),{transform:t}),l(e)},h=function(e){return function(){ae.getOpt(e).each((function(e){Lx.set(e,[ie])}))}},p=function(e,t){u(e),c(e,MI.transformApply(),{transform:t,swap:h(e)}),l(e)},g=function(){return n("Back",(function(e){return c(e,MI.back(),{swap:h(e)})}),!1,!1)},v=function(){return Sw({dom:{tag:"div",classes:["tox-spacer"]},behaviours:fd([Iv.config({})])})},b=function(){return n("Apply",(function(e){return c(e,MI.apply(),{swap:h(e)})}),!0,!0)},y=function(){return function(t){var n=e.getRect();return FM(t,n.x,n.y,n.w,n.h)}},_=[g(),v(),n("Apply",(function(t){var n=y();p(t,n),e.hideCrop()}),!1,!0)],w=bU.sketch({dom:a,components:_.map((function(e){return e.asSpec()})),containerBehaviours:fd([Wx("image-tools-crop-buttons-events",[Fs(zI.disable(),(function(e,t){i(_,e)})),Fs(zI.enable(),(function(e,t){o(_,e)}))])])}),D=Sw(TI({name:"size",label:M.none(),constrain:!0,disabled:!1},t)),C=function(e,t){return function(n){return PM(n,e,t)}},k=[g(),v(),D,v(),n("Apply",(function(e){D.getOpt(e).each((function(t){var n=em.getValue(t),r=parseInt(n.width,10),i=parseInt(n.height,10),o=C(r,i);p(e,o)}))}),!1,!0)],T=bU.sketch({dom:a,components:k.map((function(e){return e.asSpec()})),containerBehaviours:fd([Wx("image-tools-resize-buttons-events",[Fs(zI.disable(),(function(e,t){i(k,e)})),Fs(zI.enable(),(function(e,t){o(k,e)}))])])}),S=function(e,t){return function(n){return e(n,t)}},A=S(OM,"h"),E=S(OM,"v"),U=S(RM,-90),O=S(RM,90),F=function(e,t){f(e,t)},P=[g(),v(),r("flip-horizontally","Flip horizontally",(function(e){F(e,A)}),!1),r("flip-vertically","Flip vertically",(function(e){F(e,E)}),!1),r("rotate-left","Rotate counterclockwise",(function(e){F(e,U)}),!1),r("rotate-right","Rotate clockwise",(function(e){F(e,O)}),!1),v(),b()],R=bU.sketch({dom:a,components:P.map((function(e){return e.asSpec()})),containerBehaviours:fd([Wx("image-tools-fliprotate-buttons-events",[Fs(zI.disable(),(function(e,t){i(P,e)})),Fs(zI.enable(),(function(e,t){o(P,e)}))])])}),N=function(e,n,r,i,o){var a=OR.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}),s=OR.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),c=OR.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return Sw(OR.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:o,getInitialValue:x({x:i})},components:[a,s,c],sliderBehaviours:fd([Kx.config({})]),onChoose:n}))},I=function(e,t,n,r,i){var o=function(e,n,r){var i=S(t,r.x/100);d(e,i)};return N(e,o,n,r,i)},B=function(e,t,n,r,i){return[g(),I(e,t,n,r,i),b()]},L=function(e,t,n,r,s){var c=B(e,t,n,r,s);return bU.sketch({dom:a,components:c.map((function(e){return e.asSpec()})),containerBehaviours:fd([Wx("image-tools-filter-panel-buttons-events",[Fs(zI.disable(),(function(e,t){i(c,e)})),Fs(zI.enable(),(function(e,t){o(c,e)}))])])})},z=[g(),v(),b()],W=bU.sketch({dom:a,components:z.map((function(e){return e.asSpec()}))}),j=L("Brightness",EM,-100,0,100),H=L("Contrast",UM,-100,0,100),V=L("Gamma",SM,-100,0,100),q=function(e,t,n){return function(r){return AM(r,e,t,n)}},$=function(e){var t=function(e,t,n){var r=G.getOpt(e),i=Y.getOpt(e),o=X.getOpt(e);r.each((function(t){i.each((function(n){o.each((function(r){var i=em.getValue(t).x/100,o=em.getValue(r).x/100,a=em.getValue(n).x/100,s=q(i,o,a);d(e,s)}))}))}))};return N(e,t,0,100,200)},G=$("R"),X=$("G"),Y=$("B"),K=[g(),G,X,Y,b()],Z=bU.sketch({dom:a,components:K.map((function(e){return e.asSpec()}))}),J=function(e,t,n){return function(r){var i=function(){ae.getOpt(r).each((function(t){Lx.set(t,[e]),n(t)}))};c(r,MI.swap(),{transform:t,swap:i})}},Q=function(t){e.showCrop()},ee=function(t){D.getOpt(t).each((function(t){var n=e.getMeasurements(),r=n.width,i=n.height;em.setValue(t,{width:r,height:i})}))},te=M.some(TM),ne=M.some(kM),re=[r("crop","Crop",J(w,M.none(),Q),!1),r("resize","Resize",J(T,M.none(),ee),!1),r("orientation","Orientation",J(R,M.none(),s),!1),r("brightness","Brightness",J(j,M.none(),s),!1),r("sharpen","Sharpen",J(W,te,s),!1),r("contrast","Contrast",J(H,M.none(),s),!1),r("color-levels","Color levels",J(Z,M.none(),s),!1),r("gamma","Gamma",J(V,M.none(),s),!1),r("invert","Invert",J(W,ne,s),!1)],ie=bU.sketch({dom:a,components:re.map((function(e){return e.asSpec()}))}),oe=bU.sketch({dom:{tag:"div"},components:[ie],containerBehaviours:fd([Lx.config({})])}),ae=Sw(oe),se=function(e){return ae.getOpt(e).map((function(e){var t=e.components()[0];return t.components()[t.components().length-1]}))};return{memContainer:ae,getApplyButton:se}},jI=tinymce.util.Tools.resolve("tinymce.geom.Rect"),HI=tinymce.util.Tools.resolve("tinymce.util.Observable"),VI=tinymce.util.Tools.resolve("tinymce.util.VK"),qI=function(e){var t=Math.max,n=e.documentElement,r=e.body,i=t(n.scrollWidth,r.scrollWidth),o=t(n.clientWidth,r.clientWidth),a=t(n.offsetWidth,r.offsetWidth),s=t(n.scrollHeight,r.scrollHeight),c=t(n.clientHeight,r.clientHeight),u=t(n.offsetHeight,r.offsetHeight);return{width:i<a?o:i,height:s<u?c:s}},$I=function(e){return f(e.changedTouches)},GI=function(e){if($I(e))for(var t="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<t.length;n++)e[t[n]]=e.changedTouches[0][t[n]]};function XI(e,t){var n,r,i,o,a,s,c,u=[],l=[],d=null!==(n=t.document)&&void 0!==n?n:document,h=null!==(r=t.root)&&void 0!==r?r:d,p=tt.fromDom(d),g=tt.fromDom(h.getElementById(null!==(i=t.handle)&&void 0!==i?i:e)),m=function(e){var n=e.raw,r=qI(d);GI(n),e.prevent(),a=n.button,s=n.screenX,c=n.screenY;var i=Zn(g,"cursor");o=tt.fromTag("div",d),Yn(o,{position:"absolute",top:"0",left:"0",width:r.width+"px",height:r.height+"px","z-index":"2147483647",opacity:"0.0001",cursor:i}),Ur(Bn(p),o),l.push(af(p,"mousemove",v),af(p,"touchmove",v),af(p,"mouseup",b),af(p,"touchend",b)),t.start(n)},v=function(e){var n=e.raw;if(GI(n),n.button!==a)return b(e);n.deltaX=n.screenX-s,n.deltaY=n.screenY-c,e.prevent(),t.drag(n)},b=function(e){GI(e.raw),G(l,(function(e){return e.unbind()})),l=[],Nr(o),t.stop&&t.stop(e.raw)},y=function(){G(l.concat(u),(function(e){return e.unbind()})),l=[],u=[],f(o)&&Nr(o)};return u.push(af(g,"mousedown",m),af(g,"touchstart",m)),{destroy:y}}var YI=0,KI=function(e,t,n,r,i){var o,a=[],s="tox-",c=s+"crid-"+YI++,u=tt.fromDom(r),l=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}],d=["top","right","bottom","left"],f=function(e,t){return{x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},h=function(e,t){return{x:t.x-e.x,y:t.y-e.y,w:t.w,h:t.h}},p=function(){return h(n,e)},g=function(t,r,i,o){var a=r.x+i*t.deltaX,s=r.y+o*t.deltaY,c=Math.max(20,r.w+i*t.deltaW),u=Math.max(20,r.h+o*t.deltaH),l=e=jI.clamp({x:a,y:s,w:c,h:u},n,"move"===t.name);l=h(n,l),C.fire("updateRect",{rect:l}),_(l)},m=function(){var t=function(t){var n;return XI(c,{document:r.ownerDocument,root:En(u).dom,handle:c+"-"+t.name,start:function(){n=e},drag:function(e){g(t,n,e.deltaX,e.deltaY)}})},n=tt.fromTag("div");Wn(n,{id:c,class:s+"croprect-container",role:"grid","aria-dropeffect":"execute"}),Ur(u,n),G(d,(function(e){Bu(u,"#"+c).each((function(t){var n=tt.fromTag("div");Wn(n,{id:c+"-"+e,class:s+"croprect-block","data-mce-bogus":"all"}),Xn(n,"display","none"),Ur(t,n)}))})),G(l,(function(e){Bu(u,"#"+c).each((function(t){var n=tt.fromTag("div");Wn(n,{id:c+"-"+e.name,"aria-label":e.label,"aria-grabbed":"false","data-mce-bogus":"all",role:"gridcell",tabindex:"-1",title:e.label}),uu(n,[s+"croprect-handle",s+"croprect-handle-"+e.name]),Xn(n,"display","none"),Ur(t,n)}))})),o=$(l,t),b(e);var f=function(e){zn(e.target,"aria-grabbed","focus"===e.raw.type?"true":"false")},h=function(t){var n;G(l,(function(e){if(jn(t.target,"id")===c+"-"+e.name)return n=e,!1}));var r=function(e,t,r,i,o){e.stopPropagation(),e.preventDefault(),g(n,r,i,o)};switch(t.raw.keyCode){case VI.LEFT:r(t,n,e,-10,0);break;case VI.RIGHT:r(t,n,e,10,0);break;case VI.UP:r(t,n,e,0,-10);break;case VI.DOWN:r(t,n,e,0,10);break;case VI.ENTER:case VI.SPACEBAR:t.prevent(),i();break}};a.push(af(u,"focusin",f),af(u,"focusout",f),af(u,"keydown",h))},v=function(e){var t=O(O([],$(l,(function(e){return"#"+c+"-"+e.name})),!0),$(d,(function(e){return"#"+c+"-"+e})),!0).join(","),n=Yh(u,t);G(n,e?function(e){return nr(e,"display")}:function(e){return Xn(e,"display","none")})},b=function(e){var n=function(e,t){Bu(u,"#"+c+"-"+e).each((function(e){Yn(e,{left:t.x+"px",top:t.y+"px",width:Math.max(0,t.w)+"px",height:Math.max(0,t.h)+"px"})}))};G(l,(function(t){Bu(u,"#"+c+"-"+t.name).each((function(n){Yn(n,{left:e.w*t.xMul+e.x+"px",top:e.h*t.yMul+e.y+"px"})}))})),n("top",{x:t.x,y:t.y,w:t.w,h:e.y-t.y}),n("right",{x:e.x+e.w,y:e.y,w:t.w-e.x-e.w+t.x,h:e.h}),n("bottom",{x:t.x,y:e.y+e.h,w:t.w,h:t.h-e.y-e.h+t.y}),n("left",{x:t.x,y:e.y,w:e.x-t.x,h:e.h}),n("move",e)},y=function(t){e=t,b(e)},x=function(n){t=n,b(e)},_=function(e){y(f(n,e))},w=function(t){n=t,b(e)},D=function(){G(o,(function(e){return e.destroy()})),o=[],G(a,(function(e){return e.unbind()})),a=[]};m();var C=E(E({},HI),{toggleVisibility:v,setClampRect:w,setRect:y,getInnerRect:p,setInnerRect:_,setViewPortRect:x,destroy:D});return C},ZI={create:KI},JI=function(e){return new gC((function(t){var n=function(){e.removeEventListener("load",n),t(e)};e.complete?t(e):e.addEventListener("load",n)}))},QI=function(e){var t=Sw({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),n=ia(1),r=nf(),i=ia({x:0,y:0,w:1,h:1}),o=ia({x:0,y:0,w:1,h:1}),a=function(e,o){p.getOpt(e).each((function(e){var a=n.get(),s=vr(e.element),c=ar(e.element),u=o.dom.naturalWidth*a,l=o.dom.naturalHeight*a,d=Math.max(0,s/2-u/2),f=Math.max(0,c/2-l/2),h={left:d.toString()+"px",top:f.toString()+"px",width:u.toString()+"px",height:l.toString()+"px",position:"absolute"};Yn(o,h),t.getOpt(e).each((function(e){Yn(e.element,h)})),r.run((function(e){var t=i.get();e.setRect({x:t.x*a+d,y:t.y*a+f,w:t.w*a,h:t.h*a}),e.setClampRect({x:d,y:f,w:u,h:l}),e.setViewPortRect({x:0,y:0,w:s,h:c})}))}))},s=function(e,t){p.getOpt(e).each((function(e){var r=vr(e.element),i=ar(e.element),o=t.dom.naturalWidth,a=t.dom.naturalHeight,s=Math.min(r/o,i/a);s>=1?n.set(1):n.set(s)}))},c=function(e,t){var n=tt.fromTag("img");return zn(n,"src",t),JI(n.dom).then((function(){e.getSystem().isConnected()&&p.getOpt(e).map((function(e){var t=Cu({element:n});Lx.replaceAt(e,1,M.some(t));var r=o.get(),c={x:0,y:0,w:n.dom.naturalWidth,h:n.dom.naturalHeight};o.set(c);var u=jI.inflate(c,-20,-20);i.set(u),r.w===c.w&&r.h===c.h||s(e,n),a(e,n)}))}))},u=function(e,t){var r=n.get(),i=t>0?Math.min(2,r+.1):Math.max(.1,r-.1);n.set(i),p.getOpt(e).each((function(e){var t=e.components()[1].element;a(e,t)}))},l=function(){r.run((function(e){e.toggleVisibility(!0)}))},d=function(){r.run((function(e){e.toggleVisibility(!1)}))},f=function(){return i.get()},h=bU.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[t.asSpec(),{dom:{tag:"img",attributes:{src:e}}},{dom:{tag:"div"},behaviours:fd([Wx("image-panel-crop-events",[js((function(e){p.getOpt(e).each((function(e){var t=e.element.dom,o=ZI.create({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},t,m);o.toggleVisibility(!1),o.on("updateRect",(function(e){var t=e.rect,r=n.get(),o={x:Math.round(t.x/r),y:Math.round(t.y/r),w:Math.round(t.w/r),h:Math.round(t.h/r)};i.set(o)})),r.set(o)}))})),Hs((function(){r.clear()}))])])}],containerBehaviours:fd([Lx.config({}),Wx("image-panel-events",[js((function(t){c(t,e)}))])])}),p=Sw(h),g=function(){var e=o.get();return{width:e.w,height:e.h}};return{memContainer:p,updateSrc:c,zoom:u,showCrop:l,hideCrop:d,getRect:f,getMeasurements:g}},eB=function(e,t,n,r,i){return aI({name:e,icon:M.some(t),disabled:n,tooltip:M.some(e),primary:!1,borderless:!1},r,i)},tB=function(e,t){t?Iv.enable(e):Iv.disable(e)},nB=function(e){var t=function(e,t,i){n.getOpt(e).each((function(e){tB(e,t)})),r.getOpt(e).each((function(e){tB(e,i)}))},n=Sw(eB("Undo","undo",!0,(function(e){Ds(e,MI.undo(),{direction:1})}),e)),r=Sw(eB("Redo","redo",!0,(function(e){Ds(e,MI.redo(),{direction:1})}),e)),i=bU.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[n.asSpec(),r.asSpec(),eB("Zoom in","zoom-in",!1,(function(e){Ds(e,MI.zoom(),{direction:1})}),e),eB("Zoom out","zoom-out",!1,(function(e){Ds(e,MI.zoom(),{direction:-1})}),e)]});return{container:i,updateButtonUndoStates:t}};function rB(){var e=[],t=-1,n=function(n){var r=e.splice(++t);return e.push(n),{state:n,removed:r}},r=function(){if(o())return e[--t]},i=function(){if(a())return e[++t]},o=function(){return t>0},a=function(){return-1!==t&&t<e.length-1};return{data:e,add:n,undo:r,redo:i,canUndo:o,canRedo:a}}var iB,oB=function(e){var t=ia(e),n=rf(),r=rB();r.add(e);var i=function(){return t.get()},o=function(e){t.set(e)},a=function(){return n.get().getOrThunk(t.get)},s=function(e){var t=c(e);return d(),n.set(t),t.url},c=function(e){return{blob:e,url:URL.createObjectURL(e)}},u=function(e){URL.revokeObjectURL(e.url)},l=function(e){sN.each(e,u)},d=function(){n.on(u),n.clear()},f=function(e){var t=c(e);o(t);var n=r.add(t).removed;return l(n),t.url},h=function(e){var t=c(e);return n.set(t),t.url},p=function(e){return n.get().fold(m,(function(t){f(t.blob),e()}))},g=function(){var e=r.undo();return o(e),e.url},v=function(){var e=r.redo();return o(e),e.url},b=function(){var e=r.canUndo(),t=r.canRedo();return{undoEnabled:e,redoEnabled:t}};return{getBlobState:i,setBlobState:o,addBlobState:f,getTempState:a,updateTempState:s,addTempState:h,applyTempState:p,destroyTempState:d,undo:g,redo:v,getHistoryStates:b}},aB=function(e,t){var n=oB(e.currentState),r=function(e,t){var n=t.event.direction;C.zoom(e,n)},i=function(e){var t=n.getHistoryStates();k.updateButtonUndoStates(e,t.undoEnabled,t.redoEnabled),Ds(e,zI.formActionEvent,{name:zI.saveState(),value:t.undoEnabled})},o=function(e){k.updateButtonUndoStates(e,!1,!1)},a=function(e,t){var r=n.undo();d(e,r).then((function(t){l(e),i(e)}))},s=function(e,t){var r=n.redo();d(e,r).then((function(t){l(e),i(e)}))},c=function(e){return e.toBlob()},u=function(e){Ds(e,zI.formActionEvent,{name:zI.disable(),value:{}})},l=function(e){T.getApplyButton(e).each((function(e){Iv.enable(e)})),Ds(e,zI.formActionEvent,{name:zI.enable(),value:{}})},d=function(e,t){return u(e),C.updateSrc(e,t)},f=function(e,t,n,r,o){u(e),GN(t).then(n).then(c).then(r).then((function(t){return d(e,t)})).then((function(){i(e),o(),l(e)})).catch((function(t){console.log(t),e.getSystem().isConnected()&&l(e)}))},h=function(e,t,r){var i=n.getBlobState().blob,o=function(e){return n.updateTempState(e)};f(e,i,t,o,r)},p=function(e,t){var r=n.getTempState().blob,i=function(e){return n.addTempState(e)};f(e,r,t,i,m)},g=function(e,t,r){var i=n.getBlobState().blob,o=function(t){var r=n.addBlobState(t);return b(e),r};f(e,i,t,o,r)},v=function(e,t){var r=function(){b(e);var n=t.event.swap;n()};n.applyTempState(r)},b=function(e){var t=n.getBlobState().url;return n.destroyTempState(),i(e),t},y=function(e){var t=b(e);d(e,t).then((function(t){l(e)}))},x=function(e,t){y(e);var n=t.event.swap;n(),C.hideCrop()},_=function(e,t){return h(e,t.event.transform,m)},w=function(e,t){return p(e,t.event.transform)},D=function(e,t){return g(e,t.event.transform,t.event.swap)},C=QI(e.currentState.url),k=nB(t),T=WI(C,t),S=function(e,t){o(e);var n=t.event.transform,r=t.event.swap;n.fold((function(){r()}),(function(t){h(e,t,r)}))};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[T.memContainer.asSpec(),C.memContainer.asSpec(),k.container],behaviours:fd([em.config({store:{mode:"manual",getValue:function(){return n.getBlobState()}}}),Wx("image-tools-events",[Fs(MI.undo(),a),Fs(MI.redo(),s),Fs(MI.zoom(),r),Fs(MI.back(),x),Fs(MI.apply(),v),Fs(MI.transform(),_),Fs(MI.tempTransform(),w),Fs(MI.transformApply(),D),Fs(MI.swap(),S)]),QR.self()])}},sB=function(e,t){var n={dom:{tag:"label",innerHtml:t.providers.translate(e.label),classes:["tox-label"]}},r=$(e.items,t.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[n].concat(r),behaviours:fd([QR.self(),Lx.config({}),gN.domHtml(M.none()),Ex.config({mode:"acyclic"})])}},cB=function(e){return!Se(e,"items")},uB="data-value",lB=function(e,t,n,r){return $(n,(function(n){return cB(n)?{type:"togglemenuitem",text:n.text,value:n.value,active:n.value===r,onAction:function(){em.setValue(e,n.value),Ds(e,MU,{name:t}),Kx.focus(e)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:function(){return lB(e,t,n.items,r)}}}))},dB=function(e,t){return pe(e,(function(e){return cB(e)?Me(e.value===t,e):dB(e.items,t)}))},fB=function(e,t){var n=t.shared.providers,r=de(e.items).filter(cB),i=e.label.map((function(e){return NU(e,n)})),o=CU.parts.field({dom:{},factory:{sketch:function(n){return VM({uid:n.uid,text:r.map((function(e){return e.text})),icon:M.none(),tooltip:e.label,role:M.none(),fetch:function(n,r){var i=lB(n,e.name,e.items,em.getValue(n));r(eI(i,JC.CLOSE_ON_EXECUTE,t,!1))},onSetup:x(m),getApi:x({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[AU.config({}),em.config({store:{mode:"manual",initialValue:r.map((function(e){return e.value})).getOr(""),getValue:function(e){return jn(e.element,uB)},setValue:function(t,n){dB(e.items,n).each((function(e){zn(t.element,uB,e.value),Ds(t,jM,{text:e.text})}))}}})]},"tox-listbox",t.shared)}}}),a={dom:{tag:"div",classes:["tox-listboxfield"]},components:[o]};return CU.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ne([i.toArray(),[a]]),fieldBehaviours:fd([Iv.config({disabled:x(e.disabled),onDisabled:function(e){CU.getField(e).each(Iv.disable)},onEnabled:function(e){CU.getField(e).each(Iv.enable)}})])})},hB=function(e,t){return{dom:{tag:"div",classes:e.classes},components:$(e.items,t.shared.interpreter)}},pB=function(e,t){var n=$(e.options,(function(e){return{dom:{tag:"option",value:e.value,innerHtml:e.text}}})),r=e.data.map((function(e){return ha("initialValue",e)})).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:n,behaviours:rm(e.selectBehaviours,[Kx.config({}),em.config({store:E({mode:"manual",getValue:function(e){return fu(e.element)},setValue:function(t,n){var r=ee(e.options,(function(e){return e.value===n}));r.isSome()&&hu(t.element,n)}},r)})])}},gB=fv({name:"HtmlSelect",configFields:[Eo("options"),tm("selectBehaviours",[Kx,em]),Xo("selectClasses",[]),Xo("selectAttributes",{}),zo("data")],factory:pB}),mB=function(e,t){var n=$(e.items,(function(e){return{text:t.translate(e.text),value:e.value}})),r=e.label.map((function(e){return NU(e,t)})),i=CU.parts.field({dom:{},selectAttributes:{size:e.size},options:n,factory:gB,selectBehaviours:fd([Iv.config({disabled:function(){return e.disabled||t.isDisabled()}}),AU.config({}),Wx("selectbox-change",[Fs(Ha(),(function(t,n){Ds(t,MU,{name:e.name})}))])])}),o=e.size>1?M.none():M.some(qD("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},t.icons)),a={dom:{tag:"div",classes:["tox-selectfield"]},components:ne([[i],o.toArray()])};return CU.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ne([r.toArray(),[a]]),fieldBehaviours:fd([Iv.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){CU.getField(e).each(Iv.disable)},onEnabled:function(e){CU.getField(e).each(Iv.enable)}}),vS()])})},vB=function(e,t){var n=function(e){return{dom:{tag:"th",innerHtml:t.translate(e)}}},r=function(e){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:$(e,n)}]}},i=function(e){return{dom:{tag:"td",innerHtml:t.translate(e)}}},o=function(e){return{dom:{tag:"tr"},components:$(e,i)}},a=function(e){return{dom:{tag:"tbody"},components:$(e,o)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[r(e.header),a(e.cells)],behaviours:fd([AU.config({}),Kx.config({})])}},bB=function(e,t){var n=e.label.map((function(e){return NU(e,t)})),r=[Iv.config({disabled:function(){return e.disabled||t.isDisabled()}}),vS(),Ex.config({mode:"execution",useEnter:!0!==e.multiline,useControlEnter:!0===e.multiline,execute:function(e){return ws(e,zU),M.some(!0)}}),Wx("textfield-change",[Fs(ja(),(function(t,n){Ds(t,MU,{name:e.name})})),Fs(Qa(),(function(t,n){Ds(t,MU,{name:e.name})}))]),AU.config({})],i=e.validation.map((function(e){return _O.config({getRoot:function(e){return vn(e.element)},invalidClass:"tox-invalid",validator:{validate:function(t){var n=em.getValue(t),r=e.validator(n);return uO.pure(!0===r?ri.value(n):ri.error(r))},validateOnLoad:e.validateOnLoad}})})).toArray(),o=e.placeholder.fold(x({}),(function(e){return{placeholder:t.translate(e)}})),a=e.inputMode.fold(x({}),(function(e){return{inputmode:e}})),s=E(E({},o),a),c=CU.parts.field({tag:!0===e.multiline?"textarea":"input",inputAttributes:s,inputClasses:[e.classname],inputBehaviours:fd(ne([r,i])),selectOnFocus:!1,factory:ZU}),u=e.flex?["tox-form__group--stretched"]:[],l=u.concat(e.maximized?["tox-form-group--maximize"]:[]),d=[Iv.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){CU.getField(e).each(Iv.disable)},onEnabled:function(e){CU.getField(e).each(Iv.enable)}}),vS()];return UU(n,c,l,d)},yB=function(e,t){return bB({name:e.name,multiline:!1,label:e.label,inputMode:e.inputMode,placeholder:e.placeholder,flex:!1,disabled:e.disabled,classname:"tox-textfield",validation:M.none(),maximized:e.maximized},t)},xB=function(e,t){return bB({name:e.name,multiline:!0,label:e.label,inputMode:M.none(),placeholder:e.placeholder,flex:!0,disabled:e.disabled,classname:"tox-textarea",validation:M.none(),maximized:e.maximized},t)},_B=function(e,t){var n=e.stream.streams,r=n.setup(e,t);return As([Fs(e.event,r),Hs((function(){return t.cancel()}))].concat(e.cancelEvent.map((function(e){return[Fs(e,(function(){return t.cancel()}))]})).getOr([])))},wB=Object.freeze({__proto__:null,events:_B}),DB=function(e){var t=ia(null),n=function(){return{timer:null!==t.get()?"set":"unset"}},r=function(e){t.set(e)},i=function(){var e=t.get();null!==e&&e.cancel()};return kc({readState:n,setTimer:r,cancel:i})},CB=function(e){return e.stream.streams.state(e)},kB=Object.freeze({__proto__:null,throttle:DB,init:CB}),TB=function(e,t){var n=e.stream,r=QD(e.onStream,n.delay);return t.setTimer(r),function(e,t){r.throttle(e,t),n.stopEvent&&t.stop()}},SB=[Uo("stream",Co("mode",{throttle:[Eo("delay"),Xo("stopEvent",!0),dl("streams",{setup:TB,state:DB})]})),Xo("event","input"),zo("cancelEvent"),ul("onStream")],AB=pd({fields:SB,name:"streaming",active:wB,state:kB}),EB=function(e,t,n){var r=em.getValue(n);em.setValue(t,r),OB(t)},UB=function(e,t){var n=e.element,r=fu(n),i=n.dom;"number"!==jn(n,"type")&&t(i,r)},OB=function(e){UB(e,(function(e,t){return e.setSelectionRange(t.length,t.length)}))},FB=function(e,t){UB(e,(function(e,n){return e.setSelectionRange(t,n.length)}))},PB=function(e,t,n){if(e.selectsOver){var r=em.getValue(t),i=e.getDisplayText(r),o=em.getValue(n),a=e.getDisplayText(o);return 0===a.indexOf(i)?M.some((function(){EB(e,t,n),FB(t,i.length)})):M.none()}return M.none()},RB=x("alloy.typeahead.itemexecute"),NB=function(e,t,n,r){var i=function(t,n,i){e.previewing.set(!1);var o=SO.getCoupled(t,"sandbox");if(bg.isOpen(o))bv.getCurrent(o).each((function(e){rb.getHighlighted(e).fold((function(){i(e)}),(function(){Ss(o,e.element,"keydown",n)}))}));else{var s=function(e){bv.getCurrent(e).each(i)};RO(e,a(t),t,o,r,s,eO.HighlightFirst).get(m)}},o=GU(e),a=function(e){return function(t){return t.map((function(t){var n=ke(t.menus),r=re(n,(function(e){return K(e.items,(function(e){return"item"===e.type}))})),i=em.getState(e);return i.update($(r,(function(e){return e.data}))),t}))}},s=[Kx.config({}),em.config({onSetValue:e.onSetValue,store:E({mode:"dataset",getDataKey:function(e){return fu(e.element)},getFallbackEntry:function(e){return{value:e,meta:{}}},setValue:function(t,n){hu(t.element,e.model.getDisplayText(n))}},e.initialData.map((function(e){return ha("initialValue",e)})).getOr({}))}),AB.config({stream:{mode:"throttle",delay:e.responseTime,stopEvent:!1},onStream:function(t,n){var i=SO.getCoupled(t,"sandbox"),o=Kx.isFocused(t);if(o&&fu(t.element).length>=e.minChars){var s=bv.getCurrent(i).bind((function(e){return rb.getHighlighted(e).map(em.getValue)}));e.previewing.set(!0);var c=function(t){bv.getCurrent(i).each((function(t){s.fold((function(){e.model.selectsOver&&rb.highlightFirst(t)}),(function(e){rb.highlightBy(t,(function(t){var n=em.getValue(t);return n.value===e.value})),rb.getHighlighted(t).orThunk((function(){return rb.highlightFirst(t),M.none()}))}))}))};RO(e,a(t),t,i,r,c,eO.HighlightFirst).get(m)}},cancelEvent:as()}),Ex.config({mode:"special",onDown:function(e,t){return i(e,t,rb.highlightFirst),M.some(!0)},onEscape:function(e){var t=SO.getCoupled(e,"sandbox");return bg.isOpen(t)?(bg.close(t),M.some(!0)):M.none()},onUp:function(e,t){return i(e,t,rb.highlightLast),M.some(!0)},onEnter:function(t){var n=SO.getCoupled(t,"sandbox"),r=bg.isOpen(n);if(r&&!e.previewing.get())return bv.getCurrent(n).bind((function(e){return rb.getHighlighted(e)})).map((function(e){return Ds(t,RB(),{item:e}),!0}));var i=em.getValue(t);return ws(t,as()),e.onExecute(n,t,i),r&&bg.close(n),M.some(!0)}}),g_.config({toggleClass:e.markers.openClass,aria:{mode:"expanded"}}),SO.config({others:{sandbox:function(t){return zO(e,t,{onOpen:function(){return g_.on(t)},onClose:function(){return g_.off(t)}})}}}),Wx("typeaheadevents",[qs((function(t){var n=m;MO(e,a(t),t,r,n,eO.HighlightFirst).get(m)})),Fs(RB(),(function(t,n){var r=SO.getCoupled(t,"sandbox");EB(e.model,t,n.event.item),ws(t,as()),e.onItemExecute(t,r,n.event.item,em.getValue(t)),bg.close(r),OB(t)}))].concat(e.dismissOnBlur?[Fs(Ja(),(function(e){var t=SO.getCoupled(e,"sandbox");Td(t.element).isNone()&&bg.close(t)}))]:[]))];return{uid:e.uid,dom:YU(_i(e,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:E(E({},o),rm(e.typeaheadBehaviours,s)),eventOrder:e.eventOrder}},MB=x([zo("lazySink"),Eo("fetch"),Xo("minChars",5),Xo("responseTime",1e3),sl("onOpen"),Xo("getHotspot",M.some),Xo("getAnchorOverrides",x({})),Xo("layouts",M.none()),Xo("eventOrder",{}),ra("model",{},[Xo("getDisplayText",(function(e){return void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.value})),Xo("selectsOver",!0),Xo("populateFromBrowse",!0)]),sl("onSetValue"),cl("onExecute"),sl("onItemExecute"),Xo("inputClasses",[]),Xo("inputAttributes",{}),Xo("inputStyles",{}),Xo("matchWidth",!0),Xo("useMinWidth",!1),Xo("dismissOnBlur",!0),ol(["openClass"]),zo("initialData"),tm("typeaheadBehaviours",[Kx,em,AB,Ex,g_,SO]),So("previewing",(function(){return ia(!0)}))].concat($U()).concat(jO())),IB=x([Rm({schema:[il()],name:"menu",overrides:function(e){return{fakeFocus:!0,onHighlight:function(t,n){e.previewing.get()?t.getSystem().getByUid(e.uid).each((function(r){PB(e.model,r,n).fold((function(){return rb.dehighlight(t,n)}),(function(e){return e()}))})):t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&EB(e.model,t,n)})),e.previewing.set(!1)},onExecute:function(t,n){return t.getSystem().getByUid(e.uid).toOptional().map((function(e){return Ds(e,RB(),{item:n}),!0}))},onHover:function(t,n){e.previewing.set(!1),t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&EB(e.model,t,n)}))}}}})]),BB=hv({name:"Typeahead",configFields:MB(),partFields:IB(),factory:NB}),LB=function(e){var t=function(){return LB(e.toCached())},n=function(t){return LB(e.bind((function(e){return e.fold((function(e){return uO.pure(ri.error(e))}),(function(e){return t(e)}))})))},r=function(t){return LB(e.map((function(e){return e.bind(t)})))},i=function(t){return LB(e.map((function(e){return e.map(t)})))},o=function(t){return LB(e.map((function(e){return e.mapError(t)})))},a=function(t,n){return e.map((function(e){return e.fold(t,n)}))},s=function(t,n){return LB(uO.nu((function(r){var i=!1,o=setTimeout((function(){i=!0,r(ri.error(n()))}),t);e.get((function(e){i||(clearTimeout(o),r(e))}))})))};return E(E({},e),{toCached:t,bindFuture:n,bindResult:r,mapResult:i,mapError:o,foldResult:a,withTimeout:s})},zB=function(e){return LB(uO.nu(e))},WB=function(e){return LB(uO.pure(ri.value(e)))},jB=function(e){return LB(uO.pure(ri.error(e)))},HB=function(e){return LB(uO.pure(e))},VB=function(e){return LB(e.map(ri.value))},qB=function(e){return zB((function(t){e.then((function(e){t(ri.value(e))}),(function(e){t(ri.error(e))}))}))},$B={nu:zB,wrap:LB,pure:WB,value:WB,error:jB,fromResult:HB,fromFuture:VB,fromPromise:qB},GB={type:"separator"},XB=function(e){return{type:"menuitem",value:e.url,text:e.title,meta:{attach:e.attach},onAction:m}},YB=function(e,t){return{type:"menuitem",value:t,text:e,meta:{attach:void 0},onAction:m}},KB=function(e){return $(e,XB)},ZB=function(e,t){return K(t,(function(t){return t.type===e}))},JB=function(e,t){return KB(ZB(e,t))},QB=function(e){return JB("header",e.targets)},eL=function(e){return JB("anchor",e.targets)},tL=function(e){return M.from(e.anchorTop).map((function(e){return YB("<top>",e)})).toArray()},nL=function(e){return M.from(e.anchorBottom).map((function(e){return YB("<bottom>",e)})).toArray()},rL=function(e){return $(e,(function(e){return YB(e,e)}))},iL=function(e){return J(e,(function(e,t){var n=0===e.length||0===t.length;return n?e.concat(t):e.concat(GB,t)}),[])},oL=function(e,t){var n=e.toLowerCase();return K(t,(function(e){var t=void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.text;return je(t.toLowerCase(),n)||je(e.value.toLowerCase(),n)}))},aL=function(e,t,n){var r=em.getValue(t),i=void 0!==r.meta.text?r.meta.text:r.value,o=n.getLinkInformation();return o.fold((function(){return[]}),(function(t){var r=oL(i,rL(n.getHistory(e)));return"file"===e?iL([r,oL(i,QB(t)),oL(i,ne([tL(t),eL(t),nL(t)]))]):r}))},sL=ic("aria-invalid"),cL=function(e,t,n){var r,i=t.shared.providers,o=function(t){var r=em.getValue(t);n.addToHistory(r.value,e.filetype)},a=CU.parts.field({factory:BB,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":sL,type:"url"},minChars:0,responseTime:0,fetch:function(r){var i=aL(e.filetype,r,n),o=eI(i,JC.BUBBLE_TO_SANDBOX,t,!1);return uO.pure(o)},getHotspot:function(e){return h.getOpt(e)},onSetValue:function(e,t){e.hasConfigured(_O)&&_O.run(e).get(m)},typeaheadBehaviours:fd(ne([n.getValidationHandler().map((function(t){return _O.config({getRoot:function(e){return vn(e.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(e,t){u.getOpt(e).each((function(e){zn(e.element,"title",i.translate(t))}))}},validator:{validate:function(n){var r=em.getValue(n);return $B.nu((function(n){t({type:e.filetype,url:r.value},(function(e){if("invalid"===e.status){var t=ri.error(e.message);n(t)}else{var r=ri.value(e.message);n(r)}}))}))},validateOnLoad:!1}})})).toArray(),[Iv.config({disabled:function(){return e.disabled||i.isDisabled()}}),AU.config({}),Wx("urlinput-events",ne(["file"===e.filetype?[Fs(ja(),(function(t){Ds(t,MU,{name:e.name})}))]:[],[Fs(Ha(),(function(t){Ds(t,MU,{name:e.name}),o(t)})),Fs(Qa(),(function(t){Ds(t,MU,{name:e.name}),o(t)}))]]))]])),eventOrder:(r={},r[ja()]=["streaming","urlinput-events","invalidating"],r),model:{getDisplayText:function(e){return e.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:t.shared.getSink,parts:{menu:kk(!1,1,"normal")},onExecute:function(e,t,n){Ds(t,zU,{})},onItemExecute:function(t,n,r,i){o(t),Ds(t,MU,{name:e.name})}}),s=e.label.map((function(e){return NU(e,i)})),c=function(e,t,n,r){return void 0===n&&(n=e),void 0===r&&(r=e),qD(n,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+e],attributes:E({title:i.translate(r),"aria-live":"polite"},t.fold((function(){return{}}),(function(e){return{id:e}})))},i.icons)},u=Sw(c("invalid",M.some(sL),"warning")),l=Sw({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[u.asSpec()]}),d=n.getUrlPicker(e.filetype),f=ic("browser.url.event"),h=Sw({dom:{tag:"div",classes:["tox-control-wrap"]},components:[a,l.asSpec()],behaviours:fd([Iv.config({disabled:function(){return e.disabled||i.isDisabled()}})])}),p=Sw(cI({name:e.name,icon:M.some("browse"),text:e.label.getOr(""),disabled:e.disabled,primary:!1,borderless:!0},(function(e){return ws(e,f)}),i,[],["tox-browse-url"])),g=function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ne([[h.asSpec()],d.map((function(){return p.asSpec()})).toArray()])}},v=function(t){bv.getCurrent(t).each((function(n){var r=em.getValue(n),i=E({fieldname:e.name},r);d.each((function(r){r(i).get((function(r){em.setValue(n,r),Ds(t,MU,{name:e.name})}))}))}))};return CU.sketch({dom:PU(),components:s.toArray().concat([g()]),fieldBehaviours:fd([Iv.config({disabled:function(){return e.disabled||i.isDisabled()},onDisabled:function(e){CU.getField(e).each(Iv.disable),p.getOpt(e).each(Iv.disable)},onEnabled:function(e){CU.getField(e).each(Iv.enable),p.getOpt(e).each(Iv.enable)}}),vS(),Wx("url-input-events",[Fs(f,v)])])})},uL=function(e,t){return bU.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+e.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[Dw.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:zD(e.icon,t.icons),attributes:{title:t.translate(e.iconTooltip)}},action:function(t){Ds(t,LU,{name:"alert-banner",value:e.url})},buttonBehaviours:fd([HD()])})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:t.translate(e.text)}}]})},lL=function(e,t){var n=em.config({store:{mode:"manual",getValue:function(e){var t=e.element.dom;return t.checked},setValue:function(e,t){var n=e.element.dom;n.checked=t}}}),r=function(e){return e.element.dom.click(),M.some(!0)},i=CU.parts.field({factory:{sketch:_},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:fd([QR.self(),Iv.config({disabled:function(){return e.disabled||t.isDisabled()}}),AU.config({}),Kx.config({}),n,Ex.config({mode:"special",onEnter:r,onSpace:r,stopSpaceKeyup:!0}),Wx("checkbox-events",[Fs(Ha(),(function(t,n){Ds(t,MU,{name:e.name})}))])])}),o=CU.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:t.translate(e.label)},behaviours:fd([KO.config({})])}),a=function(e){var n="checked"===e?"selected":"unselected";return qD(n,{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+e]},t.icons)},s=Sw({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[a("checked"),a("unchecked")]});return CU.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[i,s.asSpec(),o],fieldBehaviours:fd([Iv.config({disabled:function(){return e.disabled||t.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(e){CU.getField(e).each(Iv.disable)},onEnabled:function(e){CU.getField(e).each(Iv.enable)}}),vS()])})},dL=function(e){return"presentation"===e.presets?bU.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html}}):bU.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html,attributes:{role:"document"}},containerBehaviours:fd([AU.config({}),Kx.config({})])})},fL=function(e){return function(t,n,r){return Te(n,"name").fold((function(){return e(n,r)}),(function(i){return t.field(i,e(n,r))}))}},hL=function(e){return function(t,n,r){var i=_i(n,{source:"dynamic"});return fL(e)(t,i,r)}},pL={bar:fL((function(e,t){return xU(e,t.shared)})),collection:fL((function(e,t){return qU(e,t.shared.providers)})),alertbanner:fL((function(e,t){return uL(e,t.shared.providers)})),input:fL((function(e,t){return yB(e,t.shared.providers)})),textarea:fL((function(e,t){return xB(e,t.shared.providers)})),label:fL((function(e,t){return sB(e,t.shared)})),iframe:hL((function(e,t){return EN(e,t.shared.providers)})),button:fL((function(e,t){return hI(e,t.shared.providers)})),checkbox:fL((function(e,t){return lL(e,t.shared.providers)})),colorinput:fL((function(e,t){return tF(e,t.shared,t.colorinput)})),colorpicker:fL(rN),dropzone:fL((function(e,t){return bN(e,t.shared.providers)})),grid:fL((function(e,t){return yN(e,t.shared)})),listbox:fL((function(e,t){return fB(e,t)})),selectbox:fL((function(e,t){return mB(e,t.shared.providers)})),sizeinput:fL((function(e,t){return TI(e,t.shared.providers)})),urlinput:fL((function(e,t){return cL(e,t,t.urlinput)})),customeditor:fL(aN),htmlpanel:fL(dL),imagetools:fL((function(e,t){return aB(e,t.shared.providers)})),table:fL((function(e,t){return vB(e,t.shared.providers)})),panel:fL((function(e,t){return hB(e,t)}))},gL={field:function(e,t){return t}},mL=function(e,t,n){var r=_i(n,{shared:{interpreter:function(t){return vL(e,t,r)}}});return vL(e,t,r)},vL=function(e,t,n){return Te(pL,t.type).fold((function(){return console.error('Unknown factory type "'+t.type+'", defaulting to container: ',t),t}),(function(r){return r(e,t,n)}))},bL=function(e,t){var n=gL;return vL(n,e,t)},yL={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},xL=function(e,t,n){var r=12,i={maxHeightFunction:Sf()},o=function(){return{type:"node",root:Un(e()),node:M.from(e()),bubble:Ff(r,r,yL),layouts:{onRtl:function(){return[fw]},onLtr:function(){return[dw]}},overrides:i}},a=function(){return{type:"hotspot",hotspot:t(),bubble:Ff(-r,r,yL),layouts:{onRtl:function(){return[Wl]},onLtr:function(){return[jl]}},overrides:i}};return function(){return n()?o():a()}},_L=function(e,t,n){var r=function(){return{type:"node",root:Un(e()),node:M.from(e()),layouts:{onRtl:function(){return[hw]},onLtr:function(){return[hw]}}}},i=function(){return{type:"hotspot",hotspot:t(),layouts:{onRtl:function(){return[$l]},onLtr:function(){return[$l]}}}};return function(){return n()?r():i()}},wL=function(e,t){return function(){return{type:"selection",root:t(),getSelection:function(){var t=e.selection.getRng();return M.some(Ch.range(tt.fromDom(t.startContainer),t.startOffset,tt.fromDom(t.endContainer),t.endOffset))}}}},DL=function(e){return function(t){return{type:"node",root:e(),node:t}}},CL=function(e,t,n){var r=ZT(e),i=function(){return tt.fromDom(e.getBody())},o=function(){return tt.fromDom(e.getContentAreaContainer())},a=function(){return r||!n()};return{inlineDialog:xL(o,t,a),banner:_L(o,t,a),cursor:wL(e,i),node:DL(i)}},kL=function(e){return function(t,n){var r=uE(e);r(t,n)}},TL=function(e){return function(){return VA(e)}},SL=function(e){return function(){return $A(e)}},AL=function(e){return function(){return tE(e)}},EL=function(e){return{colorPicker:kL(e),hasCustomColors:TL(e),getColors:SL(e),getColorCols:AL(e)}},UL=function(e){return function(){return nS(e)}},OL=function(e){return{isDraggableModal:UL(e)}},FL=function(e){var t=ia($T(e)?"bottom":"top");return{isPositionedAtTop:function(){return"top"===t.get()},getDockingMode:t.get,setDockingMode:t.set}},PL=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],RL=function(e){return Se(e,"items")},NL=function(e){return Se(e,"block")},ML=function(e){return Se(e,"inline")},IL=function(e){return Se(e,"selector")},BL=function(e){return J(e,(function(e,t){if(RL(t)){var n=BL(t.items);return{customFormats:e.customFormats.concat(n.customFormats),formats:e.formats.concat([{title:t.title,items:n.formats}])}}if(ML(t)||NL(t)||IL(t)){var r=o(t.name)?t.name:t.title.toLowerCase(),i="custom-"+r;return{customFormats:e.customFormats.concat([{name:i,format:t}]),formats:e.formats.concat([{title:t.title,format:i,icon:t.icon}])}}return E(E({},e),{formats:e.formats.concat(t)})}),{customFormats:[],formats:[]})},LL=function(e,t){var n=BL(t),r=function(t){G(t,(function(t){e.formatter.has(t.name)||e.formatter.register(t.name,t.format)}))};return e.formatter?r(n.customFormats):e.on("init",(function(){r(n.customFormats)})),n.formats},zL=function(e){return FT(e).map((function(t){var n=LL(e,t);return PT(e)?PL.concat(n):n})).getOr(PL)},WL=function(e,t,n){var r={type:"formatter",isSelected:t(e.format),getStylePreview:n(e.format)};return _i(e,r)},jL=function(e,t,n,r){var i=function(e){return WL(e,n,r)},a=function(e){var t={type:"submenu"};return _i(e,t)},s=function(t){var i=o(t.name)?t.name:ic(t.title),a="custom-"+i,s={type:"formatter",format:a,isSelected:n(a),getStylePreview:r(a)},c=_i(t,s);return e.formatter.register(i,c),c},c=function(e){return $(e,(function(e){var t=ge(e);if(Ae(e,"items")){var n=c(e.items);return _i(a(e),{getStyleItems:x(n)})}return Ae(e,"format")?i(e):1===t.length&&j(t,"title")?_i(e,{type:"separator"}):s(e)}))};return c(t)},HL=function(e){var t=function(t){return function(){return e.formatter.match(t)}},n=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?M.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):M.none()}},r=function(e){var t=e.items;return void 0!==t&&t.length>0?re(t,r):[e.format]},i=ia([]),o=ia([]),a=ia([]),s=ia([]),c=ia(!1);e.on("PreInit",(function(a){var s=zL(e),c=jL(e,s,t,n);i.set(c),o.set(re(c,r))})),e.on("addStyleModifications",(function(i){var o=jL(e,i.items,t,n);a.set(o),c.set(i.replace),s.set(re(o,r))}));var u=function(){var e=c.get()?[]:i.get(),t=a.get();return e.concat(t)},l=function(){var e=c.get()?[]:o.get(),t=s.get();return e.concat(t)};return{getData:u,getFlattenedKeys:l}},VL=function(e){return f(e)&&1===e.nodeType},qL=sN.trim,$L=function(e){return function(t){if(VL(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},GL=$L("true"),XL=$L("false"),YL=function(e,t,n,r,i){return{type:e,title:t,url:n,level:r,attach:i}},KL=function(e){while(e=e.parentNode){var t=e.contentEditable;if(t&&"inherit"!==t)return GL(e)}return!1},ZL=function(e,t){return $(Yh(tt.fromDom(t),e),(function(e){return e.dom}))},JL=function(e){return e.innerText||e.textContent},QL=function(e){return e.id?e.id:ic("h")},ez=function(e){return e&&"A"===e.nodeName&&void 0!==(e.id||e.name)},tz=function(e){return ez(e)&&rz(e)},nz=function(e){return e&&/^(H[1-6])$/.test(e.nodeName)},rz=function(e){return KL(e)&&!XL(e)},iz=function(e){return nz(e)&&rz(e)},oz=function(e){return nz(e)?parseInt(e.nodeName.substr(1),10):0},az=function(e){var t=QL(e),n=function(){e.id=t};return YL("header",JL(e),"#"+t,oz(e),n)},sz=function(e){var t=e.id||e.name,n=JL(e);return YL("anchor",n||"#"+t,"#"+t,0,m)},cz=function(e){return $(K(e,iz),az)},uz=function(e){return $(K(e,tz),sz)},lz=function(e){var t=ZL("h1,h2,h3,h4,h5,h6,a:not([href])",e);return t},dz=function(e){return qL(e.title).length>0},fz=function(e){var t=lz(e);return K(cz(t).concat(uz(t)),dz)},hz={find:fz},pz="tinymce-url-history",gz=5,mz=function(e){return o(e)&&/^https?/.test(e)},vz=function(e){return s(e)&&e.length<=gz&&ie(e,mz)},bz=function(e){return a(e)&&Ce(e,(function(e){return!vz(e)})).isNone()},yz=function(){var e,t=NA.getItem(pz);if(null===t)return{};try{e=JSON.parse(t)}catch(n){if(n instanceof SyntaxError)return console.log("Local storage "+pz+" was not valid JSON",n),{};throw n}return bz(e)?e:(console.log("Local storage "+pz+" was not valid format",e),{})},xz=function(e){if(!bz(e))throw new Error("Bad format for history:\n"+JSON.stringify(e));NA.setItem(pz,JSON.stringify(e))},_z=function(e){var t=yz();return Te(t,e).getOr([])},wz=function(e,t){if(mz(e)){var n=yz(),r=Te(n,t).getOr([]),i=K(r,(function(t){return t!==e}));n[t]=[e].concat(i).slice(0,gz),xz(n)}},Dz=function(e){return!!e},Cz=function(e){return be(sN.makeMap(e,/[, ]/),Dz)},kz=function(e){return M.from(aS(e)).filter(h)},Tz=function(e){var t=M.some(sS(e)).filter(Dz),n=M.some(cS(e)).filter(Dz),r=t.or(n).map(Cz);return kz(e).fold(T,(function(e){return r.fold(S,(function(e){return ge(e).length>0&&e}))}))},Sz=function(e,t){var n=Tz(e);return u(n)?n?kz(e):M.none():n[t]?kz(e):M.none()},Az=function(e,t){return Sz(e,t).map((function(n){return function(r){return uO.nu((function(i){var s=function(e,t){if(!o(e))throw new Error("Expected value to be string");if(void 0!==t&&!a(t))throw new Error("Expected meta to be a object");var n={value:e,meta:t};i(n)},c=E({filetype:t,fieldname:r.fieldname},M.from(r.meta).getOr({}));n.call(e,s,r.value,c)}))}}))},Ez=function(e){return M.from(e).filter(o).getOrUndefined()},Uz=function(e){return uS(e)?M.none():M.some({targets:hz.find(e.getBody()),anchorTop:Ez(lS(e)),anchorBottom:Ez(dS(e))})},Oz=function(e){return M.from(fS(e))},Fz=function(e){return{getHistory:_z,addToHistory:wz,getLinkInformation:function(){return Uz(e)},getValidationHandler:function(){return Oz(e)},getUrlPicker:function(t){return Az(e,t)}}},Pz=function(e,t,n){var r=ia(!1),i=FL(t),o={shared:{providers:{icons:function(){return t.ui.registry.getAll().icons},menuItems:function(){return t.ui.registry.getAll().menuItems},translate:RD.translate,isDisabled:function(){return t.mode.isReadOnly()||t.ui.isDisabled()},getSetting:t.getParam.bind(t)},interpreter:function(e){return bL(e,o)},anchors:CL(t,n,i.isPositionedAtTop),header:i,getSink:function(){return ri.value(e)}},urlinput:Fz(t),styleselect:HL(t),colorinput:EL(t),dialog:OL(t),isContextMenuOpen:function(){return r.get()},setContextMenuState:function(e){return r.set(e)}};return o},Rz=function(e,t,n){var r=function(e,r){G([t,n],(function(t){t.broadcastEvent(e,r)}))},i=function(e,r){G([t,n],(function(t){t.broadcastOn([e],r)}))},o=function(e){return i(yg(),{target:e.target})},a=_d(),s=af(a,"touchstart",o),c=af(a,"touchmove",(function(e){return r(cs(),e)})),u=af(a,"touchend",(function(e){return r(us(),e)})),l=af(a,"mousedown",o),d=af(a,"mouseup",(function(e){0===e.raw.button&&i(_g(),{target:e.target})})),f=function(e){return i(yg(),{target:tt.fromDom(e.target)})},h=function(e){0===e.button&&i(_g(),{target:tt.fromDom(e.target)})},p=function(){G(e.editorManager.get(),(function(t){e!==t&&t.fire("DismissPopups",{relatedTarget:e})}))},g=function(e){return r(ls(),cf(e))},m=function(e){i(xg(),{}),r(ds(),cf(e))},v=function(){return i(xg(),{})},b=function(t){t.state&&i(yg(),{target:tt.fromDom(e.getContainer())})},y=function(e){i(yg(),{target:tt.fromDom(e.relatedTarget.getContainer())})};e.on("PostRender",(function(){e.on("click",f),e.on("tap",f),e.on("mouseup",h),e.on("mousedown",p),e.on("ScrollWindow",g),e.on("ResizeWindow",m),e.on("ResizeEditor",v),e.on("AfterProgressState",b),e.on("DismissPopups",y)})),e.on("remove",(function(){e.off("click",f),e.off("tap",f),e.off("mouseup",h),e.off("mousedown",p),e.off("ScrollWindow",g),e.off("ResizeWindow",m),e.off("ResizeEditor",v),e.off("AfterProgressState",b),e.off("DismissPopups",y),l.unbind(),s.unbind(),c.unbind(),u.unbind(),d.unbind()})),e.on("detach",(function(){Jp(t),Jp(n),t.destroy(),n.destroy()}))},Nz=nv,Mz=Bm,Iz=x([Xo("shell",!1),Eo("makeItem"),Xo("setupItem",m),im.field("listBehaviours",[Lx])]),Bz=function(){return{behaviours:fd([Lx.config({})])}},Lz=Nm({name:"items",overrides:Bz}),zz=x([Lz]),Wz=x("CustomList"),jz=function(e,t,n,r){var i=function(t,n){a(t).fold((function(){throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")}),(function(r){var i=Lx.contents(r),o=n.length,a=o-i.length,s=a>0?V(a,(function(){return e.makeItem()})):[],c=i.slice(o);G(c,(function(e){return Lx.remove(r,e)})),G(s,(function(e){return Lx.append(r,e)}));var u=Lx.contents(r);G(u,(function(r,i){e.setupItem(t,r,n[i],i)}))}))},o=e.shell?{behaviours:[Lx.config({})],components:[]}:{behaviours:[],components:t},a=function(t){return e.shell?M.some(t):Xm(t,e,"items")};return{uid:e.uid,dom:e.dom,components:o.components,behaviours:rm(e.listBehaviours,o.behaviours),apis:{setItems:i}}},Hz=hv({name:Wz(),configFields:Iz(),partFields:zz(),factory:jz,apis:{setItems:function(e,t,n){e.setItems(t,n)}}}),Vz=x([Eo("dom"),Xo("shell",!0),tm("toolbarBehaviours",[Lx])]),qz=function(){return{behaviours:fd([Lx.config({})])}},$z=x([Nm({name:"groups",overrides:qz})]),Gz=function(e,t,n,r){var i=function(e,t){o(e).fold((function(){throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")}),(function(e){Lx.set(e,t)}))},o=function(t){return e.shell?M.some(t):Xm(t,e,"groups")},a=e.shell?{behaviours:[Lx.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:a.components,behaviours:rm(e.toolbarBehaviours,a.behaviours),apis:{setGroups:i},domModification:{attributes:{role:"group"}}}},Xz=hv({name:"Toolbar",configFields:Vz(),partFields:$z(),factory:Gz,apis:{setGroups:function(e,t,n){e.setGroups(t,n)}}}),Yz=m,Kz=T,Zz=x([]),Jz=Object.freeze({__proto__:null,setup:Yz,isDocked:Kz,getBehaviours:Zz}),Qz=function(e){var t=Ee(Qn(e,"position"),"fixed"),n=t?M.none():yn(e);return n.orThunk((function(){var t=tt.fromTag("span");return vn(e).bind((function(e){Ur(e,t);var n=yn(t);return Nr(t),n}))}))},eW=function(e){return Qz(e).map(hr).getOrThunk((function(){return lr(0,0)}))},tW=aa.generate([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),nW=function(e,t){var n=e.element;ou(n,t.transitionClass),su(n,t.fadeOutClass),ou(n,t.fadeInClass),t.onShow(e)},rW=function(e,t){var n=e.element;ou(n,t.transitionClass),su(n,t.fadeInClass),ou(n,t.fadeOutClass),t.onHide(e)},iW=function(e,t){return e.y<t.bottom&&e.bottom>t.y},oW=function(e,t){return e.y>=t.y},aW=function(e,t){return e.bottom<=t.bottom},sW=function(e,t,n){return ie(e,(function(e){switch(e){case"bottom":return aW(t,n);case"top":return oW(t,n)}}))},cW=function(e,t){return t.getInitialPos().map((function(t){return Kr(t.bounds.x,t.bounds.y,vr(e),ar(e))}))},uW=function(e,t,n){n.setInitialPos({style:er(e),position:Zn(e,"position")||"static",bounds:t})},lW=function(e,t,n){return n.getInitialPos().bind((function(r){switch(n.clearInitialPos(),r.position){case"static":return M.some(tW.static());case"absolute":var i=Qz(e).map(Zr).getOrThunk((function(){return Zr(In())}));return M.some(tW.absolute(Ad("absolute",Te(r.style,"left").map((function(e){return t.x-i.x})),Te(r.style,"top").map((function(e){return t.y-i.y})),Te(r.style,"right").map((function(e){return i.right-t.right})),Te(r.style,"bottom").map((function(e){return i.bottom-t.bottom})))));default:return M.none()}}))},dW=function(e,t,n){return cW(e,n).filter((function(e){return sW(n.getModes(),e,t)})).bind((function(t){return lW(e,t,n)}))},fW=function(e,t,n){var r=Zr(e);if(sW(n.getModes(),r,t))return M.none();uW(e,r,n);var i=Qr(),o=r.x-i.x,a=t.y-i.y,s=i.bottom-t.bottom,c=r.y<=t.y;return M.some(tW.fixed(Ad("fixed",M.some(o),c?M.some(a):M.none(),M.none(),c?M.none():M.some(s))))},hW=function(e,t,n){var r=e.element,i=Ee(Qn(r,"position"),"fixed");return i?dW(r,t,n):fW(r,t,n)},pW=function(e,t){var n=e.element;return cW(n,t).bind((function(e){return lW(n,e,t)}))},gW=function(e,t,n){n.setDocked(!1),G(["left","right","top","bottom","position"],(function(t){return nr(e.element,t)})),t.onUndocked(e)},mW=function(e,t,n,r){var i="fixed"===r.position;n.setDocked(i),Ud(e.element,r);var o=i?t.onDocked:t.onUndocked;o(e)},vW=function(e,t,n,r,i){void 0===i&&(i=!1),t.contextual.each((function(t){t.lazyContext(e).each((function(o){var a=iW(o,r);if(a!==n.isVisible())if(n.setVisible(a),i&&!a)uu(e.element,[t.fadeOutClass]),t.onHide(e);else{var s=a?nW:rW;s(e,t)}}))}))},bW=function(e,t,n){var r=t.lazyViewport(e),i=n.isDocked();i&&vW(e,t,n,r),hW(e,r,n).each((function(i){i.fold((function(){return gW(e,t,n)}),(function(r){return mW(e,t,n,r)}),(function(i){vW(e,t,n,r,!0),mW(e,t,n,i)}))}))},yW=function(e,t,n){var r=e.element;n.setDocked(!1),pW(e,n).each((function(r){r.fold((function(){return gW(e,t,n)}),(function(r){return mW(e,t,n,r)}),m)})),n.setVisible(!0),t.contextual.each((function(t){lu(r,[t.fadeInClass,t.fadeOutClass,t.transitionClass]),t.onShow(e)})),xW(e,t,n)},xW=function(e,t,n){e.getSystem().isConnected()&&bW(e,t,n)},_W=function(e,t,n){n.isDocked()&&yW(e,t,n)},wW=function(e,t,n){return n.isDocked()},DW=function(e,t,n,r){return n.setModes(r)},CW=function(e,t,n){return n.getModes()},kW=Object.freeze({__proto__:null,refresh:xW,reset:_W,isDocked:wW,getModes:CW,setModes:DW}),TW=function(e,t){return As([Ws($a(),(function(n,r){e.contextual.each((function(e){if(cu(n.element,e.transitionClass)){lu(n.element,[e.transitionClass,e.fadeInClass]);var i=t.isVisible()?e.onShown:e.onHidden;i(n)}r.stop()}))})),Fs(ls(),(function(n,r){xW(n,e,t)})),Fs(ds(),(function(n,r){_W(n,e,t)}))])},SW=Object.freeze({__proto__:null,events:TW}),AW=[$o("contextual",[Fo("fadeInClass"),Fo("fadeOutClass"),Fo("transitionClass"),No("lazyContext"),sl("onShow"),sl("onShown"),sl("onHide"),sl("onHidden")]),ea("lazyViewport",Qr),na("modes",["top","bottom"],co),sl("onDocked"),sl("onUndocked")],EW=function(e){var t=ia(!1),n=ia(!0),r=rf(),i=ia(e.modes),o=function(){return"docked:  "+t.get()+", visible: "+n.get()+", modes: "+i.get().join(",")};return kc({isDocked:t.get,setDocked:t.set,getInitialPos:r.get,setInitialPos:r.set,clearInitialPos:r.clear,isVisible:n.get,setVisible:n.set,getModes:i.get,setModes:i.set,readState:o})},UW=Object.freeze({__proto__:null,init:EW}),OW=pd({fields:AW,name:"docking",active:SW,apis:kW,state:UW}),FW=x(ic("toolbar-height-change")),PW={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},RW="tox-tinymce--toolbar-sticky-on",NW="tox-tinymce--toolbar-sticky-off",MW=function(e,t){var n=hn(t),r=n.dom.defaultView.innerHeight,i=Ir(n),o=tt.fromDom(e.elm),a=Jr(o),s=ar(o),c=a.y,u=c+s,l=hr(t),d=ar(t),f=l.top,h=f+d,p=Math.abs(f-i.top)<2,g=Math.abs(h-(i.top+r))<2;if(p&&c<h)Br(i.left,c-d,n);else if(g&&u>f){var m=c-r+s+d;Br(i.left,m,n)}},IW=function(e,t){return j(OW.getModes(e),t)},BW=function(e){var t=function(e){return sr(e)+(parseInt(Zn(e,"margin-top"),10)||0)+(parseInt(Zn(e,"margin-bottom"),10)||0)},n=e.element;vn(n).each((function(r){var i="padding-"+OW.getModes(e)[0];if(OW.isDocked(e)){var o=vr(r);Xn(n,"width",o+"px"),Xn(r,i,t(n)+"px")}else nr(n,"width"),nr(r,i)}))},LW=function(e,t){t?(su(e,PW.fadeOutClass),uu(e,[PW.transitionClass,PW.fadeInClass])):(su(e,PW.fadeInClass),uu(e,[PW.fadeOutClass,PW.transitionClass]))},zW=function(e,t){var n=tt.fromDom(e.getContainer());t?(ou(n,RW),su(n,NW)):(ou(n,NW),su(n,RW))},WW=function(e,t){var n=hn(t);kd(n).filter((function(e){return!un(t,e)})).filter((function(t){return un(t,tt.fromDom(n.dom.body))||fn(e,t)})).each((function(){return wd(t)}))},jW=function(e,t){return Td(e).orThunk((function(){return t().toOptional().bind((function(e){return Td(e.element)}))}))},HW=function(e,t,n){e.inline||(t.header.isPositionedAtTop()||e.on("ResizeEditor",(function(){n().each(OW.reset)})),e.on("ResizeWindow ResizeEditor",(function(){n().each(BW)})),e.on("SkinLoaded",(function(){n().each((function(e){OW.isDocked(e)?OW.reset(e):OW.refresh(e)}))})),e.on("FullscreenStateChanged",(function(){n().each(OW.reset)}))),e.on("AfterScrollIntoView",(function(e){n().each((function(t){OW.refresh(t);var n=t.element;Zb(n)&&MW(e,n)}))})),e.on("PostRender",(function(){zW(e,!1)}))},VW=function(e){return e().map(OW.isDocked).getOr(!1)},qW=function(){var e;return[bd.config({channels:(e={},e[FW()]={onReceive:BW},e)})]},$W=function(e,t){var n=rf(),r=t.getSink,i=function(e){r().each((function(t){return e(t.element)}))},o=function(t){e.inline||BW(t),zW(e,OW.isDocked(t)),t.getSystem().broadcastOn([xg()],{}),r().each((function(e){return e.getSystem().broadcastOn([xg()],{})}))},a=e.inline?[]:qW();return O([Kx.config({}),OW.config({contextual:E({lazyContext:function(t){var n=sr(t.element),r=e.inline?e.getContentAreaContainer():e.getContainer(),i=Zr(tt.fromDom(r)),o=i.height-n,a=i.y+(IW(t,"top")?0:n);return M.some(Kr(i.x,a,i.width,o))},onShow:function(){i((function(e){return LW(e,!0)}))},onShown:function(e){i((function(e){return lu(e,[PW.transitionClass,PW.fadeInClass])})),n.get().each((function(t){WW(e.element,t),n.clear()}))},onHide:function(e){jW(e.element,r).fold(n.clear,n.set),i((function(e){return LW(e,!1)}))},onHidden:function(){i((function(e){return lu(e,[PW.transitionClass])}))}},PW),lazyViewport:function(t){var n=Qr(),r=tS(e),i=n.y+(IW(t,"top")?r:0),o=n.height-(IW(t,"bottom")?r:0);return Kr(n.x,i,n.width,o)},modes:[t.header.getDockingMode()],onDocked:o,onUndocked:o})],a,!0)},GW=Object.freeze({__proto__:null,setup:HW,isDocked:VW,getBehaviours:$W}),XW=function(e){var t=e.editor,n=e.sticky?$W:Zz;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:fd(n(t,e.sharedBackstage))}},YW=Qi([Fo("type"),Uo("items",to([io([Fo("name"),Lo("items",co)]),co]))].concat(PC)),KW=function(e){return xo("GroupToolbarButton",YW,e)},ZW=[Ho("text"),Ho("tooltip"),Ho("icon"),No("fetch"),ea("onSetup",(function(){return m}))],JW=Qi(O([Fo("type")],ZW,!0)),QW=function(e){return xo("menubutton",JW,e)},ej=Qi([Fo("type"),Ho("tooltip"),Ho("icon"),Ho("text"),Vo("select"),No("fetch"),ea("onSetup",(function(){return m})),Jo("presets","normal",["normal","color","listpreview"]),Xo("columns",1),No("onAction"),No("onItemAction")]),tj=function(e){return xo("SplitButton",ej,e)},nj=function(e,t){var n=function(e,n){var r=$(n,(function(e){var n={type:"menubutton",text:e.text,fetch:function(t){t(e.getItems())}},r=QW(n).mapError((function(e){return Do(e)})).getOrDie();return nI(r,"tox-mbtn",t.backstage,M.some("menuitem"))}));Lx.set(e,r)},r={focus:Ex.focusIn,setMenus:n};return{uid:e.uid,dom:e.dom,components:[],behaviours:fd([Lx.config({}),Wx("menubar-events",[js((function(t){e.onSetup(t)})),Fs(Ia(),(function(e,t){Bu(e.element,".tox-mbtn--active").each((function(n){Lu(t.event.target,".tox-mbtn").each((function(t){un(n,t)||e.getSystem().getByDom(n).each((function(n){e.getSystem().getByDom(t).each((function(e){$O.expand(e),$O.close(n),Kx.focus(e)}))}))}))}))})),Fs(ms(),(function(e,t){t.event.prevFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(n){t.event.newFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(e){$O.isOpen(n)&&($O.expand(e),$O.close(n))}))}))}))]),Ex.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return e.onEscape(t),M.some(!0)}}),AU.config({})]),apis:r,domModification:{attributes:{role:"menubar"}}}},rj=fv({factory:nj,name:"silver.Menubar",configFields:[Eo("dom"),Eo("uid"),Eo("onEscape"),Eo("backstage"),Xo("onSetup",m)],apis:{focus:function(e,t){e.focus(t)},setMenus:function(e,t,n){e.setMenus(t,n)}}}),ij=function(e,t){return t.getAnimationRoot.fold((function(){return e.element}),(function(t){return t(e)}))},oj=function(e){return e.dimension.property},aj=function(e,t){return e.dimension.getDimension(t)},sj=function(e,t){var n=ij(e,t);lu(n,[t.shrinkingClass,t.growingClass])},cj=function(e,t){su(e.element,t.openClass),ou(e.element,t.closedClass),Xn(e.element,oj(t),"0px"),rr(e.element)},uj=function(e,t){su(e.element,t.closedClass),ou(e.element,t.openClass),nr(e.element,oj(t))},lj=function(e,t,n,r){n.setCollapsed(),Xn(e.element,oj(t),aj(t,e.element)),rr(e.element),sj(e,t),cj(e,t),t.onStartShrink(e),t.onShrunk(e)},dj=function(e,t,n,r){var i=r.getOrThunk((function(){return aj(t,e.element)}));n.setCollapsed(),Xn(e.element,oj(t),i),rr(e.element);var o=ij(e,t);su(o,t.growingClass),ou(o,t.shrinkingClass),cj(e,t),t.onStartShrink(e)},fj=function(e,t,n){var r=aj(t,e.element),i="0px"===r?lj:dj;i(e,t,n,M.some(r))},hj=function(e,t,n){var r=ij(e,t),i=cu(r,t.shrinkingClass),o=aj(t,e.element);uj(e,t);var a=aj(t,e.element),s=function(){Xn(e.element,oj(t),o),rr(e.element)},c=function(){cj(e,t)},u=i?s:c;u(),su(r,t.shrinkingClass),ou(r,t.growingClass),uj(e,t),Xn(e.element,oj(t),a),n.setExpanded(),t.onStartGrow(e)},pj=function(e,t,n){if(n.isExpanded()){nr(e.element,oj(t));var r=aj(t,e.element);Xn(e.element,oj(t),r)}},gj=function(e,t,n){n.isExpanded()||hj(e,t,n)},mj=function(e,t,n){n.isExpanded()&&fj(e,t,n)},vj=function(e,t,n){n.isExpanded()&&lj(e,t,n)},bj=function(e,t,n){return n.isExpanded()},yj=function(e,t,n){return n.isCollapsed()},xj=function(e,t,n){var r=ij(e,t);return!0===cu(r,t.growingClass)},_j=function(e,t,n){var r=ij(e,t);return!0===cu(r,t.shrinkingClass)},wj=function(e,t,n){return xj(e,t)||_j(e,t)},Dj=function(e,t,n){var r=n.isExpanded()?fj:hj;r(e,t,n)},Cj=Object.freeze({__proto__:null,refresh:pj,grow:gj,shrink:mj,immediateShrink:vj,hasGrown:bj,hasShrunk:yj,isGrowing:xj,isShrinking:_j,isTransitioning:wj,toggleGrow:Dj,disableTransitions:sj}),kj=function(e,t,n){var r=t.expanded;return Uc(r?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:ha(t.dimension.property,"0px")})},Tj=function(e,t){return As([Ws($a(),(function(n,r){var i=r.event.raw;if(i.propertyName===e.dimension.property){sj(n,e),t.isExpanded()&&nr(n.element,e.dimension.property);var o=t.isExpanded()?e.onGrown:e.onShrunk;o(n)}}))])},Sj=Object.freeze({__proto__:null,exhibit:kj,events:Tj}),Aj=[Eo("closedClass"),Eo("openClass"),Eo("shrinkingClass"),Eo("growingClass"),zo("getAnimationRoot"),sl("onShrunk"),sl("onStartShrink"),sl("onGrown"),sl("onStartGrow"),Xo("expanded",!1),Uo("dimension",Co("property",{width:[dl("property","width"),dl("getDimension",(function(e){return vr(e)+"px"}))],height:[dl("property","height"),dl("getDimension",(function(e){return ar(e)+"px"}))]}))],Ej=function(e){var t=ia(e.expanded),n=function(){return"expanded: "+t.get()};return kc({isExpanded:function(){return!0===t.get()},isCollapsed:function(){return!1===t.get()},setCollapsed:D(t.set,!1),setExpanded:D(t.set,!0),readState:n})},Uj=Object.freeze({__proto__:null,init:Ej}),Oj=pd({fields:Aj,name:"sliding",active:Sj,apis:Cj,state:Uj}),Fj="container",Pj=[tm("slotBehaviours",[])],Rj=function(e){return"<alloy.field."+e+">"},Nj=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Hm(Fj,Rj(t),n)};return{slot:t,record:x(e)}}(),n=e(t),r=t.record(),i=$(r,(function(e){return Pm({name:e,pname:Rj(e)})}));return av(Fj,Pj,i,Mj,n)},Mj=function(e,t){var n=function(t){return Jm(e)},r=function(t,n){return Xm(t,e,n)},i=function(t,n){return function(r,i){return Xm(r,e,i).map((function(e){return t(e,i)})).getOr(n)}},o=function(e){return function(t,n){G(n,(function(n){return e(t,n)}))}},a=function(e,t){return"true"!==jn(e.element,"aria-hidden")},s=function(e,t){if(!a(e)){var n=e.element;nr(n,"display"),qn(n,"aria-hidden"),Ds(e,vs(),{name:t,visible:!0})}},c=function(e,t){if(a(e)){var n=e.element;Xn(n,"display","none"),zn(n,"aria-hidden","true"),Ds(e,vs(),{name:t,visible:!1})}},u=i(a,!1),l=i(c),d=o(l),f=function(e){return d(e,n())},h=i(s),p={getSlotNames:n,getSlot:r,isShowing:u,hideSlot:l,hideAllSlots:f,showSlot:h};return{uid:e.uid,dom:e.dom,components:t,behaviours:nm(e.slotBehaviours),apis:p}},Ij=be({getSlotNames:function(e,t){return e.getSlotNames(t)},getSlot:function(e,t,n){return e.getSlot(t,n)},isShowing:function(e,t,n){return e.isShowing(t,n)},hideSlot:function(e,t,n){return e.hideSlot(t,n)},hideAllSlots:function(e,t){return e.hideAllSlots(t)},showSlot:function(e,t,n){return e.showSlot(t,n)}},(function(e){return Dc(e)})),Bj=E(E({},Ij),{sketch:Nj}),Lj=Qi([Ho("icon"),Ho("tooltip"),ea("onShow",m),ea("onHide",m),ea("onSetup",(function(){return m}))]),zj=function(e){return xo("sidebar",Lj,e)},Wj=function(e){var t=e.ui.registry.getAll().sidebars;G(ge(t),(function(n){var r=t[n],i=function(){return Ee(M.from(e.queryCommandValue("ToggleSidebar")),n)};e.ui.registry.addToggleButton(n,{icon:r.icon,tooltip:r.tooltip,onAction:function(t){e.execCommand("ToggleSidebar",!1,n),t.setActive(i())},onSetup:function(t){var n=function(){return t.setActive(i())};return e.on("ToggleSidebar",n),function(){e.off("ToggleSidebar",n)}}})}))},jj=function(e){return{element:function(){return e.element.dom}}},Hj=function(e,t){var n=$(ge(t),(function(e){var n=t[e],r=_o(zj(n));return{name:e,getApi:jj,onSetup:r.onSetup,onShow:r.onShow,onHide:r.onHide}}));return $(n,(function(t){var r=ia(m);return e.slot(t.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:sT.unnamedEvents([CS(t,r),kS(t,r),Fs(vs(),(function(e,t){var r=t.event,i=ee(n,(function(e){return e.name===r.name}));i.each((function(t){var n=r.visible?t.onShow:t.onHide;n(t.getApi(e))}))}))])})}))},Vj=function(e){return Bj.sketch((function(t){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:Hj(t,e),slotBehaviours:sT.unnamedEvents([js((function(e){return Bj.hideAllSlots(e)}))])}}))},qj=function(e,t){var n=bv.getCurrent(e);n.each((function(e){return Lx.set(e,[Vj(t)])}))},$j=function(e,t){var n=bv.getCurrent(e);n.each((function(e){var n=bv.getCurrent(e);n.each((function(n){Oj.hasGrown(e)?Bj.isShowing(n,t)?Oj.shrink(e):(Bj.hideAllSlots(n),Bj.showSlot(n,t)):(Bj.hideAllSlots(n),Bj.showSlot(n,t),Oj.grow(e))}))}))},Gj=function(e){var t=bv.getCurrent(e);return t.bind((function(e){var t=Oj.isGrowing(e)||Oj.hasGrown(e);if(t){var n=bv.getCurrent(e);return n.bind((function(e){return ee(Bj.getSlotNames(e),(function(t){return Bj.isShowing(e,t)}))}))}return M.none()}))},Xj=ic("FixSizeEvent"),Yj=ic("AutoSizeEvent"),Kj=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:fd([AU.config({}),Kx.config({}),Oj.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(e){var t=bv.getCurrent(e);t.each(Bj.hideAllSlots),ws(e,Yj)},onGrown:function(e){ws(e,Yj)},onStartGrow:function(e){Ds(e,Xj,{width:Qn(e.element,"width").getOr("")})},onStartShrink:function(e){Ds(e,Xj,{width:vr(e.element)+"px"})}}),Lx.config({}),bv.config({find:function(e){var t=Lx.contents(e);return de(t)}})])}],behaviours:fd([QR.childAt(0),Wx("sidebar-sliding-events",[Fs(Xj,(function(e,t){Xn(e.element,"width",t.event.width)})),Fs(Yj,(function(e,t){nr(e.element,"width")}))])])}},Zj=function(e,t,n,r){zn(e.element,"aria-busy",!0);var i=t.getRoot(e).getOr(e),o=fd([Ex.config({mode:"special",onTab:function(){return M.some(!0)},onShiftTab:function(){return M.some(!0)}}),Kx.config({})]),a=r(i,o),s=i.getSystem().build(a);Lx.append(i,Au(s)),s.hasConfigured(Ex)&&t.focus&&Ex.focusIn(s),n.isBlocked()||t.onBlock(e),n.blockWith((function(){return Lx.remove(i,s)}))},Jj=function(e,t,n){qn(e.element,"aria-busy"),n.isBlocked()&&t.onUnblock(e),n.clear()},Qj=Object.freeze({__proto__:null,block:Zj,unblock:Jj}),eH=[ea("getRoot",M.none),Qo("focus",!0),sl("onBlock"),sl("onUnblock")],tH=function(){var e=ef(),t=function(t){e.set({destroy:t})};return kc({readState:e.isSet,blockWith:t,clear:e.clear,isBlocked:e.isSet})},nH=Object.freeze({__proto__:null,init:tH}),rH=pd({fields:eH,name:"blocking",apis:Qj,state:nH}),iH=function(e){return function(t,n){return{dom:{tag:"div",attributes:{"aria-label":e.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Tw('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}}},oH=function(e){return bv.getCurrent(e).each((function(e){return wd(e.element)}))},aH=function(e,t){var n="tabindex",r="data-mce-"+n;M.from(e.iframeElement).map(tt.fromDom).each((function(e){t?(Hn(e,n).each((function(t){return zn(e,r,t)})),zn(e,n,-1)):(qn(e,n),Hn(e,r).each((function(t){zn(e,n,t),qn(e,r)})))}))},sH=function(e,t,n,r){var i=t.element;if(aH(e,n),n)rH.block(t,iH(r)),nr(i,"display"),qn(i,"aria-hidden"),e.hasFocus()&&oH(t);else{var o=bv.getCurrent(t).exists((function(e){return Cd(e.element)}));rH.unblock(t),Xn(i,"display","none"),zn(i,"aria-hidden","true"),o&&e.focus()}},cH=function(e){return{uid:e.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:fd([Lx.config({}),rH.config({focus:!1}),bv.config({find:function(e){return de(e.components())}})]),components:[]}},uH=function(e){return"focusin"===e.type},lH=function(e){if(uH(e)){var t=e.composed?de(e.composedPath()):M.from(e.target);return t.map(tt.fromDom).filter(lt).exists((function(e){return cu(e,"mce-pastebin")}))}return!1},dH=function(e,t,n){var r=ia(!1),i=rf(),o=function(n){r.get()&&!lH(n)&&(n.preventDefault(),oH(t()),e.editorManager.setActive(e))};e.inline||e.on("PreInit",(function(){e.dom.bind(e.getWin(),"focusin",o),e.on("BeforeExecCommand",(function(e){"mcefocus"===e.command.toLowerCase()&&!0!==e.value&&o(e)}))}));var a=function(i){i!==r.get()&&(r.set(i),sH(e,t(),i,n.providers),e.fire("AfterProgressState",{state:i}))};e.on("ProgressState",(function(t){if(i.on(_w.clearTimeout),p(t.time)){var n=_w.setEditorTimeout(e,(function(){return a(t.state)}),t.time);i.set(n)}else a(t.state),i.clear()}))},fH=function(e,t){var n={len:0,list:[]},r=J(e,(function(e,n){var r=t(n,e.len);return r.fold(x(e),(function(t){return{len:t.finish,list:e.list.concat([t])}}))}),n);return r.list},hH=function(e,t,n){return{within:e,extra:t,withinWidth:n}},pH=function(e,t,n){var r=fH(e,(function(e,t){var r=n(e);return M.some({element:e,start:t,finish:t+r,width:r})})),i=K(r,(function(e){return e.finish<=t})),o=Z(i,(function(e,t){return e+t.width}),0),a=r.slice(i.length);return{within:i,extra:a,withinWidth:o}},gH=function(e){return $(e,(function(e){return e.element}))},mH=function(e,t,n){var r=gH(e.concat(t));return hH(r,[],n)},vH=function(e,t,n,r){var i=gH(e).concat([n]);return hH(i,gH(t),r)},bH=function(e,t,n){return hH(gH(e),[],n)},yH=function(e,t,n){var r=pH(t,e,n);return 0===r.extra.length?M.some(r):M.none()},xH=function(e,t,n,r){var i=yH(e,t,n).getOrThunk((function(){return pH(t,e-n(r),n)})),o=i.within,a=i.extra,s=i.withinWidth;return 1===a.length&&a[0].width<=n(r)?mH(o,a,s):a.length>=1?vH(o,a,r,s):bH(o,a,s)},_H=function(e,t){var n=$(t,(function(e){return Au(e)}));Xz.setGroups(e,n)},wH=function(e){return pe(e,(function(e){return Td(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}))},DH=function(e,t,n){var r=t.builtGroups.get();if(0!==r.length){var i=Ym(e,t,"primary"),o=SO.getCoupled(e,"overflowGroup");Xn(i.element,"visibility","hidden");var a=r.concat([o]),s=wH(a);n([]),_H(i,a);var c=vr(i.element),u=xH(c,t.builtGroups.get(),(function(e){return vr(e.element)}),o);0===u.extra.length?(Lx.remove(i,o),n([])):(_H(i,u.within),n(u.extra)),nr(i.element,"visibility"),rr(i.element),s.each(Kx.focus)}},CH=x([tm("splitToolbarBehaviours",[SO]),So("builtGroups",(function(){return ia([])}))]),kH=x([ol(["overflowToggledClass"]),Vo("getOverflowBounds"),Eo("lazySink"),So("overflowGroups",(function(){return ia([])}))].concat(CH())),TH=x([Pm({factory:Xz,schema:Vz(),name:"primary"}),Rm({schema:Vz(),name:"overflow"}),Rm({name:"overflow-button"}),Rm({name:"overflow-group"})]),SH=x((function(e,t){yr(e,Math.floor(t))})),AH=x([ol(["toggledClass"]),Eo("lazySink"),No("fetch"),Vo("getBounds"),$o("fireDismissalEventInstead",[Xo("event",ps())]),Lf()]),EH=x([Rm({name:"button",overrides:function(e){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:fd([g_.config({toggleClass:e.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),Rm({factory:Xz,schema:Vz(),name:"toolbar",overrides:function(e){return{toolbarBehaviours:fd([Ex.config({mode:"cyclic",onEscape:function(t){return Xm(t,e,"button").each(Kx.focus),M.none()}})])}}})]),UH=function(e,t){var n=SO.getCoupled(e,"toolbarSandbox");bg.isOpen(n)?bg.close(n):bg.open(n,t.toolbar())},OH=function(e,t,n,r){var i=n.getBounds.map((function(e){return e()})),o=n.lazySink(e).getOrDie();Bp.positionWithinBounds(o,t,{anchor:{type:"hotspot",hotspot:e,layouts:r,overrides:{maxWidthFunction:SH()}}},i)},FH=function(e,t,n,r,i){Xz.setGroups(t,i),OH(e,t,n,r),g_.on(e)},PH=function(e,t,n){var r=Wu(),i=function(i,o){n.fetch().get((function(i){FH(e,o,n,t.layouts,i),r.link(e.element),Ex.focusIn(o)}))},o=function(){g_.off(e),Kx.focus(e),r.unlink(e.element)};return{dom:{tag:"div",attributes:{id:r.id}},behaviours:fd([Ex.config({mode:"special",onEscape:function(e){return bg.close(e),M.some(!0)}}),bg.config({onOpen:i,onClose:o,isPartOf:function(t,n,r){return Hu(n,r)||Hu(e,r)},getAttachPoint:function(){return n.lazySink(e).getOrDie()}}),bd.config({channels:E(E({},Dg(E({isExtraPart:T},n.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),kg({doReposition:function(){bg.getState(SO.getCoupled(e,"toolbarSandbox")).each((function(r){OH(e,r,n,t.layouts)}))}}))})])}},RH=function(e,t,n,r){return E(E({},Dw.sketch(E(E({},r.button()),{action:function(e){UH(e,r)},buttonBehaviours:im.augment({dump:r.button().buttonBehaviours},[SO.config({others:{toolbarSandbox:function(t){return PH(t,n,e)}}})])}))),{apis:{setGroups:function(t,r){bg.getState(SO.getCoupled(t,"toolbarSandbox")).each((function(i){FH(t,i,e,n.layouts,r)}))},reposition:function(t){bg.getState(SO.getCoupled(t,"toolbarSandbox")).each((function(r){OH(t,r,e,n.layouts)}))},toggle:function(e){UH(e,r)},getToolbar:function(e){return bg.getState(SO.getCoupled(e,"toolbarSandbox"))},isOpen:function(e){return bg.isOpen(SO.getCoupled(e,"toolbarSandbox"))}}})},NH=hv({name:"FloatingToolbarButton",factory:RH,configFields:AH(),partFields:EH(),apis:{setGroups:function(e,t,n){e.setGroups(t,n)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},getToolbar:function(e,t){return e.getToolbar(t)},isOpen:function(e,t){return e.isOpen(t)}}}),MH=x([Eo("items"),ol(["itemSelector"]),tm("tgroupBehaviours",[Ex])]),IH=x([Mm({name:"items",unit:"item"})]),BH=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:rm(e.tgroupBehaviours,[Ex.config({mode:"flow",selector:e.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},LH=hv({name:"ToolbarGroup",configFields:MH(),partFields:IH(),factory:BH}),zH=function(e){return $(e,(function(e){return Au(e)}))},WH=function(e,t,n){DH(e,n,(function(r){n.overflowGroups.set(r),t.getOpt(e).each((function(e){NH.setGroups(e,zH(r))}))}))},jH=function(e,t,n,r){var i=Sw(NH.sketch({fetch:function(){return uO.nu((function(t){t(zH(e.overflowGroups.get()))}))},layouts:{onLtr:function(){return[jl,Wl]},onRtl:function(){return[Wl,jl]},onBottomLtr:function(){return[Vl,Hl]},onBottomRtl:function(){return[Hl,Vl]}},getBounds:n.getOverflowBounds,lazySink:e.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:e.markers.overflowToggledClass},parts:{button:r["overflow-button"](),toolbar:r.overflow()}}));return{uid:e.uid,dom:e.dom,components:t,behaviours:rm(e.splitToolbarBehaviours,[SO.config({others:{overflowGroup:function(){return LH.sketch(E(E({},r["overflow-group"]()),{items:[i.asSpec()]}))}}})]),apis:{setGroups:function(t,n){e.builtGroups.set($(n,t.getSystem().build)),WH(t,i,e)},refresh:function(t){return WH(t,i,e)},toggle:function(e){i.getOpt(e).each((function(e){NH.toggle(e)}))},isOpen:function(e){return i.getOpt(e).map(NH.isOpen).getOr(!1)},reposition:function(e){i.getOpt(e).each((function(e){NH.reposition(e)}))},getOverflow:function(e){return i.getOpt(e).bind(NH.getToolbar)}},domModification:{attributes:{role:"group"}}}},HH=hv({name:"SplitFloatingToolbar",configFields:kH(),partFields:TH(),factory:jH,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)},getOverflow:function(e,t){return e.getOverflow(t)}}}),VH=x([ol(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),sl("onOpened"),sl("onClosed")].concat(CH())),qH=x([Pm({factory:Xz,schema:Vz(),name:"primary"}),Pm({factory:Xz,schema:Vz(),name:"overflow",overrides:function(e){return{toolbarBehaviours:fd([Oj.config({dimension:{property:"height"},closedClass:e.markers.closedClass,openClass:e.markers.openClass,shrinkingClass:e.markers.shrinkingClass,growingClass:e.markers.growingClass,onShrunk:function(t){Xm(t,e,"overflow-button").each((function(e){g_.off(e),Kx.focus(e)})),e.onClosed(t)},onGrown:function(t){Ex.focusIn(t),e.onOpened(t)},onStartGrow:function(t){Xm(t,e,"overflow-button").each(g_.on)}}),Ex.config({mode:"acyclic",onEscape:function(t){return Xm(t,e,"overflow-button").each(Kx.focus),M.some(!0)}})])}}}),Rm({name:"overflow-button",overrides:function(e){return{buttonBehaviours:fd([g_.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),Rm({name:"overflow-group"})]),$H=function(e,t){return Xm(e,t,"overflow").map(Oj.hasGrown).getOr(!1)},GH=function(e,t){Xm(e,t,"overflow-button").bind((function(){return Xm(e,t,"overflow")})).each((function(n){XH(e,t),Oj.toggleGrow(n)}))},XH=function(e,t){Xm(e,t,"overflow").each((function(n){DH(e,t,(function(e){var t=$(e,(function(e){return Au(e)}));Xz.setGroups(n,t)})),Xm(e,t,"overflow-button").each((function(e){Oj.hasGrown(n)&&g_.on(e)})),Oj.refresh(n)}))},YH=function(e,t,n,r){var i="alloy.toolbar.toggle",o=function(t,n){var r=$(n,t.getSystem().build);e.builtGroups.set(r)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rm(e.splitToolbarBehaviours,[SO.config({others:{overflowGroup:function(e){return LH.sketch(E(E({},r["overflow-group"]()),{items:[Dw.sketch(E(E({},r["overflow-button"]()),{action:function(t){ws(e,i)}}))]}))}}}),Wx("toolbar-toggle-events",[Fs(i,(function(t){GH(t,e)}))])]),apis:{setGroups:function(t,n){o(t,n),XH(t,e)},refresh:function(t){return XH(t,e)},toggle:function(t){return GH(t,e)},isOpen:function(t){return $H(t,e)}},domModification:{attributes:{role:"group"}}}},KH=hv({name:"SplitSlidingToolbar",configFields:VH(),partFields:qH(),factory:YH,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)}}}),ZH=function(e){var t=e.title.fold((function(){return{}}),(function(e){return{attributes:{title:e}}}));return{dom:E({tag:"div",classes:["tox-toolbar__group"]},t),components:[LH.parts.items({})],items:e.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:fd([AU.config({}),Kx.config({})])}},JH=function(e){return LH.sketch(ZH(e))},QH=function(e,t){var n=js((function(t){var n=$(e.initGroups,JH);Xz.setGroups(t,n)}));return fd([wS.toolbarButton(e.providers.isDisabled),vS(),Ex.config({mode:t,onEscape:e.onEscape,selector:".tox-toolbar__group"}),Wx("toolbar-events",[n])])},eV=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return{uid:e.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":ZH({title:M.none(),items:[]}),"overflow-button":oI({name:"more",icon:M.some("more-drawer"),disabled:!1,tooltip:M.some("More..."),primary:!1,borderless:!1},M.none(),e.providers)},splitToolbarBehaviours:QH(e,t)}},tV=function(e){var t=eV(e),n=4,r=HH.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return HH.sketch(E(E({},t),{lazySink:e.getSink,getOverflowBounds:function(){var t=e.moreDrawerData.lazyHeader().element,r=Jr(t),i=gn(t),o=Jr(i),a=Math.max(i.dom.scrollHeight,o.height);return Kr(r.x+n,o.y,r.width-2*n,a)},parts:E(E({},t.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:e.attributes}}}),components:[r],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},nV=function(e){var t=KH.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=KH.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),r=eV(e);return KH.sketch(E(E({},r),{components:[t,n],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(e){e.getSystem().broadcastOn([FW()],{type:"opened"})},onClosed:function(e){e.getSystem().broadcastOn([FW()],{type:"closed"})}}))},rV=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return Xz.sketch({uid:e.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(e.type===ZC.scrolling?["tox-toolbar--scrolling"]:[])},components:[Xz.parts.groups({})],toolbarBehaviours:QH(e,t)})},iV=function(e,t,n){var r={getSocket:function(t){return Nz.getPart(t,e,"socket")},setSidebar:function(t,n){Nz.getPart(t,e,"sidebar").each((function(e){return qj(e,n)}))},toggleSidebar:function(t,n){Nz.getPart(t,e,"sidebar").each((function(e){return $j(e,n)}))},whichSidebar:function(t){return Nz.getPart(t,e,"sidebar").bind(Gj).getOrNull()},getHeader:function(t){return Nz.getPart(t,e,"header")},getToolbar:function(t){return Nz.getPart(t,e,"toolbar")},setToolbar:function(t,n){Nz.getPart(t,e,"toolbar").each((function(e){e.getApis().setGroups(e,n)}))},setToolbars:function(t,n){Nz.getPart(t,e,"multiple-toolbar").each((function(e){Hz.setItems(e,n)}))},refreshToolbar:function(t){var n=Nz.getPart(t,e,"toolbar");n.each((function(e){return e.getApis().refresh(e)}))},toggleToolbarDrawer:function(t){Nz.getPart(t,e,"toolbar").each((function(e){Ne(e.getApis().toggle,(function(t){return t(e)}))}))},isToolbarDrawerToggled:function(t){return Nz.getPart(t,e,"toolbar").bind((function(e){return M.from(e.getApis().isOpen).map((function(t){return t(e)}))})).getOr(!1)},getThrobber:function(t){return Nz.getPart(t,e,"throbber")},focusToolbar:function(t){var n=Nz.getPart(t,e,"toolbar").orThunk((function(){return Nz.getPart(t,e,"multiple-toolbar")}));n.each((function(e){Ex.focusIn(e)}))},setMenubar:function(t,n){Nz.getPart(t,e,"menubar").each((function(e){rj.setMenus(e,n)}))},focusMenubar:function(t){Nz.getPart(t,e,"menubar").each((function(e){rj.focus(e)}))}};return{uid:e.uid,dom:e.dom,components:t,apis:r,behaviours:e.behaviours}},oV=Mz.optional({factory:rj,name:"menubar",schema:[Eo("backstage")]}),aV=function(e){return e.type===ZC.sliding?nV:e.type===ZC.floating?tV:rV},sV=Mz.optional({factory:{sketch:function(e){return Hz.sketch({uid:e.uid,dom:e.dom,listBehaviours:fd([Ex.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return rV({type:e.type,uid:ic("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:e.providers,onEscape:function(){return e.onEscape(),M.some(!0)}})},setupItem:function(e,t,n,r){Xz.setGroups(t,n)},shell:!0})}},name:"multiple-toolbar",schema:[Eo("dom"),Eo("onEscape")]}),cV=Mz.optional({factory:{sketch:function(e){var t=aV(e),n={type:e.type,uid:e.uid,onEscape:function(){return e.onEscape(),M.some(!0)},cyclicKeying:!1,initGroups:[],getSink:e.getSink,providers:e.providers,moreDrawerData:{lazyToolbar:e.lazyToolbar,lazyMoreButton:e.lazyMoreButton,lazyHeader:e.lazyHeader},attributes:e.attributes};return t(n)}},name:"toolbar",schema:[Eo("dom"),Eo("onEscape"),Eo("getSink")]}),uV=Mz.optional({factory:{sketch:XW},name:"header",schema:[Eo("dom")]}),lV=Mz.optional({name:"socket",schema:[Eo("dom")]}),dV=Mz.optional({factory:{sketch:Kj},name:"sidebar",schema:[Eo("dom")]}),fV=Mz.optional({factory:{sketch:cH},name:"throbber",schema:[Eo("dom")]}),hV=hv({name:"OuterContainer",factory:iV,configFields:[Eo("dom"),Eo("behaviours")],partFields:[uV,oV,cV,sV,lV,dV,fV],apis:{getSocket:function(e,t){return e.getSocket(t)},setSidebar:function(e,t,n){e.setSidebar(t,n)},toggleSidebar:function(e,t,n){e.toggleSidebar(t,n)},whichSidebar:function(e,t){return e.whichSidebar(t)},getHeader:function(e,t){return e.getHeader(t)},getToolbar:function(e,t){return e.getToolbar(t)},setToolbar:function(e,t,n){var r=$(n,(function(e){return JH(e)}));e.setToolbar(t,r)},setToolbars:function(e,t,n){var r=$(n,(function(e){return $(e,JH)}));e.setToolbars(t,r)},refreshToolbar:function(e,t){return e.refreshToolbar(t)},toggleToolbarDrawer:function(e,t){e.toggleToolbarDrawer(t)},isToolbarDrawerToggled:function(e,t){return e.isToolbarDrawerToggled(t)},getThrobber:function(e,t){return e.getThrobber(t)},setMenubar:function(e,t,n){e.setMenubar(t,n)},focusMenubar:function(e,t){e.focusMenubar(t)},focusToolbar:function(e,t){e.focusToolbar(t)}}}),pV="file edit view insert format tools table help",gV={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},mV=function(e,t,n){var r=MT(n).split(/[ ,]/);return{text:e.title,getItems:function(){return re(e.items,(function(e){var n=e.toLowerCase();return 0===n.trim().length||H(r,(function(e){return e===n}))?[]:"separator"===n||"|"===n?[{type:"separator"}]:t.menuItems[n]?[t.menuItems[n]]:[]}))}}},vV=function(e){return"string"===typeof e?e.split(" "):e},bV=function(e,t){var n=E(E({},gV),t.menus),r=ge(t.menus).length>0,i=void 0===t.menubar||!0===t.menubar?vV(pV):vV(!1===t.menubar?"":t.menubar),o=K(i,(function(e){var n=Se(gV,e);return r?n||Te(t.menus,e).exists((function(e){return Se(e,"items")})):n})),a=$(o,(function(r){var i=n[r];return mV({title:i.title,items:vV(i.items)},t,e)}));return K(a,(function(e){var t=function(e){return"separator"!==e.type};return e.getItems().length>0&&H(e.getItems(),t)}))},yV=function(e){var t=function(){e._skinLoaded=!0,CA(e)};return function(){e.initialized?t():e.on("init",t)}},xV=function(e,t){return function(){return kA(e,{message:t})}},_V=function(e,t,n){return new gC((function(r,i){n.load(t,r,i),e.on("remove",(function(){return n.unload(t)}))}))},wV=function(e,t){var n=t+"/skin.min.css";return _V(e,n,e.ui.styleSheetLoader)},DV=function(e,t){var n=On(tt.fromDom(e.getElement()));if(n){var r=t+"/skin.shadowdom.min.css";return _V(e,r,_T.DOM.styleSheetLoader)}return gC.resolve()},CV=function(e,t){var n=DT(t);n&&t.contentCSS.push(n+(e?"/content.inline":"/content")+".min.css"),!1===kT(t)&&o(n)?gC.all([wV(t,n),DV(t,n)]).then(yV(t),xV(t,"Skin could not be loaded")):yV(t)()},kV=D(CV,!1),TV=D(CV,!0),SV=function(e,t){return function(n){var r=tf(),i=function(){n.setActive(e.formatter.match(t));var i=e.formatter.formatChanged(t,n.setActive);r.set(i)};return e.initialized?i():e.once("init",i),function(){e.off("init",i),r.clear()}}},AV=function(e,t,n){return function(r){var i=function(){return n(r)},o=function(){n(r),e.on(t,i)};return e.initialized?o():e.once("init",o),function(){e.off("init",o),e.off(t,i)}}},EV=function(e){return function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("mceToggleFormat",!1,t.format)}))}}},UV=function(e,t){return function(){return e.execCommand(t)}},OV=function(e,t,n){var r=function(e,r,o,a){var s=t.shared.providers.translate(e.title);if("separator"===e.type)return M.some({type:"separator",text:s});if("submenu"===e.type){var c=re(e.getStyleItems(),(function(e){return i(e,r,a)}));return 0===r&&c.length<=0?M.none():M.some({type:"nestedmenuitem",text:s,disabled:c.length<=0,getSubmenuItems:function(){return re(e.getStyleItems(),(function(e){return i(e,r,a)}))}})}return M.some(E({type:"togglemenuitem",text:s,icon:e.icon,active:e.isSelected(a),disabled:o,onAction:n.onAction(e)},e.getStylePreview().fold((function(){return{}}),(function(e){return{meta:{style:e}}}))))},i=function(e,t,i){var o="formatter"===e.type&&n.isInvalid(e);return 0===t?o?[]:r(e,t,!1,i).toArray():r(e,t,o,i).toArray()},o=function(e){var t=n.getCurrentValue(),r=n.shouldHide?0:1;return re(e,(function(e){return i(e,r,t)}))},a=function(e,t){return function(n,r){var i=t(),a=o(i),s=eI(a,JC.CLOSE_ON_EXECUTE,e,!1);r(s)}};return{validateItems:o,getFetch:a}},FV=function(e,t,n){var r=n.dataset,i="basic"===r.type?function(){return $(r.data,(function(e){return WL(e,n.isSelectedFor,n.getPreviewFor)}))}:r.getData;return{items:OV(e,t,n),getStyleItems:i}},PV=function(e,t,n){var r=FV(e,t,n),i=r.items,o=r.getStyleItems,a=function(e){return{getComponent:x(e)}},s=AV(e,"NodeChange",(function(e){var t=e.getComponent();n.updateText(t)}));return VM({text:n.icon.isSome()?M.none():n.text,icon:n.icon,tooltip:M.from(n.tooltip),role:M.none(),fetch:i.getFetch(t,o),onSetup:s,getApi:a,columns:1,presets:"normal",classes:n.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",t.shared)},RV=function(e){return $(e,(function(e){var t=e,n=e,r=e.split("=");return r.length>1&&(t=r[0],n=r[1]),{title:t,format:n}}))},NV=function(e){return{type:"basic",data:e}};(function(e){e[e["SemiColon"]=0]="SemiColon",e[e["Space"]=1]="Space"})(iB||(iB={}));var MV,IV=function(e,t){return t===iB.SemiColon?e.replace(/;$/,"").split(";"):e.split(" ")},BV=function(e,t,n,r){var i=e.getParam(t,n,"string"),o=RV(IV(i,r));return{type:"basic",data:o}},LV=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],zV=function(e){var t=function(){return ee(LV,(function(t){return e.formatter.match(t.format)}))},n=function(t){return function(){return e.formatter.match(t)}},r=function(e){return M.none},i=function(e){var n=t(),r=n.fold(x("left"),(function(e){return e.title.toLowerCase()}));Ds(e,HM,{icon:"align-"+r})},o=NV(LV),a=function(t){return function(){return ee(LV,(function(e){return e.format===t.format})).each((function(t){return e.execCommand(t.command)}))}};return{tooltip:"Align",text:M.none(),icon:M.some("align-left"),isSelectedFor:n,getCurrentValue:M.none,getPreviewFor:r,onAction:a,updateText:i,dataset:o,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},WV=function(e,t){return PV(e,t,zV(e))},jV=function(e,t){var n=FV(e,t,zV(e));e.ui.registry.addNestedMenuItem("align",{text:t.shared.providers.translate("Align"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},HV="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",VV=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],qV=function(e){var t=e.split(/\s*,\s*/);return $(t,(function(e){return e.replace(/^['"]+|['"]+$/g,"")}))},$V=function(e){var t=function(){var t=qV(e.toLowerCase());return ie(VV,(function(e){return t.indexOf(e.toLowerCase())>-1}))};return 0===e.indexOf("-apple-system")&&t()},GV=function(e){var t="System Font",n=function(){var n=function(e){return e?qV(e)[0]:""},r=e.queryCommandValue("FontName"),i=c.data,o=r?r.toLowerCase():"",a=ee(i,(function(e){var t=e.format;return t.toLowerCase()===o||n(t).toLowerCase()===n(o).toLowerCase()})).orThunk((function(){return Me($V(o),{title:t,format:o})}));return{matchOpt:a,font:r}},r=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},i=function(){var e=n().matchOpt;return e},o=function(e){return function(){return M.some({tag:"div",styles:-1===e.indexOf("dings")?{"font-family":e}:{}})}},a=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontName",!1,t.format)}))}},s=function(e){var t=n(),r=t.matchOpt,i=t.font,o=r.fold(x(i),(function(e){return e.title}));Ds(e,jM,{text:o})},c=BV(e,"font_formats",HV,iB.SemiColon);return{tooltip:"Fonts",text:M.some(t),icon:M.none(),isSelectedFor:r,getCurrentValue:i,getPreviewFor:o,onAction:a,updateText:s,dataset:c,shouldHide:!1,isInvalid:T}},XV=function(e,t){return PV(e,t,GV(e))},YV=function(e,t){var n=FV(e,t,GV(e));e.ui.registry.addNestedMenuItem("fontformats",{text:t.shared.providers.translate("Fonts"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},KV="8pt 10pt 12pt 14pt 18pt 24pt 36pt",ZV={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},JV={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},QV=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},eq=function(e,t){return/[0-9.]+px$/.test(e)?QV(72*parseInt(e,10)/96,t||0)+"pt":Te(JV,e).getOr(e)},tq=function(e){return Te(ZV,e).getOr("")},nq=function(e){var t=function(){var t=M.none(),n=s.data,r=e.queryCommandValue("FontSize");if(r)for(var i=function(e){var i=eq(r,e),o=tq(i);t=ee(n,(function(e){return e.format===r||e.format===i||e.format===o}))},o=3;t.isNone()&&o>=0;o--)i(o);return{matchOpt:t,size:r}},n=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},r=function(){var e=t().matchOpt;return e},i=x(M.none),o=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontSize",!1,t.format)}))}},a=function(e){var n=t(),r=n.matchOpt,i=n.size,o=r.fold(x(i),(function(e){return e.title}));Ds(e,jM,{text:o})},s=BV(e,"fontsize_formats",KV,iB.Space);return{tooltip:"Font sizes",text:M.some("12pt"),icon:M.none(),isSelectedFor:n,getPreviewFor:i,getCurrentValue:r,onAction:o,updateText:a,dataset:s,shouldHide:!1,isInvalid:T}},rq=function(e,t){return PV(e,t,nq(e))},iq=function(e,t){var n=FV(e,t,nq(e));e.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},oq=function(e,t){var n=t(),r=$(n,(function(e){return e.format}));return M.from(e.formatter.closest(r)).bind((function(e){return ee(n,(function(t){return t.format===e}))})).orThunk((function(){return Me(e.formatter.match("p"),{title:"Paragraph",format:"p"})}))},aq="Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",sq=function(e){var t="Paragraph",n=function(t){return function(){return e.formatter.match(t)}},r=function(t){return function(){var n=e.formatter.get(t);return M.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))})}},i=function(n){var r=oq(e,(function(){return o.data})),i=r.fold(x(t),(function(e){return e.title}));Ds(n,jM,{text:i})},o=BV(e,"block_formats",aq,iB.SemiColon);return{tooltip:"Blocks",text:M.some(t),icon:M.none(),isSelectedFor:n,getCurrentValue:M.none,getPreviewFor:r,onAction:EV(e),updateText:i,dataset:o,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},cq=function(e,t){return PV(e,t,sq(e))},uq=function(e,t){var n=FV(e,t,sq(e));e.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},lq=function(e,t){var n="Paragraph",r=function(t){return function(){return e.formatter.match(t)}},i=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?M.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):M.none()}},o=function(t){var r=function(e){var t=e.items;return void 0!==t&&t.length>0?re(t,r):[{title:e.title,format:e.format}]},i=re(zL(e),r),o=oq(e,x(i)),a=o.fold(x(n),(function(e){return e.title}));Ds(t,jM,{text:a})};return{tooltip:"Formats",text:M.some(n),icon:M.none(),isSelectedFor:r,getCurrentValue:M.none,getPreviewFor:i,onAction:EV(e),updateText:o,shouldHide:e.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(t){return!e.formatter.canApply(t.format)},dataset:t}},dq=function(e,t){var n=E({type:"advanced"},t.styleselect);return PV(e,t,lq(e,n))},fq=function(e,t){var n=E({type:"advanced"},t.styleselect),r=FV(e,t,lq(e,n));e.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return r.items.validateItems(r.getStyleItems())}})},hq=function(e,t){var n=function(n,r){e.updateState.each((function(e){var i=e(n,r);t.set(i)})),e.renderComponents.each((function(e){var i=e(r,t.get()),o=$(i,n.getSystem().build);Hp(n,o)}))};return As([Fs(es(),(function(t,r){var i=r;if(!i.universal){var o=e.channel;j(i.channels,o)&&n(t,i.data)}})),js((function(t,r){e.initialData.each((function(e){n(t,e)}))}))])},pq=Object.freeze({__proto__:null,events:hq}),gq=function(e,t,n){return n},mq=Object.freeze({__proto__:null,getState:gq}),vq=[Eo("channel"),zo("renderComponents"),zo("updateState"),zo("initialData")],bq=function(){var e=ia(M.none()),t=function(){return e.set(M.none())},n=function(){return e.get().getOr("none")};return{readState:n,get:e.get,set:e.set,clear:t}},yq=Object.freeze({__proto__:null,init:bq}),xq=pd({fields:vq,name:"reflecting",active:pq,apis:mq,state:yq}),_q=x([Eo("toggleClass"),Eo("fetch"),ul("onExecute"),Xo("getHotspot",M.some),Xo("getAnchorOverrides",x({})),Lf(),ul("onItemExecute"),zo("lazySink"),Eo("dom"),sl("onOpen"),tm("splitDropdownBehaviours",[SO,Ex,Kx]),Xo("matchWidth",!1),Xo("useMinWidth",!1),Xo("eventOrder",{}),zo("role")].concat(jO())),wq=Pm({factory:Dw,schema:[Eo("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:fd([Kx.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each(Cs)},buttonBehaviours:fd([g_.config({toggleOnExecute:!1,toggleClass:e.toggleClass})])}}}),Dq=Pm({factory:Dw,schema:[Eo("dom")],name:"button",defaults:function(){return{buttonBehaviours:fd([Kx.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each((function(n){e.onExecute(n,t)}))}}}}),Cq=x([wq,Dq,Nm({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[Eo("text")],name:"aria-descriptor"}),Rm({schema:[il()],name:"menu",defaults:function(e){return{onExecute:function(t,n){t.getSystem().getByUid(e.uid).each((function(r){e.onItemExecute(r,t,n)}))}}}}),EO()]),kq=function(e,t,n,r){var i,o=function(e){bv.getCurrent(e).each((function(e){rb.highlightFirst(e),Ex.focusIn(e)}))},a=function(t){var n=o;MO(e,_,t,r,n,eO.HighlightFirst).get(m)},s=function(e){return a(e),M.some(!0)},c=function(t){var n=Ym(t,e,"button");return Cs(n),M.some(!0)},u=E(E({},As([js((function(t,n){var r=Xm(t,e,"aria-descriptor");r.each((function(e){var n=ic("aria");zn(e.element,"id",n),zn(t.element,"aria-describedby",n)}))}))])),v_(M.some(a))),l={repositionMenus:function(e){g_.isOn(e)&&WO(e)}};return{uid:e.uid,dom:e.dom,components:t,apis:l,eventOrder:E(E({},e.eventOrder),(i={},i[ts()]=["disabling","toggling","alloy.base.behaviour"],i)),events:u,behaviours:rm(e.splitDropdownBehaviours,[SO.config({others:{sandbox:function(t){var n=Ym(t,e,"arrow"),r={onOpen:function(){g_.on(n),g_.on(t)},onClose:function(){g_.off(n),g_.off(t)}};return zO(e,t,r)}}}),Ex.config({mode:"special",onSpace:c,onEnter:c,onDown:s}),Kx.config({}),g_.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:e.role.getOr("button"),"aria-haspopup":!0}}}},Tq=hv({name:"SplitDropdown",configFields:_q(),partFields:Cq(),factory:kq,apis:{repositionMenus:function(e,t){return e.repositionMenus(t)}}}),Sq=function(e){return{isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)}}},Aq=function(e){return{setActive:function(t){g_.set(e,t)},isActive:function(){return g_.isOn(e)},isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)}}},Eq=function(e,t){return e.map((function(e){return{"aria-label":t.translate(e),title:t.translate(e)}})).getOr({})},Uq=ic("focus-button"),Oq=function(e,t,n,r,i,o){var a;return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]),attributes:Eq(n,o)},components:AS([e.map((function(e){return MM(e,o.icons)})),t.map((function(e){return BM(e,"tox-tbtn",o)}))]),eventOrder:(a={},a[Pa()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:fd([wS.toolbarButton(o.isDisabled),vS(),Wx("common-button-display-events",[Fs(Pa(),(function(e,t){t.event.prevent(),ws(e,Uq)}))])].concat(r.map((function(n){return xq.config({channel:n,initialData:{icon:e,text:t},renderComponents:function(e,t){return AS([e.icon.map((function(e){return MM(e,o.icons)})),e.text.map((function(e){return BM(e,"tox-tbtn",o)}))])}})})).toArray()).concat(i.getOr([])))}},Fq=function(e,t,n,r){var i=t.shared;return NH.sketch({lazySink:i.getSink,fetch:function(){return uO.nu((function(t){t($(n(e.items),JH))}))},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:Oq(e.icon,e.text,e.tooltip,M.none(),M.none(),i.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:r}}}})},Pq=function(e,t,n){var r=ia(m),i=Oq(e.icon,e.text,e.tooltip,M.none(),M.none(),n);return Dw.sketch({dom:i.dom,components:i.components,eventOrder:WM,buttonBehaviours:fd([Wx("toolbar-button-events",[zM({onAction:e.onAction,getApi:t.getApi}),CS(t,r),kS(t,r)]),wS.toolbarButton((function(){return e.disabled||n.isDisabled()})),vS()].concat(t.toolbarButtonBehaviours))})},Rq=function(e,t){return Nq(e,t,[])},Nq=function(e,t,n){return Pq(e,{toolbarButtonBehaviours:[].concat(n.length>0?[Wx("toolbarButtonWith",n)]:[]),getApi:Sq,onSetup:e.onSetup},t)},Mq=function(e,t){return Iq(e,t,[])},Iq=function(e,t,n){return _i(Pq(e,{toolbarButtonBehaviours:[Lx.config({}),g_.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(n.length>0?[Wx("toolbarToggleButtonWith",n)]:[]),getApi:Aq,onSetup:e.onSetup},t))},Bq=function(e,t,n){return function(r){return uO.nu((function(e){return t.fetch(e)})).map((function(i){return M.from(WE(_i(dE(ic("menu-value"),i,(function(n){t.onItemAction(e(r),n)}),t.columns,t.presets,JC.CLOSE_ON_EXECUTE,t.select.getOr(T),n),{movement:hE(t.columns,t.presets),menuBehaviours:sT.unnamedEvents("auto"!==t.columns?[]:[js((function(e,n){iT(e,4,yk(t.presets)).each((function(t){var n=t.numRows,r=t.numColumns;Ex.setGridSize(e,n,r)}))}))])})))}))}},Lq=function(e,t){var n,r=ic("channel-update-split-dropdown-display"),i=function(e){return{isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)},setIconFill:function(t,n){Bu(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){zn(e,"fill",n)}))},setIconStroke:function(t,n){Bu(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){zn(e,"stroke",n)}))},setActive:function(t){zn(e.element,"aria-pressed",t),Bu(e.element,"span").each((function(n){e.getSystem().getByDom(n).each((function(e){return g_.set(e,t)}))}))},isActive:function(){return Bu(e.element,"span").exists((function(t){return e.getSystem().getByDom(t).exists(g_.isOn)}))}}},o=ia(m),a={getApi:i,onSetup:e.onSetup};return Tq.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:E({"aria-pressed":!1},Eq(e.tooltip,t.providers))},onExecute:function(t){e.onAction(i(t))},onItemExecute:function(e,t,n){},splitDropdownBehaviours:fd([wS.splitButton(t.providers.isDisabled),vS(),Wx("split-dropdown-events",[Fs(Uq,Kx.focus),CS(a,o),kS(a,o)]),KO.config({})]),eventOrder:(n={},n[fs()]=["alloy.base.behaviour","split-dropdown-events"],n),toggleClass:"tox-tbtn--enabled",lazySink:t.getSink,fetch:Bq(i,e,t.providers),parts:{menu:kk(!1,e.columns,e.presets)},components:[Tq.parts.button(Oq(e.icon,e.text,M.none(),M.some(r),M.some([g_.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),t.providers)),Tq.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:zD("chevron-down",t.providers.icons)},buttonBehaviours:fd([wS.splitButton(t.providers.isDisabled),vS(),HD()])}),Tq.parts["aria-descriptor"]({text:t.providers.translate("To open the popup, press Shift+Enter")})]})},zq=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],Wq=function(e,t){return function(n,r,i){var o=e(n).mapError((function(e){return Do(e)})).getOrDie();return t(o,r,i)}},jq={button:Wq(NC,(function(e,t){return Rq(e,t.backstage.shared.providers)})),togglebutton:Wq(BC,(function(e,t){return Mq(e,t.backstage.shared.providers)})),menubutton:Wq(QW,(function(e,t){return nI(e,"tox-tbtn",t.backstage,M.none())})),splitbutton:Wq(tj,(function(e,t){return Lq(e,t.backstage.shared)})),grouptoolbarbutton:Wq(KW,(function(e,t,n){var r,i=n.ui.registry.getAll().buttons,o=function(e){return Kq(n,{buttons:i,toolbar:e,allowToolbarGroups:!1},t,M.none())},a=(r={},r[If]=t.backstage.shared.header.isPositionedAtTop()?Bd.TopToBottom:Bd.BottomToTop,r);switch(jT(n)){case ZC.floating:return Fq(e,t.backstage,o,a);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})),styleSelectButton:function(e,t){return dq(e,t.backstage)},fontsizeSelectButton:function(e,t){return rq(e,t.backstage)},fontSelectButton:function(e,t){return XV(e,t.backstage)},formatButton:function(e,t){return cq(e,t.backstage)},alignMenuButton:function(e,t){return WV(e,t.backstage)}},Hq=function(e,t,n){return Te(jq,e.type).fold((function(){return console.error("skipping button defined by",e),M.none()}),(function(r){return M.some(r(e,t,n))}))},Vq={styleselect:jq.styleSelectButton,fontsizeselect:jq.fontsizeSelectButton,fontselect:jq.fontSelectButton,formatselect:jq.formatButton,align:jq.alignMenuButton},qq=function(e){var t=$(zq,(function(t){var n=K(t.items,(function(t){return Se(e,t)||Se(Vq,t)}));return{name:t.name,items:n}}));return K(t,(function(e){return e.items.length>0}))},$q=function(e){var t=e.split("|");return $(t,(function(e){return{items:e.trim().split(" ")}}))},Gq=function(e){return g(e,(function(e){return Se(e,"name")&&Se(e,"items")}))},Xq=function(e){var t=e.toolbar,n=e.buttons;return!1===t?[]:void 0===t||!0===t?qq(n):o(t)?$q(t):Gq(t)?t:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},Yq=function(e,t,n,r,i,o){return Te(t,n.toLowerCase()).orThunk((function(){return o.bind((function(e){return pe(e,(function(e){return Te(t,e+n.toLowerCase())}))}))})).fold((function(){return Te(Vq,n.toLowerCase()).map((function(t){return t(e,i)})).orThunk((function(){return M.none()}))}),(function(t){return"grouptoolbarbutton"!==t.type||r?Hq(t,i,e):(console.warn("Ignoring the '"+n+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),M.none())}))},Kq=function(e,t,n,r){var i=Xq(t),o=$(i,(function(i){var o=re(i.items,(function(i){return 0===i.trim().length?[]:Yq(e,t.buttons,i,t.allowToolbarGroups,n,r).toArray()}));return{title:M.from(e.translate(i.name)),items:o}}));return K(o,(function(e){return e.items.length>0}))},Zq=function(e,t,n,r){var i=t.outerContainer,a=n.toolbar,s=n.buttons;if(g(a,o)){var c=a.map((function(t){var i={toolbar:t,buttons:s,allowToolbarGroups:n.allowToolbarGroups};return Kq(e,i,{backstage:r},M.none())}));hV.setToolbars(i,c)}else hV.setToolbar(i,Kq(e,n,{backstage:r},M.none()))},Jq=tn(),Qq=Jq.os.isiOS()&&Jq.os.version.major<=12,e$=function(e,t){var n=e.dom,r=e.getWin(),i=e.getDoc().documentElement,o=ia(lr(r.innerWidth,r.innerHeight)),a=ia(lr(i.offsetWidth,i.offsetHeight)),s=function(){var t=o.get();t.left===r.innerWidth&&t.top===r.innerHeight||(o.set(lr(r.innerWidth,r.innerHeight)),SA(e))},c=function(){var t=e.getDoc().documentElement,n=a.get();n.left===t.offsetWidth&&n.top===t.offsetHeight||(a.set(lr(t.offsetWidth,t.offsetHeight)),SA(e))},u=function(t){return AA(e,t)};n.bind(r,"resize",s),n.bind(r,"scroll",u);var l=sf(tt.fromDom(e.getBody()),"load",c),d=t.uiMothership.element;e.on("hide",(function(){Xn(d,"display","none")})),e.on("show",(function(){nr(d,"display")})),e.on("NodeChange",c),e.on("remove",(function(){l.unbind(),n.unbind(r,"resize",s),n.unbind(r,"scroll",u),r=null}))},t$=function(e,t,n,r,i){var o=ia(0),a=t.outerContainer;kV(e);var s=tt.fromDom(i.targetNode),c=Un(En(s));Kp(s,t.mothership),Yp(c,t.uiMothership),e.on("PostRender",(function(){Zq(e,t,n,r),o.set(e.getWin().innerWidth),hV.setMenubar(a,bV(e,n)),hV.setSidebar(a,n.sidebar),e$(e,t)}));var u=hV.getSocket(a).getOrDie("Could not find expected socket element");if(Qq){Yn(u.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var l=JD((function(){e.fire("ScrollContent")}),20),d=af(u.element,"scroll",l.throttle);e.on("remove",d.unbind)}mS(e,t),e.addCommand("ToggleSidebar",(function(t,n){hV.toggleSidebar(a,n),e.fire("ToggleSidebar")})),e.addQueryValueHandler("ToggleSidebar",(function(){return hV.whichSidebar(a)}));var f=jT(e),h=function(){hV.refreshToolbar(t.outerContainer)};f!==ZC.sliding&&f!==ZC.floating||e.on("ResizeWindow ResizeEditor ResizeContent",(function(){var t=e.getWin().innerWidth;t!==o.get()&&(h(),o.set(t))}));var p={enable:function(){gS(t,!1)},disable:function(){gS(t,!0)},isDisabled:function(){return Iv.isDisabled(a)}};return{iframeContainer:u.element.dom,editorContainer:a.element.dom,api:p}},n$=Object.freeze({__proto__:null,render:t$}),r$=function(e){var t=/^[0-9\.]+(|px)$/i;return t.test(""+e)?M.some(parseInt(""+e,10)):M.none()},i$=function(e){return p(e)?e+"px":e},o$=function(e,t,n){var r=t.filter((function(t){return e<t})),i=n.filter((function(t){return e>t}));return r.or(i).getOr(e)},a$=function(e){var t=TT(e),n=ET(e),r=OT(e);return r$(t).map((function(e){return o$(e,n,r)}))},s$=function(e){var t=a$(e);return t.getOr(TT(e))},c$=function(e){var t=ST(e),n=AT(e),r=UT(e);return r$(t).map((function(e){return o$(e,n,r)}))},u$=function(e){var t=c$(e);return t.getOr(ST(e))},l$=function(e,t,n,r,i){var o=n.uiMothership,a=n.outerContainer,s=_T.DOM,c=ZT(e),u=eS(e),l=UT(e).or(c$(e)),d=r.shared.header,f=d.isPositionedAtTop,h=jT(e),p=h===ZC.sliding||h===ZC.floating,g=ia(!1),m=function(){return g.get()&&!e.removed},v=function(e){return p?e.fold(x(0),(function(e){return e.components().length>1?ar(e.components()[1].element):0})):0},b=function(n){switch(qT(e)){case WT.auto:var r=hV.getToolbar(a),i=v(r),o=ar(n.element)-i,s=Zr(t),c=s.y>o;if(c)return"top";var u=gn(t),l=Math.max(u.dom.scrollHeight,ar(u)),d=s.bottom<l-o;if(d)return"bottom";var f=Qr(),h=f.bottom<s.bottom-o;return h?"bottom":"top";case WT.bottom:return"bottom";case WT.top:default:return"top"}},y=function(e){var t=i.get();OW.setModes(t,[e]),d.setDockingMode(e);var n=f()?Bd.TopToBottom:Bd.BottomToTop;zn(t.element,If,n)},_=function(){var e=l.getOrThunk((function(){var e=r$(Zn(In(),"margin-left")).getOr(0);return vr(In())-hr(t).left+e}));Xn(i.get().element,"max-width",e+"px")},w=function(){var e=hV.getToolbar(a),n=v(e),r=Zr(t),o=f()?Math.max(r.y-ar(i.get().element)+n,0):r.bottom;Yn(a.element,{position:"absolute",top:Math.round(o)+"px",left:Math.round(r.x)+"px"})},D=function(){o.broadcastOn([xg()],{})},C=function(e){if(void 0===e&&(e=!1),m()){if(c||_(),p&&hV.refreshToolbar(a),c||w(),u){var t=i.get();e?OW.reset(t):OW.refresh(t)}D()}},k=function(e){if(void 0===e&&(e=!0),!c&&u&&m()){var t=d.getDockingMode(),n=b(i.get());n!==t&&(y(n),e&&C(!0))}},T=function(){g.set(!0),Xn(a.element,"display","flex"),s.addClass(e.getBody(),"mce-edit-focus"),nr(o.element,"display"),k(!1),C()},S=function(){g.set(!1),n.outerContainer&&(Xn(a.element,"display","none"),s.removeClass(e.getBody(),"mce-edit-focus")),Xn(o.element,"display","none")};return{isVisible:m,isPositionedAtTop:f,show:T,hide:S,update:C,updateMode:k,repositionPopups:D}},d$=function(e,t){var n=Zr(e);return{pos:t?n.y:n.bottom,bounds:n}},f$=function(e,t,n,r){var i=ia(d$(t,n.isPositionedAtTop())),o=function(r){var o=d$(t,n.isPositionedAtTop()),a=o.pos,s=o.bounds,c=i.get(),u=c.pos,l=c.bounds,d=s.height!==l.height||s.width!==l.width;i.set({pos:a,bounds:s}),d&&SA(e,r),n.isVisible()&&(u!==a?n.update(!0):d&&(n.updateMode(),n.repositionPopups()))};r||(e.on("activate",n.show),e.on("deactivate",n.hide)),e.on("SkinLoaded ResizeWindow",(function(){return n.update(!0)})),e.on("NodeChange keydown",(function(e){_w.requestAnimationFrame((function(){return o(e)}))})),e.on("ScrollWindow",(function(){return n.updateMode()}));var a=tf();a.set(sf(tt.fromDom(e.getBody()),"load",o)),e.on("remove",(function(){a.clear()}))},h$=function(e,t,n,r,i){var o=t.mothership,a=t.uiMothership,s=t.outerContainer,c=ia(null),u=tt.fromDom(i.targetNode),l=l$(e,u,t,r,c),d=YT(e);TV(e);var f=function(){if(c.get())l.show();else{c.set(hV.getHeader(s).getOrDie());var i=JT(e);Yp(i,o),Yp(i,a),Zq(e,t,n,r),hV.setMenubar(s,bV(e,n)),l.show(),f$(e,u,l,d),e.nodeChanged()}};e.on("show",f),e.on("hide",l.hide),d||(e.on("focus",f),e.on("blur",l.hide)),e.on("init",(function(){(e.hasFocus()||d)&&f()})),mS(e,t);var h={show:function(){l.show()},hide:function(){l.hide()},enable:function(){gS(t,!1)},disable:function(){gS(t,!0)},isDisabled:function(){return Iv.isDisabled(s)}};return{editorContainer:s.element.dom,api:h}},p$=Object.freeze({__proto__:null,render:h$}),g$="contexttoolbar-show",m$="contexttoolbar-hide",v$=function(e){return{hide:function(){return ws(e,os())},getValue:function(){return em.getValue(e)}}},b$=function(e,t){return Fs(LM,(function(n,r){var i=e.get(n),o=v$(i);t.onAction(o,r.event.buttonApi)}))},y$=function(e,t,n){var r=t.original;r.primary;var i=U(r,["primary"]),o=_o(NC(E(E({},i),{type:"button",onAction:m})));return Nq(o,n.backstage.shared.providers,[b$(e,t)])},x$=function(e,t,n){var r=t.original;r.primary;var i=U(r,["primary"]),o=_o(BC(E(E({},i),{type:"togglebutton",onAction:m})));return Iq(o,n.backstage.shared.providers,[b$(e,t)])},_$=function(e,t,n){var r={backstage:{shared:{providers:n}}};return"contextformtogglebutton"===t.type?x$(e,t,r):y$(e,t,r)},w$=function(e,t,n){var r=$(t,(function(t){return Sw(_$(e,t,n))})),i=function(){return $(r,(function(e){return e.asSpec()}))},o=function(e){return pe(t,(function(t,n){return t.primary?M.from(r[n]).bind((function(t){return t.getOpt(e)})).filter(C(Iv.isDisabled)):M.none()}))};return{asSpecs:i,findPrimary:o}},D$=function(e,t){var n=e.label.fold((function(){return{}}),(function(e){return{"aria-label":e}})),r=Sw(ZU.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:e.initValue(),inputAttributes:n,selectOnFocus:!0,inputBehaviours:fd([Ex.config({mode:"special",onEnter:function(e){return i.findPrimary(e).map((function(e){return Cs(e),!0}))},onLeft:function(e,t){return t.cut(),M.none()},onRight:function(e,t){return t.cut(),M.none()}})])})),i=w$(r,e.commands,t);return[{title:M.none(),items:[r.asSpec()]},{title:M.none(),items:i.asSpecs()}]},C$=function(e,t,n){return rV({type:e,uid:ic("context-toolbar"),initGroups:D$(t,n),onEscape:M.none,cyclicKeying:!0,providers:n})},k$={renderContextForm:C$,buildInitGroups:D$},T$=function(e,t,n){return void 0===n&&(n=.01),t.bottom-e.y>=n&&e.bottom-t.y>=n},S$=function(e){var t=e.getBoundingClientRect();if(t.height<=0&&t.width<=0){var n=kn(tt.fromDom(e.startContainer),e.startOffset).element,r=dt(n)?vn(n):M.some(n);return r.filter(lt).map((function(e){return e.dom.getBoundingClientRect()})).getOr(t)}return t},A$=function(e){var t=e.selection.getRng(),n=S$(t);if(e.inline){var r=Ir();return Kr(r.left+n.left,r.top+n.top,n.width,n.height)}var i=Jr(tt.fromDom(e.getBody()));return Kr(i.x+n.left,i.y+n.top,n.width,n.height)},E$=function(e,t){return t.filter(Mn).map(Jr).getOrThunk((function(){return A$(e)}))},U$=function(e,t,n){var r=Math.max(e.x+n,t.x),i=Math.min(e.right-n,t.right);return{x:r,width:i-r}},O$=function(e,t,n,r,i,o){var a=tt.fromDom(e.getContainer()),s=Bu(a,".tox-editor-header").getOr(a),c=Zr(s),u=c.y>=t.bottom,l=r&&!u;if(e.inline&&l)return{y:Math.max(c.bottom+o,n.y),bottom:n.bottom};if(e.inline&&!l)return{y:n.y,bottom:Math.min(c.y-o,n.bottom)};var d="line"===i?Zr(a):t;return l?{y:Math.max(c.bottom+o,n.y),bottom:Math.min(d.bottom-o,n.bottom)}:{y:Math.max(d.y+o,n.y),bottom:Math.min(c.y-o,n.bottom)}},F$=function(e,t,n,r){void 0===r&&(r=0);var i=Wr(window),o=Zr(tt.fromDom(e.getContentAreaContainer())),a=IT(e)||BT(e)||zT(e),s=U$(o,i,r),c=s.x,u=s.width;if(e.inline&&!a)return Kr(c,i.y,u,i.height);var l=t.header.isPositionedAtTop(),d=O$(e,o,i,l,n,r),f=d.y,h=d.bottom;return Kr(c,f,u,h-f)},P$=12,R$={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},N$={maxHeightFunction:Sf(),maxWidthFunction:SH()},M$=function(e,t){var n=e.selection.getRng(),r=kn(tt.fromDom(n.startContainer),n.startOffset);return n.startContainer===n.endContainer&&n.startOffset===n.endOffset-1&&un(r.element,t)},I$=function(e,t,n){var r=Qn(e,"position");Xn(e,"position",t);var i=n(e);return r.each((function(t){return Xn(e,"position",t)})),i},B$=function(e){return"node"===e},L$=function(e,t,n,r,i){var o=A$(e),a=r.lastElement().exists((function(e){return un(n,e)}));if(M$(e,n))return a?bw:hw;if(a)return I$(t,r.getMode(),(function(){var e=T$(o,Zr(t));return e&&!r.isReposition()?xw:bw}));var s="fixed"===r.getMode()?i.y+Ir().top:i.y,c=ar(t)+P$;return s+c<=o.y?hw:pw},z$=function(e,t,n,r){var i=function(t){return function(r,i,o,a,s){var c=L$(e,a,t,n,s),u=E(E({},r),{y:s.y,height:s.height});return E(E({},c(u,i,o,a,s)),{alwaysFit:!0})}},o=function(e){return B$(r)?[i(e)]:[]},a={onLtr:function(e){return[ql,$l,Hl,Wl,Vl,jl].concat(o(e))},onRtl:function(e){return[ql,$l,Vl,jl,Hl,Wl].concat(o(e))}},s={onLtr:function(e){return[$l,Wl,jl,Hl,Vl,ql].concat(o(e))},onRtl:function(e){return[$l,jl,Wl,Vl,Hl,ql].concat(o(e))}};return t?s:a},W$=function(e,t,n,r){return"line"===t?{bubble:Ff(P$,0,R$),layouts:{onLtr:function(){return[Gl]},onRtl:function(){return[Xl]}},overrides:N$}:{bubble:Ff(0,P$,R$,1/P$),layouts:z$(e,n,r,t),overrides:N$}},j$=function(e,t){var n=K(t,(function(t){return t.predicate(e.dom)})),r=Y(n,(function(e){return"contexttoolbar"===e.type})),i=r.pass,o=r.fail;return{contextToolbars:i,contextForms:o}},H$=function(e){if(e.length<=1)return e;var t=function(t){return H(e,(function(e){return e.position===t}))},n=function(t){return K(e,(function(e){return e.position===t}))},r=t("selection"),i=t("node");if(r||i){if(i&&r){var o=n("node"),a=$(n("selection"),(function(e){return E(E({},e),{position:"node"})}));return o.concat(a)}return n(r?"selection":"node")}return n("line")},V$=function(e){if(e.length<=1)return e;var t=function(t){return ee(e,(function(e){return e.position===t}))},n=t("selection").orThunk((function(){return t("node")})).orThunk((function(){return t("line")})).map((function(e){return e.position}));return n.fold((function(){return[]}),(function(t){return K(e,(function(e){return e.position===t}))}))},q$=function(e,t,n){var r=j$(e,t);if(r.contextForms.length>0)return M.some({elem:e,toolbars:[r.contextForms[0]]});var i=j$(e,n);if(i.contextForms.length>0)return M.some({elem:e,toolbars:[i.contextForms[0]]});if(r.contextToolbars.length>0||i.contextToolbars.length>0){var o=H$(r.contextToolbars.concat(i.contextToolbars));return M.some({elem:e,toolbars:o})}return M.none()},$$=function(e,t,n){return e(t)?M.none():ya(t,(function(e){if(lt(e)){var t=j$(e,n.inNodeScope),r=t.contextToolbars,i=t.contextForms,o=i.length>0?i:V$(r);return o.length>0?M.some({elem:e,toolbars:o}):M.none()}return M.none()}),e)},G$=function(e,t){var n=tt.fromDom(t.getBody()),r=function(e){return un(e,n)},i=function(e){return!r(e)&&!fn(n,e)},o=tt.fromDom(t.selection.getNode());return i(o)?M.none():q$(o,e.inNodeScope,e.inEditorScope).orThunk((function(){return $$(r,o,e)}))},X$=function(e,t){var n={},r=[],i=[],o={},a={},s=function(e,s){var c=_o($C(s));n[e]=c,c.launch.map((function(n){o["form:"+e]=E(E({},s.launch),{type:"contextformtogglebutton"===n.type?"togglebutton":"button",onAction:function(){t(c)}})})),"editor"===c.scope?i.push(c):r.push(c),a[e]=c},c=function(e,t){XC(t).each((function(n){"editor"===t.scope?i.push(n):r.push(n),a[e]=n}))},u=ge(e);return G(u,(function(t){var n=e[t];"contextform"===n.type?s(t,n):"contexttoolbar"===n.type&&c(t,n)})),{forms:n,inNodeScope:r,inEditorScope:i,lookupTable:a,formNavigators:o}},Y$=ic("forward-slide"),K$=ic("backward-slide"),Z$=ic("change-slide-event"),J$="tox-pop--resizing",Q$=function(e){var t=ia([]);return tw.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(e){t.set([]),tw.getContent(e).each((function(e){nr(e.element,"visibility")})),su(e.element,J$),nr(e.element,"width")},inlineBehaviours:fd([Wx("context-toolbar-events",[Ws($a(),(function(e,t){"width"===t.event.raw.propertyName&&(su(e.element,J$),nr(e.element,"width"))})),Fs(Z$,(function(e,t){var n=e.element;nr(n,"width");var r=vr(n);tw.setContent(e,t.event.contents),ou(n,J$);var i=vr(n);Xn(n,"width",r+"px"),tw.getContent(e).each((function(e){t.event.focus.bind((function(e){return wd(e),Td(n)})).orThunk((function(){return Ex.focusIn(e),kd(En(n))}))})),_w.setTimeout((function(){Xn(e.element,"width",i+"px")}),0)})),Fs(Y$,(function(e,n){tw.getContent(e).each((function(n){t.set(t.get().concat([{bar:n,focus:kd(En(e.element))}]))})),Ds(e,Z$,{contents:n.event.forwardContents,focus:M.none()})})),Fs(K$,(function(e,n){fe(t.get()).each((function(n){t.set(t.get().slice(0,t.get().length-1)),Ds(e,Z$,{contents:Au(n.bar),focus:n.focus})}))}))]),Ex.config({mode:"special",onEscape:function(n){return fe(t.get()).fold((function(){return e.onEscape()}),(function(e){return ws(n,K$),M.some(!0)}))}})]),lazySink:function(){return ri.value(e.sink)}})},eG="tox-pop--transition",tG=function(e,t,n,r){var i=r.backstage,o=i.shared,a=tn().deviceType.isTouch,s=rf(),c=rf(),u=rf(),l=Su(Q$({sink:n,onEscape:function(){return e.focus(),M.some(!0)}})),d=function(){var t=u.get().getOr("node"),n=B$(t)?1:0;return F$(e,o,t,n)},f=function(){return!e.removed&&!(a()&&i.isContextMenuOpen())},h=function(e){return Ee(Pe(e,s.get(),un),!0)},p=function(){if(f()){var t=d(),n=Ee(u.get(),"node")?E$(e,s.get()):A$(e);return t.height<=0||!T$(n,t)}return!0},g=function(){s.clear(),c.clear(),u.clear(),tw.hide(l)},v=function(){if(tw.isOpen(l)){var e=l.element;nr(e,"display"),p()?Xn(e,"display","none"):(c.set(0),tw.reposition(l))}},b=function(t){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:fd([Ex.config({mode:"acyclic"}),Wx("pop-dialog-wrap-events",[js((function(t){e.shortcuts.add("ctrl+F9","focus statusbar",(function(){return Ex.focusIn(t)}))})),Hs((function(t){e.shortcuts.remove("ctrl+F9")}))])])}},y=pt((function(){return X$(t,(function(e){var t=w([e]);Ds(l,Y$,{forwardContents:b(t)})}))})),x=function(t,n){return Kq(e,{buttons:t,toolbar:n.items,allowToolbarGroups:!1},r,M.some(["form:"]))},_=function(e,t){return k$.buildInitGroups(e,t)},w=function(t){var n=e.ui.registry.getAll().buttons,r=y(),i=E(E({},n),r.formNavigators),a=jT(e)===ZC.scrolling?ZC.scrolling:ZC.default,s=ne($(t,(function(e){return"contexttoolbar"===e.type?x(i,e):_(e,o.providers)})));return rV({type:a,uid:ic("context-toolbar"),initGroups:s,onEscape:M.none,cyclicKeying:!0,providers:o.providers})},D=function(t,r){var i="node"===t?o.anchors.node(r):o.anchors.cursor(),u=W$(e,t,a(),{lastElement:s.get,isReposition:function(){return Ee(c.get(),0)},getMode:function(){return Bp.getMode(n)}});return _i(i,u)},C=function(e,t){if(k.cancel(),f()){var r=w(e),i=e[0].position,o=D(i,t);u.set(i),c.set(1);var a=l.element;nr(a,"display"),h(t)||(su(a,eG),Bp.reset(n,l)),tw.showWithinBounds(l,b(r),{anchor:o,transition:{classes:[eG],mode:"placement"}},(function(){return M.some(d())})),t.fold(s.clear,s.set),p()&&Xn(a,"display","none")}},k=QD((function(){if(e.hasFocus()&&!e.removed)if(cu(l.element,eG))k.throttle();else{var t=y();G$(t,e).fold(g,(function(e){C(e.toolbars,M.some(e.elem))}))}}),17);e.on("init",(function(){e.on("remove",g),e.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",v),e.on("click keyup focus SetContent",k.throttle),e.on(m$,g),e.on(g$,(function(t){var n=y();Te(n.lookupTable,t.toolbarKey).each((function(n){C([n],Me(t.target!==e,t.target)),tw.getContent(l).each(Ex.focusIn)}))})),e.on("focusout",(function(t){_w.setEditorTimeout(e,(function(){Td(n.element).isNone()&&Td(l.element).isNone()&&g()}),0)})),e.on("SwitchMode",(function(){e.mode.isReadOnly()&&g()})),e.on("AfterProgressState",(function(t){t.state?g():e.hasFocus()&&k.throttle()})),e.on("NodeChange",(function(e){Td(l.element).fold(k.throttle,m)}))}))},nG=function(e){var t=[{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}];G(t,(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:UV(e,t.cmd),onSetup:SV(e,t.name)})})),e.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onAction:UV(e,"JustifyNone")})},rG={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},iG=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",i=function(e){return"(?:"+e+")?"},o=["Infinity",e+r+i(e)+i(n),r+e+i(n),e+i(n)].join("|"),a="[+-]?(?:"+o+")";return new RegExp("^("+a+")(.*)$")}(),oG=function(e,t){return H(t,(function(t){return H(rG[t],(function(t){return e===t}))}))},aG=function(e,t){var n=M.from(iG.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return oG(r,t)?M.some({value:n,unit:r}):M.none()}))},sG=function(e,t){return aG(e,t).map((function(e){var t=e.value,n=e.unit;return t+n}))},cG=function(e,t){var n=function(){var n=t.getOptions(e),r=t.getCurrent(e).map(t.hash),i=rf();return $(n,(function(n){return{type:"togglemenuitem",text:t.display(n),onSetup:function(o){var a=function(e){e&&(i.on((function(e){return e.setActive(!1)})),i.set(o)),o.setActive(e)};a(Ee(r,t.hash(n)));var s=t.watcher(e,n,a);return function(){i.clear(),s()}},onAction:function(){return t.setCurrent(e,n)}}}))};e.ui.registry.addMenuButton(t.name,{tooltip:t.text,icon:t.icon,fetch:function(e){return e(n())},onSetup:t.onToolbarSetup}),e.ui.registry.addNestedMenuItem(t.name,{type:"nestedmenuitem",text:t.text,getSubmenuItems:n,onSetup:t.onMenuSetup})},uG={name:"lineheight",text:"Line height",icon:"line-height",getOptions:RT,hash:function(e){return sG(e,["fixed","relative","empty"]).getOr(e)},display:_,watcher:function(e,t,n){return e.formatter.formatChanged("lineheight",n,!1,{value:t}).unbind},getCurrent:function(e){return M.from(e.queryCommandValue("LineHeight"))},setCurrent:function(e,t){return e.execCommand("LineHeight",!1,t)}},lG=function(e){var t=M.from(NT(e));return t.map((function(t){return{name:"language",text:"Language",icon:"language",getOptions:x(t),hash:function(e){return l(e.customCode)?e.code:e.code+"/"+e.customCode},display:function(e){return e.title},watcher:function(e,t,n){return e.formatter.formatChanged("lang",n,!1,{value:t.code,customValue:t.customCode}).unbind},getCurrent:function(e){var t=tt.fromDom(e.selection.getNode());return xa(t,(function(e){return M.some(e).filter(lt).bind((function(e){var t=Hn(e,"lang");return t.map((function(t){var n=Hn(e,"data-mce-lang").getOrUndefined();return{code:t,customCode:n,title:""}}))}))}))},setCurrent:function(e,t){return e.execCommand("Lang",!1,t)},onToolbarSetup:function(t){var n=tf();return t.setActive(e.formatter.match("lang",{},void 0,!0)),n.set(e.formatter.formatChanged("lang",t.setActive,!0)),n.clear}}}))},dG=function(e){cG(e,uG),lG(e).each((function(t){return cG(e,t)}))},fG=function(e,t){jV(e,t),YV(e,t),fq(e,t),uq(e,t),iq(e,t)},hG=function(e){return AV(e,"NodeChange",(function(t){t.setDisabled(!e.queryCommandState("outdent"))}))},pG=function(e){e.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:hG(e),onAction:UV(e,"outdent")}),e.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:UV(e,"indent")})},gG=function(e){pG(e)},mG=function(e,t){return function(){e.execCommand("mceToggleFormat",!1,t)}},vG=function(e){sN.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(function(t,n){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:SV(e,t.name),onAction:mG(e,t.name)})}));for(var t=1;t<=6;t++){var n="h"+t;e.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+t,onSetup:SV(e,n),onAction:mG(e,n)})}},bG=function(e){sN.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],(function(t){e.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onAction:UV(e,t.action)})}))},yG=function(e){sN.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:UV(e,t.action),onSetup:SV(e,t.name)})}))},xG=function(e){vG(e),bG(e),yG(e)},_G=function(e){sN.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],(function(t){e.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onAction:UV(e,t.action)})})),e.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:mG(e,"code")})},wG=function(e){xG(e),_G(e)},DG=function(e,t){return AV(e,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",(function(n){n.setDisabled(e.mode.isReadOnly()||!e.undoManager[t]())}))},CG=function(e){e.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:DG(e,"hasUndo"),onAction:UV(e,"undo")}),e.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:DG(e,"hasRedo"),onAction:UV(e,"redo")})},kG=function(e){e.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",disabled:!0,onSetup:DG(e,"hasUndo"),onAction:UV(e,"undo")}),e.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",disabled:!0,onSetup:DG(e,"hasRedo"),onAction:UV(e,"redo")})},TG=function(e){CG(e),kG(e)},SG=function(e){return AV(e,"VisualAid",(function(t){t.setActive(e.hasVisual)}))},AG=function(e){e.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:SG(e),onAction:UV(e,"mceToggleVisualAid")})},EG=function(e){e.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:UV(e,"mceToggleVisualAid")})},UG=function(e){EG(e),AG(e)},OG=function(e,t){nG(e),wG(e),fG(e,t),TG(e),lE(e),UG(e),gG(e),dG(e)},FG=function(e,t){return{type:"makeshift",x:e,y:t}},PG=function(e,t,n){return FG(e.x+t,e.y+n)},RG=function(e){return"longpress"===e.type||0===e.type.indexOf("touch")},NG=function(e){if(RG(e)){var t=e.touches[0];return FG(t.pageX,t.pageY)}return FG(e.pageX,e.pageY)},MG=function(e){if(RG(e)){var t=e.touches[0];return FG(t.clientX,t.clientY)}return FG(e.clientX,e.clientY)},IG=function(e,t){var n=_T.DOM.getPos(e);return PG(t,n.x,n.y)},BG=function(e,t){return"contextmenu"===t.type||"longpress"===t.type?e.inline?NG(t):IG(e.getContentAreaContainer(),MG(t)):LG(e)},LG=function(e){return{type:"selection",root:tt.fromDom(e.selection.getNode())}},zG=function(e){return{type:"node",node:M.some(tt.fromDom(e.selection.getNode())),root:tt.fromDom(e.getBody())}},WG=function(e,t,n){switch(n){case"node":return zG(e);case"point":return BG(e,t);case"selection":return LG(e)}},jG=function(e,t,n,r,i,o){var a=n(),s=WG(e,t,o);eI(a,JC.CLOSE_ON_EXECUTE,r,!1).map((function(e){t.preventDefault(),tw.showMenuAt(i,{anchor:s},{menu:{markers:wk("normal")},data:e})}))},HG={onLtr:function(){return[$l,Wl,jl,Hl,Vl,ql,hw,pw,fw,lw,dw,uw]},onRtl:function(){return[$l,jl,Wl,Vl,Hl,ql,hw,pw,dw,uw,fw,lw]}},VG=12,qG={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},$G=function(e,t){var n=e.selection;if(n.isCollapsed()||t.touches.length<1)return!1;var r=t.touches[0],i=n.getRng(),o=np(e.getWin(),Ch.domRange(i));return o.exists((function(e){return e.left<=r.clientX&&e.right>=r.clientX&&e.top<=r.clientY&&e.bottom>=r.clientY}))},GG=function(e){var t=e.selection.getRng(),n=function(){_w.setEditorTimeout(e,(function(){e.selection.setRng(t)}),10),o()};e.once("touchend",n);var r=function(e){e.preventDefault(),e.stopImmediatePropagation()};e.on("mousedown",r,!0);var i=function(){return o()};e.once("longpresscancel",i);var o=function(){e.off("touchend",n),e.off("longpresscancel",i),e.off("mousedown",r)}},XG=function(e,t,n){var r=WG(e,t,n),i="point"===n?VG:0;return E({bubble:Ff(0,i,qG),layouts:HG,overrides:{maxWidthFunction:SH(),maxHeightFunction:Sf()}},r)},YG=function(e,t,n,r,i,o,a){var s=XG(e,t,o);eI(n,JC.CLOSE_ON_EXECUTE,r,!0).map((function(n){t.preventDefault(),tw.showMenuWithinBounds(i,{anchor:s},{menu:{markers:wk("normal"),highlightImmediately:a},data:n,type:"horizontal"},(function(){return M.some(F$(e,r.shared,"node"===o?"node":"selection"))})),e.fire(m$)}))},KG=function(e,t,n,r,i,o){var a=tn(),s=a.os.isiOS(),c=a.os.isOSX(),u=a.os.isAndroid(),l=a.deviceType.isTouch(),d=function(){return!(u||s||c&&l)},f=function(){var a=n();YG(e,t,a,r,i,o,d())};if((c||s)&&"node"!==o){var h=function(){GG(e),f()};$G(e,t)?h():(e.once("selectionchange",h),e.once("touchend",(function(){return e.off("selectionchange",h)})))}else f()},ZG=function(e){return"string"===typeof e?e.split(/[ ,]/):e},JG=function(e){return e.getParam("contextmenu_never_use_native",!1,"boolean")},QG=function(e,t,n){var r=e.ui.registry.getAll().contextMenus;return M.from(e.getParam(t)).map(ZG).getOrThunk((function(){return K(ZG(n),(function(e){return Se(r,e)}))}))},eX=function(e){return!1===e.getParam("contextmenu")},tX=function(e){return QG(e,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},nX=function(e){return e.getParam("contextmenu_avoid_overlap","","string")},rX=function(e){return o(e)?"|"===e:"separator"===e.type},iX={type:"separator"},oX=function(e){var t=function(e){return{text:e.text,icon:e.icon,disabled:e.disabled,shortcut:e.shortcut}};if(o(e))return e;switch(e.type){case"separator":return iX;case"submenu":return E(E({type:"nestedmenuitem"},t(e)),{getSubmenuItems:function(){var t=e.getSubmenuItems();return o(t)?t:$(t,oX)}});default:return E(E({type:"menuitem"},t(e)),{onAction:v(e.onAction)})}},aX=function(e,t){if(0===t.length)return e;var n=fe(e).filter((function(e){return!rX(e)})),r=n.fold((function(){return[]}),(function(e){return[iX]}));return e.concat(r).concat(t).concat([iX])},sX=function(e,t,n){var r=J(t,(function(t,r){return Te(e,r.toLowerCase()).map((function(e){var r=e.update(n);if(o(r))return aX(t,r.split(" "));if(r.length>0){var i=$(r,oX);return aX(t,i)}return t})).getOrThunk((function(){return t.concat([r])}))}),[]);return r.length>0&&rX(r[r.length-1])&&r.pop(),r},cX=function(e,t){return t.ctrlKey&&!JG(e)},uX=function(e,t){return"longpress"!==t.type&&(2!==t.button||t.target===e.getBody()&&""===t.pointerType)},lX=function(e,t){return uX(e,t)?e.selection.getStart(!0):t.target},dX=function(e,t){var n=nX(e),r=uX(e,t)?"selection":"point";if(Ge(n)){var i=lX(e,t),o=qE(tt.fromDom(i),n);return o?"node":r}return r},fX=function(e,t,n){var r=tn(),i=r.deviceType.isTouch,o=Su(tw.sketch({dom:{tag:"div"},lazySink:t,onEscape:function(){return e.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:fd([Wx("dismissContextMenu",[Fs(ps(),(function(t,n){bg.close(t),e.focus()}))])])})),a=function(e){return tw.hide(o)},s=function(t){if(JG(e)&&t.preventDefault(),!cX(e,t)&&!eX(e)){var r=dX(e,t),a=function(){var n=lX(e,t),r=e.ui.registry.getAll(),i=tX(e);return sX(r.contextMenus,i,n)},s=i()?KG:jG;s(e,t,a,n,o,r)}};e.on("init",(function(){var t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(i()?"":" ResizeWindow");e.on(t,a),e.on("longpress contextmenu",s)}))},hX=aa.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),pX=function(e){return function(t){return t.translate(-e.left,-e.top)}},gX=function(e){return function(t){return t.translate(e.left,e.top)}},mX=function(e){return function(t,n){return J(e,(function(e,t){return t(e)}),lr(t,n))}},vX=function(e,t,n){return e.fold(mX([gX(n),pX(t)]),mX([pX(t)]),mX([]))},bX=function(e,t,n){return e.fold(mX([gX(n)]),mX([]),mX([gX(t)]))},yX=function(e,t,n){return e.fold(mX([]),mX([pX(n)]),mX([gX(t),pX(n)]))},xX=function(e,t,n,r,i,o){var a=bX(e,i,o),s=bX(t,i,o);return Math.abs(a.left-s.left)<=n&&Math.abs(a.top-s.top)<=r},_X=function(e,t,n,r,i,o){var a=bX(e,i,o),s=bX(t,i,o),c=Math.abs(a.left-s.left),u=Math.abs(a.top-s.top);return lr(c,u)},wX=function(e,t,n){var r=e.fold((function(e,t){return{position:M.some("absolute"),left:M.some(e+"px"),top:M.some(t+"px")}}),(function(e,t){return{position:M.some("absolute"),left:M.some(e-n.left+"px"),top:M.some(t-n.top+"px")}}),(function(e,t){return{position:M.some("fixed"),left:M.some(e+"px"),top:M.some(t+"px")}}));return E({right:M.none(),bottom:M.none()},r)},DX=function(e,t,n){return e.fold((function(e,r){return kX(e+t,r+n)}),(function(e,r){return TX(e+t,r+n)}),(function(e,r){return SX(e+t,r+n)}))},CX=function(e,t,n,r){var i=function(e,i){return function(o,a){var s=e(t,n,r);return i(o.getOr(s.left),a.getOr(s.top))}};return e.fold(i(yX,kX),i(bX,TX),i(vX,SX))},kX=hX.offset,TX=hX.absolute,SX=hX.fixed,AX=function(e,t){var n=jn(e,t);return l(n)?NaN:parseInt(n,10)},EX=function(e,t){var n=e.element,r=AX(n,t.leftAttr),i=AX(n,t.topAttr);return isNaN(r)||isNaN(i)?M.none():M.some(lr(r,i))},UX=function(e,t,n){var r=e.element;zn(r,t.leftAttr,n.left+"px"),zn(r,t.topAttr,n.top+"px")},OX=function(e,t){var n=e.element;qn(n,t.leftAttr),qn(n,t.topAttr)},FX=function(e,t,n,r){return EX(e,t).fold((function(){return n}),(function(e){return SX(e.left+r.left,e.top+r.top)}))},PX=function(e,t,n,r,i,o){var a=FX(e,t,n,r),s=t.mustSnap?MX(e,t,a,i,o):IX(e,t,a,i,o),c=vX(a,i,o);return UX(e,t,c),s.fold((function(){return{coord:SX(c.left,c.top),extra:M.none()}}),(function(e){return{coord:e.output,extra:e.extra}}))},RX=function(e,t){OX(e,t)},NX=function(e,t,n,r){return pe(e,(function(e){var i=e.sensor,o=xX(t,i,e.range.left,e.range.top,n,r);return o?M.some({output:CX(e.output,t,n,r),extra:e.extra}):M.none()}))},MX=function(e,t,n,r,i){var o=t.getSnapPoints(e),a=NX(o,n,r,i);return a.orThunk((function(){var e=J(o,(function(e,t){var o=t.sensor,a=_X(n,o,t.range.left,t.range.top,r,i);return e.deltas.fold((function(){return{deltas:M.some(a),snap:M.some(t)}}),(function(n){var r=(a.left+a.top)/2,i=(n.left+n.top)/2;return r<=i?{deltas:M.some(a),snap:M.some(t)}:e}))}),{deltas:M.none(),snap:M.none()});return e.snap.map((function(e){return{output:CX(e.output,n,r,i),extra:e.extra}}))}))},IX=function(e,t,n,r,i){var o=t.getSnapPoints(e);return NX(o,n,r,i)},BX=function(e,t,n){return{coord:CX(e.output,e.output,t,n),extra:e.extra}},LX=function(e,t,n,r){var i=t.getTarget(e.element);if(t.repositionTarget){var o=hn(e.element),a=Ir(o),s=eW(i),c=BX(r,a,s),u=wX(c.coord,a,s);Kn(i,u)}},zX=Object.freeze({__proto__:null,snapTo:LX}),WX="data-initial-z-index",jX=function(e){vn(e.element).filter(lt).each((function(e){Hn(e,WX).fold((function(){return nr(e,"z-index")}),(function(t){return Xn(e,"z-index",t)})),qn(e,WX)}))},HX=function(e){vn(e.element).filter(lt).each((function(t){Qn(t,"z-index").each((function(e){zn(t,WX,e)})),Xn(t,"z-index",Zn(e.element,"z-index"))}))},VX=function(e,t){e.getSystem().addToGui(t),HX(t)},qX=function(e){jX(e),e.getSystem().removeFromGui(e)},$X=function(e,t,n){return e.getSystem().build(bU.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[t]},events:n}))},GX=$o("snaps",[Eo("getSnapPoints"),sl("onSensor"),Eo("leftAttr"),Eo("topAttr"),Xo("lazyViewport",Qr),Xo("mustSnap",!1)]),XX=[Xo("useFixed",T),Eo("blockerClass"),Xo("getTarget",_),Xo("onDrag",m),Xo("repositionTarget",!0),Xo("onDrop",m),ea("getBounds",Qr),GX],YX=function(e){return Re(Qn(e,"left"),Qn(e,"top"),Qn(e,"position"),(function(e,t,n){var r="fixed"===n?SX:kX;return r(parseInt(e,10),parseInt(t,10))})).getOrThunk((function(){var t=hr(e);return TX(t.left,t.top)}))},KX=function(e,t,n,r,i){var o=i.bounds,a=bX(t,n,r),s=Al(a.left,o.x,o.x+o.width-i.width),c=Al(a.top,o.y,o.y+o.height-i.height),u=TX(s,c);return t.fold((function(){var e=yX(u,n,r);return kX(e.left,e.top)}),x(u),(function(){var e=vX(u,n,r);return SX(e.left,e.top)}))},ZX=function(e,t,n,r,i,o,a){var s=t.fold((function(){var e=DX(n,o.left,o.top),t=vX(e,r,i);return SX(t.left,t.top)}),(function(t){var a=PX(e,t,n,o,r,i);return a.extra.each((function(n){t.onSensor(e,n)})),a.coord}));return KX(e,s,r,i,a)},JX=function(e,t,n,r){var i=t.getTarget(e.element);if(t.repositionTarget){var o=hn(e.element),a=Ir(o),s=eW(i),c=YX(i),u=ZX(e,t.snaps,c,a,s,r,n),l=wX(u,a,s);Kn(i,l)}t.onDrag(e,i,r)},QX=function(e,t){return{bounds:e.getBounds(),height:sr(t.element),width:br(t.element)}},eY=function(e,t,n,r,i){var o=n.update(r,i),a=n.getStartData().getOrThunk((function(){return QX(t,e)}));o.each((function(n){JX(e,t,a,n)}))},tY=function(e,t,n,r){t.each(qX),n.snaps.each((function(t){RX(e,t)}));var i=n.getTarget(e.element);r.reset(),n.onDrop(e,i)},nY=function(e){return function(t,n){var r=function(e){n.setStartData(QX(t,e))};return As(O([Fs(ls(),(function(e){n.getStartData().each((function(){return r(e)}))}))],e(t,n,r),!0))}},rY=function(e){return As([Fs(Pa(),e.forceDrop),Fs(Ma(),e.drop),Fs(Ra(),(function(t,n){e.move(n.event)})),Fs(Na(),e.delayDrop)])},iY=function(e){return M.from(lr(e.x,e.y))},oY=function(e,t){return lr(t.left-e.left,t.top-e.top)},aY=Object.freeze({__proto__:null,getData:iY,getDelta:oY}),sY=function(e,t,n){return[Fs(Pa(),(function(r,i){var o=i.event.raw;if(0===o.button){i.stop();var a=function(){return tY(r,M.some(u),e,t)},s=$E(a,200),c={drop:a,delayDrop:s.schedule,forceDrop:a,move:function(n){s.cancel(),eY(r,e,t,aY,n)}},u=$X(r,e.blockerClass,rY(c)),l=function(){n(r),VX(r,u)};l()}}))]},cY=O(O([],XX,!0),[dl("dragger",{handlers:nY(sY)})],!1),uY=function(e){return As([Fs(Ea(),e.forceDrop),Fs(Oa(),e.drop),Fs(Fa(),e.drop),Fs(Ua(),(function(t,n){e.move(n.event)}))])},lY=function(e){var t=e[0];return M.some(lr(t.clientX,t.clientY))},dY=function(e){var t=e.raw,n=t.touches;return 1===n.length?lY(n):M.none()},fY=function(e,t){return lr(t.left-e.left,t.top-e.top)},hY=Object.freeze({__proto__:null,getData:dY,getDelta:fY}),pY=function(e,t,n){var r=rf(),i=function(n){tY(n,r.get(),e,t),r.clear()};return[Fs(Ea(),(function(o,a){a.stop();var s=function(){return i(o)},c={drop:s,delayDrop:m,forceDrop:s,move:function(n){eY(o,e,t,hY,n)}},u=$X(o,e.blockerClass,uY(c));r.set(u);var l=function(){n(o),VX(o,u)};l()})),Fs(Ua(),(function(n,r){r.stop(),eY(n,e,t,hY,r.event)})),Fs(Oa(),(function(e,t){t.stop(),i(e)})),Fs(Fa(),i)]},gY=O(O([],XX,!0),[dl("dragger",{handlers:nY(pY)})],!1),mY=function(e,t,n){return O(O([],sY(e,t,n),!0),pY(e,t,n),!0)},vY=O(O([],XX,!0),[dl("dragger",{handlers:nY(mY)})],!1),bY=cY,yY=gY,xY=vY,_Y=Object.freeze({__proto__:null,mouse:bY,touch:yY,mouseOrTouch:xY}),wY=function(){var e=M.none(),t=M.none(),n=function(){e=M.none(),t=M.none()},r=function(t,n){var r=e.map((function(e){return t.getDelta(e,n)}));return e=M.some(n),r},i=function(e,t){return e.getData(t).bind((function(t){return r(e,t)}))},o=function(e){t=M.some(e)},a=function(){return t},s=x({});return kc({readState:s,reset:n,update:i,getStartData:a,setStartData:o})},DY=Object.freeze({__proto__:null,init:wY}),CY=md({branchKey:"mode",branches:_Y,name:"dragging",active:{events:function(e,t){var n=e.dragger;return n.handlers(e,t)}},extra:{snap:function(e){return{sensor:e.sensor,range:e.range,output:e.output,extra:M.from(e.extra)}}},state:DY,apis:zX}),kY=40,TY=kY/2,SY=function(e,t,n,r,i,o){return e.fold((function(){return CY.snap({sensor:TX(n-TY,r-TY),range:lr(i,o),output:TX(M.some(n),M.some(r)),extra:{td:t}})}),(function(e){var i=n-TY,o=r-TY,a=kY,s=kY,c=e.element.dom.getBoundingClientRect();return CY.snap({sensor:TX(i,o),range:lr(a,s),output:TX(M.some(n-c.width/2),M.some(r-c.height/2)),extra:{td:t}})}))},AY=function(e,t,n){var r=function(e,t){return e.exists((function(e){return un(e,t)}))};return{getSnapPoints:e,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(e,i){var o=i.td;r(t.get(),o)||(t.set(o),n(o))},mustSnap:!0}},EY=function(e){return Sw(Dw.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:fd([CY.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:e}),KO.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},UY=function(e,t){var n=ia([]),r=ia([]),i=ia(!1),o=rf(),a=rf(),s=function(e){var n=Jr(e);return SY(h.getOpt(t),e,n.x,n.y,n.width,n.height)},c=function(){return $(n.get(),(function(e){return s(e)}))},u=function(e){var n=Jr(e);return SY(p.getOpt(t),e,n.right,n.bottom,n.width,n.height)},l=function(){return $(r.get(),(function(e){return u(e)}))},d=AY(c,o,(function(t){a.get().each((function(n){e.fire("TableSelectorChange",{start:t,finish:n})}))})),f=AY(l,a,(function(t){o.get().each((function(n){e.fire("TableSelectorChange",{start:n,finish:t})}))})),h=EY(d),p=EY(f),g=Su(h.asSpec()),m=Su(p.asSpec()),v=function(t,n,r,i){var o=n.dom.getBoundingClientRect();nr(t.element,"display");var a=mn(tt.fromDom(e.getBody())).dom.innerHeight,s=r(o),c=i(o,a);(s||c)&&Xn(t.element,"display","none")},b=function(e,t,n,r){var i=n(t);CY.snapTo(e,i);var o=function(e){return e[r]<0},a=function(e,t){return e[r]>t};v(e,t,o,a)},y=function(e){return b(g,e,s,"top")},x=function(){return o.get().each(y)},_=function(e){return b(m,e,u,"bottom")},w=function(){return a.get().each(_)};tn().deviceType.isTouch()&&(e.on("TableSelectionChange",(function(e){i.get()||(Vp(t,g),Vp(t,m),i.set(!0)),o.set(e.start),a.set(e.finish),e.otherCells.each((function(t){n.set(t.upOrLeftCells),r.set(t.downOrRightCells),y(e.start),_(e.finish)}))})),e.on("ResizeEditor ResizeWindow ScrollContent",(function(){x(),w()})),e.on("TableSelectionClear",(function(){i.get()&&(Gp(g),Gp(m),i.set(!1)),o.clear(),a.clear()})))},OY=function(e){if(1===e.nodeType){if("BR"===e.nodeName||e.getAttribute("data-mce-bogus"))return!0;if("bookmark"===e.getAttribute("data-mce-type"))return!0}return!1},FY=function(e,t,n){t.delimiter||(t.delimiter="»");var r=function(r){var i=r||[],o=$(i,(function(t,r){return Dw.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":r,"tab-index":-1,"aria-level":r+1},innerHtml:t.name},action:function(n){e.focus(),e.selection.select(t.element),e.nodeChanged()},buttonBehaviours:fd([wS.button(n.isDisabled),vS()])})})),a={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+t.delimiter+" "}};return J(o.slice(1),(function(e,t){var n=e;return n.push(a),n.push(t),n}),[o[0]])},i=function(t){var n=[],r=t.length;while(r-- >0){var i=t[r];if(1===i.nodeType&&!OY(i)){var o=e.fire("ResolveName",{name:i.nodeName.toLowerCase(),target:i});if(o.isDefaultPrevented()||n.push({name:o.name,element:i}),o.isPropagationStopped())break}}return n};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:fd([Ex.config({mode:"flow",selector:"div[role=button]"}),Iv.config({disabled:n.isDisabled}),vS(),AU.config({}),Lx.config({}),Wx("elementPathEvents",[js((function(t,n){e.shortcuts.add("alt+F11","focus statusbar elementpath",(function(){return Ex.focusIn(t)})),e.on("NodeChange",(function(e){var n=i(e.parents);n.length>0?Lx.set(t,r(n)):Lx.set(t,[])}))}))])]),components:[]}};(function(e){e[e["None"]=0]="None",e[e["Both"]=1]="Both",e[e["Vertical"]=2]="Vertical"})(MV||(MV={}));var PY=function(e,t,n,r,i){var o={};return o.height=o$(r+t.top,ET(e),OT(e)),n===MV.Both&&(o.width=o$(i+t.left,AT(e),UT(e))),o},RY=function(e,t,n){var r=tt.fromDom(e.getContainer()),i=PY(e,t,n,ar(r),vr(r));ve(i,(function(e,t){return Xn(r,t,i$(e))})),TA(e)},NY=function(e){var t=!e.hasPlugin("autoresize"),n=e.getParam("resize",t);return!1===n?MV.None:"both"===n?MV.Both:MV.Vertical},MY=function(e,t,n,r){var i=20,o=lr(n*i,r*i);return RY(e,o,t),M.some(!0)},IY=function(e,t){var n=NY(e);return n===MV.None?M.none():M.some(qD("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:t.translate("Resize")},behaviours:[CY.config({mode:"mouse",repositionTarget:!1,onDrag:function(t,r,i){return RY(e,i,n)},blockerClass:"tox-blocker"}),Ex.config({mode:"special",onLeft:function(){return MY(e,n,-1,0)},onRight:function(){return MY(e,n,1,0)},onUp:function(){return MY(e,n,0,-1)},onDown:function(){return MY(e,n,0,1)}}),AU.config({}),Kx.config({})]},t.icons))},BY=function(e,t){var n,r=function(e,n,r){return Lx.set(e,[Du(t.translate(["{0} "+r,n[r]]))])};return Dw.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:fd([wS.button(t.isDisabled),vS(),AU.config({}),Lx.config({}),em.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Wx("wordcount-events",[qs((function(e){var t=em.getValue(e),n="words"===t.mode?"characters":"words";em.setValue(e,{mode:n,count:t.count}),r(e,t.count,n)})),js((function(t){e.on("wordCountUpdate",(function(e){var n=em.getValue(t).mode;em.setValue(t,{mode:n,count:e.wordCount}),r(t,e.wordCount,n)}))}))])]),eventOrder:(n={},n[ts()]=["disabling","alloy.base.behaviour","wordcount-events"],n)})},LY=function(e,t){var n=function(){var e=RD.translate(["Powered by {0}","Tiny"]),t='<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&amp;utm_medium=poweredby&amp;utm_source=tinymce&amp;utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+e+'">'+e+"</a>";return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:t}}},r=function(){var r=[];return e.getParam("elementpath",!0,"boolean")&&r.push(FY(e,{},t)),e.hasPlugin("wordcount")&&r.push(BY(e,t)),e.getParam("branding",!0,"boolean")&&r.push(n()),r.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:r}]:[]},i=function(){var n=r(),i=IY(e,t);return n.concat(i.toArray())};return{dom:{tag:"div",classes:["tox-statusbar"]},components:i()}},zY=function(e){var t,n=e.inline,r=n?p$:n$,i=eS(e)?GW:Jz,o=M.none(),a=tn(),s=a.browser.isIE(),c=s?["tox-platform-ie"]:[],u=a.deviceType.isTouch(),l="tox-platform-touch",d=u?[l]:[],f=$T(e),h=JT(e),p=RD.isRtl()?{attributes:{dir:"rtl"}}:{},g={attributes:(t={},t[If]=f?Bd.BottomToTop:Bd.TopToBottom,t)},v=function(){return o.bind(hV.getHeader)},b=function(){return i.isDocked(v)},y=function(){Xn(J.element,"width",document.body.clientWidth+"px")},x=function(){var e=un(In(),h)&&"grid"===Zn(h,"display"),t={dom:E({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(c).concat(d)},p),behaviours:fd([Bp.config({useFixed:function(){return b()}})])},n={dom:{styles:{width:document.body.clientWidth+"px"}},events:As([Fs(ds(),y)])};return _i(t,e?n:{})},_=Su(x()),w=function(){return ri.value(_)},D=Sw({dom:{tag:"div",classes:["tox-anchorbar"]}}),C=function(){return o.bind((function(e){return D.getOpt(e)})).getOrDie("Could not find a anchor bar element")},k=function(){return o.bind((function(e){return hV.getToolbar(e)})).getOrDie("Could not find more toolbar element")},T=function(){return o.bind((function(e){return hV.getThrobber(e)})).getOrDie("Could not find throbber element")},S=Pz(_,e,C),A=hV.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:S,onEscape:function(){e.focus()}}),U=jT(e),O=hV.parts.toolbar(E({dom:{tag:"div",classes:["tox-toolbar"]},getSink:w,providers:S.shared.providers,onEscape:function(){e.focus()},type:U,lazyToolbar:k,lazyHeader:function(){return v().getOrDie("Could not find header element")}},g)),F=hV.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:S.shared.providers,onEscape:function(){e.focus()},type:U}),P=hV.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),R=hV.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),N=hV.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:S}),I=e.getParam("statusbar",!0,"boolean"),B=I&&!n?M.some(LY(e,S.shared.providers)):M.none(),L={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[P,R]},z=zT(e),W=BT(e),j=IT(e),H=function(){return z?[F]:W?[O]:[]},V=hV.parts.header({dom:E({tag:"div",classes:["tox-editor-header"]},g),components:ne([j?[A]:[],H(),ZT(e)?[]:[D.asSpec()]]),sticky:eS(e),editor:e,sharedBackstage:S.shared}),q=ne([f?[]:[V],n?[]:[L],f?[V]:[]]),$={dom:{tag:"div",classes:["tox-editor-container"]},components:q},G=ne([[$],n?[]:B.toArray(),[N]]),X=QT(e),Y=E(E({role:"application"},RD.isRtl()?{dir:"rtl"}:{}),X?{"aria-hidden":"true"}:{}),K=Su(hV.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(n?["tox-tinymce-inline"]:[]).concat(f?["tox-tinymce--toolbar-bottom"]:[]).concat(d).concat(c),styles:E({visibility:"hidden"},X?{opacity:"0",border:"0"}:{}),attributes:Y},components:G,behaviours:fd([vS(),Iv.config({disableClass:"tox-tinymce--disabled"}),Ex.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])}));o=M.some(K),e.shortcuts.add("alt+F9","focus menubar",(function(){hV.focusMenubar(K)})),e.shortcuts.add("alt+F10","focus toolbar",(function(){hV.focusToolbar(K)})),e.addCommand("ToggleToolbarDrawer",(function(){hV.toggleToolbarDrawer(K)})),e.addQueryStateHandler("ToggleToolbarDrawer",(function(){return hV.isToolbarDrawerToggled(K)}));var Z=yU(K),J=yU(_);Rz(e,Z,J);var Q=function(){var e={broadcastAll:J.broadcast,broadcastOn:J.broadcastOn,register:m};return{channels:e}},ee=function(){var t=i$(s$(e)),n=i$(u$(e));return e.inline||(tr("div","width",n)&&Xn(K.element,"width",n),tr("div","height",t)?Xn(K.element,"height",t):Xn(K.element,"height","200px")),t},te=function(){i.setup(e,S.shared,v),OG(e,S),fX(e,w,S),Wj(e),dH(e,T,S.shared),be(VT(e),(function(t,n){e.ui.registry.addGroupToolbarButton(n,t)}));var t=e.ui.registry.getAll(),n=t.buttons,o=t.menuItems,a=t.contextToolbars,s=t.sidebars,c=LT(e),u={menuItems:o,menus:rS(e),menubar:iS(e),toolbar:c.getOrThunk((function(){return oS(e)})),allowToolbarGroups:U===ZC.floating,buttons:n,sidebar:s};tG(e,a,_,{backstage:S}),UY(e,_);var l=e.getElement(),d=ee(),f={mothership:Z,uiMothership:J,outerContainer:K},h={targetNode:l,height:d};return r.render(e,f,u,S,h)};return{mothership:Z,uiMothership:J,backstage:S,renderUI:te,getUi:Q}},WY=function(e,t){var n=M.from(jn(e,"id")).fold((function(){var e=ic("dialog-describe");return zn(t,"id",e),e}),_);zn(e,"aria-describedby",n)},jY=function(e,t){var n=Hn(e,"id").fold((function(){var e=ic("dialog-label");return zn(t,"id",e),e}),_);zn(e,"aria-labelledby",n)},HY=x([Eo("lazySink"),zo("dragBlockClass"),ea("getBounds",Qr),Xo("useTabstopAt",S),Xo("eventOrder",{}),tm("modalBehaviours",[Ex]),cl("onExecute"),ll("onEscape")]),VY={sketch:_},qY=x([Nm({name:"draghandle",overrides:function(e,t){return{behaviours:fd([CY.config({mode:"mouse",getTarget:function(e){return Mu(e,'[role="dialog"]').getOr(e)},blockerClass:e.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(t,null,2)).message),getBounds:e.getDragBounds})])}}}),Pm({schema:[Eo("dom")],name:"title"}),Pm({factory:VY,schema:[Eo("dom")],name:"close"}),Pm({factory:VY,schema:[Eo("dom")],name:"body"}),Nm({factory:VY,schema:[Eo("dom")],name:"footer"}),Rm({factory:{sketch:function(e,t){return E(E({},e),{dom:t.dom,components:t.components})}},schema:[Xo("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Xo("components",[])],name:"blocker"})]),$Y=function(e,t,n,r){var i,o=rf(),a=function(t){o.set(t);var n=e.lazySink(t).getOrDie(),i=r.blocker(),a=n.getSystem().build(E(E({},i),{components:i.components.concat([Au(t)]),behaviours:fd([Kx.config({}),Wx("dialog-blocker-events",[Ws(Ba(),(function(){Ex.focusIn(t)}))])])}));Vp(n,a),Ex.focusIn(t)},s=function(e){o.clear(),vn(e.element).each((function(t){e.getSystem().getByDom(t).each((function(e){Gp(e)}))}))},c=function(t){return Ym(t,e,"body")},u=function(t){return Ym(t,e,"footer")},l=function(e,t){rH.block(e,t)},d=function(e){rH.unblock(e)},f=ic("modal-events"),h=E(E({},e.eventOrder),(i={},i[fs()]=[f].concat(e.eventOrder["alloy.system.attached"]||[]),i));return{uid:e.uid,dom:e.dom,components:t,apis:{show:a,hide:s,getBody:c,getFooter:u,setIdle:d,setBusy:l},eventOrder:h,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:rm(e.modalBehaviours,[Lx.config({}),Ex.config({mode:"cyclic",onEnter:e.onExecute,onEscape:e.onEscape,useTabstopAt:e.useTabstopAt}),rH.config({getRoot:o.get}),Wx(f,[js((function(t){jY(t.element,Ym(t,e,"title").element),WY(t.element,Ym(t,e,"body").element)}))])])}},GY=hv({name:"ModalDialog",configFields:HY(),partFields:qY(),factory:$Y,apis:{show:function(e,t){e.show(t)},hide:function(e,t){e.hide(t)},getBody:function(e,t){return e.getBody(t)},getFooter:function(e,t){return e.getFooter(t)},setBusy:function(e,t,n){e.setBusy(t,n)},setIdle:function(e,t){e.setIdle(t)}}}),XY=Qi([Fo("type"),Fo("name")].concat(jk)),YY=uo,KY=[To("name","name",Ci((function(){return ic("button-name")})),co),Ho("icon"),Jo("align","end",["start","end"]),Qo("primary",!1),Qo("disabled",!1)],ZY=O(O([],KY,!0),[Fo("text")],!1),JY=O([Po("type",["submit","cancel","custom"])],ZY,!0),QY=O([Po("type",["menu"]),Ho("text"),Ho("tooltip"),Ho("icon"),Lo("items",XY)],KY,!0),eK=Co("type",{submit:JY,cancel:JY,custom:JY,menu:QY}),tK=[Fo("type"),Fo("text"),Po("level",["info","warn","error","success"]),Fo("icon"),Xo("url","")],nK=Qi(tK),rK=function(e){return[Fo("type"),e]},iK=[Fo("type"),Fo("text"),Qo("disabled",!1),Qo("primary",!1),To("name","name",Ci((function(){return ic("button-name")})),co),Ho("icon"),Qo("borderless",!1)],oK=Qi(iK),aK=[Fo("type"),Fo("name"),Fo("label"),Qo("disabled",!1)],sK=Qi(aK),cK=uo,uK=[Fo("type"),Fo("name")],lK=uK.concat([Ho("label")]),dK=lK.concat([Xo("columns","auto")]),fK=Qi(dK),hK=io([Fo("value"),Fo("text"),Fo("icon")]),pK=lK,gK=Qi(pK),mK=co,vK=lK,bK=Qi(vK),yK=co,xK=uK.concat([Zo("tag","textarea"),Fo("scriptId"),Fo("scriptUrl"),ta("settings",void 0)]),_K=uK.concat([Zo("tag","textarea"),No("init")]),wK=vo((function(e){return xo("customeditor.old",Ji(_K),e).orThunk((function(){return xo("customeditor.new",Ji(xK),e)}))})),DK=co,CK=lK,kK=Qi(CK),TK=mo(),SK=function(e){return[Fo("type"),Oo("columns"),e]},AK=[Fo("type"),Fo("html"),Jo("presets","presentation",["presentation","document"])],EK=Qi(AK),UK=lK.concat([Qo("sandboxed",!0)]),OK=Qi(UK),FK=co,PK=lK.concat([Uo("currentState",Qi([Eo("blob"),Fo("url")]))]),RK=Qi(PK),NK=lK.concat([Ho("inputMode"),Ho("placeholder"),Qo("maximized",!1),Qo("disabled",!1)]),MK=Qi(NK),IK=co,BK=function(e){return[Fo("type"),Fo("label"),e]},LK=[Fo("text"),Fo("value")],zK=[Fo("text"),Lo("items",ko("items",(function(){return WK})))],WK=to([Qi(LK),Qi(zK)]),jK=lK.concat([Lo("items",WK),Qo("disabled",!1)]),HK=Qi(jK),VK=co,qK=lK.concat([Bo("items",[Fo("text"),Fo("value")]),Ko("size",1),Qo("disabled",!1)]),$K=Qi(qK),GK=co,XK=lK.concat([Qo("constrain",!0),Qo("disabled",!1)]),YK=Qi(XK),KK=Qi([Fo("width"),Fo("height")]),ZK=[Fo("type"),Lo("header",co),Lo("cells",eo(co))],JK=Qi(ZK),QK=lK.concat([Ho("placeholder"),Qo("maximized",!1),Qo("disabled",!1)]),eZ=Qi(QK),tZ=co,nZ=lK.concat([Jo("filetype","file",["image","media","file"]),Xo("disabled",!1)]),rZ=Qi(nZ),iZ=Qi([Fo("value"),Xo("meta",{})]),oZ=function(e){return To("items","items",Di(),eo(vo((function(t){return xo("Checking item of "+e,aZ,t).fold((function(e){return ri.error(Do(e))}),(function(e){return ri.value(e)}))}))))},aZ=Ki((function(){return go("type",{alertbanner:nK,bar:Qi(rK(oZ("bar"))),button:oK,checkbox:sK,colorinput:gK,colorpicker:bK,dropzone:kK,grid:Qi(SK(oZ("grid"))),iframe:OK,input:MK,listbox:HK,selectbox:$K,sizeinput:YK,textarea:eZ,urlinput:rZ,customeditor:wK,htmlpanel:EK,imagetools:RK,collection:fK,label:Qi(BK(oZ("label"))),table:JK,panel:cZ})})),sZ=[Fo("type"),Xo("classes",[]),Lo("items",aZ)],cZ=Qi(sZ),uZ=[To("name","name",Ci((function(){return ic("tab-name")})),co),Fo("title"),Lo("items",aZ)],lZ=[Fo("type"),Bo("tabs",uZ)],dZ=Qi(lZ),fZ=ZY,hZ=eK,pZ=Qi([Fo("title"),Uo("body",go("type",{panel:cZ,tabpanel:dZ})),Zo("size","normal"),Lo("buttons",hZ),Xo("initialData",{}),ea("onAction",m),ea("onChange",m),ea("onSubmit",m),ea("onClose",m),ea("onCancel",m),Xo("onTabChange",m)]),gZ=function(e){return xo("dialog",pZ,e)},mZ=Qi(O([Po("type",["cancel","custom"])],fZ,!0)),vZ=Qi([Fo("title"),Fo("url"),jo("height"),jo("width"),qo("buttons",mZ),ea("onAction",m),ea("onCancel",m),ea("onClose",m),ea("onMessage",m)]),bZ=function(e){return xo("dialog",vZ,e)},yZ=function(e){return a(e)?[e].concat(re(ke(e),yZ)):s(e)?re(e,yZ):[]},xZ=function(e){return o(e.type)&&o(e.name)},_Z={checkbox:cK,colorinput:mK,colorpicker:yK,dropzone:TK,input:IK,iframe:FK,sizeinput:KK,selectbox:GK,listbox:VK,size:KK,textarea:tZ,urlinput:iZ,customeditor:DK,collection:hK,togglemenuitem:YY},wZ=function(e){return M.from(_Z[e.type])},DZ=function(e){return K(yZ(e),xZ)},CZ=function(e){var t=DZ(e),n=re(t,(function(e){return wZ(e).fold((function(){return[]}),(function(t){return[Uo(e.name,t)]}))}));return Qi(n)},kZ=function(e){var t=_o(gZ(e)),n=CZ(e),r=e.initialData;return{internalDialog:t,dataValidator:n,initialData:r}},TZ={open:function(e,t){var n=kZ(t);return e(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(e,t){var n=_o(bZ(t));return e(n)},redial:function(e){return kZ(e)}},SZ=function(e){var t=[],n={};return ve(e,(function(e,r){e.fold((function(){t.push(r)}),(function(e){n[r]=e}))})),t.length>0?ri.error(t):ri.value(n)},AZ=function(e,t){var n=Sw(jR.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"].concat(e.classes)},components:$(e.items,(function(e){return mL(n,e,t)}))}})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[n.asSpec()]}],behaviours:fd([Ex.config({mode:"acyclic",useTabstopAt:C(TN)}),QR.memento(n),gN.memento(n,{postprocess:function(e){return SZ(e).fold((function(e){return console.error(e),{}}),_)}})])}},EZ=function(e,t){return{uid:e.uid,dom:e.dom,components:e.components,events:v_(e.action),behaviours:rm(e.tabButtonBehaviours,[Kx.config({}),Ex.config({mode:"execution",useSpace:!0,useEnter:!0}),em.config({store:{mode:"memory",initialValue:e.value}})]),domModification:e.domModification}},UZ=fv({name:"TabButton",configFields:[Xo("uid",void 0),Eo("value"),To("dom","dom",Si((function(){return{attributes:{role:"tab",id:ic("aria"),"aria-selected":"false"}}})),oo()),zo("action"),Xo("domModification",{}),tm("tabButtonBehaviours",[Kx,Ex,em]),Eo("view")],factory:EZ}),OZ=x([Eo("tabs"),Eo("dom"),Xo("clickToDismiss",!1),tm("tabbarBehaviours",[rb,Ex]),ol(["tabClass","selectedClass"])]),FZ=Mm({factory:UZ,name:"tabs",unit:"tab",overrides:function(e){var t=function(e,t){rb.dehighlight(e,t),Ds(e,ys(),{tabbar:e,button:t})},n=function(e,t){rb.highlight(e,t),Ds(e,bs(),{tabbar:e,button:t})};return{action:function(r){var i=r.getSystem().getByUid(e.uid).getOrDie(),o=rb.isHighlighted(i,r),a=function(){return o&&e.clickToDismiss?t:o?m:n}();a(i,r)},domModification:{classes:[e.markers.tabClass]}}}}),PZ=x([FZ]),RZ=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:rm(e.tabbarBehaviours,[rb.config({highlightClass:e.markers.selectedClass,itemClass:e.markers.tabClass,onHighlight:function(e,t){zn(t.element,"aria-selected","true")},onDehighlight:function(e,t){zn(t.element,"aria-selected","false")}}),Ex.config({mode:"flow",getInitial:function(e){return rb.getHighlighted(e).map((function(e){return e.element}))},selector:"."+e.markers.tabClass,executeOnMove:!0})])}},NZ=hv({name:"Tabbar",configFields:OZ(),partFields:PZ(),factory:RZ}),MZ=function(e,t){return{uid:e.uid,dom:e.dom,behaviours:rm(e.tabviewBehaviours,[Lx.config({})]),domModification:{attributes:{role:"tabpanel"}}}},IZ=fv({name:"Tabview",configFields:[tm("tabviewBehaviours",[Lx])],factory:MZ}),BZ=x([Xo("selectFirst",!0),sl("onChangeTab"),sl("onDismissTab"),Xo("tabs",[]),tm("tabSectionBehaviours",[])]),LZ=Pm({factory:NZ,schema:[Eo("dom"),Io("markers",[Eo("tabClass"),Eo("selectedClass")])],name:"tabbar",defaults:function(e){return{tabs:e.tabs}}}),zZ=Pm({factory:IZ,name:"tabview"}),WZ=x([LZ,zZ]),jZ=function(e,t,n,r){var i=function(t){var n=em.getValue(t);Xm(t,e,"tabview").each((function(r){var i=ee(e.tabs,(function(e){return e.value===n}));i.each((function(n){var i=n.view();Hn(t.element,"id").each((function(e){zn(r.element,"aria-labelledby",e)})),Lx.set(r,i),e.onChangeTab(r,t,i)}))}))},o=function(t,n){Xm(t,e,"tabbar").each((function(e){n(e).each(Cs)}))};return{uid:e.uid,dom:e.dom,components:t,behaviours:nm(e.tabSectionBehaviours),events:As(ne([e.selectFirst?[js((function(e,t){o(e,rb.getFirst)}))]:[],[Fs(bs(),(function(e,t){var n=t.event.button;i(n)})),Fs(ys(),(function(t,n){var r=n.event.button;e.onDismissTab(t,r)}))]])),apis:{getViewItems:function(t){return Xm(t,e,"tabview").map((function(e){return Lx.contents(e)})).getOr([])},showTab:function(e,t){var n=function(e){var n=rb.getCandidates(e),r=ee(n,(function(e){return em.getValue(e)===t}));return r.filter((function(t){return!rb.isHighlighted(e,t)}))};o(e,n)}}}},HZ=hv({name:"TabSection",configFields:BZ(),partFields:WZ(),factory:jZ,apis:{getViewItems:function(e,t){return e.getViewItems(t)},showTab:function(e,t,n){e.showTab(t,n)}}}),VZ=function(e,t,n){return $(e,(function(r,i){Lx.set(n,e[i].view());var o=t.dom.getBoundingClientRect();return Lx.set(n,[]),o.height}))},qZ=function(e){return de(ue(e,(function(e,t){return e>t?-1:e<t?1:0})))},$Z=function(e,t,n){var r,i=gn(e).dom,o=Mu(e,".tox-dialog-wrap").getOr(e),a="fixed"===Zn(o,"position");r=a?Math.max(i.clientHeight,window.innerHeight):Math.max(i.offsetHeight,i.scrollHeight);var s=ar(t),c=t.dom.offsetLeft>=n.dom.offsetLeft+vr(n),u=c?Math.max(ar(n),s):s,l=parseInt(Zn(e,"margin-top"),10)||0,d=parseInt(Zn(e,"margin-bottom"),10)||0,f=ar(e)+l+d,h=f-u;return r-h},GZ=function(e,t){de(e).each((function(e){return HZ.showTab(t,e.value)}))},XZ=function(e,t){Xn(e,"height",t+"px"),tn().browser.isIE()?nr(e,"flex-basis"):Xn(e,"flex-basis",t+"px")},YZ=function(e,t,n){Mu(e,'[role="dialog"]').each((function(e){Bu(e,'[role="tablist"]').each((function(r){n.get().map((function(n){return Xn(t,"height","0"),Xn(t,"flex-basis","0"),Math.min(n,$Z(e,t,r))})).each((function(e){XZ(t,e)}))}))}))},KZ=function(e){return Bu(e,'[role="tabpanel"]')},ZZ=function(e){var t=function(){var t=rf(),n=[js((function(n){var r=n.element;KZ(r).each((function(i){Xn(i,"visibility","hidden"),n.getSystem().getByDom(i).toOptional().each((function(n){var r=VZ(e,i,n),o=qZ(r);o.fold(t.clear,t.set)})),YZ(r,i,t),nr(i,"visibility"),GZ(e,n),_w.requestAnimationFrame((function(){YZ(r,i,t)}))}))})),Fs(ds(),(function(e){var n=e.element;KZ(n).each((function(e){YZ(n,e,t)}))})),Fs(VU,(function(e,n){var r=e.element;KZ(r).each((function(e){var n=kd(En(e));Xn(e,"visibility","hidden");var i=Qn(e,"height").map((function(e){return parseInt(e,10)}));nr(e,"height"),nr(e,"flex-basis");var o=e.dom.getBoundingClientRect().height,a=i.forall((function(e){return o>e}));a?(t.set(o),YZ(r,e,t)):i.each((function(t){XZ(e,t)})),nr(e,"visibility"),n.each(wd)}))}))],r=!1;return{extraEvents:n,selectFirst:r}}(),n=function(){var e=[],t=!0;return{extraEvents:e,selectFirst:t}}();return{smartTabHeight:t,naiveTabHeight:n}},JZ="send-data-to-section",QZ="send-data-to-view",eJ=function(e,t){var n=ia({}),r=function(e){var t=em.getValue(e),r=SZ(t).getOr({}),i=n.get(),o=_i(i,r);n.set(o)},i=function(e){var t=n.get();em.setValue(e,t)},o=ia(null),a=$(e.tabs,(function(e){return{value:e.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:t.shared.providers.translate(e.title)},view:function(){return[jR.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"]},components:$(e.items,(function(e){return mL(n,e,t)})),formBehaviours:fd([Ex.config({mode:"acyclic",useTabstopAt:C(TN)}),Wx("TabView.form.events",[js(i),Hs(r)]),bd.config({channels:pa([{key:JZ,value:{onReceive:r}},{key:QZ,value:{onReceive:i}}])})])}}))]}}})),s=ZZ(a).smartTabHeight;return HZ.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(e,t,n){var r=em.getValue(t);Ds(e,HU,{name:r,oldName:o.get()}),o.set(r)},tabs:a,components:[HZ.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[NZ.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:fd([AU.config({})])}),HZ.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:s.selectFirst,tabSectionBehaviours:fd([Wx("tabpanel",s.extraEvents),Ex.config({mode:"acyclic"}),bv.config({find:function(e){return de(HZ.getViewItems(e))}}),em.config({store:{mode:"manual",getValue:function(e){return e.getSystem().broadcastOn([JZ],{}),n.get()},setValue:function(e,t){n.set(t),e.getSystem().broadcastOn([QZ],{})}}})])})},tJ=ic("update-dialog"),nJ=ic("update-title"),rJ=ic("update-body"),iJ=ic("update-footer"),oJ=ic("body-send-message"),aJ=function(e,t,n,r){var i=function(e){switch(e.body.type){case"tabpanel":return[eJ(e.body,n)];default:return[AZ(e.body,n)]}},o=function(e,t){return M.some({isTabPanel:function(){return"tabpanel"===t.body.type}})},a={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:E(E({},t.map((function(e){return{id:e}})).getOr({})),r?a:{})},components:[],behaviours:fd([QR.childAt(0),xq.config({channel:rJ,updateState:o,renderComponents:i,initialData:e})])}},sJ=function(e,t,n,r){return aJ(e,M.some(t),n,r)},cJ=function(e,t){var n=aJ(e,M.none(),t,!1);return GY.parts.body(n)},uJ=function(e){var t={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[DN({dom:{tag:"iframe",attributes:{src:e.url}},behaviours:fd([AU.config({}),Kx.config({})])})]}],behaviours:fd([Ex.config({mode:"acyclic",useTabstopAt:C(TN)})])};return GY.parts.body(t)},lJ=OS.deviceType.isTouch(),dJ=function(e,t){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[e,t]}},fJ=function(e,t){return GY.parts.close(Dw.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:e,buttonBehaviours:fd([AU.config({})])}))},hJ=function(){return GY.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},pJ=function(e,t){return GY.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Tw("<p>"+PD(t.translate(e))+"</p>")}]}]})},gJ=function(e){return GY.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:e})},mJ=function(e,t){return[bU.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:e}),bU.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})]},vJ=function(e){var t,n="tox-dialog",r=n+"-wrap",i=r+"__backdrop",o=n+"__disable-scroll";return GY.sketch({lazySink:e.lazySink,onEscape:function(t){return e.onEscape(t),M.some(!0)},useTabstopAt:function(e){return!TN(e)},dom:{tag:"div",classes:[n].concat(e.extraClasses),styles:E({position:"relative"},e.extraStyles)},components:O([e.header,e.body],e.footer.toArray(),!0),parts:{blocker:{dom:Tw('<div class="'+r+'"></div>'),components:[{dom:{tag:"div",classes:lJ?[i,i+"--opaque"]:[i]}}]}},dragBlockClass:r,modalBehaviours:fd(O([Kx.config({}),Wx("dialog-events",e.dialogEvents.concat([Ws(Ba(),(function(e,t){Ex.focusIn(e)}))])),Wx("scroll-lock",[js((function(){ou(In(),o)})),Hs((function(){su(In(),o)}))])],e.extraBehaviours,!0)),eventOrder:E((t={},t[ts()]=["dialog-events"],t[fs()]=["scroll-lock","dialog-events","alloy.base.behaviour"],t[hs()]=["alloy.base.behaviour","dialog-events","scroll-lock"],t),e.eventOrder)})},bJ=function(e){return Dw.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close"),title:e.translate("Close")}},components:[qD("close",{tag:"div",classes:["tox-icon"]},e.icons)],action:function(e){ws(e,BU)}})},yJ=function(e,t,n){var r=function(e){return[Du(n.translate(e.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:E({},t.map((function(e){return{id:e}})).getOr({}))},components:r(e),behaviours:fd([xq.config({channel:nJ,renderComponents:r})])}},xJ=function(){return{dom:Tw('<div class="tox-dialog__draghandle"></div>')}},_J=function(e,t,n){return bU.sketch({dom:Tw('<div class="tox-dialog__header"></div>'),components:[yJ(e,M.some(t),n),xJ(),bJ(n)],containerBehaviours:fd([CY.config({mode:"mouse",blockerClass:"blocker",getTarget:function(e){return Lu(e,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},wJ=function(e,t){var n=GY.parts.title(yJ(e,M.none(),t)),r=GY.parts.draghandle(xJ()),i=GY.parts.close(bJ(t)),o=[n].concat(e.draggable?[r]:[]).concat([i]);return bU.sketch({dom:Tw('<div class="tox-dialog__header"></div>'),components:o})},DJ=function(e,t){return wJ({title:t.shared.providers.translate(e),draggable:t.dialog.isDraggableModal()},t.shared.providers)},CJ=function(e,t,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":n.translate(e)},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:t,components:[{dom:Tw('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}},kJ=function(e,t,n){return{onClose:function(){return n.closeWindow()},onBlock:function(n){GY.setBusy(e(),(function(e,r){return CJ(n.message,r,t)}))},onUnblock:function(){GY.setIdle(e())}}},TJ=function(e,t,n,r){var i,o=function(e,t){return M.some(t)};return Su(vJ(E(E({},e),{lazySink:r.shared.getSink,extraBehaviours:O([xq.config({channel:tJ,updateState:o,initialData:t}),gN.memory({})],e.extraBehaviours,!0),onEscape:function(e){ws(e,BU)},dialogEvents:n,eventOrder:(i={},i[es()]=[xq.name(),bd.name()],i[fs()]=["scroll-lock",xq.name(),"messages","dialog-events","alloy.base.behaviour"],i[hs()]=["alloy.base.behaviour","dialog-events","messages",xq.name(),"scroll-lock"],i)})))},SJ=function(e){var t=function(e){var t=$(e.items,(function(e){var t=ia(!1);return E(E({},e),{storage:t})}));return E(E({},e),{items:t})};return $(e,(function(e){return"menu"===e.type?t(e):e}))},AJ=function(e){return J(e,(function(e,t){if("menu"===t.type){var n=t;return J(n.items,(function(e,t){return e[t.name]=t.storage,e}),e)}return e}),{})},EJ=function(e,t){return[Bs(Ba(),kN),e(IU,(function(e,n){t.onClose(),n.onClose()})),e(BU,(function(e,t,n,r){t.onCancel(e),ws(r,IU)})),Fs(jU,(function(e,n){return t.onUnblock()})),Fs(WU,(function(e,n){return t.onBlock(n.event)}))]},UJ=function(e,t){var n=function(t,n){return Fs(t,(function(t,i){r(t,(function(r,o){n(e(),r,i.event,t)}))}))},r=function(e,t){xq.getState(e).get().each((function(n){t(n,e)}))};return O(O([],EJ(n,t),!0),[n(LU,(function(e,t,n){t.onAction(e,{name:n.name})}))],!1)},OJ=function(e,t,n){var r=function(t,n){return Fs(t,(function(t,r){i(t,(function(i,o){n(e(),i,r.event,t)}))}))},i=function(e,t){xq.getState(e).get().each((function(n){t(n.internalDialog,e)}))};return O(O([],EJ(r,t),!0),[r(zU,(function(e,t){return t.onSubmit(e)})),r(MU,(function(e,t,n){t.onChange(e,{name:n.name})})),r(LU,(function(e,t,r,i){var o=function(){return Ex.focusIn(i)},a=function(e){return Vn(e,"disabled")||Hn(e,"aria-disabled").exists((function(e){return"true"===e}))},s=En(i.element),c=kd(s);t.onAction(e,{name:r.name,value:r.value}),kd(s).fold(o,(function(e){a(e)||c.exists((function(t){return fn(e,t)&&a(t)}))?o():n().toOptional().filter((function(t){return!fn(t.element,e)})).each(o)}))})),r(HU,(function(e,t,n){t.onTabChange(e,{newTabName:n.name,oldTabName:n.oldName})})),Hs((function(t){var n=e();em.setValue(t,n.getData())}))],!1)},FJ={initUrlDialog:UJ,initDialog:OJ},PJ=function(e,t){return fI(e,e.type,t)},RJ=function(e,t,n){return ee(t,(function(e){return e.name===n})).bind((function(t){return t.memento.getOpt(e)}))},NJ=function(e,t){var n=t.map((function(e){return e.footerButtons})).getOr([]),r=Y(n,(function(e){return"start"===e.align})),i=function(e,t){return bU.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+e]},components:$(t,(function(e){return e.memento.asSpec()}))})},o=i("start",r.pass),a=i("end",r.fail);return[o,a]},MJ=function(e,t){var n=function(e,n){var r=$(n.buttons,(function(e){var n=Sw(PJ(e,t));return{name:e.name,align:e.align,memento:n}})),i=function(e,t){return RJ(e,r,t)};return M.some({lookupByName:i,footerButtons:r})};return{dom:Tw('<div class="tox-dialog__footer"></div>'),components:[],behaviours:fd([xq.config({channel:iJ,initialData:e,updateState:n,renderComponents:NJ})])}},IJ=function(e,t){return MJ(e,t)},BJ=function(e,t){return GY.parts.footer(MJ(e,t))},LJ=function(e,t){var n=e.getRoot();if(n.getSystem().isConnected()){var r=bv.getCurrent(e.getFormWrapper()).getOr(e.getFormWrapper());return jR.getField(r,t).fold((function(){var n=e.getFooter(),i=xq.getState(n);return i.get().bind((function(e){return e.lookupByName(r,t)}))}),(function(e){return M.some(e)}))}return M.none()},zJ=function(e,t){var n=e.getRoot();return xq.getState(n).get().map((function(e){return _o(xo("data",e.dataValidator,t))})).getOr(t)},WJ=function(e,t,n){var r=function(t){var n=e.getRoot();n.getSystem().isConnected()&&t(n)},i=function(){var t=e.getRoot(),r=t.getSystem().isConnected()?e.getFormWrapper():t,i=em.getValue(r),o=be(n,(function(e){return e.get()}));return E(E({},i),o)},a=function(t){r((function(r){var i=g.getData(),o=E(E({},i),t),a=zJ(e,o),s=e.getFormWrapper();em.setValue(s,a),ve(n,(function(e,t){Se(o,t)&&e.set(o[t])}))}))},s=function(t){LJ(e,t).each(Iv.disable)},c=function(t){LJ(e,t).each(Iv.enable)},u=function(t){LJ(e,t).each(Kx.focus)},l=function(e){if(!o(e))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");r((function(t){Ds(t,WU,{message:e})}))},d=function(){r((function(e){ws(e,jU)}))},f=function(t){r((function(n){var r=e.getBody(),i=xq.getState(r);i.get().exists((function(e){return e.isTabPanel()}))&&bv.getCurrent(r).each((function(e){HZ.showTab(e,t)}))}))},h=function(e){r((function(n){var r=t(e);n.getSystem().broadcastOn([tJ],r),n.getSystem().broadcastOn([nJ],r.internalDialog),n.getSystem().broadcastOn([rJ],r.internalDialog),n.getSystem().broadcastOn([iJ],r.internalDialog),g.setData(r.initialData)}))},p=function(){r((function(e){ws(e,IU)}))},g={getData:i,setData:a,disable:s,enable:c,focus:u,block:l,unblock:d,showTab:f,redial:h,close:p};return g},jJ=function(e){switch(e){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}},HJ=function(e,t,n){var r=DJ(e.internalDialog.title,n),i=cJ({body:e.internalDialog.body},n),o=SJ(e.internalDialog.buttons),a=AJ(o),s=BJ({buttons:o},n),c=FJ.initDialog((function(){return h}),kJ((function(){return d}),n.shared.providers,t),n.shared.getSink),u=jJ(e.internalDialog.size),l={header:r,body:i,footer:M.some(s),extraClasses:u,extraBehaviours:[],extraStyles:{}},d=TJ(l,e,c,n),f=function(){var e=function(){var e=GY.getBody(d);return bv.getCurrent(e).getOr(e)};return{getRoot:x(d),getBody:function(){return GY.getBody(d)},getFooter:function(){return GY.getFooter(d)},getFormWrapper:e}}(),h=WJ(f,t.redial,a);return{dialog:d,instanceApi:h}},VJ=function(e,t,n,r){var i,o,a=ic("dialog-label"),s=ic("dialog-content"),c=function(e,t){return M.some(t)},u=Sw(_J({title:e.internalDialog.title,draggable:!0},a,n.shared.providers)),l=Sw(sJ({body:e.internalDialog.body},s,n,r)),d=SJ(e.internalDialog.buttons),f=AJ(d),h=Sw(IJ({buttons:d},n)),p=FJ.initDialog((function(){return m}),{onBlock:function(e){rH.block(g,(function(t,r){return CJ(e.message,r,n.shared.providers)}))},onUnblock:function(){rH.unblock(g)},onClose:function(){return t.closeWindow()}},n.shared.getSink),g=Su({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(i={role:"dialog"},i["aria-labelledby"]=a,i["aria-describedby"]=s,i)},eventOrder:(o={},o[es()]=[xq.name(),bd.name()],o[ts()]=["execute-on-form"],o[fs()]=["reflecting","execute-on-form"],o),behaviours:fd([Ex.config({mode:"cyclic",onEscape:function(e){return ws(e,IU),M.some(!0)},useTabstopAt:function(e){return!TN(e)&&("button"!==st(e)||"disabled"!==jn(e,"disabled"))}}),xq.config({channel:tJ,updateState:c,initialData:e}),Kx.config({}),Wx("execute-on-form",p.concat([Ws(Ba(),(function(e,t){Ex.focusIn(e)}))])),rH.config({getRoot:function(){return M.some(g)}}),Lx.config({}),gN.memory({})]),components:[u.asSpec(),l.asSpec(),h.asSpec()]}),m=WJ({getRoot:x(g),getFooter:function(){return h.get(g)},getBody:function(){return l.get(g)},getFormWrapper:function(){var e=l.get(g);return bv.getCurrent(e).getOr(e)}},t.redial,f);return{dialog:g,instanceApi:m}},qJ=tinymce.util.Tools.resolve("tinymce.util.URI"),$J=function(e){var t=function(t){e.getSystem().isConnected()&&t(e)},n=function(e){if(!o(e))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");t((function(t){Ds(t,WU,{message:e})}))},r=function(){t((function(e){ws(e,jU)}))},i=function(){t((function(e){ws(e,IU)}))},a=function(e){t((function(t){t.getSystem().broadcastOn([oJ],e)}))};return{block:n,unblock:r,close:i,sendMessage:a}},GJ=["insertContent","setContent","execCommand","close","block","unblock"],XJ=function(e){return a(e)&&-1!==GJ.indexOf(e.mceAction)},YJ=function(e){return!XJ(e)&&a(e)&&Se(e,"mceAction")},KJ=function(e,t,n){switch(n.mceAction){case"insertContent":e.insertContent(n.content);break;case"setContent":e.setContent(n.content);break;case"execCommand":var r=!!u(n.ui)&&n.ui;e.execCommand(n.cmd,r,n.value);break;case"close":t.close();break;case"block":t.block(n.message);break;case"unblock":t.unblock();break}},ZJ=function(e,t,n,r){var i,o=DJ(e.title,r),a=uJ(e),s=e.buttons.bind((function(e){return 0===e.length?M.none():M.some(BJ({buttons:e},r))})),c=FJ.initUrlDialog((function(){return v}),kJ((function(){return m}),r.shared.providers,t)),u=E(E({},e.height.fold((function(){return{}}),(function(e){return{height:e+"px","max-height":e+"px"}}))),e.width.fold((function(){return{}}),(function(e){return{width:e+"px","max-width":e+"px"}}))),l=e.width.isNone()&&e.height.isNone()?["tox-dialog--width-lg"]:[],d=new qJ(e.url,{base_uri:new qJ(window.location.href)}),f=d.protocol+"://"+d.host+(d.port?":"+d.port:""),h=tf(),p=[Wx("messages",[js((function(){var t=af(tt.fromDom(window),"message",(function(t){if(d.isSameOrigin(new qJ(t.raw.origin))){var r=t.raw.data;XJ(r)?KJ(n,v,r):YJ(r)&&e.onMessage(v,r)}}));h.set(t)})),Hs(h.clear)]),bd.config({channels:(i={},i[oJ]={onReceive:function(e,t){Bu(e.element,"iframe").each((function(e){var n=e.dom.contentWindow;n.postMessage(t,f)}))}},i)})],g={header:o,body:a,footer:s,extraClasses:l,extraBehaviours:p,extraStyles:u},m=TJ(g,e,c,r),v=$J(m);return{dialog:m,instanceApi:v}},JJ=function(e){var t=e.backstage.shared,n=function(n,r){var i=function(){GY.hide(c),r()},o=Sw(fI({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:M.none()},"cancel",e.backstage)),a=hJ(),s=fJ(i,t.providers),c=Su(vJ({lazySink:function(){return t.getSink()},header:dJ(a,s),body:pJ(n,t.providers),footer:M.some(gJ(mJ([],[o.asSpec()]))),onEscape:i,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Fs(BU,i)],eventOrder:{}}));GY.show(c);var u=o.get(c);Kx.focus(u)};return{open:n}},QJ=function(e){var t=e.backstage.shared,n=function(n,r){var i=function(e){GY.hide(u),r(e)},o=Sw(fI({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:M.none()},"submit",e.backstage)),a=fI({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:M.none()},"cancel",e.backstage),s=hJ(),c=fJ((function(){return i(!1)}),t.providers),u=Su(vJ({lazySink:function(){return t.getSink()},header:dJ(s,c),body:pJ(n,t.providers),footer:M.some(gJ(mJ([],[a,o.asSpec()]))),onEscape:function(){return i(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Fs(BU,(function(){return i(!1)})),Fs(zU,(function(){return i(!0)}))],eventOrder:{}}));GY.show(u);var l=o.get(u);Kx.focus(l)};return{open:n}},eQ=function(e,t){return _o(xo("data",t,e))},tQ=function(e){return qE(e,".tox-alert-dialog")||qE(e,".tox-confirm-dialog")},nQ=function(e,t,n){return t&&n?[]:[OW.config({contextual:{lazyContext:function(){return M.some(Zr(tt.fromDom(e.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},rQ=function(e){var t=e.backstage,n=e.editor,r=eS(n),i=JJ(e),o=QJ(e),a=function(e,n,r){return void 0!==n&&"toolbar"===n.inline?l(e,t.shared.anchors.inlineDialog(),r,n.ariaAttrs):void 0!==n&&"cursor"===n.inline?l(e,t.shared.anchors.cursor(),r,n.ariaAttrs):u(e,r)},s=function(e,t){return c(e,t)},c=function(e,r){var i=function(e){var i=ZJ(e,{closeWindow:function(){GY.hide(i.dialog),r(i.instanceApi)}},n,t);return GY.show(i.dialog),i.instanceApi};return TZ.openUrl(i,e)},u=function(e,n){var r=function(e,r,i){var o=r,a={dataValidator:i,initialData:o,internalDialog:e},s=HJ(a,{redial:TZ.redial,closeWindow:function(){GY.hide(s.dialog),n(s.instanceApi)}},t);return GY.show(s.dialog),s.instanceApi.setData(o),s.instanceApi};return TZ.open(r,e)},l=function(e,i,o,a){var s=function(e,s,c){var u=eQ(s,c),l=rf(),d=t.shared.header.isPositionedAtTop(),f={dataValidator:c,initialData:u,internalDialog:e},h=function(){return l.on((function(e){tw.reposition(e),OW.refresh(e)}))},p=VJ(f,{redial:TZ.redial,closeWindow:function(){l.on(tw.hide),n.off("ResizeEditor",h),l.clear(),o(p.instanceApi)}},t,a),g=Su(tw.sketch(E(E({lazySink:t.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},d?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:fd(O([Wx("window-manager-inline-events",[Fs(ps(),(function(e,t){ws(p.dialog,BU)}))])],nQ(n,r,d),!0)),isExtraPart:function(e,t){return tQ(t)}})));return l.set(g),tw.showWithin(g,Au(p.dialog),{anchor:i},M.some(In())),r&&d||(OW.refresh(g),n.on("ResizeEditor",h)),p.instanceApi.setData(u),Ex.focusIn(p.dialog),p.instanceApi};return TZ.open(s,e)},d=function(e,t){o.open(e,(function(e){t(e)}))},f=function(e,t){i.open(e,(function(){t()}))},h=function(e){e.close()};return{open:a,openUrl:s,alert:f,close:h,confirm:d}};function iQ(){A.add("silver",(function(e){var t=zY(e),n=t.uiMothership,r=t.backstage,i=t.renderUI,o=t.getUi;VE.register(e,r.shared);var a=rQ({editor:e,backstage:r});return{renderUI:i,getWindowManagerImpl:x(a),getNotificationManagerImpl:function(){return KD(e,{backstage:r},n)},ui:o()}}))}iQ()})()}).call(this,n("c8ba"))},"032b":function(e,t,n){"use strict";n("3440")},"0335":function(e,t,n){n("0f58")},"0341":function(e,t){var n=function(){"use strict";return void 0===this}();if(n)e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:n,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var r={}.hasOwnProperty,i={}.toString,o={}.constructor.prototype,a=function(e){var t=[];for(var n in e)r.call(e,n)&&t.push(n);return t},s=function(e,t){return{value:e[t]}},c=function(e,t,n){return e[t]=n.value,e},u=function(e){return e},l=function(e){try{return Object(e).constructor.prototype}catch(t){return o}},d=function(e){try{return"[object Array]"===i.call(e)}catch(t){return!1}};e.exports={isArray:d,keys:a,names:a,defineProperty:c,getDescriptor:s,freeze:u,getPrototypeOf:l,isES5:n,propertyIsWritable:function(){return!0}}}},"03e1":function(e,t,n){var r=n("c46f");function i(e,t){this.value=e,this.messages=t||[]}function o(e){return new i(e,[])}function a(e){return{type:"warning",message:e}}function s(e){return{type:"error",message:e.message,error:e}}function c(e){var t=[];return r.flatten(r.pluck(e,"messages"),!0).forEach((function(e){u(t,e)||t.push(e)})),t}function u(e,t){return void 0!==r.find(e,l.bind(null,t))}function l(e,t){return e.type===t.type&&e.message===t.message}t.Result=i,t.success=o,t.warning=a,t.error=s,i.prototype.map=function(e){return new i(e(this.value),this.messages)},i.prototype.flatMap=function(e){var t=e(this.value);return new i(t.value,c([this,t]))},i.prototype.flatMapThen=function(e){var t=this;return e(this.value).then((function(e){return new i(e.value,c([t,e]))}))},i.combine=function(e){var t=r.flatten(r.pluck(e,"value")),n=c(e);return new i(t,n)}},"054a":function(e,t,n){"use strict";e.exports=function(e,t){var r=n("6df9"),i=r.errorObj,o=r.isObject;function a(n,r){if(o(n)){if(n instanceof e)return n;var a=c(n);if(a===i){r&&r._pushContext();var s=e.reject(a.e);return r&&r._popContext(),s}if("function"===typeof a){if(l(n)){s=new e(t);return n._then(s._fulfill,s._reject,void 0,s,null),s}return d(n,a,r)}}return n}function s(e){return e.then}function c(e){try{return s(e)}catch(t){return i.e=t,i}}var u={}.hasOwnProperty;function l(e){try{return u.call(e,"_promise0")}catch(t){return!1}}function d(n,o,a){var s=new e(t),c=s;a&&a._pushContext(),s._captureStackTrace(),a&&a._popContext();var u=!0,l=r.tryCatch(o).call(n,d,f);function d(e){s&&(s._resolveCallback(e),s=null)}function f(e){s&&(s._rejectCallback(e,u,!0),s=null)}return u=!1,s&&l===i&&(s._rejectCallback(l.e,!0,!0),s=null),c}return a}},"055e":function(e,t,n){e.exports=n.p+"img/knowledge.e68cac1d.png"},"0693":function(e,t,n){"use strict";(function(t){e.exports=function(){var r=function(){return new p("circular promise resolution chain\n\n    See http://goo.gl/MqrFmX\n")},i=function(){return new U.PromiseInspection(this._target())},o=function(e){return U.reject(new p(e))};function a(){}var s,c={},u=n("6df9");s=u.isNode?function(){var e=t.domain;return void 0===e&&(e=null),e}:function(){return null},u.notEnumerableProp(U,"_getDomain",s);var l=n("0341"),d=n("eb91"),f=new d;l.defineProperty(U,"_async",{value:f});var h=n("8d16"),p=U.TypeError=h.TypeError;U.RangeError=h.RangeError;var g=U.CancellationError=h.CancellationError;U.TimeoutError=h.TimeoutError,U.OperationalError=h.OperationalError,U.RejectionError=h.OperationalError,U.AggregateError=h.AggregateError;var m=function(){},v={},b={},y=n("054a")(U,m),x=n("57c9")(U,m,y,o,a),_=n("ee54")(U),w=_.create,D=n("221f")(U,_),C=(D.CapturedTrace,n("b06c")(U,y)),k=n("cef2")(b),T=n("33cb"),S=u.errorObj,A=u.tryCatch;function E(e,t){if("function"!==typeof t)throw new p("expecting a function but got "+u.classString(t));if(e.constructor!==U)throw new p("the promise constructor cannot be invoked directly\n\n    See http://goo.gl/MqrFmX\n")}function U(e){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,e!==m&&(E(this,e),this._resolveFromExecutor(e)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function O(e){this.promise._resolveCallback(e)}function F(e){this.promise._rejectCallback(e,!1)}function P(e){var t=new U(m);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}return U.prototype.toString=function(){return"[object Promise]"},U.prototype.caught=U.prototype["catch"]=function(e){var t=arguments.length;if(t>1){var n,r=new Array(t-1),i=0;for(n=0;n<t-1;++n){var a=arguments[n];if(!u.isObject(a))return o("expecting an object but got A catch statement predicate "+u.classString(a));r[i++]=a}return r.length=i,e=arguments[n],this.then(void 0,k(r,e,this))}return this.then(void 0,e)},U.prototype.reflect=function(){return this._then(i,i,void 0,this,void 0)},U.prototype.then=function(e,t){if(D.warnings()&&arguments.length>0&&"function"!==typeof e&&"function"!==typeof t){var n=".then() only accepts functions but was passed: "+u.classString(e);arguments.length>1&&(n+=", "+u.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},U.prototype.done=function(e,t){var n=this._then(e,t,void 0,void 0,void 0);n._setIsFinal()},U.prototype.spread=function(e){return"function"!==typeof e?o("expecting a function but got "+u.classString(e)):this.all()._then(e,void 0,void 0,v,void 0)},U.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},U.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new x(this).promise()},U.prototype.error=function(e){return this.caught(u.originatesFromRejection,e)},U.getNewLibraryCopy=e.exports,U.is=function(e){return e instanceof U},U.fromNode=U.fromCallback=function(e){var t=new U(m);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=A(e)(T(t,n));return r===S&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},U.all=function(e){return new x(e).promise()},U.cast=function(e){var t=y(e);return t instanceof U||(t=new U(m),t._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},U.resolve=U.fulfilled=U.cast,U.reject=U.rejected=function(e){var t=new U(m);return t._captureStackTrace(),t._rejectCallback(e,!0),t},U.setScheduler=function(e){if("function"!==typeof e)throw new p("expecting a function but got "+u.classString(e));return f.setScheduler(e)},U.prototype._then=function(e,t,n,r,i){var o=void 0!==i,a=o?i:new U(m),c=this._target(),l=c._bitField;o||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!==(2097152&this._bitField)&&(r=0!==(50397184&l)?this._boundValue():c===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var d=s();if(0!==(50397184&l)){var h,p,v=c._settlePromiseCtx;0!==(33554432&l)?(p=c._rejectionHandler0,h=e):0!==(16777216&l)?(p=c._fulfillmentHandler0,h=t,c._unsetRejectionIsUnhandled()):(v=c._settlePromiseLateCancellationObserver,p=new g("late cancellation observer"),c._attachExtraTrace(p),h=t),f.invoke(v,c,{handler:null===d?h:"function"===typeof h&&u.domainBind(d,h),promise:a,receiver:r,value:p})}else c._addCallbacks(e,t,a,r,d);return a},U.prototype._length=function(){return 65535&this._bitField},U.prototype._isFateSealed=function(){return 0!==(117506048&this._bitField)},U.prototype._isFollowing=function(){return 67108864===(67108864&this._bitField)},U.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},U.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},U.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},U.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},U.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},U.prototype._isFinal=function(){return(4194304&this._bitField)>0},U.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},U.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},U.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},U.prototype._setAsyncGuaranteed=function(){f.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},U.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==c)return void 0===t&&this._isBound()?this._boundValue():t},U.prototype._promiseAt=function(e){return this[4*e-4+2]},U.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},U.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},U.prototype._boundValue=function(){},U.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,i=e._receiverAt(0);void 0===i&&(i=c),this._addCallbacks(t,n,r,i,null)},U.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=c),this._addCallbacks(n,r,i,o,null)},U.prototype._addCallbacks=function(e,t,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"===typeof e&&(this._fulfillmentHandler0=null===i?e:u.domainBind(i,e)),"function"===typeof t&&(this._rejectionHandler0=null===i?t:u.domainBind(i,t));else{var a=4*o-4;this[a+2]=n,this[a+3]=r,"function"===typeof e&&(this[a+0]=null===i?e:u.domainBind(i,e)),"function"===typeof t&&(this[a+1]=null===i?t:u.domainBind(i,t))}return this._setLength(o+1),o},U.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},U.prototype._resolveCallback=function(e,t){if(0===(117506048&this._bitField)){if(e===this)return this._rejectCallback(r(),!1);var n=y(e,this);if(!(n instanceof U))return this._fulfill(e);t&&this._propagateFrom(n,2);var i=n._target();if(i!==this){var o=i._bitField;if(0===(50397184&o)){var a=this._length();a>0&&i._migrateCallback0(this);for(var s=1;s<a;++s)i._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(i)}else if(0!==(33554432&o))this._fulfill(i._value());else if(0!==(16777216&o))this._reject(i._reason());else{var c=new g("late cancellation observer");i._attachExtraTrace(c),this._reject(c)}}else this._reject(r())}},U.prototype._rejectCallback=function(e,t,n){var r=u.ensureErrorObject(e),i=r===e;if(!i&&!n&&D.warnings()){var o="a promise was rejected with a non-error: "+u.classString(e);this._warn(o,!0)}this._attachExtraTrace(r,!!t&&i),this._reject(e)},U.prototype._resolveFromExecutor=function(e){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(e,(function(e){t._resolveCallback(e)}),(function(e){t._rejectCallback(e,n)}));n=!1,this._popContext(),void 0!==r&&t._rejectCallback(r,!0)},U.prototype._settlePromiseFromHandler=function(e,t,n,r){var i=r._bitField;if(0===(65536&i)){var o;r._pushContext(),t===v?n&&"number"===typeof n.length?o=A(e).apply(this._boundValue(),n):(o=S,o.e=new p("cannot .spread() a non-array: "+u.classString(n))):o=A(e).call(t,n);var a=r._popContext();i=r._bitField,0===(65536&i)&&(o===b?r._reject(n):o===S?r._rejectCallback(o.e,!1):(D.checkForgottenReturns(o,a,"",r,this),r._resolveCallback(o)))}},U.prototype._target=function(){var e=this;while(e._isFollowing())e=e._followee();return e},U.prototype._followee=function(){return this._rejectionHandler0},U.prototype._setFollowee=function(e){this._rejectionHandler0=e},U.prototype._settlePromise=function(e,t,n,r){var o=e instanceof U,s=this._bitField,c=0!==(134217728&s);0!==(65536&s)?(o&&e._invokeInternalOnCancel(),n instanceof C&&n.isFinallyHandler()?(n.cancelPromise=e,A(t).call(n,r)===S&&e._reject(S.e)):t===i?e._fulfill(i.call(n)):n instanceof a?n._promiseCancelled(e):o||e instanceof x?e._cancel():n.cancel()):"function"===typeof t?o?(c&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,n,r,e)):t.call(n,r,e):n instanceof a?n._isResolved()||(0!==(33554432&s)?n._promiseFulfilled(r,e):n._promiseRejected(r,e)):o&&(c&&e._setAsyncGuaranteed(),0!==(33554432&s)?e._fulfill(r):e._reject(r))},U.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,r=e.receiver,i=e.value;"function"===typeof t?n instanceof U?this._settlePromiseFromHandler(t,r,i,n):t.call(r,i,n):n instanceof U&&n._reject(i)},U.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},U.prototype._settlePromise0=function(e,t,n){var r=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,e,i,t)},U.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},U.prototype._fulfill=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(e===this){var n=r();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!==(134217728&t)?this._settlePromises():f.settlePromises(this))}},U.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return f.fatalError(e,u.isNode);(65535&t)>0?f.settlePromises(this):this._ensurePossibleRejectionHandled()}},U.prototype._fulfillPromises=function(e,t){for(var n=1;n<e;n++){var r=this._fulfillmentHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,t)}},U.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var r=this._rejectionHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,t)}},U.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(t>0){if(0!==(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},U.prototype._settledValue=function(){var e=this._bitField;return 0!==(33554432&e)?this._rejectionHandler0:0!==(16777216&e)?this._fulfillmentHandler0:void 0},U.defer=U.pending=function(){D.deprecated("Promise.defer","new Promise");var e=new U(m);return{promise:e,resolve:O,reject:F}},u.notEnumerableProp(U,"_makeSelfResolutionError",r),n("22bd")(U,m,y,o,D),n("0bfc")(U,m,y,D),n("9ad5")(U,x,o,D),n("9752")(U),n("fd09")(U),n("d3e3")(U,x,y,m,f,s),U.Promise=U,U.version="3.4.7",n("6de1")(U,x,o,y,m,D),n("3ff9")(U),n("e85a")(U,o,y,w,m,D),n("093e")(U,m,D),n("17ad")(U,o,m,y,a,D),n("9105")(U),n("667d")(U,m),n("dbf6")(U,x,y,o),n("ffe4")(U,m,y,o),n("3ec9")(U,x,o,y,m,D),n("7009")(U,x,D),n("d270")(U,x,o),n("b299")(U,m),n("7b67")(U,m),n("d7e1")(U),u.toFastProperties(U),u.toFastProperties(U.prototype),P({a:1}),P({b:2}),P({c:3}),P(1),P((function(){})),P(void 0),P(!1),P(new U(m)),D.setBounds(d.firstLineError,u.lastLineError),U}}).call(this,n("4362"))},"07d1":function(e,t,n){n("94ce")},"07d7":function(e,t,n){n("a8b8")},"0902":function(e,t,n){n("88b6")},"093e":function(e,t,n){"use strict";e.exports=function(e,t,r){var i=n("6df9"),o=e.TimeoutError;function a(e){this.handle=e}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(e){return c(+this).thenReturn(e)},c=e.delay=function(n,i){var o,c;return void 0!==i?(o=e.resolve(i)._then(s,null,null,n,void 0),r.cancellation()&&i instanceof e&&o._setOnCancel(i)):(o=new e(t),c=setTimeout((function(){o._fulfill()}),+n),r.cancellation()&&o._setOnCancel(new a(c)),o._captureStackTrace()),o._setAsyncGuaranteed(),o};e.prototype.delay=function(e){return c(e,this)};var u=function(e,t,n){var r;r="string"!==typeof t?t instanceof Error?t:new o("operation timed out"):new o(t),i.markAsOriginatingFromRejection(r),e._attachExtraTrace(r),e._reject(r),null!=n&&n.cancel()};function l(e){return clearTimeout(this.handle),e}function d(e){throw clearTimeout(this.handle),e}e.prototype.timeout=function(e,t){var n,i;e=+e;var o=new a(setTimeout((function(){n.isPending()&&u(n,t,i)}),e));return r.cancellation()?(i=this.then(),n=i._then(l,d,void 0,o,void 0),n._setOnCancel(o)):n=this._then(l,d,void 0,o,void 0),n}}},"0a9d":function(e,t,n){n("69a4")},"0bfc":function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i=!1,o=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},s=function(e,t){0===(50397184&this._bitField)&&this._resolveCallback(t.target)},c=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var u=n(o),l=new e(t);l._propagateFrom(this,1);var d=this._target();if(l._setBoundTo(u),u instanceof e){var f={promiseRejectionQueued:!1,promise:l,target:d,bindingPromise:u};d._then(t,a,void 0,l,f),u._then(s,c,void 0,l,f),l._setOnCancel(u)}else l._resolveCallback(d);return l},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152===(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},"0d68":function(e,t,n){n("030f")},"0e1e":function(e,t,n){(function(){var t,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=n("92e7"),e.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.isDummy=!0}return r(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return""},t}(t)}).call(this)},"0efa":function(e,t,n){n("4bdc")},"0f58":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},i=n("string"),o=r("function"),a=function(){},s=function(e){return function(){return e}},c=function(e){return e};function u(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var l=s(!1),d=s(!0),f=tinymce.util.Tools.resolve("tinymce.util.Tools"),h=tinymce.util.Tools.resolve("tinymce.util.XHR"),p=function(e){return e.getParam("template_cdate_classes","cdate")},g=function(e){return e.getParam("template_mdate_classes","mdate")},m=function(e){return e.getParam("template_selected_content_classes","selcontent")},v=function(e){return e.getParam("template_preview_replace_values")},b=function(e){return e.getParam("content_style","","string")},y=function(e){return e.getParam("content_css_cors",!1,"boolean")},x=function(e){return e.getParam("template_replace_values")},_=function(e){return e.getParam("templates")},w=function(e){return e.getParam("template_cdate_format",e.translate("%Y-%m-%d"))},D=function(e){return e.getParam("template_mdate_format",e.translate("%Y-%m-%d"))},C=function(e){var t=e.getParam("body_class","","hash");return t[e.id]||""},k=function(e){var t=e.getParam("body_class","","string");return-1===t.indexOf("=")?t:C(e)},T=function(e,t){if(e=""+e,e.length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e},S=function(e,t,n){void 0===n&&(n=new Date);var r="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),i="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),o="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),a="January February March April May June July August September October November December".split(" ");return t=t.replace("%D","%m/%d/%Y"),t=t.replace("%r","%I:%M:%S %p"),t=t.replace("%Y",""+n.getFullYear()),t=t.replace("%y",""+n.getYear()),t=t.replace("%m",T(n.getMonth()+1,2)),t=t.replace("%d",T(n.getDate(),2)),t=t.replace("%H",""+T(n.getHours(),2)),t=t.replace("%M",""+T(n.getMinutes(),2)),t=t.replace("%S",""+T(n.getSeconds(),2)),t=t.replace("%I",""+((n.getHours()+11)%12+1)),t=t.replace("%p",n.getHours()<12?"AM":"PM"),t=t.replace("%B",""+e.translate(a[n.getMonth()])),t=t.replace("%b",""+e.translate(o[n.getMonth()])),t=t.replace("%A",""+e.translate(i[n.getDay()])),t=t.replace("%a",""+e.translate(r[n.getDay()])),t=t.replace("%%","%"),t},A=function(e,t){return function(){var n=_(e);o(n)?n(t):i(n)?h.send({url:n,success:function(e){t(JSON.parse(e))}}):t(n)}},E=function(e,t){return f.each(t,(function(t,n){o(t)&&(t=t(n)),e=e.replace(new RegExp("\\{\\$"+n+"\\}","g"),t)})),e},U=function(e,t){var n=e.dom,r=x(e);f.each(n.select("*",t),(function(e){f.each(r,(function(t,r){n.hasClass(e,r)&&o(t)&&t(e)}))}))},O=function(e,t){return new RegExp("\\b"+t+"\\b","g").test(e.className)},F=function(e,t,n){var r=e.dom,i=e.selection.getContent();n=E(n,x(e));var o=r.create("div",null,n),a=r.select(".mceTmpl",o);a&&a.length>0&&(o=r.create("div",null),o.appendChild(a[0].cloneNode(!0))),f.each(r.select("*",o),(function(t){O(t,p(e).replace(/\s+/g,"|"))&&(t.innerHTML=S(e,w(e))),O(t,g(e).replace(/\s+/g,"|"))&&(t.innerHTML=S(e,D(e))),O(t,m(e).replace(/\s+/g,"|"))&&(t.innerHTML=i)})),U(e,o),e.execCommand("mceInsertContent",!1,o.innerHTML),e.addVisual()},P=function(){return R},R=function(){var e=function(e){return e()},t=c,n={fold:function(e,t){return e()},isSome:l,isNone:d,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:s(null),getOrUndefined:s(void 0),or:t,orThunk:e,map:P,each:a,bind:P,exists:l,forall:d,filter:function(){return P()},toArray:function(){return[]},toString:s("none()")};return n}(),N=function(e){var t=s(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:d,isNone:l,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return N(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:R},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},M=function(e){return null===e||void 0===e?R:N(e)},I={some:N,none:P,from:M},B=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},L=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return I.some(o);if(n(o,r))break}return I.none()},z=function(e,t){return L(e,t,l)},W=tinymce.util.Tools.resolve("tinymce.Env"),j=tinymce.util.Tools.resolve("tinymce.util.Promise"),H=Object.hasOwnProperty,V=function(e,t){return q(e,t)?I.from(e[t]):I.none()},q=function(e,t){return H.call(e,t)},$={'"':"&quot;","<":"&lt;",">":"&gt;","&":"&amp;","'":"&#039;"},G=function(e){return e.replace(/["'<>&]/g,(function(e){return V($,e).getOr(e)}))},X=function(e,t){if(-1===t.indexOf("<html>")){var n="",r=b(e),i=y(e)?' crossorigin="anonymous"':"";f.each(e.contentCSS,(function(t){n+='<link type="text/css" rel="stylesheet" href="'+e.documentBaseURI.toAbsolute(t)+'"'+i+">"})),r&&(n+='<style type="text/css">'+r+"</style>");var o=k(e),a=e.dom.encode,s=W.mac?"e.metaKey":"e.ctrlKey && !e.altKey",c='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+s+")) {e.preventDefault();}}}, false);<\/script> ",u=e.getBody().dir,l=u?' dir="'+a(u)+'"':"";t='<!DOCTYPE html><html><head><base href="'+a(e.documentBaseURI.getURI())+'">'+n+c+'</head><body class="'+a(o)+'"'+l+">"+t+"</body></html>"}return E(t,v(e))},Y=function(e,t){var n=function(){if(!t||0===t.length){var n=e.translate("No templates defined.");return e.notificationManager.open({text:n,type:"info"}),I.none()}return I.from(f.map(t,(function(e,t){var n=function(e){return void 0!==e.url};return{selected:0===t,text:e.title,value:{url:n(e)?I.from(e.url):I.none(),content:n(e)?I.none():I.from(e.content),description:e.description}}})))},r=function(e){return B(e,(function(e){return{text:e.text,value:e.text}}))},i=function(e,t){return z(e,(function(e){return e.text===t}))},o=function(t){e.windowManager.alert("Could not load the specified template.",(function(){return t.focus("template")}))},a=function(e){return new j((function(t,n){e.value.url.fold((function(){return t(e.value.content.getOr(""))}),(function(e){return h.send({url:e,success:function(e){t(e)},error:function(e){n(e)}})}))}))},s=function(e,t){return function(n,r){if("template"===r.name){var s=n.getData().template;i(e,s).each((function(e){n.block("Loading..."),a(e).then((function(r){t(n,e,r)})).catch((function(){t(n,e,""),n.disable("save"),o(n)}))}))}}},c=function(t){return function(n){var r=n.getData();i(t,r.template).each((function(t){a(t).then((function(t){e.execCommand("mceInsertTemplate",!1,t),n.close()})).catch((function(){n.disable("save"),o(n)}))}))}},u=function(t){var n=r(t),i=function(e,n){return{title:"Insert Template",size:"large",body:{type:"panel",items:e},initialData:n,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:c(t),onChange:s(t,u)}},u=function(t,r,o){var a=X(e,o),s=[{type:"selectbox",name:"template",label:"Templates",items:n},{type:"htmlpanel",html:'<p aria-live="polite">'+G(r.value.description)+"</p>"},{label:"Preview",type:"iframe",name:"preview",sandboxed:!1}],c={template:r.text,preview:a};t.unblock(),t.redial(i(s,c)),t.focus("template")},l=e.windowManager.open(i([],{template:"",preview:""}));l.block("Loading..."),a(t[0]).then((function(e){u(l,t[0],e)})).catch((function(){u(l,t[0],""),l.disable("save"),o(l)}))},l=n();l.each(u)},K=function(e){return function(t){Y(e,t)}},Z=function(e){e.addCommand("mceInsertTemplate",u(F,e)),e.addCommand("mceTemplate",A(e,K(e)))},J=function(e){e.on("PreProcess",(function(t){var n=e.dom,r=D(e);f.each(n.select("div",t.node),(function(t){n.hasClass(t,"mceTmpl")&&(f.each(n.select("*",t),(function(t){n.hasClass(t,g(e).replace(/\s+/g,"|"))&&(t.innerHTML=S(e,r))})),U(e,t))}))}))},Q=function(e){var t=function(){return e.execCommand("mceTemplate")};e.ui.registry.addButton("template",{icon:"template",tooltip:"Insert template",onAction:t}),e.ui.registry.addMenuItem("template",{icon:"template",text:"Insert template...",onAction:t})};function ee(){e.add("template",(function(e){Q(e),Z(e),J(e)}))}ee()})()},1:function(e,t){},1259:function(e,t,n){var r=n("c46f"),i=n("ebf8"),o=n("5ddd");function a(e){return function(t,n){return i.when(e(t)).then((function(e){var n={};return t.altText&&(n.alt=t.altText),r.extend(n,e),[o.freshElement("img",n)]}))}}t.imgElement=a,t.inline=t.imgElement,t.dataUri=a((function(e){return e.readAsBase64String().then((function(t){return{src:"data:"+e.contentType+";base64,"+t}}))}))},1403:function(e,t,n){t.read=b,t._findPartPaths=y;var r=n("df7c"),i=n("ebf8"),o=n("9d83"),a=n("03e1").Result,s=n("1dc6"),c=n("57b1").readXmlFromZipFile,u=n("ecbf").createBodyReader,l=n("687f").DocumentXmlReader,d=n("1819"),f=n("2900"),h=n("8f08"),p=n("68b5"),g=n("64bd"),m=n("4221"),v=n("2c67").Files;function b(e,t){return t=t||{},i.props({contentTypes:k(e),partPaths:y(e),docxFile:e,files:new v(t.path?r.dirname(t.path):null)}).also((function(t){return{styles:S(e,t.partPaths.styles)}})).also((function(t){return{numbering:T(e,t.partPaths.numbering,t.styles)}})).also((function(e){return{footnotes:D(e.partPaths.footnotes,e,(function(e,t){return t?g.createFootnotesReader(e)(t):new a([])})),endnotes:D(e.partPaths.endnotes,e,(function(e,t){return t?g.createEndnotesReader(e)(t):new a([])})),comments:D(e.partPaths.comments,e,(function(e,t){return t?m.createCommentsReader(e)(t):new a([])}))}})).also((function(e){return{notes:e.footnotes.flatMap((function(t){return e.endnotes.map((function(e){return new o.Notes(t.concat(e))}))}))}})).then((function(e){return D(e.partPaths.mainDocument,e,(function(t,n){return e.notes.flatMap((function(r){return e.comments.flatMap((function(e){var i=new l({bodyReader:t,notes:r,comments:e});return i.convertXmlToDocument(n)}))}))}))}))}function y(e){return A(e).then((function(t){var n=x({docxFile:e,relationships:t,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!e.exists(n))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return w({filename:C(n),readElement:d.readRelationships,defaultValue:d.defaultValue})(e).then((function(t){function r(r){return x({docxFile:e,relationships:t,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+r,basePath:s.splitPath(n).dirname,fallbackPath:"word/"+r+".xml"})}return{mainDocument:n,comments:r("comments"),endnotes:r("endnotes"),footnotes:r("footnotes"),numbering:r("numbering"),styles:r("styles")}}))}))}function x(e){var t=e.docxFile,n=e.relationships,r=e.relationshipType,i=e.basePath,o=e.fallbackPath,a=n.findTargetsByType(r),c=a.map((function(e){return _(s.joinPath(i,e),"/")})),u=c.filter((function(e){return t.exists(e)}));return 0===u.length?o:u[0]}function _(e,t){return e.substring(0,t.length)===t?e.substring(t.length):e}function w(e){return function(t){return c(t,e.filename).then((function(t){return t?e.readElement(t):e.defaultValue}))}}function D(e,t,n){var r=w({filename:C(e),readElement:d.readRelationships,defaultValue:d.defaultValue});return r(t.docxFile).then((function(r){var i=new u({relationships:r,contentTypes:t.contentTypes,docxFile:t.docxFile,numbering:t.numbering,styles:t.styles,files:t.files});return c(t.docxFile,e).then((function(e){return n(i,e)}))}))}function C(e){var t=s.splitPath(e);return s.joinPath(t.dirname,"_rels",t.basename+".rels")}var k=w({filename:"[Content_Types].xml",readElement:f.readContentTypesFromXml,defaultValue:f.defaultContentTypes});function T(e,t,n){return w({filename:t,readElement:function(e){return h.readNumberingXml(e,{styles:n})},defaultValue:h.defaultNumbering})(e)}function S(e,t){return w({filename:t,readElement:p.readStylesXml,defaultValue:p.defaultStyles})(e)}var A=w({filename:"_rels/.rels",readElement:d.readRelationships,defaultValue:d.defaultValue})},1585:function(e,t,n){(function(){var t,r,i=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=n("45f3").isObject,t=n("92e7"),e.exports=function(e){function t(e,n,i,o){if(t.__super__.constructor.call(this,e),null==i)throw new Error("Missing DTD entity name. "+this.debugInfo(i));if(null==o)throw new Error("Missing DTD entity value. "+this.debugInfo(i));if(this.pe=!!n,this.name=this.stringify.eleName(i),r(o)){if(!o.pubID&&!o.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(i));if(o.pubID&&!o.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(i));if(null!=o.pubID&&(this.pubID=this.stringify.dtdPubID(o.pubID)),null!=o.sysID&&(this.sysID=this.stringify.dtdSysID(o.sysID)),null!=o.nData&&(this.nData=this.stringify.dtdNData(o.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(i))}else this.value=this.stringify.dtdEntityValue(o)}return i(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},t}(t)}).call(this)},"15da":function(e,t,n){},"16f1":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t){return e.fire("insertCustomChar",{chr:t})},n=function(e,n){var r=t(e,n).chr;e.execCommand("mceInsertContent",!1,r)},r=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},i=function(e){return function(t){return r(t)===e}},o=function(e){return function(t){return e===t}},a=i("array"),s=o(null),c=function(){},u=function(e){return function(){return e}},l=function(e){return e},d=u(!1),f=u(!0),h=function(){return p},p=function(){var e=function(e){return e()},t=l,n={fold:function(e,t){return e()},isSome:d,isNone:f,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:u(null),getOrUndefined:u(void 0),or:t,orThunk:e,map:h,each:c,bind:h,exists:d,forall:f,filter:function(){return h()},toArray:function(){return[]},toString:u("none()")};return n}(),g=function(e){var t=u(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:f,isNone:d,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return g(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:p},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},m=function(e){return null===e||void 0===e?p:g(e)},v={some:g,none:h,from:m},b=Array.prototype.push,y=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},x=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},_=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return v.some(o);if(n(o,r))break}return v.none()},w=function(e,t){return _(e,t,d)},D=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);b.apply(t,e[n])}return t},C=function(e,t){return D(y(e,t))},k=tinymce.util.Tools.resolve("tinymce.util.Tools"),T=function(e){return e.getParam("charmap")},S=function(e){return e.getParam("charmap_append")},A=k.isArray,E="User Defined",U=function(){return[{name:"Currency",characters:[[36,"dollar sign"],[162,"cent sign"],[8364,"euro sign"],[163,"pound sign"],[165,"yen sign"],[164,"currency sign"],[8352,"euro-currency sign"],[8353,"colon sign"],[8354,"cruzeiro sign"],[8355,"french franc sign"],[8356,"lira sign"],[8357,"mill sign"],[8358,"naira sign"],[8359,"peseta sign"],[8360,"rupee sign"],[8361,"won sign"],[8362,"new sheqel sign"],[8363,"dong sign"],[8365,"kip sign"],[8366,"tugrik sign"],[8367,"drachma sign"],[8368,"german penny symbol"],[8369,"peso sign"],[8370,"guarani sign"],[8371,"austral sign"],[8372,"hryvnia sign"],[8373,"cedi sign"],[8374,"livre tournois sign"],[8375,"spesmilo sign"],[8376,"tenge sign"],[8377,"indian rupee sign"],[8378,"turkish lira sign"],[8379,"nordic mark sign"],[8380,"manat sign"],[8381,"ruble sign"],[20870,"yen character"],[20803,"yuan character"],[22291,"yuan character, in hong kong and taiwan"],[22278,"yen/yuan character variant one"]]},{name:"Text",characters:[[169,"copyright sign"],[174,"registered sign"],[8482,"trade mark sign"],[8240,"per mille sign"],[181,"micro sign"],[183,"middle dot"],[8226,"bullet"],[8230,"three dot leader"],[8242,"minutes / feet"],[8243,"seconds / inches"],[167,"section sign"],[182,"paragraph sign"],[223,"sharp s / ess-zed"]]},{name:"Quotations",characters:[[8249,"single left-pointing angle quotation mark"],[8250,"single right-pointing angle quotation mark"],[171,"left pointing guillemet"],[187,"right pointing guillemet"],[8216,"left single quotation mark"],[8217,"right single quotation mark"],[8220,"left double quotation mark"],[8221,"right double quotation mark"],[8218,"single low-9 quotation mark"],[8222,"double low-9 quotation mark"],[60,"less-than sign"],[62,"greater-than sign"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8211,"en dash"],[8212,"em dash"],[175,"macron"],[8254,"overline"],[164,"currency sign"],[166,"broken bar"],[168,"diaeresis"],[161,"inverted exclamation mark"],[191,"turned question mark"],[710,"circumflex accent"],[732,"small tilde"],[176,"degree sign"],[8722,"minus sign"],[177,"plus-minus sign"],[247,"division sign"],[8260,"fraction slash"],[215,"multiplication sign"],[185,"superscript one"],[178,"superscript two"],[179,"superscript three"],[188,"fraction one quarter"],[189,"fraction one half"],[190,"fraction three quarters"]]},{name:"Mathematical",characters:[[402,"function / florin"],[8747,"integral"],[8721,"n-ary sumation"],[8734,"infinity"],[8730,"square root"],[8764,"similar to"],[8773,"approximately equal to"],[8776,"almost equal to"],[8800,"not equal to"],[8801,"identical to"],[8712,"element of"],[8713,"not an element of"],[8715,"contains as member"],[8719,"n-ary product"],[8743,"logical and"],[8744,"logical or"],[172,"not sign"],[8745,"intersection"],[8746,"union"],[8706,"partial differential"],[8704,"for all"],[8707,"there exists"],[8709,"diameter"],[8711,"backward difference"],[8727,"asterisk operator"],[8733,"proportional to"],[8736,"angle"]]},{name:"Extended Latin",characters:[[192,"A - grave"],[193,"A - acute"],[194,"A - circumflex"],[195,"A - tilde"],[196,"A - diaeresis"],[197,"A - ring above"],[256,"A - macron"],[198,"ligature AE"],[199,"C - cedilla"],[200,"E - grave"],[201,"E - acute"],[202,"E - circumflex"],[203,"E - diaeresis"],[274,"E - macron"],[204,"I - grave"],[205,"I - acute"],[206,"I - circumflex"],[207,"I - diaeresis"],[298,"I - macron"],[208,"ETH"],[209,"N - tilde"],[210,"O - grave"],[211,"O - acute"],[212,"O - circumflex"],[213,"O - tilde"],[214,"O - diaeresis"],[216,"O - slash"],[332,"O - macron"],[338,"ligature OE"],[352,"S - caron"],[217,"U - grave"],[218,"U - acute"],[219,"U - circumflex"],[220,"U - diaeresis"],[362,"U - macron"],[221,"Y - acute"],[376,"Y - diaeresis"],[562,"Y - macron"],[222,"THORN"],[224,"a - grave"],[225,"a - acute"],[226,"a - circumflex"],[227,"a - tilde"],[228,"a - diaeresis"],[229,"a - ring above"],[257,"a - macron"],[230,"ligature ae"],[231,"c - cedilla"],[232,"e - grave"],[233,"e - acute"],[234,"e - circumflex"],[235,"e - diaeresis"],[275,"e - macron"],[236,"i - grave"],[237,"i - acute"],[238,"i - circumflex"],[239,"i - diaeresis"],[299,"i - macron"],[240,"eth"],[241,"n - tilde"],[242,"o - grave"],[243,"o - acute"],[244,"o - circumflex"],[245,"o - tilde"],[246,"o - diaeresis"],[248,"o slash"],[333,"o macron"],[339,"ligature oe"],[353,"s - caron"],[249,"u - grave"],[250,"u - acute"],[251,"u - circumflex"],[252,"u - diaeresis"],[363,"u - macron"],[253,"y - acute"],[254,"thorn"],[255,"y - diaeresis"],[563,"y - macron"],[913,"Alpha"],[914,"Beta"],[915,"Gamma"],[916,"Delta"],[917,"Epsilon"],[918,"Zeta"],[919,"Eta"],[920,"Theta"],[921,"Iota"],[922,"Kappa"],[923,"Lambda"],[924,"Mu"],[925,"Nu"],[926,"Xi"],[927,"Omicron"],[928,"Pi"],[929,"Rho"],[931,"Sigma"],[932,"Tau"],[933,"Upsilon"],[934,"Phi"],[935,"Chi"],[936,"Psi"],[937,"Omega"],[945,"alpha"],[946,"beta"],[947,"gamma"],[948,"delta"],[949,"epsilon"],[950,"zeta"],[951,"eta"],[952,"theta"],[953,"iota"],[954,"kappa"],[955,"lambda"],[956,"mu"],[957,"nu"],[958,"xi"],[959,"omicron"],[960,"pi"],[961,"rho"],[962,"final sigma"],[963,"sigma"],[964,"tau"],[965,"upsilon"],[966,"phi"],[967,"chi"],[968,"psi"],[969,"omega"]]},{name:"Symbols",characters:[[8501,"alef symbol"],[982,"pi symbol"],[8476,"real part symbol"],[978,"upsilon - hook symbol"],[8472,"Weierstrass p"],[8465,"imaginary part"]]},{name:"Arrows",characters:[[8592,"leftwards arrow"],[8593,"upwards arrow"],[8594,"rightwards arrow"],[8595,"downwards arrow"],[8596,"left right arrow"],[8629,"carriage return"],[8656,"leftwards double arrow"],[8657,"upwards double arrow"],[8658,"rightwards double arrow"],[8659,"downwards double arrow"],[8660,"left right double arrow"],[8756,"therefore"],[8834,"subset of"],[8835,"superset of"],[8836,"not a subset of"],[8838,"subset of or equal to"],[8839,"superset of or equal to"],[8853,"circled plus"],[8855,"circled times"],[8869,"perpendicular"],[8901,"dot operator"],[8968,"left ceiling"],[8969,"right ceiling"],[8970,"left floor"],[8971,"right floor"],[9001,"left-pointing angle bracket"],[9002,"right-pointing angle bracket"],[9674,"lozenge"],[9824,"black spade suit"],[9827,"black club suit"],[9829,"black heart suit"],[9830,"black diamond suit"],[8194,"en space"],[8195,"em space"],[8201,"thin space"],[8204,"zero width non-joiner"],[8205,"zero width joiner"],[8206,"left-to-right mark"],[8207,"right-to-left mark"]]}]},O=function(e){return k.grep(e,(function(e){return A(e)&&2===e.length}))},F=function(e){return A(e)?O(e):"function"===typeof e?e():[]},P=function(e,t){var n=T(e);n&&(t=[{name:E,characters:F(n)}]);var r=S(e);if(r){var i=k.grep(t,(function(e){return e.name===E}));return i.length?(i[0].characters=[].concat(i[0].characters).concat(F(r)),t):t.concat({name:E,characters:F(r)})}return t},R=function(e){var t=P(e,U());return t.length>1?[{name:"All",characters:C(t,(function(e){return e.characters}))}].concat(t):t},N=function(e){var t=function(){return R(e)},r=function(t){n(e,t)};return{getCharMap:t,insertChar:r}},M=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},I=function(e,t){var n=null,r=function(){s(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},B=String.fromCodePoint,L=function(e,t){return-1!==e.indexOf(t)},z=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(B)return B.apply(void 0,e);for(var n=[],r=0,i="",o=0,a=e.length;o!==a;++o){var s=+e[o];if(!(s<1114111&&s>>>0===s))throw RangeError("Invalid code point: "+s);s<=65535?r=n.push(s):(s-=65536,r=n.push(55296+(s>>10),s%1024+56320)),r>=16383&&(i+=String.fromCharCode.apply(null,n),n.length=0)}return i+String.fromCharCode.apply(null,n)},W=function(e,t,n){return!!L(z(e).toLowerCase(),n)||(L(t.toLowerCase(),n)||L(t.toLowerCase().replace(/\s+/g,""),n))},j=function(e,t){var n=[],r=t.toLowerCase();return x(e.characters,(function(e){W(e[0],e[1],r)&&n.push(e)})),y(n,(function(e){return{text:e[1],value:z(e[0]),icon:z(e[0])}}))},H="pattern",V=function(e,t){var r=function(){return[{label:"Search",type:"input",name:H},{type:"collection",name:"results"}]},i=function(){return y(t,(function(e){return{title:e.name,name:e.name,items:r()}}))},o=function(){return{type:"panel",items:r()}},a=function(){return{type:"tabpanel",tabs:i()}},s=1===t.length?M(E):M("All"),c=function(e,n){w(t,(function(e){return e.name===s.get()})).each((function(t){var r=j(t,n);e.setData({results:r})}))},u=40,l=I((function(e){var t=e.getData().pattern;c(e,t)}),u),d=1===t.length?o():a(),f={pattern:"",results:j(t[0],"")},h={title:"Special Character",size:"normal",body:d,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:f,onAction:function(t,r){"results"===r.name&&(n(e,r.value),t.close())},onTabChange:function(e,t){s.set(t.newTabName),l.throttle(e)},onChange:function(e,t){t.name===H&&l.throttle(e)}},p=e.windowManager.open(h);p.focus(H)},q=function(e,t){e.addCommand("mceShowCharmap",(function(){V(e,t)}))},$=tinymce.util.Tools.resolve("tinymce.util.Promise"),G=function(e,t){e.ui.registry.addAutocompleter("charmap",{ch:":",columns:"auto",minChars:2,fetch:function(e,n){return new $((function(n,r){n(j(t,e))}))},onAction:function(t,n,r){e.selection.setRng(n),e.insertContent(r),t.hide()}})},X=function(e){e.ui.registry.addButton("charmap",{icon:"insert-character",tooltip:"Special character",onAction:function(){return e.execCommand("mceShowCharmap")}}),e.ui.registry.addMenuItem("charmap",{icon:"insert-character",text:"Special character...",onAction:function(){return e.execCommand("mceShowCharmap")}})};function Y(){e.add("charmap",(function(e){var t=R(e);return q(e,t),X(e),G(e,t[0]),N(e)}))}Y()})()},"17ad":function(e,t,n){"use strict";e.exports=function(e,t,r,i,o,a){var s=n("8d16"),c=s.TypeError,u=n("6df9"),l=u.errorObj,d=u.tryCatch,f=[];function h(t,n,r){for(var o=0;o<n.length;++o){r._pushContext();var a=d(n[o])(t);if(r._popContext(),a===l){r._pushContext();var s=e.reject(l.e);return r._popContext(),s}var c=i(a,r);if(c instanceof e)return c}return null}function p(t,n,i,o){if(a.cancellation()){var s=new e(r),c=this._finallyPromise=new e(r);this._promise=s.lastly((function(){return c})),s._captureStackTrace(),s._setOnCancel(this)}else{var u=this._promise=new e(r);u._captureStackTrace()}this._stack=o,this._generatorFunction=t,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"===typeof i?[i].concat(f):f,this._yieldedPromise=null,this._cancellationPhase=!1}u.inherits(p,o),p.prototype._isResolved=function(){return null===this._promise},p.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},p.prototype._promiseCancelled=function(){if(!this._isResolved()){var t,n="undefined"!==typeof this._generator["return"];if(n)this._promise._pushContext(),t=d(this._generator["return"]).call(this._generator,void 0),this._promise._popContext();else{var r=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=r,this._promise._attachExtraTrace(r),this._promise._pushContext(),t=d(this._generator["throw"]).call(this._generator,r),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(t)}},p.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=d(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)},p.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=d(this._generator["throw"]).call(this._generator,e);this._promise._popContext(),this._continue(t)},p.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null,t.cancel()}},p.prototype.promise=function(){return this._promise},p.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},p.prototype._continue=function(t){var n=this._promise;if(t===l)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(t.e,!1);var r=t.value;if(!0===t.done)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(r);var o=i(r,this._promise);if(o instanceof e||(o=h(o,this._yieldHandlers,this._promise),null!==o)){o=o._target();var a=o._bitField;0===(50397184&a)?(this._yieldedPromise=o,o._proxy(this,null)):0!==(33554432&a)?e._async.invoke(this._promiseFulfilled,this,o._value()):0!==(16777216&a)?e._async.invoke(this._promiseRejected,this,o._reason()):this._promiseCancelled()}else this._promiseRejected(new c("A value %s was yielded that could not be treated as a promise\n\n    See http://goo.gl/MqrFmX\n\n".replace("%s",r)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},e.coroutine=function(e,t){if("function"!==typeof e)throw new c("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var n=Object(t).yieldHandler,r=p,i=(new Error).stack;return function(){var t=e.apply(this,arguments),o=new r(void 0,void 0,n,i),a=o.promise();return o._generator=t,o._promiseFulfilled(void 0),a}},e.coroutine.addYieldHandler=function(e){if("function"!==typeof e)throw new c("expecting a function but got "+u.classString(e));f.push(e)},e.spawn=function(n){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!==typeof n)return t("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var r=new p(n,this),i=r.promise();return r._run(e.spawn),i}}},1819:function(e,t){function n(e){var t=[];return e.children.forEach((function(e){if("{http://schemas.openxmlformats.org/package/2006/relationships}Relationship"===e.name){var n={relationshipId:e.attributes.Id,target:e.attributes.Target,type:e.attributes.Type};t.push(n)}})),new r(t)}function r(e){var t={};e.forEach((function(e){t[e.relationshipId]=e.target}));var n={};return e.forEach((function(e){n[e.type]||(n[e.type]=[]),n[e.type].push(e.target)})),{findTargetByRelationshipId:function(e){return t[e]},findTargetsByType:function(e){return n[e]||[]}}}t.readRelationships=n,t.defaultValue=new r([]),t.Relationships=r},"183f":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticStyle:{display:"flex",width:"100%","min-height":"400px",background:"radial-gradient(circle at 12% 55%,rgba(33,150,243,.15),hsla(0,0%,100%,0) 25%),radial-gradient(circle at 85% 33%,rgba(108,99,255,.175),hsla(0,0%,100%,0) 25%)",padding:"20px"}},[n("div",{staticClass:"relative pt-4 py-3flex h-full flex-col bg-[#fafbfc] draw-list-left flex justify-content-between pb-0",staticStyle:{width:"25%","margin-left":"1px"}},[n("div",{staticClass:"ai-writer__left-panel p-2 overflow-auto"},[n("div",{staticClass:"left-panel-setting-block"},[e._m(0),n("a-textarea",{attrs:{"auto-size":{minRows:3,maxRows:5},placeholder:"输入您要生成的内容，如“明朝简史”"},model:{value:e.mark_ai,callback:function(t){e.mark_ai=t},expression:"mark_ai"}}),e._m(1),n("a-select",{staticStyle:{width:"100%"},attrs:{"default-value":"0"},on:{change:e.handleChange}},[n("a-select-option",{attrs:{value:"0"}},[e._v(" 不关联 ")]),e._l(e.history_data,(function(t,r){return n("a-select-option",{attrs:{value:t.id}},[e._v(" "+e._s(t.pdf_name)+" ")])}))],2),n("br"),n("a",{staticStyle:{"margin-top":"5px","font-size":"12px",float:"right"},attrs:{href:"/#/ai_pdf"}},[e._v("没有文档？去上传")]),n("br"),n("div",{directives:[{name:"show",rawName:"v-show",value:e.eckd,expression:"eckd"}],staticClass:"form_tools"},[n("div",{staticClass:"left-panel-setting-block__title fs-5"},[e._v("模型版本")]),n("a-radio-group",{attrs:{"button-style":"",size:"small"},model:{value:e.modeType,callback:function(t){e.modeType=t},expression:"modeType"}},e._l(e.modeList,(function(t,r){return n("a-radio-button",{key:"g_mode_"+r,attrs:{value:t.type}},[e._v(e._s(t.name)+"（"+e._s(t.usable)+"积分）")])})),1)],1),n("a-button",{staticClass:"w-100 mt-2 mb-2",staticStyle:{"margin-top":"10px","margin-bottom":"5px"},attrs:{type:"primary",loading:e.langding},on:{click:function(t){return e.send_siwei(10)}}},[e._v(" 开始生成 ")]),n("br"),n("span",{staticStyle:{"font-size":"10px",color:"red"}},[e._v("*注意：点击生成后大概需要1-2分钟生成、排版、输出，请耐心等待，不要退出。")]),n("br"),e._m(2),n("a-textarea",{staticStyle:{height:"10vh","margin-top":"10px","margin-bottom":"10px"},attrs:{"auto-size":{minRows:10,maxRows:20},placeholder:"点击开始生成后这里将自动生成对应内容"},model:{value:e.mark_value,callback:function(t){e.mark_value=t},expression:"mark_value"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.eckd,expression:"eckd"}]},[e._m(3),n("a-input",{staticStyle:{width:"60%"},attrs:{"auto-size":{minRows:3,maxRows:5},placeholder:"输入您要拓展的内容”"},model:{value:e.mark_ai2,callback:function(t){e.mark_ai2=t},expression:"mark_ai2"}}),n("a-button",{staticClass:"w-100 mt-2 mb-2",staticStyle:{"margin-top":"0px","margin-bottom":"5px","margin-right":"10px",float:"right",width:"30%"},attrs:{type:"primary",loading:e.langding,disabled:e.send_loads},on:{click:function(t){return e.send_siwei(16)}}},[e._v(" 再次生成 ")])],1)],1),n("a-collapse",{staticStyle:{width:"100%","margin-top":"10px"}},[n("a-collapse-panel",{key:"1",attrs:{header:"历史记录"}},[n("div",{staticStyle:{height:"200px","overflow-y":"auto"}},e._l(e.contentlist,(function(t,r){return n("div",{staticClass:"advanced_box"},[n("div",{staticStyle:{"margin-top":"5px",padding:"5px"},on:{click:function(t){return e.takemakelist(r)}}},[n("span",{staticStyle:{display:"block",color:"#1890ff","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden",width:"260px"}},[e._v(e._s(t.message_input))])])])})),0)])],1)],1)]),n("div",{staticClass:"editor-panel__content flex-1 mark_ai"},[n("div",{staticClass:"main xl:pb-0 ai-siwei"},[n("div",{staticClass:"generate-result-area__container"},[e.mark_values?e._e():n("div",{staticClass:"generate-empty absolute",staticStyle:{"margin-top":"50px"}},[n("svg",{staticClass:"icon",staticStyle:{height:"70px"},attrs:{t:"1701935578094",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3360",width:"200",height:"200"}},[n("path",{attrs:{d:"M332.799002 686.081014m-332.799002 0a332.799002 332.799002 0 1 0 665.598003 0 332.799002 332.799002 0 1 0-665.598003 0Z",fill:"#DFDFF2","p-id":"3361"}}),n("path",{attrs:{d:"M883.19735 1024h-639.99808A141.055577 141.055577 0 0 1 102.399693 883.200422v-742.397772A141.055577 141.055577 0 0 1 243.19927 0.003072h516.350451a89.087733 89.087733 0 0 1 63.231811 25.599923l189.695431 189.695431A38.399885 38.399885 0 0 1 1023.996928 243.202342v639.99808a141.055577 141.055577 0 0 1-140.799578 140.799578zM243.19927 76.802842A63.999808 63.999808 0 0 0 179.199462 140.80265v742.397772A63.999808 63.999808 0 0 0 243.19927 947.20023h639.99808a63.999808 63.999808 0 0 0 63.999808-63.999808V259.074295l-179.199462-179.199463a12.799962 12.799962 0 0 0-8.447975-3.07199z",fill:"#434260","p-id":"3362"}}),n("path",{attrs:{d:"M354.558936 399.105875h40.959877L436.73469 512.001536c5.119985 15.103955 9.727971 30.463909 15.103954 45.823863h1.535996c5.119985-15.359954 9.471972-30.719908 14.847955-45.823863l40.959877-114.175657h41.215877v226.047321h-33.5359V512.001536c0-20.223939 2.815992-49.407852 4.607987-69.88779l-18.175946 51.199846-39.423882 107.775677h-22.015934l-39.679881-107.775677-17.919946-51.199846c1.535995 20.479939 4.351987 49.663851 4.351987 69.88779v111.871664h-34.047898zM609.534171 399.105875h58.623825c69.375792 0 109.055673 38.399885 109.055672 112.127663s-39.679881 113.919658-107.263678 113.919659h-60.415819zM665.598003 595.713285c48.383855 0 74.495777-28.671914 74.495777-84.735746s-25.599923-83.19975-74.495777-83.19975h-20.479938v167.935496z",fill:"#434260","p-id":"3363"}})]),n("div",{staticClass:"generate-empty__title",staticStyle:{"margin-top":"10px"}},[e._v("暂无思维导图生成")]),n("div",{staticClass:"generate-empty__desc"},[e._v("快去左侧输入你的思维描述吧~")])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.mark_values,expression:"mark_values"}],staticClass:"absolute generate-empty relative h-full w-full",staticStyle:{"margin-top":"50px"}},[n("iframe",{key:e.baiduUrl,staticStyle:{border:"0px","border-radius":"5px"},attrs:{src:e.baiduUrl,id:"fsss",width:"100%",height:"100%"}})])])])])])},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"left-panel-setting-block__header"},[n("div",{staticClass:"left-panel-setting-block__title fs-5"},[e._v("输入标题")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"left-panel-setting-block__header",staticStyle:{"margin-top":"10px"}},[n("div",{staticClass:"left-panel-setting-block__title fs-5"},[e._v("关联文档(40积分/次) ")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"left-panel-setting-block__header",staticStyle:{"margin-top":"10px"}},[n("div",{staticClass:"left-panel-setting-block__title fs-5"},[e._v(" 生成的内容")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"left-panel-setting-block__header"},[n("div",{staticClass:"left-panel-setting-block__title fs-5"},[e._v("输入节点内容，深入拓展")])])}],o=(n("5b81"),n("2f62")),a=(n("5c96"),{data(){return{mark_ai:"",mark_ai2:"",mark_ais:"",casedata:[],newsid:{},jzmark:!0,send_loads:!0,mark_value:"",baiduUrl:"",up_des_load:!1,siwei_limit:0,counter:[],drawer:!1,mark_values:!1,mm:"",dataText:"",group_id:"",langding:!1,send_load:!0,meihuamd:"",contentlist:[],history_data:[],zsk_id:0,eckd:!0,modeType:"",modeList:[],timerId:null}},created(){this.newsid=this.$route.query,this.getmakelist(),this.getUserPdf(),this.getModeList()},computed:{...Object(o["c"])("user",["token","userInfo"])},methods:{...Object(o["b"])("user",["getUserInfo"]),handleClick(){this.clickTimer=setTimeout(()=>{this.mark_value=this.mark_value+" "},1e3)},getModeList(){this.$http("chat.mode").then(e=>{1===e.code&&(this.modeList=e.data,this.modeType=e.data[0].type)})},handleChange(e){this.zsk_id=e,this.zsk_id>0?this.eckd=!1:this.eckd=!0},getUserPdf(){this.$http("role.getpdf").then(e=>{1==e.code&&(this.history_data=e.data)})},takemakelist(e){this.mark_value=this.contentlist[e].response+"```";const t=/#([^`]*)`{3}/,n=this.mark_value.match(t);this.mark_value="#"+n[1],this.baiduUrl="https://www.osaigc.cn/mark_edit/#/?markdowns="+encodeURIComponent(this.mark_value)},getmakelist(){this.$http("markdown.getmakelist",{}).then(e=>{1===e.code?this.contentlist=e.data:this.$message.warning(e.msg)})},generateMindMap(){if(this.mark_value)if(this.mark_values=!0,this.send_loads=!1,this.mark_value.includes("```markdown")){this.mark_value=this.mark_value+"```";const e=/#([^`]*)`{3}/,t=this.mark_value.match(e);this.mark_value="#"+t[1],this.baiduUrl="https://www.osaigc.cn/mark_edit/#/?markdowns="+encodeURIComponent(this.mark_value)}else this.baiduUrl="https://www.osaigc.cn/mark_edit/#/?markdowns="+encodeURIComponent(this.mark_value);else this.mark_values=!1,this.send_loads=!0},send_siwei(e){if(this.mark_ais=10!=e?this.mark_value+"《"+this.mark_ai2+"》":this.mark_ai,!this.modeType)return this.$message.error("会话模型错误，请联系管理员");if(this.langding=!0,this.group_id){const t={type:"rule",prompt_id:e,group_id:this.group_id,message:this.mark_ais,mode:this.modeType,zskid:this.zsk_id};this.fetchDataStream(t)}else this.createRoleChat(e)},async createRoleChat(e){this.mark_ais=10!=e?this.mark_value+"《"+this.mark_ai2+"》":this.mark_ai,this.$http("role.create",{prompt_id:e}).then(t=>{if(1===t.code){this.group_id=t.data.group_id;const n={type:"rule",prompt_id:e,group_id:this.group_id,message:this.mark_ais,mode:this.modeType,zskid:this.zsk_id};this.fetchDataStream(n)}})},async fetchDataStream(e){if(!e)return;this.dataText="",this.disabled=!0;const t=e,n=this.$BASE_API+"/addons/chatgpt/web/sendText",r=new AbortController,i=this.token,o=window.location.search.replace(/\?/g,"");try{const e=await fetch(n,{method:"post",headers:{"Content-Type":"application/json;charset=utf-8",Token:i,Sign:o},body:JSON.stringify(t),signal:r.signal}),a=e.body.getReader();let s="";while(1){const{done:e,value:t}=await a.read(),n=(new TextDecoder).decode(t);if(-1!=n.indexOf("data: [DONE]")||-1!=n.indexOf("data:[DONE]")||e){const e=n.replaceAll(" ","").split("data:[DONE]");e[0].length&&(this.dataText+=e[0]),this.disabled=!1;break}s+=n,this.dataText=s,this.mark_value=this.dataText}this.mark_value=this.dataText,this.langding=!1}catch{this.langding=!1}if(this.mark_value.includes("```markdown")){this.mark_value=this.mark_value+"```";const e=/#([^`]*)`{3}/,t=this.mark_value.match(e);this.mark_value="#"+t[1],this.baiduUrl="https://www.osaigc.cn/mark_edit/#/?markdowns="+encodeURIComponent(this.mark_value)}}},watch:{mark_value(e){this.timerId||(this.timerId=setTimeout(()=>{this.generateMindMap(),this.send_load=!1},3e3))}}}),s=a,c=(n("887d"),n("2877")),u=Object(c["a"])(s,r,i,!1,null,"22de0558",null);t["default"]=u.exports},"188f":function(e,t,n){(function(){var t,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=n("92e7"),e.exports=function(e){function t(e,n,r,i,o,a){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==r)throw new Error("Missing DTD attribute name. "+this.debugInfo(n));if(!i)throw new Error("Missing DTD attribute type. "+this.debugInfo(n));if(!o)throw new Error("Missing DTD attribute default. "+this.debugInfo(n));if(0!==o.indexOf("#")&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n));if(a&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n));this.elementName=this.stringify.eleName(n),this.attributeName=this.stringify.attName(r),this.attributeType=this.stringify.dtdAttType(i),this.defaultValue=this.stringify.dtdAttDefault(a),this.defaultValueType=o}return r(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)},t}(t)}).call(this)},"1ae3":function(e,t,n){e.exports=n.p+"img/copy-gray.0eecb269.svg"},"1c35":function(e,t,n){},"1dc6":function(e,t,n){var r=n("1fb5"),i=n("d4d8");function o(e){return i.loadAsync(e).then((function(e){function t(t){return null!==e.file(t)}function n(t,n){return e.file(t).async("uint8array").then((function(e){if("base64"===n)return r.fromByteArray(e);if(n){var t=new TextDecoder(n);return t.decode(e)}return e}))}function i(t,n){e.file(t,n)}function o(){return e.generateAsync({type:"arraybuffer"})}return{exists:t,read:n,write:i,toArrayBuffer:o}}))}function a(e){var t=e.lastIndexOf("/");return-1===t?{dirname:"",basename:e}:{dirname:e.substring(0,t),basename:e.substring(t+1)}}function s(){var e=Array.prototype.filter.call(arguments,(function(e){return e})),t=[];return e.forEach((function(e){/^\//.test(e)?t=[e]:t.push(e)})),t.join("/")}t.openArrayBuffer=o,t.splitPath=a,t.joinPath=s},"1ed5":function(e,t,n){"use strict";n("2b3c")},"1f08":function(e,t,n){(function(){var t,r,i,o,a,s,c,u,l,d,f,h,p,g,m=function(e,t){for(var n in t)v.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},v={}.hasOwnProperty;c=n("528d"),u=n("d7e3"),t=n("536e"),r=n("8930"),d=n("b8ee"),h=n("50d7"),p=n("9d2f"),f=n("f016"),l=n("0e1e"),i=n("188f"),o=n("3b32"),a=n("1585"),s=n("b6e1"),g=n("a4b6"),e.exports=function(e){function n(e){n.__super__.constructor.call(this,e)}return m(n,e),n.prototype.document=function(e){var t,n,i,o,a;for(this.textispresent=!1,o="",a=e.children,n=0,i=a.length;n<i;n++)t=a[n],t instanceof l||(o+=function(){switch(!1){case!(t instanceof c):return this.declaration(t);case!(t instanceof u):return this.docType(t);case!(t instanceof r):return this.comment(t);case!(t instanceof f):return this.processingInstruction(t);default:return this.element(t,0)}}.call(this));return this.pretty&&o.slice(-this.newline.length)===this.newline&&(o=o.slice(0,-this.newline.length)),o},n.prototype.attribute=function(e){return" "+e.name+'="'+e.value+'"'},n.prototype.cdata=function(e,t){return this.space(t)+"<![CDATA["+e.text+"]]>"+this.newline},n.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline},n.prototype.declaration=function(e,t){var n;return n=this.space(t),n+='<?xml version="'+e.version+'"',null!=e.encoding&&(n+=' encoding="'+e.encoding+'"'),null!=e.standalone&&(n+=' standalone="'+e.standalone+'"'),n+=this.spacebeforeslash+"?>",n+=this.newline,n},n.prototype.docType=function(e,n){var c,u,l,d,h;if(n||(n=0),d=this.space(n),d+="<!DOCTYPE "+e.root().name,e.pubID&&e.sysID?d+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(d+=' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(d+=" [",d+=this.newline,h=e.children,u=0,l=h.length;u<l;u++)c=h[u],d+=function(){switch(!1){case!(c instanceof i):return this.dtdAttList(c,n+1);case!(c instanceof o):return this.dtdElement(c,n+1);case!(c instanceof a):return this.dtdEntity(c,n+1);case!(c instanceof s):return this.dtdNotation(c,n+1);case!(c instanceof t):return this.cdata(c,n+1);case!(c instanceof r):return this.comment(c,n+1);case!(c instanceof f):return this.processingInstruction(c,n+1);default:throw new Error("Unknown DTD node type: "+c.constructor.name)}}.call(this);d+="]"}return d+=this.spacebeforeslash+">",d+=this.newline,d},n.prototype.element=function(e,n){var i,o,a,s,c,u,g,m,b,y,x,_,w;for(g in n||(n=0),w=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),_=this.space(n),m="",m+=_+"<"+e.name,b=e.attributes,b)v.call(b,g)&&(i=b[g],m+=this.attribute(i));if(0===e.children.length||e.children.every((function(e){return""===e.value})))this.allowEmpty?m+="></"+e.name+">"+this.newline:m+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===e.children.length&&null!=e.children[0].value)m+=">",m+=e.children[0].value,m+="</"+e.name+">"+this.newline;else{if(this.dontprettytextnodes)for(y=e.children,a=0,c=y.length;a<c;a++)if(o=y[a],null!=o.value){this.textispresent++,w=!0;break}for(this.textispresent&&(this.newline="",this.pretty=!1,_=this.space(n)),m+=">"+this.newline,x=e.children,s=0,u=x.length;s<u;s++)o=x[s],m+=function(){switch(!1){case!(o instanceof t):return this.cdata(o,n+1);case!(o instanceof r):return this.comment(o,n+1);case!(o instanceof d):return this.element(o,n+1);case!(o instanceof h):return this.raw(o,n+1);case!(o instanceof p):return this.text(o,n+1);case!(o instanceof f):return this.processingInstruction(o,n+1);case!(o instanceof l):return"";default:throw new Error("Unknown XML node type: "+o.constructor.name)}}.call(this);w&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),m+=_+"</"+e.name+">"+this.newline}return m},n.prototype.processingInstruction=function(e,t){var n;return n=this.space(t)+"<?"+e.target,e.value&&(n+=" "+e.value),n+=this.spacebeforeslash+"?>"+this.newline,n},n.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline},n.prototype.text=function(e,t){return this.space(t)+e.value+this.newline},n.prototype.dtdAttList=function(e,t){var n;return n=this.space(t)+"<!ATTLIST "+e.elementName+" "+e.attributeName+" "+e.attributeType,"#DEFAULT"!==e.defaultValueType&&(n+=" "+e.defaultValueType),e.defaultValue&&(n+=' "'+e.defaultValue+'"'),n+=this.spacebeforeslash+">"+this.newline,n},n.prototype.dtdElement=function(e,t){return this.space(t)+"<!ELEMENT "+e.name+" "+e.value+this.spacebeforeslash+">"+this.newline},n.prototype.dtdEntity=function(e,t){var n;return n=this.space(t)+"<!ENTITY",e.pe&&(n+=" %"),n+=" "+e.name,e.value?n+=' "'+e.value+'"':(e.pubID&&e.sysID?n+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(n+=' SYSTEM "'+e.sysID+'"'),e.nData&&(n+=" NDATA "+e.nData)),n+=this.spacebeforeslash+">"+this.newline,n},n.prototype.dtdNotation=function(e,t){var n;return n=this.space(t)+"<!NOTATION "+e.name,e.pubID&&e.sysID?n+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.pubID?n+=' PUBLIC "'+e.pubID+'"':e.sysID&&(n+=' SYSTEM "'+e.sysID+'"'),n+=this.spacebeforeslash+">"+this.newline,n},n.prototype.openNode=function(e,t){var n,r,i,o;if(t||(t=0),e instanceof d){for(r in i=this.space(t)+"<"+e.name,o=e.attributes,o)v.call(o,r)&&(n=o[r],i+=this.attribute(n));return i+=(e.children?">":"/>")+this.newline,i}return i=this.space(t)+"<!DOCTYPE "+e.rootNodeName,e.pubID&&e.sysID?i+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(i+=' SYSTEM "'+e.sysID+'"'),i+=(e.children?" [":">")+this.newline,i},n.prototype.closeNode=function(e,t){switch(t||(t=0),!1){case!(e instanceof d):return this.space(t)+"</"+e.name+">"+this.newline;case!(e instanceof u):return this.space(t)+"]>"+this.newline}},n}(g)}).call(this)},2:function(e,t){},"210b":function(e,t,n){var r=n("e1c8");t.DOMImplementation=r.DOMImplementation,t.XMLSerializer=r.XMLSerializer,t.DOMParser=n("b074").DOMParser},"221f":function(e,t,n){"use strict";(function(t){e.exports=function(e,r){var i,o,a,s=e._getDomain,c=e._async,u=n("8d16").Warning,l=n("6df9"),d=l.canAttachTrace,f=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,h=/\((?:timers\.js):\d+:\d+\)/,p=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,g=null,m=null,v=!1,b=!(0==l.env("BLUEBIRD_DEBUG")||!l.env("BLUEBIRD_DEBUG")&&"development"!==l.env("NODE_ENV")),y=!(0==l.env("BLUEBIRD_WARNINGS")||!b&&!l.env("BLUEBIRD_WARNINGS")),x=!(0==l.env("BLUEBIRD_LONG_STACK_TRACES")||!b&&!l.env("BLUEBIRD_LONG_STACK_TRACES")),_=0!=l.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(y||!!l.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},e.prototype._ensurePossibleRejectionHandled=function(){0===(524288&this._bitField)&&(this._setRejectionIsUnhandled(),c.invokeLater(this._notifyUnhandledRejection,this,void 0))},e.prototype._notifyUnhandledRejectionIsHandled=function(){K("rejectionHandled",i,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},e.prototype._returnedNonUndefined=function(){return 0!==(268435456&this._bitField)},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),K("unhandledRejection",o,e,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},e.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},e.prototype._warn=function(e,t,n){return j(e,t,n||this)},e.onPossiblyUnhandledRejection=function(e){var t=s();o="function"===typeof e?null===t?e:l.domainBind(t,e):void 0},e.onUnhandledRejectionHandled=function(e){var t=s();i="function"===typeof e?null===t?e:l.domainBind(t,e):void 0};var w=function(){};e.longStackTraces=function(){if(c.haveItemsQueued()&&!ae.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");if(!ae.longStackTraces&&Q()){var t=e.prototype._captureStackTrace,n=e.prototype._attachExtraTrace;ae.longStackTraces=!0,w=function(){if(c.haveItemsQueued()&&!ae.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");e.prototype._captureStackTrace=t,e.prototype._attachExtraTrace=n,r.deactivateLongStackTraces(),c.enableTrampoline(),ae.longStackTraces=!1},e.prototype._captureStackTrace=B,e.prototype._attachExtraTrace=L,r.activateLongStackTraces(),c.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return ae.longStackTraces&&Q()};var D=function(){try{if("function"===typeof CustomEvent){var e=new CustomEvent("CustomEvent");return l.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!l.global.dispatchEvent(n)}}if("function"===typeof Event){e=new Event("CustomEvent");return l.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!l.global.dispatchEvent(n)}}e=document.createEvent("CustomEvent");return e.initCustomEvent("testingtheevent",!1,!0,{}),l.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!l.global.dispatchEvent(n)}}catch(t){}return function(){return!1}}(),C=function(){return l.isNode?function(){return t.emit.apply(t,arguments)}:l.global?function(e){var t="on"+e.toLowerCase(),n=l.global[t];return!!n&&(n.apply(l.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}();function k(e,t){return{promise:t}}var T={promiseCreated:k,promiseFulfilled:k,promiseRejected:k,promiseResolved:k,promiseCancelled:k,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:k},S=function(e){var t=!1;try{t=C.apply(null,arguments)}catch(r){c.throwLater(r),t=!0}var n=!1;try{n=D(e,T[e].apply(null,arguments))}catch(r){c.throwLater(r),n=!0}return n||t};function A(){return!1}function E(e,t,n){var r=this;try{e(t,n,(function(e){if("function"!==typeof e)throw new TypeError("onCancel must be a function, got: "+l.toString(e));r._attachCancellationCallback(e)}))}catch(i){return i}}function U(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?l.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function O(){return this._onCancelField}function F(e){this._onCancelField=e}function P(){this._cancellationParent=void 0,this._onCancelField=void 0}function R(e,t){if(0!==(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function N(e,t){0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}e.config=function(t){if(t=Object(t),"longStackTraces"in t&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&w()),"warnings"in t){var n=t.warnings;ae.warnings=!!n,_=ae.warnings,l.isObject(n)&&"wForgottenReturn"in n&&(_=!!n.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!ae.cancellation){if(c.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=P,e.prototype._propagateFrom=R,e.prototype._onCancel=O,e.prototype._setOnCancel=F,e.prototype._attachCancellationCallback=U,e.prototype._execute=E,M=R,ae.cancellation=!0}return"monitoring"in t&&(t.monitoring&&!ae.monitoring?(ae.monitoring=!0,e.prototype._fireEvent=S):!t.monitoring&&ae.monitoring&&(ae.monitoring=!1,e.prototype._fireEvent=A)),e},e.prototype._fireEvent=A,e.prototype._execute=function(e,t,n){try{e(t,n)}catch(r){return r}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(e){},e.prototype._attachCancellationCallback=function(e){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(e,t){};var M=N;function I(){var t=this._boundTo;return void 0!==t&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function B(){this._trace=new ie(this._peekContext())}function L(e,t){if(d(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=X(e);l.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),l.notEnumerableProp(e,"__stackCleaned__",!0)}}}function z(e,t,n,r,i){if(void 0===e&&null!==t&&_){if(void 0!==i&&i._returnedNonUndefined())return;if(0===(65535&r._bitField))return;n&&(n+=" ");var o="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),c=$(s),u=c.length-1;u>=0;--u){var l=c[u];if(!h.test(l)){var d=l.match(p);d&&(o="at "+d[1]+":"+d[2]+":"+d[3]+" ");break}}if(c.length>0){var f=c[0];for(u=0;u<s.length;++u)if(s[u]===f){u>0&&(a="\n"+s[u-1]);break}}}var g="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(g,!0,t)}}function W(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),j(n)}function j(t,n,r){if(ae.warnings){var i,o=new u(t);if(n)r._attachExtraTrace(o);else if(ae.longStackTraces&&(i=e._peekContext()))i.attachExtraTrace(o);else{var a=X(o);o.stack=a.message+"\n"+a.stack.join("\n")}S("warning",o)||Y(o,"",!0)}}function H(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}function V(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}function q(e){for(var t=e[0],n=1;n<e.length;++n){for(var r=e[n],i=t.length-1,o=t[i],a=-1,s=r.length-1;s>=0;--s)if(r[s]===o){a=s;break}for(s=a;s>=0;--s){var c=r[s];if(t[i]!==c)break;t.pop(),i--}t=r}}function $(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i="    (No stack trace)"===r||g.test(r),o=i&&ee(r);i&&!o&&(v&&" "!==r.charAt(0)&&(r="    "+r),t.push(r))}return t}function G(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var r=t[n];if("    (No stack trace)"===r||g.test(r))break}return n>0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}function X(e){var t=e.stack,n=e.toString();return t="string"===typeof t&&t.length>0?G(e):["    (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:$(t)}}function Y(e,t,n){if("undefined"!==typeof console){var r;if(l.isObject(e)){var i=e.stack;r=t+m(i,e)}else r=t+String(e);"function"===typeof a?a(r,n):"function"!==typeof console.log&&"object"!==typeof console.log||console.log(r)}}function K(e,t,n,r){var i=!1;try{"function"===typeof t&&(i=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(o){c.throwLater(o)}"unhandledRejection"===e?S(e,n,r)||i||Y(n,"Unhandled rejection "):S(e,r)}function Z(e){var t;if("function"===typeof e)t="[function "+(e.name||"anonymous")+"]";else{t=e&&"function"===typeof e.toString?e.toString():l.toString(e);var n=/\[object [a-zA-Z0-9$_]+\]/;if(n.test(t))try{var r=JSON.stringify(e);t=r}catch(i){}0===t.length&&(t="(empty array)")}return"(<"+J(t)+">, no stack trace)"}function J(e){var t=41;return e.length<t?e:e.substr(0,t-3)+"..."}function Q(){return"function"===typeof oe}var ee=function(){return!1},te=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function ne(e){var t=e.match(te);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function re(e,t){if(Q()){for(var n,r,i=e.stack.split("\n"),o=t.stack.split("\n"),a=-1,s=-1,c=0;c<i.length;++c){var u=ne(i[c]);if(u){n=u.fileName,a=u.line;break}}for(c=0;c<o.length;++c){u=ne(o[c]);if(u){r=u.fileName,s=u.line;break}}a<0||s<0||!n||!r||n!==r||a>=s||(ee=function(e){if(f.test(e))return!0;var t=ne(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}}function ie(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);oe(this,ie),t>32&&this.uncycle()}l.inherits(ie,Error),r.CapturedTrace=ie,ie.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,i=this;void 0!==i;++r)t.push(i),i=i._parent;e=this._length=r;for(r=e-1;r>=0;--r){var o=t[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r<e;++r){var a=t[r].stack,s=n[a];if(void 0!==s&&s!==r){s>0&&(t[s-1]._parent=void 0,t[s-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var c=r>0?t[r-1]:this;s<e-1?(c._parent=t[s+1],c._parent.uncycle(),c._length=c._parent._length+1):(c._parent=void 0,c._length=1);for(var u=c._length+1,l=r-2;l>=0;--l)t[l]._length=u,u++;return}}}},ie.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();var t=X(e),n=t.message,r=[t.stack],i=this;while(void 0!==i)r.push($(i.stack.split("\n"))),i=i._parent;q(r),V(r),l.notEnumerableProp(e,"stack",H(n,r)),l.notEnumerableProp(e,"__stackCleaned__",!0)}};var oe=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"===typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():Z(t)};if("number"===typeof Error.stackTraceLimit&&"function"===typeof Error.captureStackTrace){Error.stackTraceLimit+=6,g=e,m=t;var n=Error.captureStackTrace;return ee=function(e){return f.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var r,i=new Error;if("string"===typeof i.stack&&i.stack.split("\n")[0].indexOf("stackDetection@")>=0)return g=/@/,m=t,v=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(o){r="stack"in o}return!("stack"in i)&&r&&"number"===typeof Error.stackTraceLimit?(g=e,m=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(o){e.stack=o.stack}Error.stackTraceLimit-=6}):(m=function(e,t){return"string"===typeof e?e:"object"!==typeof t&&"function"!==typeof t||void 0===t.name||void 0===t.message?Z(t):t.toString()},null)}();"undefined"!==typeof console&&"undefined"!==typeof console.warn&&(a=function(e){console.warn(e)},l.isNode&&t.stderr.isTTY?a=function(e,t){var n=t?"[33m":"[31m";console.warn(n+e+"[0m\n")}:l.isNode||"string"!==typeof(new Error).stack||(a=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var ae={warnings:y,longStackTraces:!1,cancellation:!1,monitoring:!1};return x&&e.longStackTraces(),{longStackTraces:function(){return ae.longStackTraces},warnings:function(){return ae.warnings},cancellation:function(){return ae.cancellation},monitoring:function(){return ae.monitoring},propagateFromFunction:function(){return M},boundValueFunction:function(){return I},checkForgottenReturns:z,setBounds:re,warn:j,deprecated:W,CapturedTrace:ie,fireDomEvent:D,fireGlobalEvent:C}}}).call(this,n("4362"))},2280:function(e,t){(function(){e.exports=function(){function e(e,t,n){if(this.options=e.options,this.stringify=e.stringify,this.parent=e,null==t)throw new Error("Missing attribute name. "+this.debugInfo(t));if(null==n)throw new Error("Missing attribute value. "+this.debugInfo(t));this.name=this.stringify.attName(t),this.value=this.stringify.attValue(n)}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(e){return this.options.writer.set(e).attribute(this)},e.prototype.debugInfo=function(e){return e=e||this.name,null==e?"parent: <"+this.parent.name+">":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e}()}).call(this)},"22bd":function(e,t,n){"use strict";e.exports=function(e,t,r,i,o){var a=n("6df9"),s=a.tryCatch;e.method=function(n){if("function"!==typeof n)throw new e.TypeError("expecting a function but got "+a.classString(n));return function(){var r=new e(t);r._captureStackTrace(),r._pushContext();var i=s(n).apply(this,arguments),a=r._popContext();return o.checkForgottenReturns(i,a,"Promise.method",r),r._resolveFromSyncValue(i),r}},e.attempt=e["try"]=function(n){if("function"!==typeof n)return i("expecting a function but got "+a.classString(n));var r,c=new e(t);if(c._captureStackTrace(),c._pushContext(),arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],l=arguments[2];r=a.isArray(u)?s(n).apply(l,u):s(n).call(l,u)}else r=s(n)();var d=c._popContext();return o.checkForgottenReturns(r,d,"Promise.try",c),c._resolveFromSyncValue(r),c},e.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},2401:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},i=n("string"),o=n("object"),a=n("array"),s=r("boolean"),c=r("function"),u=r("number"),l=function(){},d=function(e){return function(){return e}},f=function(e){return e},h=function(e,t){return e===t},p=function(e){return function(t){return!e(t)}},g=d(!1),m=d(!0),v=function(){return b},b=function(){var e=function(e){return e()},t=f,n={fold:function(e,t){return e()},isSome:g,isNone:m,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:v,each:l,bind:v,exists:g,forall:m,filter:function(){return v()},toArray:function(){return[]},toString:d("none()")};return n}(),y=function(e){var t=d(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:m,isNone:g,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return y(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:b},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},x=function(e){return null===e||void 0===e?b:y(e)},_={some:y,none:v,from:x},w=Array.prototype.slice,D=Array.prototype.push,C=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},k=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},T=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},S=function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],i=[],o=0,a=e.length;o<a;o++){var s=e[o],c=t(s);c!==n&&(r.push(i),i=[]),n=c,i.push(s)}return 0!==i.length&&r.push(i),r},A=function(e,t,n){return k(e,(function(e,r){n=t(n,e,r)})),n},E=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return _.some(o);if(n(o,r))break}return _.none()},U=function(e,t){return E(e,t,g)},O=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);D.apply(t,e[n])}return t},F=function(e,t){return O(C(e,t))},P=function(e){var t=w.call(e,0);return t.reverse(),t},R=function(e,t){return t>=0&&t<e.length?_.some(e[t]):_.none()},N=function(e){return R(e,0)},M=function(e){return R(e,e.length-1)},I=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return _.none()},B=function(){return B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},B.apply(this,arguments)};function L(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var z=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},W=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),c=i||!o&&a&&r("(min-device-width:768px)"),u=o||a&&!c,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!u&&!c&&!l;return{isiPad:d(i),isiPhone:d(o),isTablet:d(c),isPhone:d(u),isTouch:d(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:d(l),isDesktop:d(f)}},j=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},H=function(e,t){var n=j(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return $(r(1),r(2))},V=function(e,t){var n=String(t).toLowerCase();return 0===e.length?q():H(e,n)},q=function(){return $(0,0)},$=function(e,t){return{major:e,minor:t}},G={nu:$,detect:V,unknown:q},X=function(e,t){return I(t.brands,(function(t){var n=t.brand.toLowerCase();return U(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:G.nu(parseInt(t.version,10),0)}}))}))},Y=function(e,t){var n=String(t).toLowerCase();return U(e,(function(e){return e.search(n)}))},K=function(e,t){return Y(e,t).map((function(e){var n=G.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Z=function(e,t){return Y(e,t).map((function(e){var n=G.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},J=function(e,t){return-1!==e.indexOf(t)},Q=function(e){return function(t){return t.replace(e,"")}},ee=Q(/^\s+|\s+$/g),te=function(e){return e.length>0},ne=function(e){return!te(e)},re=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ie=function(e){return function(t){return J(t,e)}},oe=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return J(e,"edge/")&&J(e,"chrome")&&J(e,"safari")&&J(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,re],search:function(e){return J(e,"chrome")&&!J(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return J(e,"msie")||J(e,"trident")}},{name:"Opera",versionRegexes:[re,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ie("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ie("firefox")},{name:"Safari",versionRegexes:[re,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(J(e,"safari")||J(e,"mobile/"))&&J(e,"applewebkit")}}],ae=[{name:"Windows",search:ie("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return J(e,"iphone")||J(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ie("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ie("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ie("linux"),versionRegexes:[]},{name:"Solaris",search:ie("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ie("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ie("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],se={browsers:d(oe),oses:d(ae)},ce="Edge",ue="Chrome",le="IE",de="Opera",fe="Firefox",he="Safari",pe=function(){return ge({current:void 0,version:G.unknown()})},ge=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(ce),isChrome:r(ue),isIE:r(le),isOpera:r(de),isFirefox:r(fe),isSafari:r(he)}},me={unknown:pe,nu:ge,edge:d(ce),chrome:d(ue),ie:d(le),opera:d(de),firefox:d(fe),safari:d(he)},ve="Windows",be="iOS",ye="Android",xe="Linux",_e="OSX",we="Solaris",De="FreeBSD",Ce="ChromeOS",ke=function(){return Te({current:void 0,version:G.unknown()})},Te=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(ve),isiOS:r(be),isAndroid:r(ye),isOSX:r(_e),isLinux:r(xe),isSolaris:r(we),isFreeBSD:r(De),isChromeOS:r(Ce)}},Se={unknown:ke,nu:Te,windows:d(ve),ios:d(be),android:d(ye),linux:d(xe),osx:d(_e),solaris:d(we),freebsd:d(De),chromeos:d(Ce)},Ae=function(e,t,n){var r=se.browsers(),i=se.oses(),o=t.bind((function(e){return X(r,e)})).orThunk((function(){return K(r,e)})).fold(me.unknown,me.nu),a=Z(i,e).fold(Se.unknown,Se.nu),s=W(a,o,e,n);return{browser:o,os:a,deviceType:s}},Ee={detect:Ae},Ue=function(e){return window.matchMedia(e).matches},Oe=z((function(){return Ee.detect(navigator.userAgent,_.from(navigator.userAgentData),Ue)})),Fe=function(){return Oe()},Pe=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Re=function(e,t){return Pe(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Ne=1,Me=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Le(r.childNodes[0])},Ie=function(e,t){var n=t||document,r=n.createElement(e);return Le(r)},Be=function(e,t){var n=t||document,r=n.createTextNode(e);return Le(r)},Le=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},ze=function(e,t,n){return _.from(e.dom.elementFromPoint(t,n)).map(Le)},We={fromHtml:Me,fromTag:Ie,fromText:Be,fromDom:Le,fromPoint:ze},je=function(e,t){var n=e.dom;if(n.nodeType!==Ne)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},He=function(e,t){return e.dom===t.dom},Ve=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},qe=function(e,t){return Re(e.dom,t.dom)},$e=function(e,t){return Fe().browser.isIE()?qe(e,t):Ve(e,t)},Ge=je,Xe=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Ye=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Ke=tinymce.util.Tools.resolve("tinymce.util.VK"),Ze=Object.keys,Je=function(e,t){for(var n=Ze(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},Qe=function(e){return function(t,n){e[n]=t}},et=function(e,t,n,r){var i={};return Je(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},tt=function(e,t){var n={};return et(e,t,Qe(n),l),n};"undefined"!==typeof window?window:Function("return this;")();var nt=function(e){var t=e.dom.nodeName;return t.toLowerCase()},rt=function(e){return e.dom.nodeType},it=function(e){return function(t){return rt(t)===e}},ot=it(Ne),at=function(e){return function(t){return ot(t)&&nt(t)===e}},st=function(e,t,n){if(!(i(n)||s(n)||u(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},ct=function(e,t){var n=e.dom;Je(t,(function(e,t){st(n,t,e)}))},ut=function(e){return A(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},lt=function(e){return _.from(e.dom.parentNode).map(We.fromDom)},dt=function(e){return C(e.dom.childNodes,We.fromDom)},ft=function(e,t){var n=e.dom.childNodes;return _.from(n[t]).map(We.fromDom)},ht=function(e){return ft(e,0)},pt=function(e){return ft(e,e.dom.childNodes.length-1)},gt=function(e,t){var n=lt(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},mt=function(e,t){e.dom.appendChild(t.dom)},vt=function(e,t){k(t,(function(t){gt(e,t)}))},bt=function(e,t){k(t,(function(t){mt(e,t)}))},yt=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},xt=function(e,t){return We.fromDom(e.dom.cloneNode(t))},_t=function(e){return xt(e,!0)},wt=function(e,t){var n=We.fromTag(t),r=ut(e);return ct(n,r),n},Dt=function(e,t){var n=wt(e,t);gt(e,n);var r=dt(e);return bt(n,r),yt(e),n},Ct=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),kt=tinymce.util.Tools.resolve("tinymce.util.Tools"),Tt=function(e){return function(t){return t&&t.nodeName.toLowerCase()===e}},St=function(e){return function(t){return t&&e.test(t.nodeName)}},At=function(e){return e&&3===e.nodeType},Et=St(/^(OL|UL|DL)$/),Ut=St(/^(OL|UL)$/),Ot=Tt("ol"),Ft=St(/^(LI|DT|DD)$/),Pt=St(/^(DT|DD)$/),Rt=St(/^(TH|TD)$/),Nt=Tt("br"),Mt=function(e){return e.parentNode.firstChild===e},It=function(e,t){return t&&!!e.schema.getTextBlockElements()[t.nodeName]},Bt=function(e,t){return e&&e.nodeName in t},Lt=function(e,t){return!!Nt(t)&&(e.isBlock(t.nextSibling)&&!Nt(t.previousSibling))},zt=function(e,t,n){var r=e.isEmpty(t);return!(n&&e.select("span[data-mce-type=bookmark]",t).length>0)&&r},Wt=function(e,t){return e.isChildOf(t,e.getRoot())},jt=function(e){return e.getParam("lists_indent_on_tab",!0)},Ht=function(e){var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Vt=function(e){return e.getParam("forced_root_block_attrs",{})},qt=function(e,t){var n,r,i,o=e.dom,a=e.schema.getBlockElements(),s=o.createFragment(),c=Ht(e);if(c&&(r=o.create(c),r.tagName===c.toUpperCase()&&o.setAttribs(r,Vt(e)),Bt(t.firstChild,a)||s.appendChild(r)),t)while(n=t.firstChild){var u=n.nodeName;i||"SPAN"===u&&"bookmark"===n.getAttribute("data-mce-type")||(i=!0),Bt(n,a)?(s.appendChild(n),r=null):c?(r||(r=o.create(c),s.appendChild(r)),r.appendChild(n)):s.appendChild(n)}return c?i||r.appendChild(o.create("br",{"data-mce-bogus":"1"})):s.appendChild(o.create("br")),s},$t=Ct.DOM,Gt=function(e,t,n){var r=function(e){kt.each(i,(function(t){e.parentNode.insertBefore(t,n.parentNode)})),$t.remove(e)},i=$t.select('span[data-mce-type="bookmark"]',t),o=qt(e,n),a=$t.createRng();a.setStartAfter(n),a.setEndAfter(t);for(var s=a.extractContents(),c=s.firstChild;c;c=c.firstChild)if("LI"===c.nodeName&&e.dom.isEmpty(c)){$t.remove(c);break}e.dom.isEmpty(s)||$t.insertAfter(s,t),$t.insertAfter(o,t),zt(e.dom,n.parentNode)&&r(n.parentNode),$t.remove(n),zt(e.dom,t)&&$t.remove(t)},Xt=at("dd"),Yt=at("dt"),Kt=function(e,t){Xt(t)?Dt(t,"dt"):Yt(t)&&lt(t).each((function(n){return Gt(e,n.dom,t.dom)}))},Zt=function(e){Yt(e)&&Dt(e,"dd")},Jt=function(e,t,n){k(n,"Indent"===t?Zt:function(t){return Kt(e,t)})},Qt=function(e,t){if(At(e))return{container:e,offset:t};var n=Xe.getNode(e,t);return At(n)?{container:n,offset:t>=e.childNodes.length?n.data.length:0}:n.previousSibling&&At(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&At(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:e,offset:t}},en=function(e){var t=e.cloneRange(),n=Qt(e.startContainer,e.startOffset);t.setStart(n.container,n.offset);var r=Qt(e.endContainer,e.endOffset);return t.setEnd(r.container,r.offset),t},tn=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),nn=function(e,t){var n=t||e.selection.getStart(!0);return e.dom.getParent(n,"OL,UL,DL",ln(e,n))},rn=function(e,t){return e&&1===t.length&&t[0]===e},on=function(e){return T(e.querySelectorAll("ol,ul,dl"),Et)},an=function(e){var t=nn(e),n=e.selection.getSelectedBlocks();return rn(t,n)?on(t):T(n,(function(e){return Et(e)&&t!==e}))},sn=function(e,t){var n=kt.map(t,(function(t){var n=e.dom.getParent(t,"li,dd,dt",ln(e,t));return n||t}));return tn.unique(n)},cn=function(e){var t=e.selection.getSelectedBlocks();return T(sn(e,t),Ft)},un=function(e){return T(cn(e),Pt)},ln=function(e,t){var n=e.dom.getParents(t,"TD,TH");return n.length>0?n[0]:e.getBody()},dn=function(e,t){var n=e.dom.getParents(t,"ol,ul",ln(e,t));return M(n)},fn=function(e){var t=dn(e,e.selection.getStart()),n=T(e.selection.getSelectedBlocks(),Ut);return t.toArray().concat(n)},hn=function(e){var t=fn(e);return pn(e,t)},pn=function(e,t){var n=C(t,(function(t){return dn(e,t).getOr(t)}));return tn.unique(n)},gn=function(e,t,n){return void 0===n&&(n=h),e.exists((function(e){return n(e,t)}))},mn=function(e,t,n){return e.isSome()&&t.isSome()?_.some(n(e.getOrDie(),t.getOrDie())):_.none()},vn=function(e,t){var n=t||document,r=n.createDocumentFragment();return k(e,(function(e){r.appendChild(e.dom)})),We.fromDom(r)},bn=function(e,t,n){return e.fire("ListMutation",{action:t,element:n})},yn=function(e){return void 0!==e.style&&c(e.style.getPropertyValue)},xn=function(e,t,n){if(!i(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);yn(e)&&e.style.setProperty(t,n)},_n=function(e,t,n){var r=e.dom;xn(r,t,n)},wn=function(e,t){mt(e.item,t.list)},Dn=function(e){for(var t=1;t<e.length;t++)wn(e[t-1],e[t])},Cn=function(e,t){mn(M(e),N(t),wn)},kn=function(e,t){var n={list:We.fromTag(t,e),item:We.fromTag("li",e)};return mt(n.list,n.item),n},Tn=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(kn(e,t.listType));return r},Sn=function(e,t){for(var n=0;n<e.length-1;n++)_n(e[n].item,"list-style-type","none");M(e).each((function(e){ct(e.list,t.listAttributes),ct(e.item,t.itemAttributes),bt(e.item,t.content)}))},An=function(e,t){nt(e.list)!==t.listType&&(e.list=Dt(e.list,t.listType)),ct(e.list,t.listAttributes)},En=function(e,t,n){var r=We.fromTag("li",e);return ct(r,t),bt(r,n),r},Un=function(e,t){mt(e.list,t),e.item=t},On=function(e,t,n){var r=t.slice(0,n.depth);return M(r).each((function(t){var r=En(e,n.itemAttributes,n.content);Un(t,r),An(t,n)})),r},Fn=function(e,t,n){var r=Tn(e,n,n.depth-t.length);return Dn(r),Sn(r,n),Cn(t,r),t.concat(r)},Pn=function(e,t){var n=A(t,(function(t,n){return n.depth>t.length?Fn(e,t,n):On(e,t,n)}),[]);return N(n).map((function(e){return e.list}))},Rn=function(e){return Ge(e,"OL,UL")},Nn=function(e){return ht(e).exists(Rn)},Mn=function(e){return pt(e).exists(Rn)},In=function(e){return e.depth>0},Bn=function(e){return e.isSelected},Ln=function(e){var t=dt(e),n=Mn(e)?t.slice(0,-1):t;return C(n,_t)},zn=function(e,t,n){return lt(e).filter(ot).map((function(r){return{depth:t,dirty:!1,isSelected:n,content:Ln(e),itemAttributes:ut(e),listAttributes:ut(r),listType:nt(r)}}))},Wn=function(e,t){switch(e){case"Indent":t.depth++;break;case"Outdent":t.depth--;break;case"Flatten":t.depth=0}t.dirty=!0},jn=function(e,t){e.listType=t.listType,e.listAttributes=B({},t.listAttributes)},Hn=function(e){e.listAttributes=tt(e.listAttributes,(function(e,t){return"start"!==t}))},Vn=function(e,t){var n=e[t].depth,r=function(e){return e.depth===n&&!e.dirty},i=function(e){return e.depth<n};return E(P(e.slice(0,t)),r,i).orThunk((function(){return E(e.slice(t+1),r,i)}))},qn=function(e){return k(e,(function(t,n){Vn(e,n).fold((function(){t.dirty&&Hn(t)}),(function(e){return jn(t,e)}))})),e},$n=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Gn=function(e,t,n,r){return ht(r).filter(Rn).fold((function(){t.each((function(e){He(e.start,r)&&n.set(!0)}));var i=zn(r,e,n.get());t.each((function(e){He(e.end,r)&&n.set(!1)}));var o=pt(r).filter(Rn).map((function(r){return Xn(e,t,n,r)})).getOr([]);return i.toArray().concat(o)}),(function(r){return Xn(e,t,n,r)}))},Xn=function(e,t,n,r){return F(dt(r),(function(r){var i=Rn(r)?Xn:Gn,o=e+1;return i(o,t,n,r)}))},Yn=function(e,t){var n=$n(!1),r=0;return C(e,(function(e){return{sourceList:e,entries:Xn(r,t,n,e)}}))},Kn=function(e,t){var n=qn(t);return C(n,(function(t){var n=vn(t.content);return We.fromDom(qt(e,n.dom))}))},Zn=function(e,t){var n=qn(t);return Pn(e.contentDocument,n).toArray()},Jn=function(e,t){return F(S(t,In),(function(t){var n=N(t).exists(In);return n?Zn(e,t):Kn(e,t)}))},Qn=function(e,t){k(T(e,Bn),(function(e){return Wn(t,e)}))},er=function(e){var t=C(cn(e),We.fromDom);return mn(U(t,p(Nn)),U(P(t),p(Nn)),(function(e,t){return{start:e,end:t}}))},tr=function(e,t,n){var r=Yn(t,er(e));k(r,(function(t){Qn(t.entries,n);var r=Jn(e,t.entries);k(r,(function(t){bn(e,"Indent"===n?"IndentList":"OutdentList",t.dom)})),vt(t.sourceList,r),yt(t.sourceList)}))},nr=function(e,t){var n=C(hn(e),We.fromDom),r=C(un(e),We.fromDom),i=!1;if(n.length||r.length){var o=e.selection.getBookmark();tr(e,n,t),Jt(e,t,r),e.selection.moveToBookmark(o),e.selection.setRng(en(e.selection.getRng())),e.nodeChanged(),i=!0}return i},rr=function(e){return nr(e,"Indent")},ir=function(e){return nr(e,"Outdent")},or=function(e){return nr(e,"Flatten")},ar=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),sr=Ct.DOM,cr=function(e){var t={},n=function(n){var r=e[n?"startContainer":"endContainer"],i=e[n?"startOffset":"endOffset"];if(1===r.nodeType){var o=sr.create("span",{"data-mce-type":"bookmark"});r.hasChildNodes()?(i=Math.min(i,r.childNodes.length-1),n?r.insertBefore(o,r.childNodes[i]):sr.insertAfter(o,r.childNodes[i])):r.appendChild(o),r=o,i=0}t[n?"startContainer":"endContainer"]=r,t[n?"startOffset":"endOffset"]=i};return n(!0),e.collapsed||n(),t},ur=function(e){var t=function(t){var n,r=function(e){var t=e.parentNode.firstChild,n=0;while(t){if(t===e)return n;1===t.nodeType&&"bookmark"===t.getAttribute("data-mce-type")||n++,t=t.nextSibling}return-1},i=n=e[t?"startContainer":"endContainer"],o=e[t?"startOffset":"endOffset"];i&&(1===i.nodeType&&(o=r(i),i=i.parentNode,sr.remove(n),!i.hasChildNodes()&&sr.isBlock(i)&&i.appendChild(sr.create("br"))),e[t?"startContainer":"endContainer"]=i,e[t?"startOffset":"endOffset"]=o)};t(!0),t();var n=sr.createRng();return n.setStart(e.startContainer,e.startOffset),e.endContainer&&n.setEnd(e.endContainer,e.endOffset),en(n)},lr=function(e){switch(e){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},dr=function(e){return/\btox\-/.test(e.className)},fr=function(e,t,n){var r=function(e){var r=E(e.parents,Et,Rt).filter((function(e){return e.nodeName===t&&!dr(e)})).isSome();n(r)},i=e.dom.getParents(e.selection.getNode());return r({parents:i}),e.on("NodeChange",r),function(){return e.off("NodeChange",r)}},hr=function(e,t,n){var r=n["list-style-type"]?n["list-style-type"]:null;e.setStyle(t,"list-style-type",r)},pr=function(e,t){kt.each(t,(function(t,n){e.setAttribute(n,t)}))},gr=function(e,t,n){pr(t,n["list-attributes"]),kt.each(e.select("li",t),(function(e){pr(e,n["list-item-attributes"])}))},mr=function(e,t,n){hr(e,t,n),gr(e,t,n)},vr=function(e,t,n){kt.each(n,(function(n){var r;return e.setStyle(t,(r={},r[n]="",r))}))},br=function(e,t,n,r){var i=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];1===i.nodeType&&(i=i.childNodes[Math.min(o,i.childNodes.length-1)]||i),!n&&Nt(i.nextSibling)&&(i=i.nextSibling);while(i.parentNode!==r){if(It(e,i))return i;if(/^(TD|TH)$/.test(i.parentNode.nodeName))return i;i=i.parentNode}return i},yr=function(e,t,n){for(var r,i=[],o=e.dom,a=br(e,t,!0,n),s=br(e,t,!1,n),c=[],u=a;u;u=u.nextSibling)if(c.push(u),u===s)break;return kt.each(c,(function(t){if(It(e,t))return i.push(t),void(r=null);if(o.isBlock(t)||Nt(t))return Nt(t)&&o.remove(t),void(r=null);var a=t.nextSibling;ar.isBookmarkNode(t)&&(Et(a)||It(e,a)||!a&&t.parentNode===n)?r=null:(r||(r=o.create("p"),t.parentNode.insertBefore(r,t),i.push(r)),r.appendChild(t))})),i},xr=function(e,t,n){var r=e.getStyle(t,"list-style-type"),i=n?n["list-style-type"]:"";return i=null===i?"":i,r===i},_r=function(e,t,n){var r=e.selection.getRng(),i="LI",o=ln(e,e.selection.getStart(!0)),a=e.dom;if("false"!==a.getContentEditable(e.selection.getNode())){t=t.toUpperCase(),"DL"===t&&(i="DT");var s=cr(r),c=yr(e,r,o);kt.each(c,(function(r){var o,s=r.previousSibling,c=r.parentNode;Ft(c)||(s&&Et(s)&&s.nodeName===t&&xr(a,s,n)?(o=s,r=a.rename(r,i),s.appendChild(r)):(o=a.create(t),r.parentNode.insertBefore(o,r),o.appendChild(r),r=a.rename(r,i)),vr(a,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),mr(a,o,n),Tr(e.dom,o))})),e.selection.setRng(ur(s))}},wr=function(e,t){return e&&t&&Et(e)&&e.nodeName===t.nodeName},Dr=function(e,t,n){var r=e.getStyle(t,"list-style-type",!0),i=e.getStyle(n,"list-style-type",!0);return r===i},Cr=function(e,t){return e.className===t.className},kr=function(e,t,n){return wr(t,n)&&Dr(e,t,n)&&Cr(t,n)},Tr=function(e,t){var n,r;if(n=t.nextSibling,kr(e,t,n)){while(r=n.firstChild)t.appendChild(r);e.remove(n)}if(n=t.previousSibling,kr(e,t,n)){while(r=n.lastChild)t.insertBefore(r,t.firstChild);e.remove(n)}},Sr=function(e,t,n,r){if(t.nodeName!==n){var i=e.dom.rename(t,n);mr(e.dom,i,r),bn(e,lr(n),i)}else mr(e.dom,t,r),bn(e,lr(n),t)},Ar=function(e,t,n,r,i){var o=Et(t);if(o&&t.nodeName===r&&!Er(i))or(e);else{_r(e,r,i);var a=cr(e.selection.getRng()),s=o?L([t],n,!0):n;kt.each(s,(function(t){Sr(e,t,r,i)})),e.selection.setRng(ur(a))}},Er=function(e){return"list-style-type"in e},Ur=function(e,t,n,r){if(t!==e.getBody())if(t)if(t.nodeName!==n||Er(r)||dr(t)){var i=cr(e.selection.getRng());mr(e.dom,t,r);var o=e.dom.rename(t,n);Tr(e.dom,o),e.selection.setRng(ur(i)),_r(e,n,r),bn(e,lr(n),o)}else or(e);else _r(e,n,r),bn(e,lr(n),t)},Or=function(e,t,n){var r=nn(e),i=an(e),a=o(n)?n:{};i.length>0?Ar(e,r,i,t,a):Ur(e,r,t,a)},Fr=Ct.DOM,Pr=function(e,t){var n=t.parentNode;if("LI"===n.nodeName&&n.firstChild===t){var r=n.previousSibling;r&&"LI"===r.nodeName?(r.appendChild(t),zt(e,n)&&Fr.remove(n)):Fr.setStyle(n,"listStyleType","none")}if(Et(n)){r=n.previousSibling;r&&"LI"===r.nodeName&&r.appendChild(t)}},Rr=function(e,t){var n=kt.grep(e.select("ol,ul",t));kt.each(n,(function(t){Pr(e,t)}))},Nr=function(e,t,n,r){var i=t.startContainer,o=t.startOffset;if(At(i)&&(n?o<i.data.length:o>0))return i;var a=e.schema.getNonEmptyElements();1===i.nodeType&&(i=Xe.getNode(i,o));var s=new Ye(i,r);n&&Lt(e.dom,i)&&s.next();while(i=s[n?"next":"prev2"]()){if("LI"===i.nodeName&&!i.hasChildNodes())return i;if(a[i.nodeName])return i;if(At(i)&&i.data.length>0)return i}},Mr=function(e,t){var n=t.childNodes;return 1===n.length&&!Et(n[0])&&e.isBlock(n[0])},Ir=function(e,t){Mr(e,t)&&e.remove(t.firstChild,!0)},Br=function(e,t,n){var r,i=Mr(e,n)?n.firstChild:n;if(Ir(e,t),!zt(e,t,!0))while(r=t.firstChild)i.appendChild(r)},Lr=function(e,t,n){var r,i=t.parentNode;if(Wt(e,t)&&Wt(e,n)){Et(n.lastChild)&&(r=n.lastChild),i===n.lastChild&&Nt(i.previousSibling)&&e.remove(i.previousSibling);var o=n.lastChild;o&&Nt(o)&&t.hasChildNodes()&&e.remove(o),zt(e,n,!0)&&e.$(n).empty(),Br(e,t,n),r&&n.appendChild(r);var a=$e(We.fromDom(n),We.fromDom(t)),s=a?e.getParents(t,Et,n):[];e.remove(t),k(s,(function(t){zt(e,t)&&t!==e.getRoot()&&e.remove(t)}))}},zr=function(e,t,n){e.dom.$(n).empty(),Lr(e.dom,t,n),e.selection.setCursorLocation(n,0)},Wr=function(e,t,n,r){var i=e.dom;if(i.isEmpty(r))zr(e,n,r);else{var o=cr(t);Lr(i,n,r),e.selection.setRng(ur(o))}},jr=function(e,t,n,r){var i=cr(t);Lr(e.dom,n,r);var o=ur(i);e.selection.setRng(o)},Hr=function(e,t){var n=e.dom,r=e.selection,i=r.getStart(),o=ln(e,i),a=n.getParent(r.getStart(),"LI",o);if(a){var s=a.parentNode;if(s===e.getBody()&&zt(n,s))return!0;var c=en(r.getRng()),u=n.getParent(Nr(e,c,t,o),"LI",o);if(u&&u!==a)return e.undoManager.transact((function(){t?Wr(e,c,u,a):Mt(a)?ir(e):jr(e,c,a,u)})),!0;if(!u&&!t&&0===c.startOffset&&0===c.endOffset)return e.undoManager.transact((function(){or(e)})),!0}return!1},Vr=function(e,t,n){var r=e.getParent(t.parentNode,e.isBlock,n);e.remove(t),r&&e.isEmpty(r)&&e.remove(r)},qr=function(e,t){var n=e.dom,r=e.selection.getStart(),i=ln(e,r),o=n.getParent(r,n.isBlock,i);if(o&&n.isEmpty(o)){var a=en(e.selection.getRng()),s=n.getParent(Nr(e,a,t,i),"LI",i);if(s)return e.undoManager.transact((function(){Vr(n,o,i),Tr(n,s.parentNode),e.selection.select(s,!0),e.selection.collapse(t)})),!0}return!1},$r=function(e,t){return Hr(e,t)||qr(e,t)},Gr=function(e){var t=e.selection.getStart(),n=ln(e,t),r=e.dom.getParent(t,"LI,DT,DD",n);return!!(r||cn(e).length>0)&&(e.undoManager.transact((function(){e.execCommand("Delete"),Rr(e.dom,e.getBody())})),!0)},Xr=function(e,t){return e.selection.isCollapsed()?$r(e,t):Gr(e)},Yr=function(e){e.on("keydown",(function(t){t.keyCode===Ke.BACKSPACE?Xr(e,!1)&&t.preventDefault():t.keyCode===Ke.DELETE&&Xr(e,!0)&&t.preventDefault()}))},Kr=function(e){return{backspaceDelete:function(t){Xr(e,t)}}},Zr=function(e,t){var n=nn(e);e.undoManager.transact((function(){o(t.styles)&&e.dom.setStyles(n,t.styles),o(t.attrs)&&Je(t.attrs,(function(t,r){return e.dom.setAttrib(n,r,t)}))}))},Jr=function(e){var t=P(ee(e).split("")),n=C(t,(function(e,t){var n=e.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,t)*n}));return A(n,(function(e,t){return e+t}),0)},Qr=function(e){if(e--,e<0)return"";var t=e%26,n=Math.floor(e/26),r=Qr(n),i=String.fromCharCode("A".charCodeAt(0)+t);return r+i},ei=function(e){return/^[A-Z]+$/.test(e)},ti=function(e){return/^[a-z]+$/.test(e)},ni=function(e){return/^[0-9]+$/.test(e)},ri=function(e){return ni(e)?2:ei(e)?0:ti(e)?1:ne(e)?3:4},ii=function(e){switch(ri(e)){case 2:return _.some({listStyleType:_.none(),start:e});case 0:return _.some({listStyleType:_.some("upper-alpha"),start:Jr(e).toString()});case 1:return _.some({listStyleType:_.some("lower-alpha"),start:Jr(e).toString()});case 3:return _.some({listStyleType:_.none(),start:""});case 4:return _.none()}},oi=function(e){var t=parseInt(e.start,10);return gn(e.listStyleType,"upper-alpha")?Qr(t):gn(e.listStyleType,"lower-alpha")?Qr(t).toLowerCase():e.start},ai=function(e){var t=nn(e);Ot(t)&&e.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:oi({start:e.dom.getAttrib(t,"start","1"),listStyleType:_.some(e.dom.getStyle(t,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var n=t.getData();ii(n.start).each((function(t){e.execCommand("mceListUpdate",!1,{attrs:{start:"1"===t.start?"":t.start},styles:{"list-style-type":t.listStyleType.getOr("")}})})),t.close()}})},si=function(e,t){return function(){var n=nn(e);return n&&n.nodeName===t}},ci=function(e){e.addCommand("mceListProps",(function(){ai(e)}))},ui=function(e){e.on("BeforeExecCommand",(function(t){var n=t.command.toLowerCase();"indent"===n?rr(e):"outdent"===n&&ir(e)})),e.addCommand("InsertUnorderedList",(function(t,n){Or(e,"UL",n)})),e.addCommand("InsertOrderedList",(function(t,n){Or(e,"OL",n)})),e.addCommand("InsertDefinitionList",(function(t,n){Or(e,"DL",n)})),e.addCommand("RemoveList",(function(){or(e)})),ci(e),e.addCommand("mceListUpdate",(function(t,n){o(n)&&Zr(e,n)})),e.addQueryStateHandler("InsertUnorderedList",si(e,"UL")),e.addQueryStateHandler("InsertOrderedList",si(e,"OL")),e.addQueryStateHandler("InsertDefinitionList",si(e,"DL"))},li=function(e){e.on("keydown",(function(t){t.keyCode!==Ke.TAB||Ke.metaKeyPressed(t)||e.undoManager.transact((function(){(t.shiftKey?ir(e):rr(e))&&t.preventDefault()}))}))},di=function(e){jt(e)&&li(e),Yr(e)},fi=function(e){var t=function(t){return function(){return e.execCommand(t)}};e.hasPlugin("advlist")||(e.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:t("InsertOrderedList"),onSetup:function(t){return fr(e,"OL",t.setActive)}}),e.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:t("InsertUnorderedList"),onSetup:function(t){return fr(e,"UL",t.setActive)}}))},hi=function(e){var t={text:"List properties...",icon:"ordered-list",onAction:function(){return e.execCommand("mceListProps")},onSetup:function(t){return fr(e,"OL",(function(e){return t.setDisabled(!e)}))}};e.ui.registry.addMenuItem("listprops",t),e.ui.registry.addContextMenu("lists",{update:function(t){var n=nn(e,t);return Ot(n)?["listprops"]:[]}})};function pi(){e.add("lists",(function(e){return!1===e.hasPlugin("rtc",!0)?(di(e),ui(e)):ci(e),fi(e),hi(e),Kr(e)}))}pi()})()},"24e3":function(e,t){var n=e.exports=function(e,t){this._tokens=e,this._startIndex=t||0};n.prototype.head=function(){return this._tokens[this._startIndex]},n.prototype.tail=function(e){return new n(this._tokens,this._startIndex+1)},n.prototype.toArray=function(){return this._tokens.slice(this._startIndex)},n.prototype.end=function(){return this._tokens[this._tokens.length-1]},n.prototype.to=function(e){var t=this.head().source,n=e.head()||e.end();return t.to(n.source)}},"24e8":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},n=function(e,t){return-1!==e.indexOf(t)},r=function(e,n){return t(e,n,0)},i=tinymce.util.Tools.resolve("tinymce.Env"),o=function(){return/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g},a=new RegExp("^"+o().source+"$","i"),s=function(e){return e.getParam("autolink_pattern",a)},c=function(e){return e.getParam("default_link_target",!1)},u=function(e){return e.getParam("link_default_protocol","http","string")},l=function(e){return/^[(\[{ \u00a0]$/.test(e)},d=function(e){return 3===e.nodeType},f=function(e){return 1===e.nodeType},h=function(e){return _(e,-1)},p=function(e){return _(e,0)},g=function(e){return _(e,-1)},m=function(e,t){if(t<0&&(t=0),d(e)){var n=e.data.length;t>n&&(t=n)}return t},v=function(e,t,n){!f(t)||t.hasChildNodes()?e.setStart(t,m(t,n)):e.setStartBefore(t)},b=function(e,t,n){!f(t)||t.hasChildNodes()?e.setEnd(t,m(t,n)):e.setEndAfter(t)},y=function(e){return/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(e)},x=function(e){return/[?!,.;:]/.test(e)},_=function(e,t){var i,o,a,f,h,p,g,m=s(e),_=c(e);if(null===e.dom.getParent(e.selection.getNode(),"a[href]")){var w=e.selection.getRng().cloneRange();if(w.startOffset<5){if(h=w.endContainer.previousSibling,!h){if(!w.endContainer.firstChild||!w.endContainer.firstChild.nextSibling)return;h=w.endContainer.firstChild.nextSibling}if(p=h.length,v(w,h,p),b(w,h,p),w.endOffset<5)return;i=w.endOffset,o=h}else{if(o=w.endContainer,!d(o)&&o.firstChild){while(!d(o)&&o.firstChild)o=o.firstChild;d(o)&&(v(w,o,0),b(w,o,o.nodeValue.length))}i=1===w.endOffset?2:w.endOffset-1-t}var D=i;do{v(w,o,i>=2?i-2:0),b(w,o,i>=1?i-1:0),i-=1,g=w.toString()}while(!l(g)&&i-2>=0);l(w.toString())?(v(w,o,i),b(w,o,D),i+=1):0===w.startOffset?(v(w,o,0),b(w,o,D)):(v(w,o,i),b(w,o,D)),f=w.toString(),x(f.charAt(f.length-1))&&b(w,o,D-1),f=w.toString().trim();var C=f.match(m),k=u(e);if(C){var T=C[0];r(T,"www.")?T=k+"://"+T:n(T,"@")&&!y(T)&&(T="mailto:"+T),a=e.selection.getBookmark(),e.selection.setRng(w),e.execCommand("createlink",!1,T),!1!==_&&e.dom.setAttrib(e.selection.getNode(),"target",_),e.selection.moveToBookmark(a),e.nodeChanged()}}},w=function(e){var t;e.on("keydown",(function(t){if(13===t.keyCode)return g(e)})),i.browser.isIE()?e.on("focus",(function(){if(!t){t=!0;try{e.execCommand("AutoUrlDetect",!1,!0)}catch(n){}}})):(e.on("keypress",(function(t){if(41===t.keyCode||93===t.keyCode||125===t.keyCode)return h(e)})),e.on("keyup",(function(t){if(32===t.keyCode)return p(e)})))};function D(){e.add("autolink",(function(e){w(e)}))}D()})()},2519:function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},i=function(e){return function(t){return r(t)===e}},o=function(e){return function(t){return typeof t===e}},a=i("string"),s=i("array"),c=o("boolean"),u=o("number"),l=function(){},d=function(e){return function(){return e}},f=function(e){return e},h=d(!1),p=d(!0),g="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫！-＃％-＊，-／：；？＠［-］＿｛｝｟-･]",m=d(g),v=function(){return b},b=function(){var e=function(e){return e()},t=f,n={fold:function(e,t){return e()},isSome:h,isNone:p,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:v,each:l,bind:v,exists:h,forall:p,filter:function(){return v()},toArray:function(){return[]},toString:d("none()")};return n}(),y=function(e){var t=d(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:p,isNone:h,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return y(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:b},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},x=function(e){return null===e||void 0===e?b:y(e)},_={some:y,none:v,from:x},w=m,D=tinymce.util.Tools.resolve("tinymce.Env"),C=tinymce.util.Tools.resolve("tinymce.util.Tools"),k=Array.prototype.slice,T=Array.prototype.push,S=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},A=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},E=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},U=function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],i=[],o=0,a=e.length;o<a;o++){var s=e[o],c=t(s);c!==n&&(r.push(i),i=[]),n=c,i.push(s)}return 0!==i.length&&r.push(i),r},O=function(e,t,n){return A(e,(function(e,r){n=t(n,e,r)})),n},F=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);T.apply(t,e[n])}return t},P=function(e,t){return F(S(e,t))},R=function(e,t){var n=k.call(e,0);return n.sort(t),n},N=Object.hasOwnProperty,M=function(e,t){return N.call(e,t)};"undefined"!==typeof window?window:Function("return this;")();var I=9,B=11,L=1,z=3,W=function(e){return e.dom.nodeType},j=function(e){return function(t){return W(t)===e}},H=j(z),V=function(e,t,n){if(!(a(n)||c(n)||u(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},q=function(e,t,n){V(e.dom,t,n)},$=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},G=function(e,t){return $(e,t,Node.DOCUMENT_POSITION_PRECEDING)},X=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Z(r.childNodes[0])},Y=function(e,t){var n=t||document,r=n.createElement(e);return Z(r)},K=function(e,t){var n=t||document,r=n.createTextNode(e);return Z(r)},Z=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},J=function(e,t,n){return _.from(e.dom.elementFromPoint(t,n)).map(Z)},Q={fromHtml:X,fromTag:Y,fromText:K,fromDom:Z,fromPoint:J},ee=function(e){return e.nodeType!==L&&e.nodeType!==I&&e.nodeType!==B||0===e.childElementCount},te=function(e,t){var n=void 0===t?document:t.dom;return ee(n)?[]:S(n.querySelectorAll(e),Q.fromDom)},ne=function(e){return _.from(e.dom.parentNode).map(Q.fromDom)},re=function(e){return S(e.dom.childNodes,Q.fromDom)},ie=function(e,t){return{element:e,offset:t}},oe=function(e,t){var n=re(e);return n.length>0&&t<n.length?ie(n[t],0):ie(e,t)},ae=function(e,t){var n=ne(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},se=function(e,t){e.dom.appendChild(t.dom)},ce=function(e,t){ae(e,t),se(t,e)},ue=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?_.from(t.dom.nodeValue):_.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},le=ue(H,"text"),de=function(e){return le.get(e)},fe=function(e,t){return te(t,e)},he=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),pe=function(e,t){return e.isBlock(t)||M(e.schema.getShortEndedElements(),t.nodeName)},ge=function(e,t){return"false"===e.getContentEditable(t)},me=function(e,t){return"true"===e.getContentEditable(t)&&"false"===e.getContentEditableParent(t.parentNode)},ve=function(e,t){return!e.isBlock(t)&&M(e.schema.getWhiteSpaceElements(),t.nodeName)},be=function(e,t){return pe(e,t)||ge(e,t)||ve(e,t)||me(e,t)},ye=function(e){return 3===e.nodeType},xe=function(){return{sOffset:0,fOffset:0,elements:[]}},_e=function(e,t){return oe(Q.fromDom(e),t)},we=function(e,t,n,r,i,o){void 0===o&&(o=!0);var a=o?t(!1):n;while(a){var s=ge(e,a);if(s||ve(e,a)){var c=s?r.cef(a):r.boundary(a);if(c)break;a=t(!0)}else{if(pe(e,a)){if(r.boundary(a))break}else ye(a)&&r.text(a);if(a===i)break;a=t(!1)}}},De=function(e,t,n,r,i){if(!be(e,n)){var o=e.getParent(r,e.isBlock),a=new he(n,o),s=i?a.next.bind(a):a.prev.bind(a);we(e,s,n,{boundary:p,cef:p,text:function(e){i?t.fOffset+=e.length:t.sOffset+=e.length,t.elements.push(Q.fromDom(e))}})}},Ce=function(e,t,n,r,i,o){void 0===o&&(o=!0);var a=new he(n,t),s=[],c=xe();De(e,c,n,t,!1);var u=function(){return c.elements.length>0&&(s.push(c),c=xe()),!1};return we(e,a.next.bind(a),n,{boundary:u,cef:function(e){return u(),i&&s.push.apply(s,i.cef(e)),!1},text:function(e){c.elements.push(Q.fromDom(e)),i&&i.text(e,c)}},r,o),r&&De(e,c,r,t,!0),u(),s},ke=function(e,t){var n=_e(t.startContainer,t.startOffset),r=n.element.dom,i=_e(t.endContainer,t.endOffset),o=i.element.dom;return Ce(e,t.commonAncestorContainer,r,o,{text:function(e,t){e===o?t.fOffset+=e.length-i.offset:e===r&&(t.sOffset+=n.offset)},cef:function(t){var n=P(fe(Q.fromDom(t),"*[contenteditable=true]"),(function(t){var n=t.dom;return Ce(e,n,n)}));return R(n,(function(e,t){return G(e.elements[0].dom,t.elements[0].dom)?1:-1}))}},!1)},Te=function(e,t){return t.collapsed?[]:ke(e,t)},Se=function(e,t){var n=e.createRng();return n.selectNode(t),Te(e,n)},Ae=function(e,t){return P(t,(function(t){return Se(e,t)}))},Ee=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);var i=t.regex;i.lastIndex=n;var o,a=[];while(o=i.exec(e)){var s=o[t.matchIndex],c=o.index+o[0].indexOf(s),u=c+s.length;if(u>r)break;a.push({start:c,finish:u}),i.lastIndex=u}return a},Ue=function(e,t){var n=O(e,(function(e,n){var r=de(n),i=e.last,o=i+r.length,a=P(t,(function(e,t){return e.start<o&&e.finish>i?[{element:n,start:Math.max(i,e.start)-i,finish:Math.min(o,e.finish)-i,matchId:t}]:[]}));return{results:e.results.concat(a),last:o}}),{results:[],last:0}).results;return U(n,(function(e){return e.matchId}))},Oe=function(e,t){return P(t,(function(t){var n=t.elements,r=S(n,de).join(""),i=Ee(r,e,t.sOffset,r.length-t.fOffset);return Ue(n,i)}))},Fe=function(e,t){E(e,(function(e,n){E(e,(function(e){var r=Q.fromDom(t.cloneNode(!1));q(r,"data-mce-index",n);var i=e.element.dom;if(i.length===e.finish&&0===e.start)ce(e.element,r);else{i.length!==e.finish&&i.splitText(e.finish);var o=i.splitText(e.start);ce(Q.fromDom(o),r)}}))}))},Pe=function(e,t,n,r){var i=Se(e,n),o=Oe(t,i);return Fe(o,r),o.length},Re=function(e,t,n,r){var i=n.getBookmark(),o=e.select("td[data-mce-selected],th[data-mce-selected]"),a=o.length>0?Ae(e,o):Te(e,n.getRng()),s=Oe(t,a);return Fe(s,r),n.moveToBookmark(i),s.length},Ne=function(e){var t=e.getAttribute("data-mce-index");return"number"===typeof t?""+t:t},Me=function(e,t,n,r){var i=e.dom.create("span",{"data-mce-bogus":1});i.className="mce-match-marker";var o=e.getBody();return Ge(e,t,!1),r?Re(e.dom,n,e.selection,i):Pe(e.dom,n,o,i)},Ie=function(e){var t=e.parentNode;e.firstChild&&t.insertBefore(e.firstChild,e),e.parentNode.removeChild(e)},Be=function(e,t){var n=[],r=C.toArray(e.getBody().getElementsByTagName("span"));if(r.length)for(var i=0;i<r.length;i++){var o=Ne(r[i]);null!==o&&o.length&&(o===t.toString()&&n.push(r[i]))}return n},Le=function(e,t,n){var r=t.get(),i=r.index,o=e.dom;n=!1!==n,n?i+1===r.count?i=0:i++:i-1===-1?i=r.count-1:i--,o.removeClass(Be(e,r.index),"mce-match-marker-selected");var a=Be(e,i);return a.length?(o.addClass(Be(e,i),"mce-match-marker-selected"),e.selection.scrollIntoView(a[0]),i):-1},ze=function(e,t){var n=t.parentNode;e.remove(t),e.isEmpty(n)&&e.remove(n)},We=function(e,t){var n=e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").replace(/\s/g,"[^\\S\\r\\n\\uFEFF]"),r="("+n+")";return t?"(?:^|\\s|"+w()+")"+r+"(?=$|\\s|"+w()+")":r},je=function(e,t,n,r,i,o){var a=e.selection,s=We(n,i),c=a.isForward(),u={regex:new RegExp(s,r?"g":"gi"),matchIndex:1},l=Me(e,t,u,o);if(D.browser.isSafari()&&a.setRng(a.getRng(),c),l){var d=Le(e,t,!0);t.set({index:d,count:l,text:n,matchCase:r,wholeWord:i,inSelection:o})}return l},He=function(e,t){var r=Le(e,t,!0);t.set(n(n({},t.get()),{index:r}))},Ve=function(e,t){var r=Le(e,t,!1);t.set(n(n({},t.get()),{index:r}))},qe=function(e){var t=Ne(e);return null!==t&&t.length>0},$e=function(e,t,r,i,o){var a,s=t.get(),c=s.index,u=c;i=!1!==i;for(var l=e.getBody(),d=C.grep(C.toArray(l.getElementsByTagName("span")),qe),f=0;f<d.length;f++){var h=Ne(d[f]),p=a=parseInt(h,10);if(o||p===s.index){r.length?(d[f].firstChild.nodeValue=r,Ie(d[f])):ze(e.dom,d[f]);while(d[++f]){if(p=parseInt(Ne(d[f]),10),p!==a){f--;break}ze(e.dom,d[f])}i&&u--}else a>c&&d[f].setAttribute("data-mce-index",String(a-1))}return t.set(n(n({},s),{count:o?0:s.count-1,index:u})),i?He(e,t):Ve(e,t),!o&&t.get().count>0},Ge=function(e,t,r){for(var i,o,a=t.get(),s=C.toArray(e.getBody().getElementsByTagName("span")),c=0;c<s.length;c++){var u=Ne(s[c]);null!==u&&u.length&&(u===a.index.toString()&&(i||(i=s[c].firstChild),o=s[c].firstChild),Ie(s[c]))}if(t.set(n(n({},a),{index:-1,count:0,text:""})),i&&o){var l=e.dom.createRng();return l.setStart(i,0),l.setEnd(o,o.data.length),!1!==r&&e.selection.setRng(l),l}},Xe=function(e,t){return t.get().count>1},Ye=function(e,t){return t.get().count>1},Ke=function(e,t){var n=function(n){return Ge(e,t,n)},r=function(n,r,i,o){return void 0===o&&(o=!1),je(e,t,n,r,i,o)},i=function(){return He(e,t)},o=function(){return Ve(e,t)},a=function(n,r,i){return $e(e,t,n,r,i)};return{done:n,find:r,next:i,prev:o,replace:a}},Ze=function(t){var n=e(_.none()),r=function(){return n.get().each(t)},i=function(){r(),n.set(_.none())},o=function(){return n.get().isSome()},a=function(){return n.get()},s=function(e){r(),n.set(_.some(e))};return{clear:i,isSet:o,get:a,set:s}},Je=function(){var e=Ze(l),t=function(t){return e.get().each(t)};return n(n({},e),{on:t})},Qe=function(e,t){var r=Je();e.undoManager.add();var i=C.trim(e.selection.getContent({format:"text"})),o=function(n){var r=Xe(e,t)?n.enable:n.disable;r("next");var i=Ye(e,t)?n.enable:n.disable;i("prev")},a=function(e){var r=e.getData(),i=t.get();t.set(n(n({},i),{matchCase:r.matchcase,wholeWord:r.wholewords,inSelection:r.inselection}))},s=function(e,t){var n=["replace","replaceall","prev","next"],r=t?e.disable:e.enable;A(n,r)},c=function(t){e.windowManager.alert("Could not find the specified string.",(function(){t.focus("findtext")}))},u=function(e,t){D.browser.isSafari()&&D.deviceType.isTouch()&&("find"===t||"replace"===t||"replaceall"===t)&&e.focus(t)},l=function(n){Ge(e,t,!1),s(n,!0),o(n)},d=function(n){var r=n.getData(),i=t.get();if(r.findtext.length){if(i.text===r.findtext&&i.matchCase===r.matchcase&&i.wholeWord===r.wholewords)He(e,t);else{var a=je(e,t,r.findtext,r.matchcase,r.wholewords,r.inselection);a<=0&&c(n),s(n,0===a)}o(n)}else l(n)},f=t.get(),h={findtext:i,replacetext:"",wholewords:f.wholeWord,matchcase:f.matchCase,inselection:f.inSelection},p={title:"Find and Replace",size:"normal",body:{type:"panel",items:[{type:"bar",items:[{type:"input",name:"findtext",placeholder:"Find",maximized:!0,inputMode:"search"},{type:"button",name:"prev",text:"Previous",icon:"action-prev",disabled:!0,borderless:!0},{type:"button",name:"next",text:"Next",icon:"action-next",disabled:!0,borderless:!0}]},{type:"input",name:"replacetext",placeholder:"Replace with",inputMode:"search"}]},buttons:[{type:"menu",name:"options",icon:"preferences",tooltip:"Preferences",align:"start",items:[{type:"togglemenuitem",name:"matchcase",text:"Match case"},{type:"togglemenuitem",name:"wholewords",text:"Find whole words only"},{type:"togglemenuitem",name:"inselection",text:"Find in selection"}]},{type:"custom",name:"find",text:"Find",primary:!0},{type:"custom",name:"replace",text:"Replace",disabled:!0},{type:"custom",name:"replaceall",text:"Replace all",disabled:!0}],initialData:h,onChange:function(e,n){"findtext"===n.name&&t.get().count>0&&l(e)},onAction:function(n,r){var i=n.getData();switch(r.name){case"find":d(n);break;case"replace":$e(e,t,i.replacetext)?o(n):l(n);break;case"replaceall":$e(e,t,i.replacetext,!0,!0),l(n);break;case"prev":Ve(e,t),o(n);break;case"next":He(e,t),o(n);break;case"matchcase":case"wholewords":case"inselection":a(n),l(n);break}u(n,r.name)},onSubmit:function(e){d(e),u(e,"find")},onClose:function(){e.focus(),Ge(e,t),e.undoManager.add()}};r.set(e.windowManager.open(p,{inline:"toolbar"}))},et=function(e,t){e.addCommand("SearchReplace",(function(){Qe(e,t)}))},tt=function(e,t){return function(){Qe(e,t)}},nt=function(e,t){e.ui.registry.addMenuItem("searchreplace",{text:"Find and replace...",shortcut:"Meta+F",onAction:tt(e,t),icon:"search"}),e.ui.registry.addButton("searchreplace",{tooltip:"Find and replace",onAction:tt(e,t),icon:"search"}),e.shortcuts.add("Meta+F","",tt(e,t))};function rt(){t.add("searchreplace",(function(t){var n=e({index:-1,count:0,text:"",matchCase:!1,wholeWord:!1,inSelection:!1});return et(t,n),nt(t,n),Ke(t,n)}))}rt()})()},2639:function(e,t,n){e.exports=function(){return new Worker(n.p+"e5d0f237850f4ec00dfa.worker.js")}},"28a0":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},2900:function(e,t){t.readContentTypesFromXml=r;var n={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};function r(e){var t={},n={};return e.children.forEach((function(e){if("content-types:Default"===e.name&&(t[e.attributes.Extension]=e.attributes.ContentType),"content-types:Override"===e.name){var r=e.attributes.PartName;"/"===r.charAt(0)&&(r=r.substring(1)),n[r]=e.attributes.ContentType}})),i(n,t)}function i(e,t){return{findContentType:function(r){var i=e[r];if(i)return i;var o=r.split("."),a=o[o.length-1];if(t.hasOwnProperty(a))return t[a];var s=n[a.toLowerCase()];return s?"image/"+s:null}}}t.defaultContentTypes=i({},{})},"2b32":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hex=t.dec=t.codePoint=void 0;for(var i=r(n("5580")),o={},a=String.fromCodePoint?String.fromCodePoint:g,s=0,c=i.default;s<c.length;s++){var u=c[s],l=parseInt(u["Unicode dec"],10),d={codePoint:l,string:a(l)};o[u["Typeface name"].toUpperCase()+"_"+u["Dingbat dec"]]=d}function f(e,t){return o[e.toUpperCase()+"_"+t]}function h(e,t){return f(e,parseInt(t,10))}function p(e,t){return f(e,parseInt(t,16))}function g(e){if(e<=65535)return String.fromCharCode(e);var t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}t.codePoint=f,t.dec=h,t.hex=p},"2b3c":function(e,t,n){},"2c67":function(e,t,n){var r=n("ebf8");function i(){function e(e){return r.reject(new Error("could not open external image: '"+e+"'\ncannot open linked files from a web browser"))}return{read:e}}t.Files=i},"2ddd":function(e,t,n){},"2eda":function(e,t,n){},"2f47":function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return r})),n.d(t,"p",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"o",(function(){return c})),n.d(t,"q",(function(){return u})),n.d(t,"t",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"r",(function(){return f})),n.d(t,"s",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"m",(function(){return g})),n.d(t,"j",(function(){return m})),n.d(t,"l",(function(){return v})),n.d(t,"g",(function(){return b})),n.d(t,"f",(function(){return y})),n.d(t,"h",(function(){return x})),n.d(t,"n",(function(){return _})),n.d(t,"b",(function(){return w}));var r="1.13.6",i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||Function("return this")()||{},o=Array.prototype,a=Object.prototype,s="undefined"!==typeof Symbol?Symbol.prototype:null,c=o.push,u=o.slice,l=a.toString,d=a.hasOwnProperty,f="undefined"!==typeof ArrayBuffer,h="undefined"!==typeof DataView,p=Array.isArray,g=Object.keys,m=Object.create,v=f&&ArrayBuffer.isView,b=isNaN,y=isFinite,x=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],w=Math.pow(2,53)-1}).call(this,n("c8ba"))},"2fec":function(e,t,n){n("24e8")},3:function(e,t){},3022:function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},i=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),c=r[n];n<o;c=r[++n])y(c)||!T(c)?a+=" "+c:a+=" "+s(c);return a},t.deprecate=function(n,r){if("undefined"!==typeof e&&!0===e.noDeprecation)return n;if("undefined"===typeof e)return function(){return t.deprecate(n,r).apply(this,arguments)};var i=!1;function o(){if(!i){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),i=!0}return n.apply(this,arguments)}return o};var o,a={};function s(e,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),b(n)?r.showHidden=n:n&&t._extend(r,n),C(r.showHidden)&&(r.showHidden=!1),C(r.depth)&&(r.depth=2),C(r.colors)&&(r.colors=!1),C(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),d(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function u(e,t){return e}function l(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function d(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return w(i)||(i=d(e,i,r)),i}var o=f(e,n);if(o)return o;var a=Object.keys(n),s=l(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),A(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(n);if(0===a.length){if(E(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(k(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return e.stylize(Date.prototype.toString.call(n),"date");if(A(n))return h(n)}var u,b="",y=!1,x=["{","}"];if(v(n)&&(y=!0,x=["[","]"]),E(n)){var _=n.name?": "+n.name:"";b=" [Function"+_+"]"}return k(n)&&(b=" "+RegExp.prototype.toString.call(n)),S(n)&&(b=" "+Date.prototype.toUTCString.call(n)),A(n)&&(b=" "+h(n)),0!==a.length||y&&0!=n.length?r<0?k(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=y?p(e,n,r,s,a):a.map((function(t){return g(e,n,r,s,t,y)})),e.seen.pop(),m(u,b,x)):x[0]+b+x[1]}function f(e,t){if(C(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return _(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)N(t,String(a))?o.push(g(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(g(e,t,n,r,i,!0))})),o}function g(e,t,n,r,i,o){var a,s,c;if(c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},c.get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),N(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=y(n)?d(e,c.value,null):d(e,c.value,n-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n"))):s=e.stylize("[Circular]","special")),C(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function v(e){return Array.isArray(e)}function b(e){return"boolean"===typeof e}function y(e){return null===e}function x(e){return null==e}function _(e){return"number"===typeof e}function w(e){return"string"===typeof e}function D(e){return"symbol"===typeof e}function C(e){return void 0===e}function k(e){return T(e)&&"[object RegExp]"===O(e)}function T(e){return"object"===typeof e&&null!==e}function S(e){return T(e)&&"[object Date]"===O(e)}function A(e){return T(e)&&("[object Error]"===O(e)||e instanceof Error)}function E(e){return"function"===typeof e}function U(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function O(e){return Object.prototype.toString.call(e)}function F(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(C(o)&&(o=Object({NODE_ENV:"production",VUE_APP_BASE_API:"",BASE_URL:""}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=v,t.isBoolean=b,t.isNull=y,t.isNullOrUndefined=x,t.isNumber=_,t.isString=w,t.isSymbol=D,t.isUndefined=C,t.isRegExp=k,t.isObject=T,t.isDate=S,t.isError=A,t.isFunction=E,t.isPrimitive=U,t.isBuffer=n("d60a");var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var e=new Date,t=[F(e.getHours()),F(e.getMinutes()),F(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",R(),t.format.apply(t,arguments))},t.inherits=n("28a0"),t._extend=function(e,t){if(!t||!T(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e};var M="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function B(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};t.apply(this,n).then((function(t){e.nextTick(a,null,t)}),(function(t){e.nextTick(I,t,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,r(t)),n}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t=e[M];if("function"!==typeof t)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(a){n(a)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),M&&Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=M,t.callbackify=B}).call(this,n("4362"))},3154:function(e,t,n){n("f034")},"335c":function(e,t,n){var r=n("c46f"),i=n("5ddd");function o(e,t){return a([c(e,t,{fresh:!0})])}function a(e){return new s(e.map((function(e){return r.isString(e)?c(e):e})))}function s(e){this._elements=e}function c(e,t,n){return n=n||{},new u(e,t,n)}function u(e,t,n){var i={};r.isArray(e)?(e.forEach((function(e){i[e]=!0})),e=e[0]):i[e]=!0,this.tagName=e,this.tagNames=i,this.attributes=t||{},this.fresh=n.fresh,this.separator=n.separator}t.topLevelElement=o,t.elements=a,t.element=c,s.prototype.wrap=function(e){for(var t=e(),n=this._elements.length-1;n>=0;n--)t=this._elements[n].wrapNodes(t);return t},u.prototype.matchesElement=function(e){return this.tagNames[e.tagName]&&r.isEqual(this.attributes||{},e.attributes||{})},u.prototype.wrap=function(e){return this.wrapNodes(e())},u.prototype.wrapNodes=function(e){return[i.elementWithTag(this,e)]},t.empty=a([]),t.ignore={wrap:function(){return[]}}},"33cb":function(e,t,n){"use strict";var r=n("6df9"),i=r.maybeWrapAsError,o=n("8d16"),a=o.OperationalError,s=n("0341");function c(e){return e instanceof Error&&s.getPrototypeOf(e)===Error.prototype}var u=/^(?:name|message|stack|cause)$/;function l(e){var t;if(c(e)){t=new a(e),t.name=e.name,t.message=e.message,t.stack=e.stack;for(var n=s.keys(e),i=0;i<n.length;++i){var o=n[i];u.test(o)||(t[o]=e[o])}return t}return r.markAsOriginatingFromRejection(e),e}function d(e,t){return function(n,r){if(null!==e){if(n){var o=l(i(n));e._attachExtraTrace(o),e._reject(o)}else if(t){for(var a=arguments.length,s=new Array(Math.max(a-1,0)),c=1;c<a;++c)s[c-1]=arguments[c];e._fulfill(s)}else e._fulfill(r);e=null}}}e.exports=d},3440:function(e,t,n){},"365e":function(e,t,n){n("cf08")},3699:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=r("string"),o=r("object"),a=r("array"),s=function(e){return null===e||void 0===e},c=function(e){return!s(e)},u=function(){},l=function(e){return function(){return e}},d=function(e){return e},f=l(!1),h=l(!0),p=function(){return g},g=function(){var e=function(e){return e()},t=d,n={fold:function(e,t){return e()},isSome:f,isNone:h,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:l(null),getOrUndefined:l(void 0),or:t,orThunk:e,map:p,each:u,bind:p,exists:f,forall:h,filter:function(){return p()},toArray:function(){return[]},toString:l("none()")};return n}(),m=function(e){var t=l(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:h,isNone:f,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return m(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:g},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},v=function(e){return null===e||void 0===e?g:m(e)},b={some:m,none:p,from:v},y=Array.prototype.push,x=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},_=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);y.apply(t,e[n])}return t},w=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},D=Object.keys,C=Object.hasOwnProperty,k=function(e,t){for(var n=D(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},T=function(e,t){return S(e,t)?b.from(e[t]):b.none()},S=function(e,t){return C.call(e,t)},A=function(e){return e.getParam("media_scripts")},E=function(e){return e.getParam("audio_template_callback")},U=function(e){return e.getParam("video_template_callback")},O=function(e){return e.getParam("media_live_embeds",!0)},F=function(e){return e.getParam("media_filter_html",!0)},P=function(e){return e.getParam("media_url_resolver")},R=function(e){return e.getParam("media_alt_source",!0)},N=function(e){return e.getParam("media_poster",!0)},M=function(e){return e.getParam("media_dimensions",!0)},I=tinymce.util.Tools.resolve("tinymce.util.Tools"),B=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),L=tinymce.util.Tools.resolve("tinymce.html.SaxParser"),z=function(e,t){if(e)for(var n=0;n<e.length;n++)if(-1!==t.indexOf(e[n].filter))return e[n]},W=B.DOM,j=function(e){return e.replace(/px$/,"")},H=function(e){var t=e.map.style,n=t?W.parseStyle(t):{};return{type:"ephox-embed-iri",source:e.map["data-ephox-embed-iri"],altsource:"",poster:"",width:T(n,"max-width").map(j).getOr(""),height:T(n,"max-height").map(j).getOr("")}},V=function(e,t){var n=w(!1),r={};return L({validate:!1,allow_conditional_comments:!0,start:function(t,i){if(n.get());else if(S(i.map,"data-ephox-embed-iri"))n.set(!0),r=H(i);else{if(r.source||"param"!==t||(r.source=i.map.movie),"iframe"!==t&&"object"!==t&&"embed"!==t&&"video"!==t&&"audio"!==t||(r.type||(r.type=t),r=I.extend(i.map,r)),"script"===t){var o=z(e,i.map.src);if(!o)return;r={type:"script",source:i.map.src,width:String(o.width),height:String(o.height)}}"source"===t&&(r.source?r.altsource||(r.altsource=i.map.src):r.source=i.map.src),"img"!==t||r.poster||(r.poster=i.map.src)}}}).parse(t),r.source=r.source||r.src||r.data,r.altsource=r.altsource||"",r.poster=r.poster||"",r},q=function(e){var t={mp3:"audio/mpeg",m4a:"audio/x-m4a",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",ogg:"video/ogg",swf:"application/x-shockwave-flash"},n=e.toLowerCase().split(".").pop(),r=t[n];return r||""},$=tinymce.util.Tools.resolve("tinymce.html.Schema"),G=tinymce.util.Tools.resolve("tinymce.html.Writer"),X=B.DOM,Y=function(e){return/^[0-9.]+$/.test(e)?e+"px":e},K=function(e,t){k(t,(function(t,n){var r=""+t;if(e.map[n]){var i=e.length;while(i--){var o=e[i];o.name===n&&(r?(e.map[n]=r,o.value=r):(delete e.map[n],e.splice(i,1)))}}else r&&(e.push({name:n,value:r}),e.map[n]=r)}))},Z=function(e,t){var n=t.map.style,r=n?X.parseStyle(n):{};r["max-width"]=Y(e.width),r["max-height"]=Y(e.height),K(t,{style:X.serializeStyle(r)})},J=["source","altsource"],Q=function(e,t,n){var r,i=G(),o=w(!1),a=0;return L({validate:!1,allow_conditional_comments:!0,comment:function(e){i.comment(e)},cdata:function(e){i.cdata(e)},text:function(e,t){i.text(e,t)},start:function(e,s,c){if(o.get());else if(S(s.map,"data-ephox-embed-iri"))o.set(!0),Z(t,s);else{switch(e){case"video":case"object":case"embed":case"img":case"iframe":void 0!==t.height&&void 0!==t.width&&K(s,{width:t.width,height:t.height});break}if(n)switch(e){case"video":K(s,{poster:t.poster,src:""}),t.altsource&&K(s,{src:""});break;case"iframe":K(s,{src:t.source});break;case"source":if(a<2&&(K(s,{src:t[J[a]],type:t[J[a]+"mime"]}),!t[J[a]]))return;a++;break;case"img":if(!t.poster)return;r=!0;break}}i.start(e,s,c)},end:function(e){if(!o.get()){if("video"===e&&n)for(var s=0;s<2;s++)if(t[J[s]]){var c=[];c.map={},a<=s&&(K(c,{src:t[J[s]],type:t[J[s]+"mime"]}),i.start("source",c,!0))}if(t.poster&&"object"===e&&n&&!r){var u=[];u.map={},K(u,{src:t.poster,width:t.width,height:t.height}),i.start("img",u,!0)}}i.end(e)}},$({})).parse(e),i.getContent()},ee=[{regex:/youtu\.be\/([\w\-_\?&=.]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/youtube\.com(.+)v=([^&]+)(&([a-z0-9&=\-_]+))?/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$2?$4",allowFullscreen:!0},{regex:/youtube.com\/embed\/([a-z0-9\?&=\-_]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/vimeo\.com\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$1?title=0&byline=0&portrait=0&color=8dc7dc",allowFullscreen:!0},{regex:/vimeo\.com\/(.*)\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$2?title=0&amp;byline=0",allowFullscreen:!0},{regex:/maps\.google\.([a-z]{2,3})\/maps\/(.+)msid=(.+)/,type:"iframe",w:425,h:350,url:'maps.google.com/maps/ms?msid=$2&output=embed"',allowFullscreen:!1},{regex:/dailymotion\.com\/video\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0},{regex:/dai\.ly\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0}],te=function(e){var t=e.match(/^(https?:\/\/|www\.)(.+)$/i);return t&&t.length>1?"www."===t[1]?"https://":t[1]:"https://"},ne=function(e,t){for(var n=te(t),r=e.regex.exec(t),i=n+e.url,o=function(e){i=i.replace("$"+e,(function(){return r[e]?r[e]:""}))},a=0;a<r.length;a++)o(a);return i.replace(/\?$/,"")},re=function(e){var t=ee.filter((function(t){return t.regex.test(e)}));return t.length>0?I.extend({},t[0],{url:ne(t[0],e)}):null},ie=function(e){var t=e.allowfullscreen?' allowFullscreen="1"':"";return'<iframe src="'+e.source+'" width="'+e.width+'" height="'+e.height+'"'+t+"></iframe>"},oe=function(e){var t='<object data="'+e.source+'" width="'+e.width+'" height="'+e.height+'" type="application/x-shockwave-flash">';return e.poster&&(t+='<img src="'+e.poster+'" width="'+e.width+'" height="'+e.height+'" />'),t+="</object>",t},ae=function(e,t){return t?t(e):'<audio controls="controls" src="'+e.source+'">'+(e.altsource?'\n<source src="'+e.altsource+'"'+(e.altsourcemime?' type="'+e.altsourcemime+'"':"")+" />\n":"")+"</audio>"},se=function(e,t){return t?t(e):'<video width="'+e.width+'" height="'+e.height+'"'+(e.poster?' poster="'+e.poster+'"':"")+' controls="controls">\n<source src="'+e.source+'"'+(e.sourcemime?' type="'+e.sourcemime+'"':"")+" />\n"+(e.altsource?'<source src="'+e.altsource+'"'+(e.altsourcemime?' type="'+e.altsourcemime+'"':"")+" />\n":"")+"</video>"},ce=function(e){return'<script src="'+e.source+'"><\/script>'},ue=function(e,t){var n=I.extend({},t);if(!n.source&&(I.extend(n,V(A(e),n.embed)),!n.source))return"";n.altsource||(n.altsource=""),n.poster||(n.poster=""),n.source=e.convertURL(n.source,"source"),n.altsource=e.convertURL(n.altsource,"source"),n.sourcemime=q(n.source),n.altsourcemime=q(n.altsource),n.poster=e.convertURL(n.poster,"poster");var r=re(n.source);if(r&&(n.source=r.url,n.type=r.type,n.allowfullscreen=r.allowFullscreen,n.width=n.width||String(r.w),n.height=n.height||String(r.h)),n.embed)return Q(n.embed,n,!0);var i=z(A(e),n.source);i&&(n.type="script",n.width=String(i.width),n.height=String(i.height));var o=E(e),a=U(e);return n.width=n.width||"300",n.height=n.height||"150",I.each(n,(function(t,r){n[r]=e.dom.encode(""+t)})),"iframe"===n.type?ie(n):"application/x-shockwave-flash"===n.sourcemime?oe(n):-1!==n.sourcemime.indexOf("audio")?ae(n,o):"script"===n.type?ce(n):se(n,a)},le=function(e){return e.hasAttribute("data-mce-object")||e.hasAttribute("data-ephox-embed-iri")},de=function(e){e.on("click keyup touchend",(function(){var t=e.selection.getNode();t&&e.dom.hasClass(t,"mce-preview-object")&&e.dom.getAttrib(t,"data-mce-selected")&&t.setAttribute("data-mce-selected","2")})),e.on("ObjectSelected",(function(e){var t=e.target.getAttribute("data-mce-object");"script"===t&&e.preventDefault()})),e.on("ObjectResized",(function(e){var t=e.target;if(t.getAttribute("data-mce-object")){var n=t.getAttribute("data-mce-html");n&&(n=unescape(n),t.setAttribute("data-mce-html",escape(Q(n,{width:String(e.width),height:String(e.height)}))))}}))},fe=tinymce.util.Tools.resolve("tinymce.util.Promise"),he={},pe=function(e,t,n){return new fe((function(r,i){var o=function(n){return n.html&&(he[e.source]=n),r({url:e.source,html:n.html?n.html:t(e)})};he[e.source]?o(he[e.source]):n({url:e.source},o,i)}))},ge=function(e,t){return fe.resolve({html:t(e),url:e.source})},me=function(e){return function(t){return ue(e,t)}},ve=function(e,t){var n=P(e);return n?pe(t,me(e),n):ge(t,me(e))},be=function(e){return S(he,e)},ye=function(e,t){return T(t,e).bind((function(e){return T(e,"meta")}))},xe=function(e,t,n){return function(r){var i,a=function(){return T(e,r)},s=function(){return T(t,r)},c=function(e){return T(e,"value").bind((function(e){return e.length>0?b.some(e):b.none()}))},u=function(){return a().bind((function(e){return o(e)?c(e).orThunk(s):s().orThunk((function(){return b.from(e)}))}))},l=function(){return s().orThunk((function(){return a().bind((function(e){return o(e)?c(e):b.from(e)}))}))};return i={},i[r]=(r===n?u():l()).getOr(""),i}},_e=function(e,t){var n={};return T(e,"dimensions").each((function(e){x(["width","height"],(function(r){T(t,r).orThunk((function(){return T(e,r)})).each((function(e){return n[r]=e}))}))})),n},we=function(e,n){var r=n?ye(n,e).getOr({}):{},i=xe(e,r,n);return t(t(t(t(t({},i("source")),i("altsource")),i("poster")),i("embed")),_e(e,r))},De=function(e){var n=t(t({},e),{source:{value:T(e,"source").getOr("")},altsource:{value:T(e,"altsource").getOr("")},poster:{value:T(e,"poster").getOr("")}});return x(["width","height"],(function(t){T(e,t).each((function(e){var r=n.dimensions||{};r[t]=e,n.dimensions=r}))})),n},Ce=function(e){return function(t){var n=t&&t.msg?"Media embed handler error: "+t.msg:"Media embed handler threw unknown error.";e.notificationManager.open({type:"error",text:n})}},ke=function(e,t){return V(A(e),t)},Te=function(e){var n=e.selection.getNode(),r=le(n)?e.serializer.serialize(n,{selection:!0}):"";return t({embed:r},V(A(e),r))},Se=function(e,n){return function(r){if(i(r.url)&&r.url.trim().length>0){var o=r.html,a=ke(n,o),s=t(t({},a),{source:r.url,embed:o});e.setData(De(s))}}},Ae=function(e,t){for(var n=e.dom.select("*[data-mce-object]"),r=0;r<t.length;r++)for(var i=n.length-1;i>=0;i--)t[r]===n[i]&&n.splice(i,1);e.selection.select(n[0])},Ee=function(e,t){var n=e.dom.select("*[data-mce-object]");e.insertContent(t),Ae(e,n),e.nodeChanged()},Ue=function(e,t,n){t.embed=Q(t.embed,t),t.embed&&(e.source===t.source||be(t.source))?Ee(n,t.embed):ve(n,t).then((function(e){Ee(n,e.html)})).catch(Ce(n))},Oe=function(e){var n=Te(e),r=w(n),i=De(n),o=function(t,n){var r=we(n.getData(),"source");t.source!==r.source&&(Se(v,e)({url:r.source,html:""}),ve(e,r).then(Se(v,e)).catch(Ce(e)))},a=function(t){var n=we(t.getData()),r=ke(e,n.embed);t.setData(De(r))},s=function(n,r){var i=we(n.getData(),r),o=ue(e,i);n.setData(De(t(t({},i),{embed:o})))},c=[{name:"source",type:"urlinput",filetype:"media",label:"Source"}],u=M(e)?[{type:"sizeinput",name:"dimensions",label:"Constrain proportions",constrain:!0}]:[],l={title:"General",name:"general",items:_([c,u])},d={type:"textarea",name:"embed",label:"Paste your embed code below:"},f={title:"Embed",items:[d]},h=[];R(e)&&h.push({name:"altsource",type:"urlinput",filetype:"media",label:"Alternative source URL"}),N(e)&&h.push({name:"poster",type:"urlinput",filetype:"image",label:"Media poster (Image URL)"});var p={title:"Advanced",name:"advanced",items:h},g=[l,f];h.length>0&&g.push(p);var m={type:"tabpanel",tabs:g},v=e.windowManager.open({title:"Insert/Edit Media",size:"normal",body:m,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var n=we(t.getData());Ue(r.get(),n,e),t.close()},onChange:function(e,t){switch(t.name){case"source":o(r.get(),e);break;case"embed":a(e);break;case"dimensions":case"altsource":case"poster":s(e,t.name);break}r.set(we(e.getData()))},initialData:i})},Fe=function(e){var t=function(){Oe(e)};return{showDialog:t}},Pe=function(e){var t=function(){Oe(e)};e.addCommand("mceMedia",t)},Re=tinymce.util.Tools.resolve("tinymce.html.Node"),Ne=tinymce.util.Tools.resolve("tinymce.Env"),Me=tinymce.util.Tools.resolve("tinymce.html.DomParser"),Ie=function(e,t){if(!1===F(e))return t;var n,r=G();return L({validate:!1,allow_conditional_comments:!1,comment:function(e){n||r.comment(e)},cdata:function(e){n||r.cdata(e)},text:function(e,t){n||r.text(e,t)},start:function(t,i,o){if(n=!0,"script"!==t&&"noscript"!==t&&"svg"!==t){for(var a=i.length-1;a>=0;a--){var s=i[a].name;0===s.indexOf("on")&&(delete i.map[s],i.splice(a,1)),"style"===s&&(i[a].value=e.dom.serializeStyle(e.dom.parseStyle(i[a].value),t))}r.start(t,i,o),n=!1}},end:function(e){n||r.end(e)}},$({})).parse(t),r.getContent()},Be=function(e){var t=e.name;return"iframe"===t||"video"===t||"audio"===t},Le=function(e,t,n,r){void 0===r&&(r=null);var i=e.attr(n);return c(i)?i:S(t,n)?null:r},ze=function(e,t,n){var r="img"===t.name||"video"===e.name,i=r?"300":null,o="audio"===e.name?"30":"150",a=r?o:null;t.attr({width:Le(e,n,"width",i),height:Le(e,n,"height",a)})},We=function(e,t,n,r){var i=Me({forced_root_block:!1,validate:!1},e.schema).parse(r,{context:t});while(i.firstChild)n.append(i.firstChild)},je=function(e,t){var n=t.name,r=new Re("img",1);return r.shortEnded=!0,Ve(e,t,r),ze(t,r,{}),r.attr({style:t.attr("style"),src:Ne.transparentSrc,"data-mce-object":n,class:"mce-object mce-object-"+n}),r},He=function(e,t){var n=t.name,r=new Re("span",1);r.attr({contentEditable:"false",style:t.attr("style"),"data-mce-object":n,class:"mce-preview-object mce-object-"+n}),Ve(e,t,r);var i=e.dom.parseStyle(t.attr("style")),o=new Re(n,1);if(ze(t,o,i),o.attr({src:t.attr("src"),style:t.attr("style"),class:t.attr("class")}),"iframe"===n)o.attr({allowfullscreen:t.attr("allowfullscreen"),frameborder:"0"});else{var a=["controls","crossorigin","currentTime","loop","muted","poster","preload"];x(a,(function(e){o.attr(e,t.attr(e))}));var s=r.attr("data-mce-html");c(s)&&We(e,n,o,unescape(s))}var u=new Re("span",1);return u.attr("class","mce-shim"),r.append(o),r.append(u),r},Ve=function(e,t,n){var r=t.attributes,i=r.length;while(i--){var o=r[i].name,a=r[i].value;"width"!==o&&"height"!==o&&"style"!==o&&("data"!==o&&"src"!==o||(a=e.convertURL(a,o)),n.attr("data-mce-p-"+o,a))}var s=t.firstChild&&t.firstChild.value;s&&(n.attr("data-mce-html",escape(Ie(e,s))),n.firstChild=null)},qe=function(e){var t=e.attr("class");return t&&/\btiny-pageembed\b/.test(t)},$e=function(e){while(e=e.parent)if(e.attr("data-ephox-embed-iri")||qe(e))return!0;return!1},Ge=function(e){return function(t){var n,r,i=t.length;while(i--)n=t[i],n.parent&&(n.parent.attr("data-mce-object")||("script"!==n.name||(r=z(A(e),n.attr("src")),r))&&(r&&(r.width&&n.attr("width",r.width.toString()),r.height&&n.attr("height",r.height.toString())),Be(n)&&O(e)&&Ne.ceFalse?$e(n)||n.replace(He(e,n)):$e(n)||n.replace(je(e,n))))}},Xe=function(e){e.on("preInit",(function(){var t=e.schema.getSpecialElements();I.each("video audio iframe object".split(" "),(function(e){t[e]=new RegExp("</"+e+"[^>]*>","gi")}));var n=e.schema.getBoolAttrs();I.each("webkitallowfullscreen mozallowfullscreen allowfullscreen".split(" "),(function(e){n[e]={}})),e.parser.addNodeFilter("iframe,video,audio,object,embed,script",Ge(e)),e.serializer.addAttributeFilter("data-mce-object",(function(t,n){var r,i,o,a,s,c,u,l,d=t.length;while(d--)if(r=t[d],r.parent){u=r.attr(n),i=new Re(u,1),"audio"!==u&&"script"!==u&&(l=r.attr("class"),l&&-1!==l.indexOf("mce-preview-object")?i.attr({width:r.firstChild.attr("width"),height:r.firstChild.attr("height")}):i.attr({width:r.attr("width"),height:r.attr("height")})),i.attr({style:r.attr("style")}),a=r.attributes,o=a.length;while(o--){var f=a[o].name;0===f.indexOf("data-mce-p-")&&i.attr(f.substr(11),a[o].value)}"script"===u&&i.attr("type","text/javascript"),s=r.attr("data-mce-html"),s&&(c=new Re("#text",3),c.raw=!0,c.value=Ie(e,unescape(s)),i.append(c)),r.replace(i)}}))})),e.on("SetContent",(function(){e.$("span.mce-preview-object").each((function(t,n){var r=e.$(n);0===r.find("span.mce-shim").length&&r.append('<span class="mce-shim"></span>')}))}))},Ye=function(e){e.on("ResolveName",(function(e){var t;1===e.target.nodeType&&(t=e.target.getAttribute("data-mce-object"))&&(e.name=t)}))},Ke=function(e){var t=function(){return e.execCommand("mceMedia")};e.ui.registry.addToggleButton("media",{tooltip:"Insert/edit media",icon:"embed",onAction:t,onSetup:function(t){var n=e.selection;return t.setActive(le(n.getNode())),n.selectorChangedWithUnbind("img[data-mce-object],span[data-mce-object],div[data-ephox-embed-iri]",t.setActive).unbind}}),e.ui.registry.addMenuItem("media",{icon:"embed",text:"Media...",onAction:t})};function Ze(){e.add("media",(function(e){return Pe(e),Ke(e),Ye(e),Xe(e),de(e),Fe(e)}))}Ze()})()},"376d":function(e,t,n){!function(t,r){e.exports=r(n("5b66"))}(globalThis,e=>(()=>{"use strict";var t={438:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var r=n(537),i=n.n(r),o=n(645),a=n.n(o),s=n(806),c=n.n(s),u=new URL(n(583),n.b),l=a()(i()),d=c()(u);l.push([e.id,`@namespace "http://www.w3.org/1998/Math/MathML";math{display:inline-block;line-height:initial}mfrac{display:inline-block;vertical-align:-50%;text-align:center}mfrac>:first-child{border-bottom:solid thin currentColor}mfrac>*{display:block}msub>:nth-child(2){font-size:smaller;vertical-align:sub}msup>:nth-child(2){font-size:smaller;vertical-align:super}munder,mover,munderover{display:inline-flex;flex-flow:column nowrap;vertical-align:middle;text-align:center}munder>:not(:first-child),mover>:not(:first-child),munderover>:not(:first-child){font-size:smaller}munderover>:last-child{order:-1}mroot,msqrt{position:relative;display:inline-block;border-top:solid thin currentColor;margin-top:.5px;vertical-align:middle;margin-left:1ch}mroot:before,msqrt:before{content:"";display:inline-block;position:absolute;width:1ch;left:-1ch;top:-1px;bottom:0;background-image:url(${d})}`,"",{version:3,sources:["webpack://./src/mathml.scss"],names:[],mappings:"AAAA,+CAAA,CAEA,KACI,oBAAA,CACA,mBAAA,CAGJ,MACI,oBAAA,CACA,mBAAA,CACA,iBAAA,CAEA,mBACI,qCAAA,CAGJ,QACI,aAAA,CAKJ,mBACI,iBAAA,CACA,kBAAA,CAKJ,mBACI,iBAAA,CACA,oBAAA,CAIR,wBACI,mBAAA,CACA,uBAAA,CACA,qBAAA,CACA,iBAAA,CAEA,iFACI,iBAAA,CAKJ,uBAAA,QAAA,CAGJ,YACI,iBAAA,CACA,oBAAA,CACA,kCAAA,CACA,eAAA,CACA,qBAAA,CACA,eAAA,CAEA,0BACI,UAAA,CACA,oBAAA,CACA,iBAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,QAAA,CACA,wDAAA",sourcesContent:["@namespace \"http://www.w3.org/1998/Math/MathML\";\r\n\r\nmath {\r\n    display: inline-block;\r\n    line-height: initial;\r\n}\r\n\r\nmfrac {\r\n    display: inline-block;\r\n    vertical-align: -50%;\r\n    text-align: center;\r\n\r\n    &>:first-child {\r\n        border-bottom: solid thin currentColor;\r\n    }\r\n\r\n    &>* {\r\n        display: block;\r\n    }\r\n}\r\n\r\nmsub {\r\n    &>:nth-child(2) {\r\n        font-size: smaller;\r\n        vertical-align: sub;\r\n    }\r\n}\r\n\r\nmsup {\r\n    &>:nth-child(2) {\r\n        font-size: smaller;\r\n        vertical-align: super;\r\n    }\r\n}\r\n\r\nmunder, mover, munderover {\r\n    display: inline-flex;\r\n    flex-flow: column nowrap;\r\n    vertical-align: middle;\r\n    text-align: center;\r\n\r\n    &>:not(:first-child) {\r\n        font-size: smaller;\r\n    }\r\n}\r\n\r\nmunderover {\r\n    &>:last-child { order: -1; }\r\n}\r\n\r\nmroot, msqrt {\r\n    position: relative;\r\n    display: inline-block;\r\n    border-top: solid thin currentColor;  \r\n    margin-top: 0.5px;\r\n    vertical-align: middle;  \r\n    margin-left: 1ch; \r\n\r\n    &:before {\r\n        content: \"\";\r\n        display: inline-block;\r\n        position: absolute;\r\n        width: 1ch;\r\n        left: -1ch;\r\n        top: -1px;\r\n        bottom: 0;\r\n        background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 100' preserveAspectRatio='none'%3E%3Cpath d='m0,75 l5,0 l5,25 l10,-100' stroke='black' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E\");\r\n    }\r\n}"],sourceRoot:""}]);const f=l.toString()},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},806:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},537:e=>{e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},522:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OpenXmlPackage=void 0;const r=n(626),i=n(472),o=n(593),a=n(461);class s{constructor(e,t){this._zip=e,this.options=t,this.xmlParser=new i.XmlParser}get(e){return this._zip.files[function(e){return e.startsWith("/")?e.substr(1):e}(e)]}update(e,t){this._zip.file(e,t)}static async load(e,t){const n=await r.loadAsync(e);return new s(n,t)}save(e="blob"){return this._zip.generateAsync({type:e})}load(e,t="string"){var n,r;return null!==(r=null===(n=this.get(e))||void 0===n?void 0:n.async(t))&&void 0!==r?r:Promise.resolve(null)}async loadRelationships(e=null){let t="_rels/.rels";if(null!=e){const[n,r]=(0,o.splitPath)(e);t=`${n}_rels/${r}.rels`}const n=await this.load(t);return n?(0,a.parseRelationships)(this.parseXmlDocument(n).firstElementChild,this.xmlParser):null}parseXmlDocument(e){return(0,i.parseXmlString)(e,this.options.trimXmlDeclaration)}}t.OpenXmlPackage=s},530:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Part=void 0;const r=n(472);t.Part=class{constructor(e,t){this._package=e,this.path=t}async load(){this.rels=await this._package.loadRelationships(this.path);const e=await this._package.load(this.path),t=this._package.parseXmlDocument(e);this._package.options.keepOrigin&&(this._xmlDocument=t),this.parseXml(t.firstElementChild)}save(){this._package.update(this.path,(0,r.serializeXmlString)(this._xmlDocument))}parseXml(e){}}},461:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelationships=t.RelationshipTypes=void 0,function(e){e.OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",e.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",e.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",e.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",e.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",e.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",e.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",e.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",e.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",e.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",e.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",e.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",e.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",e.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",e.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",e.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",e.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties"}(n||(t.RelationshipTypes=n={})),t.parseRelationships=function(e,t){return t.elements(e).map(e=>({id:t.attr(e,"Id"),type:t.attr(e,"Type"),target:t.attr(e,"Target"),targetMode:t.attr(e,"TargetMode")}))}},168:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentParser=t.autos=void 0;const r=n(120),i=n(109),o=n(59),a=n(472),s=n(488),c=n(172),u=n(149),l=n(320);t.autos={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"};const d=[],f={oMath:r.DomType.MmlMath,oMathPara:r.DomType.MmlMathParagraph,f:r.DomType.MmlFraction,func:r.DomType.MmlFunction,fName:r.DomType.MmlFunctionName,num:r.DomType.MmlNumerator,den:r.DomType.MmlDenominator,rad:r.DomType.MmlRadical,deg:r.DomType.MmlDegree,e:r.DomType.MmlBase,sSup:r.DomType.MmlSuperscript,sSub:r.DomType.MmlSubscript,sPre:r.DomType.MmlPreSubSuper,sup:r.DomType.MmlSuperArgument,sub:r.DomType.MmlSubArgument,d:r.DomType.MmlDelimiter,nary:r.DomType.MmlNary,eqArr:r.DomType.MmlEquationArray,lim:r.DomType.MmlLimit,limLow:r.DomType.MmlLimitLower,m:r.DomType.MmlMatrix,mr:r.DomType.MmlMatrixRow,box:r.DomType.MmlBox,bar:r.DomType.MmlBar,groupChr:r.DomType.MmlGroupChar};t.DocumentParser=class{constructor(e){this.options=Object.assign({ignoreWidth:!1,debug:!1},e)}parseNotes(e,t,n){var r=[];for(let i of a.default.elements(e,t)){const e=new n;e.id=a.default.attr(i,"id"),e.noteType=a.default.attr(i,"type"),e.children=this.parseBodyElements(i),r.push(e)}return r}parseDocumentFile(e){var t=a.default.element(e,"body"),n=a.default.element(e,"background"),i=a.default.element(t,"sectPr");return{type:r.DomType.Document,children:this.parseBodyElements(t),props:i?(0,o.parseSectionProperties)(i,a.default):{},cssStyle:n?this.parseBackground(n):{}}}parseBackground(e){var t={},n=p.colorAttr(e,"color");return n&&(t["background-color"]=n),t}parseBodyElements(e){var t=[];for(let n of a.default.elements(e))switch(n.localName){case"p":t.push(this.parseParagraph(n));break;case"tbl":t.push(this.parseTable(n));break;case"sdt":t.push(...this.parseSdt(n,e=>this.parseBodyElements(e)))}return t}parseStylesFile(e){var t=[];return p.foreach(e,e=>{switch(e.localName){case"style":t.push(this.parseStyle(e));break;case"docDefaults":t.push(this.parseDefaultStyles(e))}}),t}parseDefaultStyles(e){var t={id:null,name:null,target:null,basedOn:null,styles:[]};return p.foreach(e,e=>{switch(e.localName){case"rPrDefault":var n=a.default.element(e,"rPr");n&&t.styles.push({target:"span",values:this.parseDefaultProperties(n,{})});break;case"pPrDefault":var r=a.default.element(e,"pPr");r&&t.styles.push({target:"p",values:this.parseDefaultProperties(r,{})})}}),t}parseStyle(e){var t={id:a.default.attr(e,"styleId"),isDefault:a.default.boolAttr(e,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(a.default.attr(e,"type")){case"paragraph":t.target="p";break;case"table":t.target="table";break;case"character":t.target="span"}return p.foreach(e,e=>{switch(e.localName){case"basedOn":t.basedOn=a.default.attr(e,"val");break;case"name":t.name=a.default.attr(e,"val");break;case"link":t.linked=a.default.attr(e,"val");break;case"next":t.next=a.default.attr(e,"val");break;case"aliases":t.aliases=a.default.attr(e,"val").split(",");break;case"pPr":t.styles.push({target:"p",values:this.parseDefaultProperties(e,{})}),t.paragraphProps=(0,i.parseParagraphProperties)(e,a.default);break;case"rPr":t.styles.push({target:"span",values:this.parseDefaultProperties(e,{})}),t.runProps=(0,s.parseRunProperties)(e,a.default);break;case"tblPr":case"tcPr":t.styles.push({target:"td",values:this.parseDefaultProperties(e,{})});break;case"tblStylePr":for(let n of this.parseTableStyle(e))t.styles.push(n);break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:this.options.debug&&console.warn("DOCX: Unknown style element: "+e.localName)}}),t}parseTableStyle(e){var t=[],n=a.default.attr(e,"type"),r="",i="";switch(n){case"firstRow":i=".first-row",r="tr.first-row td";break;case"lastRow":i=".last-row",r="tr.last-row td";break;case"firstCol":i=".first-col",r="td.first-col";break;case"lastCol":i=".last-col",r="td.last-col";break;case"band1Vert":i=":not(.no-vband)",r="td.odd-col";break;case"band2Vert":i=":not(.no-vband)",r="td.even-col";break;case"band1Horz":i=":not(.no-hband)",r="tr.odd-row";break;case"band2Horz":i=":not(.no-hband)",r="tr.even-row";break;default:return[]}return p.foreach(e,e=>{switch(e.localName){case"pPr":t.push({target:r+" p",mod:i,values:this.parseDefaultProperties(e,{})});break;case"rPr":t.push({target:r+" span",mod:i,values:this.parseDefaultProperties(e,{})});break;case"tblPr":case"tcPr":t.push({target:r,mod:i,values:this.parseDefaultProperties(e,{})})}}),t}parseNumberingFile(e){var t=[],n={},r=[];return p.foreach(e,e=>{switch(e.localName){case"abstractNum":this.parseAbstractNumbering(e,r).forEach(e=>t.push(e));break;case"numPicBullet":r.push(this.parseNumberingPicBullet(e));break;case"num":var i=a.default.attr(e,"numId"),o=a.default.elementAttr(e,"abstractNumId","val");n[o]=i}}),t.forEach(e=>e.id=n[e.id]),t}parseNumberingPicBullet(e){var t=a.default.element(e,"pict"),n=t&&a.default.element(t,"shape"),r=n&&a.default.element(n,"imagedata");return r?{id:a.default.intAttr(e,"numPicBulletId"),src:a.default.attr(r,"id"),style:a.default.attr(n,"style")}:null}parseAbstractNumbering(e,t){var n=[],r=a.default.attr(e,"abstractNumId");return p.foreach(e,e=>{"lvl"===e.localName&&n.push(this.parseNumberingLevel(r,e,t))}),n}parseNumberingLevel(e,t,n){var r={id:e,level:a.default.intAttr(t,"ilvl"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return p.foreach(t,e=>{switch(e.localName){case"start":r.start=a.default.intAttr(e,"val");break;case"pPr":this.parseDefaultProperties(e,r.pStyle);break;case"rPr":this.parseDefaultProperties(e,r.rStyle);break;case"lvlPicBulletId":var t=a.default.intAttr(e,"val");r.bullet=n.find(e=>e.id==t);break;case"lvlText":r.levelText=a.default.attr(e,"val");break;case"pStyle":r.pStyleName=a.default.attr(e,"val");break;case"numFmt":r.format=a.default.attr(e,"val");break;case"suff":r.suff=a.default.attr(e,"val")}}),r}parseSdt(e,t){const n=a.default.element(e,"sdtContent");return n?t(n):[]}parseInserted(e,t){var n,i;return{type:r.DomType.Inserted,children:null!==(i=null===(n=t(e))||void 0===n?void 0:n.children)&&void 0!==i?i:[]}}parseDeleted(e,t){var n,i;return{type:r.DomType.Deleted,children:null!==(i=null===(n=t(e))||void 0===n?void 0:n.children)&&void 0!==i?i:[]}}parseParagraph(e){var t={type:r.DomType.Paragraph,children:[]};for(let n of a.default.elements(e))switch(n.localName){case"pPr":this.parseParagraphProperties(n,t);break;case"r":t.children.push(this.parseRun(n,t));break;case"hyperlink":t.children.push(this.parseHyperlink(n,t));break;case"bookmarkStart":t.children.push((0,c.parseBookmarkStart)(n,a.default));break;case"bookmarkEnd":t.children.push((0,c.parseBookmarkEnd)(n,a.default));break;case"oMath":case"oMathPara":t.children.push(this.parseMathElement(n));break;case"sdt":t.children.push(...this.parseSdt(n,e=>this.parseParagraph(e).children));break;case"ins":t.children.push(this.parseInserted(n,e=>this.parseParagraph(e)));break;case"del":t.children.push(this.parseDeleted(n,e=>this.parseParagraph(e)))}return t}parseParagraphProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,e=>{if((0,i.parseParagraphProperty)(e,t,a.default))return!0;switch(e.localName){case"pStyle":t.styleName=a.default.attr(e,"val");break;case"cnfStyle":t.className=g.classNameOfCnfStyle(e);break;case"framePr":this.parseFrame(e,t);break;case"rPr":break;default:return!1}return!0})}parseFrame(e,t){"drop"==a.default.attr(e,"dropCap")&&(t.cssStyle.float="left")}parseHyperlink(e,t){var n={type:r.DomType.Hyperlink,parent:t,children:[]},i=a.default.attr(e,"anchor"),o=a.default.attr(e,"id");return i&&(n.href="#"+i),o&&(n.id=o),p.foreach(e,e=>{"r"===e.localName&&n.children.push(this.parseRun(e,n))}),n}parseRun(e,t){var n={type:r.DomType.Run,parent:t,children:[]};return p.foreach(e,e=>{switch((e=this.checkAlternateContent(e)).localName){case"t":n.children.push({type:r.DomType.Text,text:e.textContent});break;case"delText":n.children.push({type:r.DomType.DeletedText,text:e.textContent});break;case"fldSimple":n.children.push({type:r.DomType.SimpleField,instruction:a.default.attr(e,"instr"),lock:a.default.boolAttr(e,"lock",!1),dirty:a.default.boolAttr(e,"dirty",!1)});break;case"instrText":n.fieldRun=!0,n.children.push({type:r.DomType.Instruction,text:e.textContent});break;case"fldChar":n.fieldRun=!0,n.children.push({type:r.DomType.ComplexField,charType:a.default.attr(e,"fldCharType"),lock:a.default.boolAttr(e,"lock",!1),dirty:a.default.boolAttr(e,"dirty",!1)});break;case"noBreakHyphen":n.children.push({type:r.DomType.NoBreakHyphen});break;case"br":n.children.push({type:r.DomType.Break,break:a.default.attr(e,"type")||"textWrapping"});break;case"lastRenderedPageBreak":n.children.push({type:r.DomType.Break,break:"lastRenderedPageBreak"});break;case"sym":n.children.push({type:r.DomType.Symbol,font:a.default.attr(e,"font"),char:a.default.attr(e,"char")});break;case"tab":n.children.push({type:r.DomType.Tab});break;case"footnoteReference":n.children.push({type:r.DomType.FootnoteReference,id:a.default.attr(e,"id")});break;case"endnoteReference":n.children.push({type:r.DomType.EndnoteReference,id:a.default.attr(e,"id")});break;case"drawing":let t=this.parseDrawing(e);t&&(n.children=[t]);break;case"pict":n.children.push(this.parseVmlPicture(e));break;case"rPr":this.parseRunProperties(e,n)}}),n}parseMathElement(e){const t=e.localName+"Pr",n={type:f[e.localName],children:[]};for(const o of a.default.elements(e))if(f[o.localName])n.children.push(this.parseMathElement(o));else if("r"==o.localName){var i=this.parseRun(o);i.type=r.DomType.MmlRun,n.children.push(i)}else o.localName==t&&(n.props=this.parseMathProperies(o));return n}parseMathProperies(e){const t={};for(const n of a.default.elements(e))switch(n.localName){case"chr":t.char=a.default.attr(n,"val");break;case"vertJc":t.verticalJustification=a.default.attr(n,"val");break;case"pos":t.position=a.default.attr(n,"val");break;case"degHide":t.hideDegree=a.default.boolAttr(n,"val");break;case"begChr":t.beginChar=a.default.attr(n,"val");break;case"endChr":t.endChar=a.default.attr(n,"val")}return t}parseRunProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,e=>{switch(e.localName){case"rStyle":t.styleName=a.default.attr(e,"val");break;case"vertAlign":t.verticalAlign=g.valueOfVertAlign(e,!0);break;default:return!1}return!0})}parseVmlPicture(e){const t={type:r.DomType.VmlPicture,children:[]};for(const n of a.default.elements(e)){const e=(0,l.parseVmlElement)(n,this);e&&t.children.push(e)}return t}checkAlternateContent(e){var t;if("AlternateContent"!=e.localName)return e;var n=a.default.element(e,"Choice");if(n){var r=a.default.attr(n,"Requires"),i=e.lookupNamespaceURI(r);if(d.includes(i))return n.firstElementChild}return null===(t=a.default.element(e,"Fallback"))||void 0===t?void 0:t.firstElementChild}parseDrawing(e){for(var t of a.default.elements(e))switch(t.localName){case"inline":case"anchor":return this.parseDrawingWrapper(t)}}parseDrawingWrapper(e){var t,n={type:r.DomType.Drawing,children:[],cssStyle:{}},i="anchor"==e.localName;let o=null,s=a.default.boolAttr(e,"simplePos"),c={relative:"page",align:"left",offset:"0"},l={relative:"page",align:"top",offset:"0"};for(var d of a.default.elements(e))switch(d.localName){case"simplePos":s&&(c.offset=a.default.lengthAttr(d,"x",u.LengthUsage.Emu),l.offset=a.default.lengthAttr(d,"y",u.LengthUsage.Emu));break;case"extent":n.cssStyle.width=a.default.lengthAttr(d,"cx",u.LengthUsage.Emu),n.cssStyle.height=a.default.lengthAttr(d,"cy",u.LengthUsage.Emu);break;case"positionH":case"positionV":if(!s){let e="positionH"==d.localName?c:l;var f=a.default.element(d,"align"),h=a.default.element(d,"posOffset");e.relative=null!==(t=a.default.attr(d,"relativeFrom"))&&void 0!==t?t:e.relative,f&&(e.align=f.textContent),h&&(e.offset=p.sizeValue(h,u.LengthUsage.Emu))}break;case"wrapTopAndBottom":o="wrapTopAndBottom";break;case"wrapNone":o="wrapNone";break;case"graphic":var g=this.parseGraphic(d);g&&n.children.push(g)}return"wrapTopAndBottom"==o?(n.cssStyle.display="block",c.align&&(n.cssStyle["text-align"]=c.align,n.cssStyle.width="100%")):"wrapNone"==o?(n.cssStyle.display="block",n.cssStyle.position="relative",n.cssStyle.width="0px",n.cssStyle.height="0px",c.offset&&(n.cssStyle.left=c.offset),l.offset&&(n.cssStyle.top=l.offset)):!i||"left"!=c.align&&"right"!=c.align||(n.cssStyle.float=c.align),n}parseGraphic(e){var t=a.default.element(e,"graphicData");for(let n of a.default.elements(t))if("pic"===n.localName)return this.parsePicture(n);return null}parsePicture(e){var t={type:r.DomType.Image,src:"",cssStyle:{}},n=a.default.element(e,"blipFill"),i=a.default.element(n,"blip");t.src=a.default.attr(i,"embed");var o=a.default.element(e,"spPr"),s=a.default.element(o,"xfrm");for(var c of(t.cssStyle.position="relative",a.default.elements(s)))switch(c.localName){case"ext":t.cssStyle.width=a.default.lengthAttr(c,"cx",u.LengthUsage.Emu),t.cssStyle.height=a.default.lengthAttr(c,"cy",u.LengthUsage.Emu);break;case"off":t.cssStyle.left=a.default.lengthAttr(c,"x",u.LengthUsage.Emu),t.cssStyle.top=a.default.lengthAttr(c,"y",u.LengthUsage.Emu)}return t}parseTable(e){var t={type:r.DomType.Table,children:[]};return p.foreach(e,e=>{switch(e.localName){case"tr":t.children.push(this.parseTableRow(e));break;case"tblGrid":t.columns=this.parseTableColumns(e);break;case"tblPr":this.parseTableProperties(e,t)}}),t}parseTableColumns(e){var t=[];return p.foreach(e,e=>{"gridCol"===e.localName&&t.push({width:a.default.lengthAttr(e,"w")})}),t}parseTableProperties(e,t){switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(e,t.cssStyle,t.cellStyle,e=>{switch(e.localName){case"tblStyle":t.styleName=a.default.attr(e,"val");break;case"tblLook":t.className=g.classNameOftblLook(e);break;case"tblpPr":this.parseTablePosition(e,t);break;case"tblStyleColBandSize":t.colBandSize=a.default.intAttr(e,"val");break;case"tblStyleRowBandSize":t.rowBandSize=a.default.intAttr(e,"val");break;default:return!1}return!0}),t.cssStyle["text-align"]){case"center":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto";break;case"right":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto"}}parseTablePosition(e,t){var n=a.default.lengthAttr(e,"topFromText"),r=a.default.lengthAttr(e,"bottomFromText"),i=a.default.lengthAttr(e,"rightFromText"),o=a.default.lengthAttr(e,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=g.addSize(t.cssStyle["margin-bottom"],r),t.cssStyle["margin-left"]=g.addSize(t.cssStyle["margin-left"],o),t.cssStyle["margin-right"]=g.addSize(t.cssStyle["margin-right"],i),t.cssStyle["margin-top"]=g.addSize(t.cssStyle["margin-top"],n)}parseTableRow(e){var t={type:r.DomType.Row,children:[]};return p.foreach(e,e=>{switch(e.localName){case"tc":t.children.push(this.parseTableCell(e));break;case"trPr":this.parseTableRowProperties(e,t)}}),t}parseTableRowProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,e=>{switch(e.localName){case"cnfStyle":t.className=g.classNameOfCnfStyle(e);break;case"tblHeader":t.isHeader=a.default.boolAttr(e,"val");break;default:return!1}return!0})}parseTableCell(e){var t={type:r.DomType.Cell,children:[]};return p.foreach(e,e=>{switch(e.localName){case"tbl":t.children.push(this.parseTable(e));break;case"p":t.children.push(this.parseParagraph(e));break;case"tcPr":this.parseTableCellProperties(e,t)}}),t}parseTableCellProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,e=>{var n;switch(e.localName){case"gridSpan":t.span=a.default.intAttr(e,"val",null);break;case"vMerge":t.verticalMerge=null!==(n=a.default.attr(e,"val"))&&void 0!==n?n:"continue";break;case"cnfStyle":t.className=g.classNameOfCnfStyle(e);break;default:return!1}return!0})}parseDefaultProperties(e,n=null,r=null,i=null){return n=n||{},p.foreach(e,o=>{if(!(null==i?void 0:i(o)))switch(o.localName){case"jc":n["text-align"]=g.valueOfJc(o);break;case"textAlignment":n["vertical-align"]=g.valueOfTextAlignment(o);break;case"color":n.color=p.colorAttr(o,"val",null,t.autos.color);break;case"sz":n["font-size"]=n["min-height"]=a.default.lengthAttr(o,"val",u.LengthUsage.FontSize);break;case"shd":n["background-color"]=p.colorAttr(o,"fill",null,t.autos.shd);break;case"highlight":n["background-color"]=p.colorAttr(o,"val",null,t.autos.highlight);break;case"vertAlign":break;case"position":n.verticalAlign=a.default.lengthAttr(o,"val",u.LengthUsage.FontSize);break;case"tcW":if(this.options.ignoreWidth)break;case"tblW":n.width=g.valueOfSize(o,"w");break;case"trHeight":this.parseTrHeight(o,n);break;case"strike":n["text-decoration"]=a.default.boolAttr(o,"val",!0)?"line-through":"none";break;case"b":n["font-weight"]=a.default.boolAttr(o,"val",!0)?"bold":"normal";break;case"i":n["font-style"]=a.default.boolAttr(o,"val",!0)?"italic":"normal";break;case"caps":n["text-transform"]=a.default.boolAttr(o,"val",!0)?"uppercase":"none";break;case"smallCaps":n["text-transform"]=a.default.boolAttr(o,"val",!0)?"lowercase":"none";break;case"u":this.parseUnderline(o,n);break;case"ind":case"tblInd":this.parseIndentation(o,n);break;case"rFonts":this.parseFont(o,n);break;case"tblBorders":this.parseBorderProperties(o,r||n);break;case"tblCellSpacing":n["border-spacing"]=g.valueOfMargin(o),n["border-collapse"]="separate";break;case"pBdr":this.parseBorderProperties(o,n);break;case"bdr":n.border=g.valueOfBorder(o);break;case"tcBorders":this.parseBorderProperties(o,n);break;case"vanish":a.default.boolAttr(o,"val",!0)&&(n.display="none");break;case"kern":case"noWrap":break;case"tblCellMar":case"tcMar":this.parseMarginProperties(o,r||n);break;case"tblLayout":n["table-layout"]=g.valueOfTblLayout(o);break;case"vAlign":n["vertical-align"]=g.valueOfTextAlignment(o);break;case"spacing":"pPr"==e.localName&&this.parseSpacing(o,n);break;case"wordWrap":a.default.boolAttr(o,"val")&&(n["overflow-wrap"]="break-word");break;case"suppressAutoHyphens":n.hyphens=a.default.boolAttr(o,"val",!0)?"none":"auto";break;case"lang":n.$lang=a.default.attr(o,"val");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:this.options.debug&&console.warn(`DOCX: Unknown document element: ${e.localName}.${o.localName}`)}}),n}parseUnderline(e,t){var n=a.default.attr(e,"val");if(null!=n){switch(n){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":t["text-decoration-style"]="dashed";break;case"dotted":case"dottedHeavy":t["text-decoration-style"]="dotted";break;case"double":t["text-decoration-style"]="double";break;case"single":case"thick":case"words":t["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":t["text-decoration-style"]="wavy";break;case"none":t["text-decoration"]="none"}var r=p.colorAttr(e,"color");r&&(t["text-decoration-color"]=r)}}parseFont(e,t){var n=[a.default.attr(e,"ascii"),g.themeValue(e,"asciiTheme")].filter(e=>e).join(", ");n.length>0&&(t["font-family"]=n)}parseIndentation(e,t){var n=a.default.lengthAttr(e,"firstLine"),r=a.default.lengthAttr(e,"hanging"),i=a.default.lengthAttr(e,"left"),o=a.default.lengthAttr(e,"start"),s=a.default.lengthAttr(e,"right"),c=a.default.lengthAttr(e,"end");n&&(t["text-indent"]=n),r&&(t["text-indent"]="-"+r),(i||o)&&(t["margin-left"]=i||o),(s||c)&&(t["margin-right"]=s||c)}parseSpacing(e,t){var n=a.default.lengthAttr(e,"before"),r=a.default.lengthAttr(e,"after"),i=a.default.intAttr(e,"line",null),o=a.default.attr(e,"lineRule");if(n&&(t["margin-top"]=n),r&&(t["margin-bottom"]=r),null!==i)switch(o){case"auto":t["line-height"]=""+(i/240).toFixed(2);break;case"atLeast":t["line-height"]=`calc(100% + ${i/20}pt)`;break;default:t["line-height"]=t["min-height"]=i/20+"pt"}}parseMarginProperties(e,t){p.foreach(e,e=>{switch(e.localName){case"left":t["padding-left"]=g.valueOfMargin(e);break;case"right":t["padding-right"]=g.valueOfMargin(e);break;case"top":t["padding-top"]=g.valueOfMargin(e);break;case"bottom":t["padding-bottom"]=g.valueOfMargin(e)}})}parseTrHeight(e,t){a.default.attr(e,"hRule"),t.height=a.default.lengthAttr(e,"val")}parseBorderProperties(e,t){p.foreach(e,e=>{switch(e.localName){case"start":case"left":t["border-left"]=g.valueOfBorder(e);break;case"end":case"right":t["border-right"]=g.valueOfBorder(e);break;case"top":t["border-top"]=g.valueOfBorder(e);break;case"bottom":t["border-bottom"]=g.valueOfBorder(e)}})}};const h=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"];class p{static foreach(e,t){for(var n=0;n<e.childNodes.length;n++){let r=e.childNodes[n];r.nodeType==Node.ELEMENT_NODE&&t(r)}}static colorAttr(e,t,n=null,r="black"){var i=a.default.attr(e,t);if(i)return"auto"==i?r:h.includes(i)?i:"#"+i;var o=a.default.attr(e,"themeColor");return o?`var(--docx-${o}-color)`:n}static sizeValue(e,t=u.LengthUsage.Dxa){return(0,u.convertLength)(e.textContent,t)}}class g{static themeValue(e,t){var n=a.default.attr(e,t);return n?`var(--docx-${n}-font)`:null}static valueOfSize(e,t){var n=u.LengthUsage.Dxa;switch(a.default.attr(e,"type")){case"dxa":break;case"pct":n=u.LengthUsage.Percent;break;case"auto":return"auto"}return a.default.lengthAttr(e,t,n)}static valueOfMargin(e){return a.default.lengthAttr(e,"w")}static valueOfBorder(e){if("nil"==a.default.attr(e,"val"))return"none";var n=p.colorAttr(e,"color");return`${a.default.lengthAttr(e,"sz",u.LengthUsage.Border)} solid ${"auto"==n?t.autos.borderColor:n}`}static valueOfTblLayout(e){return"fixed"==a.default.attr(e,"val")?"fixed":"auto"}static classNameOfCnfStyle(e){const t=a.default.attr(e,"val");return["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"].filter((e,n)=>"1"==t[n]).join(" ")}static valueOfJc(e){var t=a.default.attr(e,"val");switch(t){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return t}static valueOfVertAlign(e,t=!1){var n=a.default.attr(e,"val");switch(n){case"subscript":return"sub";case"superscript":return t?"sup":"super"}return t?null:n}static valueOfTextAlignment(e){var t=a.default.attr(e,"val");switch(t){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return t}static addSize(e,t){return null==e?t:null==t?e:`calc(${e} + ${t})`}static classNameOftblLook(e){const t=a.default.hexAttr(e,"val",0);let n="";return(a.default.boolAttr(e,"firstRow")||32&t)&&(n+=" first-row"),(a.default.boolAttr(e,"lastRow")||64&t)&&(n+=" last-row"),(a.default.boolAttr(e,"firstColumn")||128&t)&&(n+=" first-col"),(a.default.boolAttr(e,"lastColumn")||256&t)&&(n+=" last-col"),(a.default.boolAttr(e,"noHBand")||512&t)&&(n+=" no-hband"),(a.default.boolAttr(e,"noVBand")||1024&t)&&(n+=" no-vband"),n.trim()}}},162:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CorePropsPart=void 0;const r=n(530),i=n(614);class o extends r.Part{parseXml(e){this.props=(0,i.parseCoreProps)(e,this._package.xmlParser)}}t.CorePropsPart=o},614:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseCoreProps=void 0,t.parseCoreProps=function(e,t){const n={};for(let r of t.elements(e))switch(r.localName){case"title":n.title=r.textContent;break;case"description":n.description=r.textContent;break;case"subject":n.subject=r.textContent;break;case"creator":n.creator=r.textContent;break;case"keywords":n.keywords=r.textContent;break;case"language":n.language=r.textContent;break;case"lastModifiedBy":n.lastModifiedBy=r.textContent;break;case"revision":r.textContent&&(n.revision=parseInt(r.textContent))}return n}},177:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPropsPart=void 0;const r=n(530),i=n(821);class o extends r.Part{parseXml(e){this.props=(0,i.parseCustomProps)(e,this._package.xmlParser)}}t.CustomPropsPart=o},821:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomProps=void 0,t.parseCustomProps=function(e,t){return t.elements(e,"property").map(e=>{const n=e.firstChild;return{formatId:t.attr(e,"fmtid"),name:t.attr(e,"name"),type:n.nodeName,value:n.textContent}})}},665:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedPropsPart=void 0;const r=n(530),i=n(668);class o extends r.Part{parseXml(e){this.props=(0,i.parseExtendedProps)(e,this._package.xmlParser)}}t.ExtendedPropsPart=o},668:(e,t)=>{function n(e){if(void 0!==e)return parseInt(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.parseExtendedProps=void 0,t.parseExtendedProps=function(e,t){const r={};for(let i of t.elements(e))switch(i.localName){case"Template":r.template=i.textContent;break;case"Pages":r.pages=n(i.textContent);break;case"Words":r.words=n(i.textContent);break;case"Characters":r.characters=n(i.textContent);break;case"Application":r.application=i.textContent;break;case"Lines":r.lines=n(i.textContent);break;case"Paragraphs":r.paragraphs=n(i.textContent);break;case"Company":r.company=i.textContent;break;case"AppVersion":r.appVersion=i.textContent}return r}},172:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBookmarkEnd=t.parseBookmarkStart=void 0;const r=n(120);t.parseBookmarkStart=function(e,t){return{type:r.DomType.BookmarkStart,id:t.attr(e,"id"),name:t.attr(e,"name"),colFirst:t.intAttr(e,"colFirst"),colLast:t.intAttr(e,"colLast")}},t.parseBookmarkEnd=function(e,t){return{type:r.DomType.BookmarkEnd,id:t.attr(e,"id")}}},191:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBorders=t.parseBorder=void 0;const r=n(149);function i(e,t){return{type:t.attr(e,"val"),color:t.attr(e,"color"),size:t.lengthAttr(e,"sz",r.LengthUsage.Border),offset:t.lengthAttr(e,"space",r.LengthUsage.Point),frame:t.boolAttr(e,"frame"),shadow:t.boolAttr(e,"shadow")}}t.parseBorder=i,t.parseBorders=function(e,t){var n={};for(let r of t.elements(e))switch(r.localName){case"left":n.left=i(r,t);break;case"top":n.top=i(r,t);break;case"right":n.right=i(r,t);break;case"bottom":n.bottom=i(r,t)}return n}},149:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseCommonProperty=t.convertPercentage=t.convertBoolean=t.convertLength=t.LengthUsage=t.ns=void 0,t.ns={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",drawingml:"http://schemas.openxmlformats.org/drawingml/2006/main",picture:"http://schemas.openxmlformats.org/drawingml/2006/picture",compatibility:"http://schemas.openxmlformats.org/markup-compatibility/2006",math:"http://schemas.openxmlformats.org/officeDocument/2006/math"},t.LengthUsage={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:""},VmlEmu:{mul:1/12700,unit:""}},t.convertLength=function(e,n=t.LengthUsage.Dxa){return null==e||/.+(p[xt]|[%])$/.test(e)?e:`${(parseInt(e)*n.mul).toFixed(2)}${n.unit}`},t.convertBoolean=function(e,t=!1){switch(e){case"1":case"on":case"true":return!0;case"0":case"off":case"false":return!1;default:return t}},t.convertPercentage=function(e){return e?parseInt(e)/100:null},t.parseCommonProperty=function(e,n,r){if(e.namespaceURI!=t.ns.wordml)return!1;switch(e.localName){case"color":n.color=r.attr(e,"val");break;case"sz":n.fontSize=r.lengthAttr(e,"val",t.LengthUsage.FontSize);break;default:return!1}return!0}},448:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentPart=void 0;const r=n(530);class i extends r.Part{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.body=this._documentParser.parseDocumentFile(e)}}t.DocumentPart=i},120:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenXmlElementBase=t.DomType=void 0,function(e){e.Document="document",e.Paragraph="paragraph",e.Run="run",e.Break="break",e.NoBreakHyphen="noBreakHyphen",e.Table="table",e.Row="row",e.Cell="cell",e.Hyperlink="hyperlink",e.Drawing="drawing",e.Image="image",e.Text="text",e.Tab="tab",e.Symbol="symbol",e.BookmarkStart="bookmarkStart",e.BookmarkEnd="bookmarkEnd",e.Footer="footer",e.Header="header",e.FootnoteReference="footnoteReference",e.EndnoteReference="endnoteReference",e.Footnote="footnote",e.Endnote="endnote",e.SimpleField="simpleField",e.ComplexField="complexField",e.Instruction="instruction",e.VmlPicture="vmlPicture",e.MmlMath="mmlMath",e.MmlMathParagraph="mmlMathParagraph",e.MmlFraction="mmlFraction",e.MmlFunction="mmlFunction",e.MmlFunctionName="mmlFunctionName",e.MmlNumerator="mmlNumerator",e.MmlDenominator="mmlDenominator",e.MmlRadical="mmlRadical",e.MmlBase="mmlBase",e.MmlDegree="mmlDegree",e.MmlSuperscript="mmlSuperscript",e.MmlSubscript="mmlSubscript",e.MmlPreSubSuper="mmlPreSubSuper",e.MmlSubArgument="mmlSubArgument",e.MmlSuperArgument="mmlSuperArgument",e.MmlNary="mmlNary",e.MmlDelimiter="mmlDelimiter",e.MmlRun="mmlRun",e.MmlEquationArray="mmlEquationArray",e.MmlLimit="mmlLimit",e.MmlLimitLower="mmlLimitLower",e.MmlMatrix="mmlMatrix",e.MmlMatrixRow="mmlMatrixRow",e.MmlBox="mmlBox",e.MmlBar="mmlBar",e.MmlGroupChar="mmlGroupChar",e.VmlElement="vmlElement",e.Inserted="inserted",e.Deleted="deleted",e.DeletedText="deletedText"}(n||(t.DomType=n={})),t.OpenXmlElementBase=class{constructor(){this.children=[],this.cssStyle={}}}},931:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseLineSpacing=void 0,t.parseLineSpacing=function(e,t){return{before:t.lengthAttr(e,"before"),after:t.lengthAttr(e,"after"),line:t.intAttr(e,"line"),lineRule:t.attr(e,"lineRule")}}},109:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumbering=t.parseTabs=t.parseParagraphProperty=t.parseParagraphProperties=void 0;const r=n(149),i=n(59),o=n(931),a=n(488);function s(e,t,n){if(e.namespaceURI!=r.ns.wordml)return!1;if((0,r.parseCommonProperty)(e,t,n))return!0;switch(e.localName){case"tabs":t.tabs=c(e,n);break;case"sectPr":t.sectionProps=(0,i.parseSectionProperties)(e,n);break;case"numPr":t.numbering=u(e,n);break;case"spacing":return t.lineSpacing=(0,o.parseLineSpacing)(e,n),!1;case"textAlignment":return t.textAlignment=n.attr(e,"val"),!1;case"keepNext":t.keepLines=n.boolAttr(e,"val",!0);break;case"keepNext":t.keepNext=n.boolAttr(e,"val",!0);break;case"pageBreakBefore":t.pageBreakBefore=n.boolAttr(e,"val",!0);break;case"outlineLvl":t.outlineLevel=n.intAttr(e,"val");break;case"pStyle":t.styleName=n.attr(e,"val");break;case"rPr":t.runProps=(0,a.parseRunProperties)(e,n);break;default:return!1}return!0}function c(e,t){return t.elements(e,"tab").map(e=>({position:t.lengthAttr(e,"pos"),leader:t.attr(e,"leader"),style:t.attr(e,"val")}))}function u(e,t){var n={};for(let r of t.elements(e))switch(r.localName){case"numId":n.id=t.attr(r,"val");break;case"ilvl":n.level=t.intAttr(r,"val")}return n}t.parseParagraphProperties=function(e,t){let n={};for(let r of t.elements(e))s(r,n,t);return n},t.parseParagraphProperty=s,t.parseTabs=c,t.parseNumbering=u},488:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRunProperty=t.parseRunProperties=void 0;const r=n(149);function i(e,t,n){return!!(0,r.parseCommonProperty)(e,t,n)}t.parseRunProperties=function(e,t){let n={};for(let r of t.elements(e))i(r,n,t);return n},t.parseRunProperty=i},59:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSectionProperties=t.SectionType=void 0;const r=n(472),i=n(191);var o;function a(e,t){return{numberOfColumns:t.intAttr(e,"num"),space:t.lengthAttr(e,"space"),separator:t.boolAttr(e,"sep"),equalWidth:t.boolAttr(e,"equalWidth",!0),columns:t.elements(e,"col").map(e=>({width:t.lengthAttr(e,"w"),space:t.lengthAttr(e,"space")}))}}function s(e,t){return{chapSep:t.attr(e,"chapSep"),chapStyle:t.attr(e,"chapStyle"),format:t.attr(e,"fmt"),start:t.intAttr(e,"start")}}function c(e,t){return{id:t.attr(e,"id"),type:t.attr(e,"type")}}!function(e){e.Continuous="continuous",e.NextPage="nextPage",e.NextColumn="nextColumn",e.EvenPage="evenPage",e.OddPage="oddPage"}(o||(t.SectionType=o={})),t.parseSectionProperties=function(e,t=r.default){var n,o,u={};for(let r of t.elements(e))switch(r.localName){case"pgSz":u.pageSize={width:t.lengthAttr(r,"w"),height:t.lengthAttr(r,"h"),orientation:t.attr(r,"orient")};break;case"type":u.type=t.attr(r,"val");break;case"pgMar":u.pageMargins={left:t.lengthAttr(r,"left"),right:t.lengthAttr(r,"right"),top:t.lengthAttr(r,"top"),bottom:t.lengthAttr(r,"bottom"),header:t.lengthAttr(r,"header"),footer:t.lengthAttr(r,"footer"),gutter:t.lengthAttr(r,"gutter")};break;case"cols":u.columns=a(r,t);break;case"headerReference":(null!==(n=u.headerRefs)&&void 0!==n?n:u.headerRefs=[]).push(c(r,t));break;case"footerReference":(null!==(o=u.footerRefs)&&void 0!==o?o:u.footerRefs=[]).push(c(r,t));break;case"titlePg":u.titlePage=t.boolAttr(r,"val",!0);break;case"pgBorders":u.pageBorders=(0,i.parseBorders)(r,t);break;case"pgNumType":u.pageNumber=s(r,t)}return u}},667:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderAsync=t.praseAsync=t.defaultOptions=void 0;const r=n(213),i=n(168),o=n(932);t.defaultOptions={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,useMathMLPolyfill:!1,renderChanges:!1},t.praseAsync=function(e,n=null){const o=Object.assign(Object.assign({},t.defaultOptions),n);return r.WordDocument.load(e,new i.DocumentParser(o),o)},t.renderAsync=async function(e,n,a=null,s=null){const c=Object.assign(Object.assign({},t.defaultOptions),s),u=new o.HtmlRenderer(window.document),l=await r.WordDocument.load(e,new i.DocumentParser(c),c);return u.render(l,n,a,c),l}},380:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontTablePart=void 0;const r=n(530),i=n(512);class o extends r.Part{parseXml(e){this.fonts=(0,i.parseFonts)(e,this._package.xmlParser)}}t.FontTablePart=o},512:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEmbedFontRef=t.parseFont=t.parseFonts=void 0;const n={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function r(e,t){let n={name:t.attr(e,"name"),embedFontRefs:[]};for(let r of t.elements(e))switch(r.localName){case"family":n.family=t.attr(r,"val");break;case"altName":n.altName=t.attr(r,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":n.embedFontRefs.push(i(r,t))}return n}function i(e,t){return{id:t.attr(e,"id"),key:t.attr(e,"fontKey"),type:n[e.localName]}}t.parseFonts=function(e,t){return t.elements(e).map(e=>r(e,t))},t.parseFont=r,t.parseEmbedFontRef=i},984:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlFooter=t.WmlHeader=void 0;const r=n(120);class i extends r.OpenXmlElementBase{constructor(){super(...arguments),this.type=r.DomType.Header}}t.WmlHeader=i;class o extends r.OpenXmlElementBase{constructor(){super(...arguments),this.type=r.DomType.Footer}}t.WmlFooter=o},985:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FooterPart=t.HeaderPart=t.BaseHeaderFooterPart=void 0;const r=n(530),i=n(984);class o extends r.Part{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}}t.BaseHeaderFooterPart=o,t.HeaderPart=class extends o{createRootElement(){return new i.WmlHeader}},t.FooterPart=class extends o{createRootElement(){return new i.WmlFooter}}},932:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HtmlRenderer=void 0;const r=n(120),i=n(593),o=n(630),a=n(438),s="http://www.w3.org/1998/Math/MathML";function c(e,t,n){return l(void 0,e,t,n)}function u(e,t,n){return l("http://www.w3.org/2000/svg",e,t,n)}function l(e,t,n,r){var i=e?document.createElementNS(e,t):document.createElement(t);return Object.assign(i,n),r&&f(i,r),i}function d(e){e.innerHTML=""}function f(e,t){t.forEach(t=>e.appendChild((0,i.isString)(t)?document.createTextNode(t):t))}function h(e){return c("style",{innerHTML:e})}function p(e,t){e.appendChild(document.createComment(t))}t.HtmlRenderer=class{constructor(e){this.htmlDocument=e,this.className="docx",this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.tabsTimeout=0,this.createElement=c}render(e,t,n=null,r){var o;this.document=e,this.options=r,this.className=r.className,this.rootSelector=r.inWrapper?`.${this.className}-wrapper`:":root",this.styleMap=null,d(n=n||t),d(t),p(n,"docxjs library predefined styles"),n.appendChild(this.renderDefaultStyle()),!window.MathMLElement&&r.useMathMLPolyfill&&(p(n,"docxjs mathml polyfill styles"),n.appendChild(h(a.default))),e.themePart&&(p(n,"docxjs document theme values"),this.renderTheme(e.themePart,n)),null!=e.stylesPart&&(this.styleMap=this.processStyles(e.stylesPart.styles),p(n,"docxjs document styles"),n.appendChild(this.renderStyles(e.stylesPart.styles))),e.numberingPart&&(this.prodessNumberings(e.numberingPart.domNumberings),p(n,"docxjs document numbering styles"),n.appendChild(this.renderNumbering(e.numberingPart.domNumberings,n))),e.footnotesPart&&(this.footnoteMap=(0,i.keyBy)(e.footnotesPart.notes,e=>e.id)),e.endnotesPart&&(this.endnoteMap=(0,i.keyBy)(e.endnotesPart.notes,e=>e.id)),e.settingsPart&&(this.defaultTabSize=null===(o=e.settingsPart.settings)||void 0===o?void 0:o.defaultTabStop),!r.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,n);var s=this.renderSections(e.documentPart.body);this.options.inWrapper?t.appendChild(this.renderWrapper(s)):f(t,s),this.refreshTabStops()}renderTheme(e,t){var n,r;const i={},o=null===(n=e.theme)||void 0===n?void 0:n.fontScheme;o&&(o.majorFont&&(i["--docx-majorHAnsi-font"]=o.majorFont.latinTypeface),o.minorFont&&(i["--docx-minorHAnsi-font"]=o.minorFont.latinTypeface));const a=null===(r=e.theme)||void 0===r?void 0:r.colorScheme;if(a)for(let[c,u]of Object.entries(a.colors))i[`--docx-${c}-color`]="#"+u;const s=this.styleToString("."+this.className,i);t.appendChild(h(s))}renderFontTable(e,t){for(let n of e.fonts)for(let e of n.embedFontRefs)this.document.loadFont(e.id,e.key).then(r=>{const i={"font-family":n.name,src:`url(${r})`};"bold"!=e.type&&"boldItalic"!=e.type||(i["font-weight"]="bold"),"italic"!=e.type&&"boldItalic"!=e.type||(i["font-style"]="italic"),p(t,`docxjs ${n.name} font`);const o=this.styleToString("@font-face",i);t.appendChild(h(o)),this.refreshTabStops()})}processStyleName(e){return e?`${this.className}_${(0,i.escapeClassName)(e)}`:this.className}processStyles(e){const t=(0,i.keyBy)(e.filter(e=>null!=e.id),e=>e.id);for(const r of e.filter(e=>e.basedOn)){var n=t[r.basedOn];if(n){r.paragraphProps=(0,i.mergeDeep)(r.paragraphProps,n.paragraphProps),r.runProps=(0,i.mergeDeep)(r.runProps,n.runProps);for(const e of n.styles){const t=r.styles.find(t=>t.target==e.target);t?this.copyStyleProperties(e.values,t.values):r.styles.push(Object.assign(Object.assign({},e),{values:Object.assign({},e.values)}))}}else this.options.debug&&console.warn("Can't find base style "+r.basedOn)}for(let r of e)r.cssName=this.processStyleName(r.id);return t}prodessNumberings(e){var t;for(let n of e.filter(e=>e.pStyleName)){const e=this.findStyle(n.pStyleName);(null===(t=null==e?void 0:e.paragraphProps)||void 0===t?void 0:t.numbering)&&(e.paragraphProps.numbering.level=n.level)}}processElement(e){if(e.children)for(var t of e.children)t.parent=e,t.type==r.DomType.Table?this.processTable(t):this.processElement(t)}processTable(e){for(var t of e.children)for(var n of t.children)n.cssStyle=this.copyStyleProperties(e.cellStyle,n.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(n)}copyStyleProperties(e,t,n=null){if(!e)return t;for(var r of(null==t&&(t={}),null==n&&(n=Object.getOwnPropertyNames(e)),n))e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r]);return t}createSection(e,t){var n=this.createElement("section",{className:e});return t&&(t.pageMargins&&(n.style.paddingLeft=t.pageMargins.left,n.style.paddingRight=t.pageMargins.right,n.style.paddingTop=t.pageMargins.top,n.style.paddingBottom=t.pageMargins.bottom),t.pageSize&&(this.options.ignoreWidth||(n.style.width=t.pageSize.width),this.options.ignoreHeight||(n.style.minHeight=t.pageSize.height)),t.columns&&t.columns.numberOfColumns&&(n.style.columnCount=""+t.columns.numberOfColumns,n.style.columnGap=t.columns.space,t.columns.separator&&(n.style.columnRule="1px solid black"))),n}renderSections(e){const t=[];this.processElement(e);const n=this.splitBySection(e.children);let r=null;for(let o=0,a=n.length;o<a;o++){this.currentFootnoteIds=[];const s=n[o],c=s.sectProps||e.props,u=this.createSection(this.className,c);this.renderStyleValues(e.cssStyle,u),this.options.renderHeaders&&this.renderHeaderFooter(c.headerRefs,c,t.length,r!=c,u);var i=this.createElement("article");this.renderElements(s.elements,i),u.appendChild(i),this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,u),this.options.renderEndnotes&&o==a-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,u),this.options.renderFooters&&this.renderHeaderFooter(c.footerRefs,c,t.length,r!=c,u),t.push(u),r=c}return t}renderHeaderFooter(e,t,n,r,i){var o,a;if(e){var s=null!==(a=null!==(o=t.titlePage&&r?e.find(e=>"first"==e.type):null)&&void 0!==o?o:n%2==1?e.find(e=>"even"==e.type):null)&&void 0!==a?a:e.find(e=>"default"==e.type),c=s&&this.document.findPartByRelId(s.id,this.document.documentPart);c&&(this.currentPart=c,this.usedHederFooterParts.includes(c.path)||(this.processElement(c.rootElement),this.usedHederFooterParts.push(c.path)),this.renderElements([c.rootElement],i),this.currentPart=null)}}isPageBreakElement(e){return e.type==r.DomType.Break&&("lastRenderedPageBreak"==e.break?!this.options.ignoreLastRenderedPageBreak:"page"==e.break)}splitBySection(e){var t,n={sectProps:null,elements:[]},i=[n];for(let d of e){if(d.type==r.DomType.Paragraph){const e=this.findStyle(d.styleName);(null===(t=null==e?void 0:e.paragraphProps)||void 0===t?void 0:t.pageBreakBefore)&&(n.sectProps=o,n={sectProps:null,elements:[]},i.push(n))}if(n.elements.push(d),d.type==r.DomType.Paragraph){const e=d;var o=e.sectionProps,a=-1,s=-1;if(this.options.breakPages&&e.children&&(a=e.children.findIndex(e=>{var t,n;return-1!=(s=null!==(n=null===(t=e.children)||void 0===t?void 0:t.findIndex(this.isPageBreakElement.bind(this)))&&void 0!==n?n:-1)})),(o||-1!=a)&&(n.sectProps=o,n={sectProps:null,elements:[]},i.push(n)),-1!=a){let t=e.children[a],r=s<t.children.length-1;if(a<e.children.length-1||r){var c=d.children,u=Object.assign(Object.assign({},d),{children:c.slice(a)});if(d.children=c.slice(0,a),n.elements.push(u),r){let e=t.children,n=Object.assign(Object.assign({},t),{children:e.slice(0,s)});d.children.push(n),t.children=e.slice(s)}}}}}let l=null;for(let r=i.length-1;r>=0;r--)null==i[r].sectProps?i[r].sectProps=l:l=i[r].sectProps;return i}renderWrapper(e){return this.createElement("div",{className:this.className+"-wrapper"},e)}renderDefaultStyle(){var e=this.className;return h(`\n.${e}-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } \n.${e}-wrapper>section.${e} { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }\n.${e} { color: black; hyphens: auto; }\nsection.${e} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }\nsection.${e}>article { margin-bottom: auto; z-index: 1; }\nsection.${e}>footer { z-index: 1; }\n.${e} table { border-collapse: collapse; }\n.${e} table td, .${e} table th { vertical-align: top; }\n.${e} p { margin: 0pt; min-height: 1em; }\n.${e} span { white-space: pre-wrap; overflow-wrap: break-word; }\n.${e} a { color: inherit; text-decoration: inherit; }\n`)}renderNumbering(e,t){var n="",r=[];for(var i of e){var o="p."+this.numberingClass(i.id,i.level),a="none";if(i.bullet){let e=`--${this.className}-${i.bullet.src}`.toLowerCase();n+=this.styleToString(o+":before",{content:"' '",display:"inline-block",background:`var(${e})`},i.bullet.style),this.document.loadNumberingImage(i.bullet.src).then(n=>{var r=`${this.rootSelector} { ${e}: url(${n}) }`;t.appendChild(h(r))})}else if(i.levelText){let e=this.numberingCounter(i.id,i.level);const t=e+" "+(i.start-1);i.level>0&&(n+=this.styleToString("p."+this.numberingClass(i.id,i.level-1),{"counter-reset":t})),r.push(t),n+=this.styleToString(o+":before",Object.assign({content:this.levelTextToContent(i.levelText,i.suff,i.id,this.numFormatToCssValue(i.format)),"counter-increment":e},i.rStyle))}else a=this.numFormatToCssValue(i.format);n+=this.styleToString(o,Object.assign({display:"list-item","list-style-position":"inside","list-style-type":a},i.pStyle))}return r.length>0&&(n+=this.styleToString(this.rootSelector,{"counter-reset":r.join(" ")})),h(n)}renderStyles(e){var t,n="";const r=this.styleMap,o=(0,i.keyBy)(e.filter(e=>e.isDefault),e=>e.target);for(const i of e){var a=i.styles;if(i.linked){var s=i.linked&&r[i.linked];s?a=a.concat(s.styles):this.options.debug&&console.warn("Can't find linked style "+i.linked)}for(const e of a){var c=`${null!==(t=i.target)&&void 0!==t?t:""}.${i.cssName}`;i.target!=e.target&&(c+=" "+e.target),o[i.target]==i&&(c=`.${this.className} ${i.target}, `+c),n+=this.styleToString(c,e.values)}}return h(n)}renderNotes(e,t,n){var r=e.map(e=>t[e]).filter(e=>e);if(r.length>0){var i=this.createElement("ol",null,this.renderElements(r));n.appendChild(i)}}renderElement(e){switch(e.type){case r.DomType.Paragraph:return this.renderParagraph(e);case r.DomType.BookmarkStart:return this.renderBookmarkStart(e);case r.DomType.BookmarkEnd:return null;case r.DomType.Run:return this.renderRun(e);case r.DomType.Table:return this.renderTable(e);case r.DomType.Row:return this.renderTableRow(e);case r.DomType.Cell:return this.renderTableCell(e);case r.DomType.Hyperlink:return this.renderHyperlink(e);case r.DomType.Drawing:return this.renderDrawing(e);case r.DomType.Image:return this.renderImage(e);case r.DomType.Text:case r.DomType.Text:return this.renderText(e);case r.DomType.DeletedText:return this.renderDeletedText(e);case r.DomType.Tab:return this.renderTab(e);case r.DomType.Symbol:return this.renderSymbol(e);case r.DomType.Break:return this.renderBreak(e);case r.DomType.Footer:return this.renderContainer(e,"footer");case r.DomType.Header:return this.renderContainer(e,"header");case r.DomType.Footnote:case r.DomType.Endnote:return this.renderContainer(e,"li");case r.DomType.FootnoteReference:return this.renderFootnoteReference(e);case r.DomType.EndnoteReference:return this.renderEndnoteReference(e);case r.DomType.NoBreakHyphen:return this.createElement("wbr");case r.DomType.VmlPicture:return this.renderVmlPicture(e);case r.DomType.VmlElement:return this.renderVmlElement(e);case r.DomType.MmlMath:return this.renderContainerNS(e,s,"math",{xmlns:s});case r.DomType.MmlMathParagraph:return this.renderContainer(e,"span");case r.DomType.MmlFraction:return this.renderContainerNS(e,s,"mfrac");case r.DomType.MmlBase:return this.renderContainerNS(e,s,e.parent.type==r.DomType.MmlMatrixRow?"mtd":"mrow");case r.DomType.MmlNumerator:case r.DomType.MmlDenominator:case r.DomType.MmlFunction:case r.DomType.MmlLimit:case r.DomType.MmlBox:return this.renderContainerNS(e,s,"mrow");case r.DomType.MmlGroupChar:return this.renderMmlGroupChar(e);case r.DomType.MmlLimitLower:return this.renderContainerNS(e,s,"munder");case r.DomType.MmlMatrix:return this.renderContainerNS(e,s,"mtable");case r.DomType.MmlMatrixRow:return this.renderContainerNS(e,s,"mtr");case r.DomType.MmlRadical:return this.renderMmlRadical(e);case r.DomType.MmlSuperscript:return this.renderContainerNS(e,s,"msup");case r.DomType.MmlSubscript:return this.renderContainerNS(e,s,"msub");case r.DomType.MmlDegree:case r.DomType.MmlSuperArgument:case r.DomType.MmlSubArgument:return this.renderContainerNS(e,s,"mn");case r.DomType.MmlFunctionName:return this.renderContainerNS(e,s,"ms");case r.DomType.MmlDelimiter:return this.renderMmlDelimiter(e);case r.DomType.MmlRun:return this.renderMmlRun(e);case r.DomType.MmlNary:return this.renderMmlNary(e);case r.DomType.MmlPreSubSuper:return this.renderMmlPreSubSuper(e);case r.DomType.MmlBar:return this.renderMmlBar(e);case r.DomType.MmlEquationArray:return this.renderMllList(e);case r.DomType.Inserted:return this.renderInserted(e);case r.DomType.Deleted:return this.renderDeleted(e)}return null}renderChildren(e,t){return this.renderElements(e.children,t)}renderElements(e,t){if(null==e)return null;var n=e.flatMap(e=>this.renderElement(e)).filter(e=>null!=e);return t&&f(t,n),n}renderContainer(e,t,n){return this.createElement(t,n,this.renderChildren(e))}renderContainerNS(e,t,n,r){return l(t,n,r,this.renderChildren(e))}renderParagraph(e){var t,n,r,i,o=this.createElement("p");const a=this.findStyle(e.styleName);null!==(t=e.tabs)&&void 0!==t||(e.tabs=null===(n=null==a?void 0:a.paragraphProps)||void 0===n?void 0:n.tabs),this.renderClass(e,o),this.renderChildren(e,o),this.renderStyleValues(e.cssStyle,o),this.renderCommonProperties(o.style,e);const s=null!==(r=e.numbering)&&void 0!==r?r:null===(i=null==a?void 0:a.paragraphProps)||void 0===i?void 0:i.numbering;return s&&o.classList.add(this.numberingClass(s.id,s.level)),o}renderRunProperties(e,t){this.renderCommonProperties(e,t)}renderCommonProperties(e,t){null!=t&&(t.color&&(e.color=t.color),t.fontSize&&(e["font-size"]=t.fontSize))}renderHyperlink(e){var t=this.createElement("a");if(this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.href)t.href=e.href;else if(e.id){const n=this.document.documentPart.rels.find(t=>t.id==e.id&&"External"===t.targetMode);t.href=null==n?void 0:n.target}return t}renderDrawing(e){var t=this.createElement("div");return t.style.display="inline-block",t.style.position="relative",t.style.textIndent="0px",this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),t}renderImage(e){let t=this.createElement("img");return this.renderStyleValues(e.cssStyle,t),this.document&&this.document.loadDocumentImage(e.src,this.currentPart).then(e=>{t.src=e}),t}renderText(e){return this.htmlDocument.createTextNode(e.text)}renderDeletedText(e){return this.options.renderEndnotes?this.htmlDocument.createTextNode(e.text):null}renderBreak(e){return"textWrapping"==e.break?this.createElement("br"):null}renderInserted(e){return this.options.renderChanges?this.renderContainer(e,"ins"):this.renderChildren(e)}renderDeleted(e){return this.options.renderChanges?this.renderContainer(e,"del"):null}renderSymbol(e){var t=this.createElement("span");return t.style.fontFamily=e.font,t.innerHTML=`&#x${e.char};`,t}renderFootnoteReference(e){var t=this.createElement("sup");return this.currentFootnoteIds.push(e.id),t.textContent=""+this.currentFootnoteIds.length,t}renderEndnoteReference(e){var t=this.createElement("sup");return this.currentEndnoteIds.push(e.id),t.textContent=""+this.currentEndnoteIds.length,t}renderTab(e){var t,n=this.createElement("span");if(n.innerHTML="&emsp;",this.options.experimental){n.className=this.tabStopClass();var i=null===(t=function(e,t){for(var n=e.parent;null!=n&&n.type!=t;)n=n.parent;return n}(e,r.DomType.Paragraph))||void 0===t?void 0:t.tabs;this.currentTabs.push({stops:i,span:n})}return n}renderBookmarkStart(e){var t=this.createElement("span");return t.id=e.name,t}renderRun(e){if(e.fieldRun)return null;const t=this.createElement("span");if(e.id&&(t.id=e.id),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.verticalAlign){const n=this.createElement(e.verticalAlign);this.renderChildren(e,n),t.appendChild(n)}else this.renderChildren(e,t);return t}renderTable(e){let t=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&t.appendChild(this.renderTableColumns(e.columns)),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}renderTableColumns(e){let t=this.createElement("colgroup");for(let n of e){let e=this.createElement("col");n.width&&(e.style.width=n.width),t.appendChild(e)}return t}renderTableRow(e){let t=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentCellPosition.row++,t}renderTableCell(e){let t=this.createElement("td");const n=this.currentCellPosition.col;return e.verticalMerge?"restart"==e.verticalMerge?(this.currentVerticalMerge[n]=t,t.rowSpan=1):this.currentVerticalMerge[n]&&(this.currentVerticalMerge[n].rowSpan+=1,t.style.display="none"):this.currentVerticalMerge[n]=null,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col+=t.colSpan,t}renderVmlPicture(e){var t=c("div");return this.renderChildren(e,t),t}renderVmlElement(e){var t,n,r=u("svg");r.setAttribute("style",e.cssStyleText);const i=this.renderVmlChildElement(e);return(null===(t=e.imageHref)||void 0===t?void 0:t.id)&&(null===(n=this.document)||void 0===n||n.loadDocumentImage(e.imageHref.id,this.currentPart).then(e=>i.setAttribute("href",e))),r.appendChild(i),requestAnimationFrame(()=>{const e=r.firstElementChild.getBBox();r.setAttribute("width",""+Math.ceil(e.x+e.width)),r.setAttribute("height",""+Math.ceil(e.y+e.height))}),r}renderVmlChildElement(e){const t=u(e.tagName);Object.entries(e.attrs).forEach(([e,n])=>t.setAttribute(e,n));for(let n of e.children)n.type==r.DomType.VmlElement?t.appendChild(this.renderVmlChildElement(n)):t.appendChild(...(0,i.asArray)(this.renderElement(n)));return t}renderMmlRadical(e){var t;const n=e.children.find(e=>e.type==r.DomType.MmlBase);if(null===(t=e.props)||void 0===t?void 0:t.hideDegree)return l(s,"msqrt",null,this.renderElements([n]));const i=e.children.find(e=>e.type==r.DomType.MmlDegree);return l(s,"mroot",null,this.renderElements([n,i]))}renderMmlDelimiter(e){var t,n;const r=[];return r.push(l(s,"mo",null,[null!==(t=e.props.beginChar)&&void 0!==t?t:"("])),r.push(...this.renderElements(e.children)),r.push(l(s,"mo",null,[null!==(n=e.props.endChar)&&void 0!==n?n:")"])),l(s,"mrow",null,r)}renderMmlNary(e){var t,n;const o=[],a=(0,i.keyBy)(e.children,e=>e.type),c=a[r.DomType.MmlSuperArgument],u=a[r.DomType.MmlSubArgument],d=c?l(s,"mo",null,(0,i.asArray)(this.renderElement(c))):null,f=u?l(s,"mo",null,(0,i.asArray)(this.renderElement(u))):null,h=l(s,"mo",null,[null!==(n=null===(t=e.props)||void 0===t?void 0:t.char)&&void 0!==n?n:"∫"]);return d||f?o.push(l(s,"munderover",null,[h,f,d])):d?o.push(l(s,"mover",null,[h,d])):f?o.push(l(s,"munder",null,[h,f])):o.push(h),o.push(...this.renderElements(a[r.DomType.MmlBase].children)),l(s,"mrow",null,o)}renderMmlPreSubSuper(e){const t=[],n=(0,i.keyBy)(e.children,e=>e.type),o=n[r.DomType.MmlSuperArgument],a=n[r.DomType.MmlSubArgument],c=o?l(s,"mo",null,(0,i.asArray)(this.renderElement(o))):null,u=a?l(s,"mo",null,(0,i.asArray)(this.renderElement(a))):null,d=l(s,"mo",null);return t.push(l(s,"msubsup",null,[d,u,c])),t.push(...this.renderElements(n[r.DomType.MmlBase].children)),l(s,"mrow",null,t)}renderMmlGroupChar(e){const t="bot"===e.props.verticalJustification?"mover":"munder",n=this.renderContainerNS(e,s,t);return e.props.char&&n.appendChild(l(s,"mo",null,[e.props.char])),n}renderMmlBar(e){const t=this.renderContainerNS(e,s,"mrow");switch(e.props.position){case"top":t.style.textDecoration="overline";break;case"bottom":t.style.textDecoration="underline"}return t}renderMmlRun(e){const t=l(s,"ms");return this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e,t),t}renderMllList(e){const t=l(s,"mtable");this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e);for(let n of this.renderChildren(e))t.appendChild(l(s,"mtr",null,[l(s,"mtd",null,[n])]));return t}renderStyleValues(e,t){for(let n in e)n.startsWith("$")?t.setAttribute(n.slice(1),e[n]):t.style[n]=e[n]}renderClass(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}findStyle(e){var t;return e&&(null===(t=this.styleMap)||void 0===t?void 0:t[e])}numberingClass(e,t){return`${this.className}-num-${e}-${t}`}tabStopClass(){return this.className+"-tab-stop"}styleToString(e,t,n=null){let r=e+" {\r\n";for(const i in t)i.startsWith("$")||(r+=`  ${i}: ${t[i]};\r\n`);return n&&(r+=n),r+"}\r\n"}numberingCounter(e,t){return`${this.className}-num-${e}-${t}`}levelTextToContent(e,t,n,r){var i;return`"${e.replace(/%\d*/g,e=>{let t=parseInt(e.substring(1),10)-1;return`"counter(${this.numberingCounter(n,t)}, ${r})"`})}${null!==(i={tab:"\\9",space:"\\a0"}[t])&&void 0!==i?i:""}"`}numFormatToCssValue(e){var t;return null!==(t={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"}[e])&&void 0!==t?t:e}refreshTabStops(){this.options.experimental&&(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout(()=>{const e=(0,o.computePixelToPoint)();for(let t of this.currentTabs)(0,o.updateTabStop)(t.span,t.stops,this.defaultTabSize,e)},500))}}},630:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateTabStop=t.computePixelToPoint=void 0;const n={pos:0,leader:"none",style:"left"};function r(e){return parseFloat(e)}t.computePixelToPoint=function(e=document.body){const t=document.createElement("div");t.style.width="100pt",e.appendChild(t);const n=100/t.offsetWidth;return e.removeChild(t),n},t.updateTabStop=function(e,t,i,o=.75){const a=e.closest("p"),s=e.getBoundingClientRect(),c=a.getBoundingClientRect(),u=getComputedStyle(a),l=(null==t?void 0:t.length)>0?t.map(e=>({pos:r(e.position),leader:e.leader,style:e.style})).sort((e,t)=>e.pos-t.pos):[n],d=l[l.length-1],f=c.width*o,h=r(i);let p=d.pos+h;if(p<f)for(;p<f&&l.length<50;p+=h)l.push(Object.assign(Object.assign({},n),{pos:p}));const g=parseFloat(u.marginLeft),m=c.left+g,v=(s.left-m)*o,b=l.find(e=>"clear"!=e.style&&e.pos>v);if(null==b)return;let y=1;if("right"==b.style||"center"==b.style){const t=Array.from(a.querySelectorAll("."+e.className)),n=t.indexOf(e)+1,r=document.createRange();r.setStart(e,1),n<t.length?r.setEndBefore(t[n]):r.setEndAfter(a);const i="center"==b.style?.5:1,s=r.getBoundingClientRect(),u=s.left+i*s.width-(c.left-g);y=b.pos-u*o}else y=b.pos-v;switch(e.innerHTML="&nbsp;",e.style.textDecoration="inherit",e.style.wordSpacing=y.toFixed(0)+"pt",b.leader){case"dot":case"middleDot":e.style.textDecoration="underline",e.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":e.style.textDecoration="underline"}}},881:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlEndnote=t.WmlFootnote=t.WmlBaseNote=void 0;const r=n(120);class i{}t.WmlBaseNote=i,t.WmlFootnote=class extends i{constructor(){super(...arguments),this.type=r.DomType.Footnote}},t.WmlEndnote=class extends i{constructor(){super(...arguments),this.type=r.DomType.Endnote}}},735:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EndnotesPart=t.FootnotesPart=t.BaseNotePart=void 0;const r=n(530),i=n(881);class o extends r.Part{constructor(e,t,n){super(e,t),this._documentParser=n}}t.BaseNotePart=o,t.FootnotesPart=class extends o{constructor(e,t,n){super(e,t,n)}parseXml(e){this.notes=this._documentParser.parseNotes(e,"footnote",i.WmlFootnote)}},t.EndnotesPart=class extends o{constructor(e,t,n){super(e,t,n)}parseXml(e){this.notes=this._documentParser.parseNotes(e,"endnote",i.WmlEndnote)}}},527:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberingPart=void 0;const r=n(530),i=n(682);class o extends r.Part{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){Object.assign(this,(0,i.parseNumberingPart)(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)}}t.NumberingPart=o},682:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumberingBulletPicture=t.parseNumberingLevelOverrride=t.parseNumberingLevel=t.parseAbstractNumbering=t.parseNumbering=t.parseNumberingPart=void 0;const r=n(109),i=n(488);function o(e,t){let n={id:t.attr(e,"numId"),overrides:[]};for(let r of t.elements(e))switch(r.localName){case"abstractNumId":n.abstractId=t.attr(r,"val");break;case"lvlOverride":n.overrides.push(c(r,t))}return n}function a(e,t){let n={id:t.attr(e,"abstractNumId"),levels:[]};for(let r of t.elements(e))switch(r.localName){case"name":n.name=t.attr(r,"val");break;case"multiLevelType":n.multiLevelType=t.attr(r,"val");break;case"numStyleLink":n.numberingStyleLink=t.attr(r,"val");break;case"styleLink":n.styleLink=t.attr(r,"val");break;case"lvl":n.levels.push(s(r,t))}return n}function s(e,t){let n={level:t.intAttr(e,"ilvl")};for(let o of t.elements(e))switch(o.localName){case"start":n.start=t.attr(o,"val");break;case"lvlRestart":n.restart=t.intAttr(o,"val");break;case"numFmt":n.format=t.attr(o,"val");break;case"lvlText":n.text=t.attr(o,"val");break;case"lvlJc":n.justification=t.attr(o,"val");break;case"lvlPicBulletId":n.bulletPictureId=t.attr(o,"val");break;case"pStyle":n.paragraphStyle=t.attr(o,"val");break;case"pPr":n.paragraphProps=(0,r.parseParagraphProperties)(o,t);break;case"rPr":n.runProps=(0,i.parseRunProperties)(o,t)}return n}function c(e,t){let n={level:t.intAttr(e,"ilvl")};for(let r of t.elements(e))switch(r.localName){case"startOverride":n.start=t.intAttr(r,"val");break;case"lvl":n.numberingLevel=s(r,t)}return n}function u(e,t){var n=t.element(e,"pict"),r=n&&t.element(n,"shape"),i=r&&t.element(r,"imagedata");return i?{id:t.attr(e,"numPicBulletId"),referenceId:t.attr(i,"id"),style:t.attr(r,"style")}:null}t.parseNumberingPart=function(e,t){let n={numberings:[],abstractNumberings:[],bulletPictures:[]};for(let r of t.elements(e))switch(r.localName){case"num":n.numberings.push(o(r,t));break;case"abstractNum":n.abstractNumberings.push(a(r,t));break;case"numPicBullet":n.bulletPictures.push(u(r,t))}return n},t.parseNumbering=o,t.parseAbstractNumbering=a,t.parseNumberingLevel=s,t.parseNumberingLevelOverrride=c,t.parseNumberingBulletPicture=u},472:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XmlParser=t.serializeXmlString=t.parseXmlString=void 0;const r=n(149);t.parseXmlString=function(e,t=!1){var n;t&&(e=e.replace(/<[?].*[?]>/,"")),e=65279===(n=e).charCodeAt(0)?n.substring(1):n;const r=(new DOMParser).parseFromString(e,"application/xml"),i=null===(o=r.getElementsByTagName("parsererror")[0])||void 0===o?void 0:o.textContent;var o;if(i)throw new Error(i);return r},t.serializeXmlString=function(e){return(new XMLSerializer).serializeToString(e)};class i{elements(e,t=null){const n=[];for(let r=0,i=e.childNodes.length;r<i;r++){let i=e.childNodes.item(r);1!=i.nodeType||null!=t&&i.localName!=t||n.push(i)}return n}element(e,t){for(let n=0,r=e.childNodes.length;n<r;n++){let r=e.childNodes.item(n);if(1==r.nodeType&&r.localName==t)return r}return null}elementAttr(e,t,n){var r=this.element(e,t);return r?this.attr(r,n):void 0}attrs(e){return Array.from(e.attributes)}attr(e,t){for(let n=0,r=e.attributes.length;n<r;n++){let r=e.attributes.item(n);if(r.localName==t)return r.value}return null}intAttr(e,t,n=null){var r=this.attr(e,t);return r?parseInt(r):n}hexAttr(e,t,n=null){var r=this.attr(e,t);return r?parseInt(r,16):n}floatAttr(e,t,n=null){var r=this.attr(e,t);return r?parseFloat(r):n}boolAttr(e,t,n=null){return(0,r.convertBoolean)(this.attr(e,t),n)}lengthAttr(e,t,n=r.LengthUsage.Dxa){return(0,r.convertLength)(this.attr(e,t),n)}}t.XmlParser=i;const o=new i;t.default=o},287:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPart=void 0;const r=n(530),i=n(846);class o extends r.Part{constructor(e,t){super(e,t)}parseXml(e){this.settings=(0,i.parseSettings)(e,this._package.xmlParser)}}t.SettingsPart=o},846:(e,t)=>{function n(e,t){var n={defaultNoteIds:[]};for(let r of t.elements(e))switch(r.localName){case"numFmt":n.nummeringFormat=t.attr(r,"val");break;case"footnote":case"endnote":n.defaultNoteIds.push(t.attr(r,"id"))}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.parseNoteProperties=t.parseSettings=void 0,t.parseSettings=function(e,t){var r={};for(let i of t.elements(e))switch(i.localName){case"defaultTabStop":r.defaultTabStop=t.lengthAttr(i,"val");break;case"footnotePr":r.footnoteProps=n(i,t);break;case"endnotePr":r.endnoteProps=n(i,t);break;case"autoHyphenation":r.autoHyphenation=t.boolAttr(i,"val")}return r},t.parseNoteProperties=n},240:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StylesPart=void 0;const r=n(530);class i extends r.Part{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.styles=this._documentParser.parseStylesFile(e)}}t.StylesPart=i},893:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemePart=void 0;const r=n(530),i=n(55);class o extends r.Part{constructor(e,t){super(e,t)}parseXml(e){this.theme=(0,i.parseTheme)(e,this._package.xmlParser)}}t.ThemePart=o},55:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseFontInfo=t.parseFontScheme=t.parseColorScheme=t.parseTheme=t.DmlTheme=void 0;class n{}function r(e,t){var n={name:t.attr(e,"name"),colors:{}};for(let o of t.elements(e)){var r=t.element(o,"srgbClr"),i=t.element(o,"sysClr");r?n.colors[o.localName]=t.attr(r,"val"):i&&(n.colors[o.localName]=t.attr(i,"lastClr"))}return n}function i(e,t){var n={name:t.attr(e,"name")};for(let r of t.elements(e))switch(r.localName){case"majorFont":n.majorFont=o(r,t);break;case"minorFont":n.minorFont=o(r,t)}return n}function o(e,t){return{latinTypeface:t.elementAttr(e,"latin","typeface"),eaTypeface:t.elementAttr(e,"ea","typeface"),csTypeface:t.elementAttr(e,"cs","typeface")}}t.DmlTheme=n,t.parseTheme=function(e,t){var o=new n,a=t.element(e,"themeElements");for(let n of t.elements(a))switch(n.localName){case"clrScheme":o.colorScheme=r(n,t);break;case"fontScheme":o.fontScheme=i(n,t)}return o},t.parseColorScheme=r,t.parseFontScheme=i,t.parseFontInfo=o},593:(e,t)=>{function n(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.asArray=t.formatCssRules=t.parseCssRules=t.mergeDeep=t.isString=t.isObject=t.blobToBase64=t.keyBy=t.resolvePath=t.splitPath=t.escapeClassName=void 0,t.escapeClassName=function(e){return null==e?void 0:e.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()},t.splitPath=function(e){let t=e.lastIndexOf("/")+1;return[0==t?"":e.substring(0,t),0==t?e:e.substring(t)]},t.resolvePath=function(e,t){try{const n="http://docx/";return new URL(e,n+t).toString().substring(n.length)}catch(n){return`${t}${e}`}},t.keyBy=function(e,t){return e.reduce((e,n)=>(e[t(n)]=n,e),{})},t.blobToBase64=function(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>t(r.result),r.onerror=()=>n(),r.readAsDataURL(e)})},t.isObject=n,t.isString=function(e){return"string"==typeof e||e instanceof String},t.mergeDeep=function e(t,...r){var i;if(!r.length)return t;const o=r.shift();if(n(t)&&n(o))for(const a in o)n(o[a])?e(null!==(i=t[a])&&void 0!==i?i:t[a]={},o[a]):t[a]=o[a];return e(t,...r)},t.parseCssRules=function(e){const t={};for(const n of e.split(";")){const[e,r]=n.split(":");t[e]=r}return t},t.formatCssRules=function(e){return Object.entries(e).map((e,t)=>`${e}: ${t}`).join(";")},t.asArray=function(e){return Array.isArray(e)?e:[e]}},320:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseVmlElement=t.VmlElement=void 0;const r=n(149),i=n(120),o=n(472);class a extends i.OpenXmlElementBase{constructor(){super(...arguments),this.type=i.DomType.VmlElement,this.attrs={}}}function s(e){var t;return{stroke:o.default.attr(e,"color"),"stroke-width":null!==(t=o.default.lengthAttr(e,"weight",r.LengthUsage.Emu))&&void 0!==t?t:"1px"}}function c(e){return e.split(",")}t.VmlElement=a,t.parseVmlElement=function e(t,n){var r=new a;switch(t.localName){case"rect":r.tagName="rect",Object.assign(r.attrs,{width:"100%",height:"100%"});break;case"oval":r.tagName="ellipse",Object.assign(r.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":r.tagName="line";break;case"shape":r.tagName="g";break;case"textbox":r.tagName="foreignObject",Object.assign(r.attrs,{width:"100%",height:"100%"});break;default:return null}for(const i of o.default.attrs(t))switch(i.localName){case"style":r.cssStyleText=i.value;break;case"fillcolor":r.attrs.fill=i.value;break;case"from":const[e,t]=c(i.value);Object.assign(r.attrs,{x1:e,y1:t});break;case"to":const[n,o]=c(i.value);Object.assign(r.attrs,{x2:n,y2:o})}for(const i of o.default.elements(t))switch(i.localName){case"stroke":Object.assign(r.attrs,s(i));break;case"fill":Object.assign(r.attrs,{});break;case"imagedata":r.tagName="image",Object.assign(r.attrs,{width:"100%",height:"100%"}),r.imageHref={id:o.default.attr(i,"id"),title:o.default.attr(i,"title")};break;case"txbxContent":r.children.push(...n.parseBodyElements(i));break;default:const t=e(i,n);t&&r.children.push(t)}return r}},213:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deobfuscate=t.WordDocument=void 0;const r=n(461),i=n(380),o=n(522),a=n(448),s=n(593),c=n(527),u=n(240),l=n(985),d=n(665),f=n(162),h=n(893),p=n(735),g=n(287),m=n(177),v=[{type:r.RelationshipTypes.OfficeDocument,target:"word/document.xml"},{type:r.RelationshipTypes.ExtendedProperties,target:"docProps/app.xml"},{type:r.RelationshipTypes.CoreProperties,target:"docProps/core.xml"},{type:r.RelationshipTypes.CustomProperties,target:"docProps/custom.xml"}];class b{constructor(){this.parts=[],this.partsMap={}}static async load(e,t,n){var r=new b;return r._options=n,r._parser=t,r._package=await o.OpenXmlPackage.load(e,n),r.rels=await r._package.loadRelationships(),await Promise.all(v.map(e=>{var t;const n=null!==(t=r.rels.find(t=>t.type===e.type))&&void 0!==t?t:e;return r.loadRelationshipPart(n.target,n.type)})),r}save(e="blob"){return this._package.save(e)}async loadRelationshipPart(e,t){var n;if(this.partsMap[e])return this.partsMap[e];if(!this._package.get(e))return null;let o=null;switch(t){case r.RelationshipTypes.OfficeDocument:this.documentPart=o=new a.DocumentPart(this._package,e,this._parser);break;case r.RelationshipTypes.FontTable:this.fontTablePart=o=new i.FontTablePart(this._package,e);break;case r.RelationshipTypes.Numbering:this.numberingPart=o=new c.NumberingPart(this._package,e,this._parser);break;case r.RelationshipTypes.Styles:this.stylesPart=o=new u.StylesPart(this._package,e,this._parser);break;case r.RelationshipTypes.Theme:this.themePart=o=new h.ThemePart(this._package,e);break;case r.RelationshipTypes.Footnotes:this.footnotesPart=o=new p.FootnotesPart(this._package,e,this._parser);break;case r.RelationshipTypes.Endnotes:this.endnotesPart=o=new p.EndnotesPart(this._package,e,this._parser);break;case r.RelationshipTypes.Footer:o=new l.FooterPart(this._package,e,this._parser);break;case r.RelationshipTypes.Header:o=new l.HeaderPart(this._package,e,this._parser);break;case r.RelationshipTypes.CoreProperties:this.corePropsPart=o=new f.CorePropsPart(this._package,e);break;case r.RelationshipTypes.ExtendedProperties:this.extendedPropsPart=o=new d.ExtendedPropsPart(this._package,e);break;case r.RelationshipTypes.CustomProperties:o=new m.CustomPropsPart(this._package,e);break;case r.RelationshipTypes.Settings:this.settingsPart=o=new g.SettingsPart(this._package,e)}if(null==o)return Promise.resolve(null);if(this.partsMap[e]=o,this.parts.push(o),await o.load(),(null===(n=o.rels)||void 0===n?void 0:n.length)>0){const[e]=(0,s.splitPath)(o.path);await Promise.all(o.rels.map(t=>this.loadRelationshipPart((0,s.resolvePath)(t.target,e),t.type)))}return o}async loadDocumentImage(e,t){const n=await this.loadResource(null!=t?t:this.documentPart,e,"blob");return this.blobToURL(n)}async loadNumberingImage(e){const t=await this.loadResource(this.numberingPart,e,"blob");return this.blobToURL(t)}async loadFont(e,t){const n=await this.loadResource(this.fontTablePart,e,"uint8array");return n?this.blobToURL(new Blob([y(n,t)])):n}blobToURL(e){return e?this._options.useBase64URL?(0,s.blobToBase64)(e):URL.createObjectURL(e):null}findPartByRelId(e,t=null){var n,r=(null!==(n=t.rels)&&void 0!==n?n:this.rels).find(t=>t.id==e);const i=t?(0,s.splitPath)(t.path)[0]:"";return r?this.partsMap[(0,s.resolvePath)(r.target,i)]:null}getPathById(e,t){const n=e.rels.find(e=>e.id==t),[r]=(0,s.splitPath)(e.path);return n?(0,s.resolvePath)(n.target,r):null}loadResource(e,t,n){const r=this.getPathById(e,t);return r?this._package.load(r,n):Promise.resolve(null)}}function y(e,t){const n=t.replace(/{|}|-/g,""),r=new Array(16);for(let i=0;i<16;i++)r[16-i-1]=parseInt(n.substr(2*i,2),16);for(let i=0;i<32;i++)e[i]=e[i]^r[i%16];return e}t.WordDocument=b,t.deobfuscate=y},583:e=>{e.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 100%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27m0,75 l5,0 l5,25 l10,-100%27 stroke=%27black%27 fill=%27none%27 vector-effect=%27non-scaling-stroke%27/%3E%3C/svg%3E"},626:t=>{t.exports=e}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={id:e,exports:{}};return t[e](o,o.exports,r),o.exports}return r.m=t,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.b=document.baseURI||self.location.href,r(667)})())},3939:function(e,t,n){"use strict";n("a939")},"3a5a":function(e,t,n){var r=n("c46f"),i=n("803c");function o(e){return a(f(e))}function a(e){var t=[];return e.map(s).forEach((function(e){d(t,e)})),t}function s(e){return c[e.type](e)}var c={element:u,text:l,forceWrite:l};function u(e){return i.elementWithTag(e.tag,a(e.children))}function l(e){return e}function d(e,t){var n=e[e.length-1];"element"===t.type&&!t.tag.fresh&&n&&"element"===n.type&&t.tag.matchesElement(n.tag)?(t.tag.separator&&d(n.children,i.text(t.tag.separator)),t.children.forEach((function(e){d(n.children,e)}))):e.push(t)}function f(e){return h(e,(function(e){return p[e.type](e)}))}function h(e,t){return r.flatten(r.map(e,t),!0)}var p={element:m,text:v,forceWrite:g};function g(e){return[e]}function m(e){var t=f(e.children);return 0!==t.length||i.isVoidElement(e)?[i.elementWithTag(e.tag,t)]:[]}function v(e){return 0===e.value.length?[]:[e]}e.exports=o},"3aea":function(e,t,n){n("3699")},"3b32":function(e,t,n){(function(){var t,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=n("92e7"),e.exports=function(e){function t(e,n,r){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());r||(r="(#PCDATA)"),Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.eleName(n),this.value=this.stringify.dtdElementValue(r)}return r(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdElement(this)},t}(t)}).call(this)},"3ec9":function(e,t,n){"use strict";e.exports=function(e,t,r,i,o,a){var s=e._getDomain,c=n("6df9"),u=c.tryCatch;function l(t,n,r,i){this.constructor$(t);var a=s();this._fn=null===a?n:c.domainBind(a,n),void 0!==r&&(r=e.resolve(r),r._attachCancellationCallback(this)),this._initialValue=r,this._currentCancellable=null,this._eachValues=i===o?Array(this._length):0===i?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function d(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function f(e,t,n,i){if("function"!==typeof t)return r("expecting a function but got "+c.classString(t));var o=new l(e,t,n,i);return o.promise()}function h(t){this.accum=t,this.array._gotAccum(t);var n=i(this.value,this.array._promise);return n instanceof e?(this.array._currentCancellable=n,n._then(p,void 0,void 0,this,void 0)):p.call(this,n)}function p(t){var n,r=this.array,i=r._promise,o=u(r._fn);i._pushContext(),n=void 0!==r._eachValues?o.call(i._boundValue(),t,this.index,this.length):o.call(i._boundValue(),this.accum,t,this.index,this.length),n instanceof e&&(r._currentCancellable=n);var s=i._popContext();return a.checkForgottenReturns(n,s,void 0!==r._eachValues?"Promise.each":"Promise.reduce",i),n}c.inherits(l,t),l.prototype._gotAccum=function(e){void 0!==this._eachValues&&null!==this._eachValues&&e!==o&&this._eachValues.push(e)},l.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},l.prototype._init=function(){},l.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},l.prototype.shouldCopyValues=function(){return!1},l.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},l.prototype._resultCancelled=function(t){if(t===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel())},l.prototype._iterate=function(t){var n,r;this._values=t;var i=t.length;if(void 0!==this._initialValue?(n=this._initialValue,r=0):(n=e.resolve(t[0]),r=1),this._currentCancellable=n,!n.isRejected())for(;r<i;++r){var o={accum:null,value:t[r],index:r,length:i,array:this};n=n._then(h,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(d,d,void 0,n,this)},e.prototype.reduce=function(e,t){return f(this,e,t,null)},e.reduce=function(e,t,n,r){return f(e,t,n,r)}}},"3ff9":function(e,t,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}e.exports=function(e){var t,r,a=n("6df9"),s=a.canEvaluate,c=a.isIdentifier,u=function(e){return new Function("ensureMethod","                                    \n        return function(obj) {                                               \n            'use strict'                                                     \n            var len = this.length;                                           \n            ensureMethod(obj, 'methodName');                                 \n            switch(len) {                                                    \n                case 1: return obj.methodName(this[0]);                      \n                case 2: return obj.methodName(this[0], this[1]);             \n                case 3: return obj.methodName(this[0], this[1], this[2]);    \n                case 0: return obj.methodName();                             \n                default:                                                     \n                    return obj.methodName.apply(obj, this);                  \n            }                                                                \n        };                                                                   \n        ".replace(/methodName/g,e))(f)},l=function(e){return new Function("obj","                                             \n        'use strict';                                                        \n        return obj.propertyName;                                             \n        ".replace("propertyName",e))},d=function(e,t,n){var r=n[e];if("function"!==typeof r){if(!c(e))return null;if(r=t(e),n[e]=r,n[" size"]++,n[" size"]>512){for(var i=Object.keys(n),o=0;o<256;++o)delete n[i[o]];n[" size"]=i.length-256}}return r};function f(t,n){var r;if(null!=t&&(r=t[n]),"function"!==typeof r){var i="Object "+a.classString(t)+" has no method '"+a.toString(n)+"'";throw new e.TypeError(i)}return r}function h(e){var t=this.pop(),n=f(e,t);return n.apply(e,this)}function p(e){return e[this]}function g(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}t=function(e){return d(e,u,i)},r=function(e){return d(e,l,o)},e.prototype.call=function(e){for(var n=arguments.length,r=new Array(Math.max(n-1,0)),i=1;i<n;++i)r[i-1]=arguments[i];if(s){var o=t(e);if(null!==o)return this._then(o,void 0,void 0,r,void 0)}return r.push(e),this._then(h,void 0,void 0,r,void 0)},e.prototype.get=function(e){var t,n="number"===typeof e;if(n)t=g;else if(s){var i=r(e);t=null!==i?i:p}else t=p;return this._then(t,void 0,void 0,e,void 0)}}},4:function(e,t){},4171:function(e,t,n){},4221:function(e,t,n){var r=n("9d83"),i=n("03e1").Result;function o(e){function t(e){return i.combine(e.getElementsByTagName("w:comment").map(n))}function n(t){var n=t.attributes["w:id"];function i(e){return(t.attributes[e]||"").trim()||null}return e.readXmlElements(t.children).map((function(e){return r.comment({commentId:n,body:e,authorName:i("w:author"),authorInitials:i("w:initials")})}))}return t}t.createCommentsReader=o},4237:function(e,t,n){n("be7f")},4383:function(module,exports,__webpack_require__){(function(Buffer,process,global){(function(e,t){module.exports=t()})(0,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLinkAttributes",{enumerable:!0,get:function(){return r.addLinkAttributes}}),Object.defineProperty(t,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(t,"LinkTarget",{enumerable:!0,get:function(){return r.LinkTarget}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(t,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(t,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(t,"build",{enumerable:!0,get:function(){return i.build}}),Object.defineProperty(t,"getDocument",{enumerable:!0,get:function(){return i.getDocument}}),Object.defineProperty(t,"LoopbackPort",{enumerable:!0,get:function(){return i.LoopbackPort}}),Object.defineProperty(t,"PDFDataRangeTransport",{enumerable:!0,get:function(){return i.PDFDataRangeTransport}}),Object.defineProperty(t,"PDFWorker",{enumerable:!0,get:function(){return i.PDFWorker}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return i.version}}),Object.defineProperty(t,"CMapCompressionType",{enumerable:!0,get:function(){return o.CMapCompressionType}}),Object.defineProperty(t,"createObjectURL",{enumerable:!0,get:function(){return o.createObjectURL}}),Object.defineProperty(t,"createPromiseCapability",{enumerable:!0,get:function(){return o.createPromiseCapability}}),Object.defineProperty(t,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return o.createValidAbsoluteUrl}}),Object.defineProperty(t,"InvalidPDFException",{enumerable:!0,get:function(){return o.InvalidPDFException}}),Object.defineProperty(t,"MissingPDFException",{enumerable:!0,get:function(){return o.MissingPDFException}}),Object.defineProperty(t,"OPS",{enumerable:!0,get:function(){return o.OPS}}),Object.defineProperty(t,"PasswordResponses",{enumerable:!0,get:function(){return o.PasswordResponses}}),Object.defineProperty(t,"PermissionFlag",{enumerable:!0,get:function(){return o.PermissionFlag}}),Object.defineProperty(t,"removeNullCharacters",{enumerable:!0,get:function(){return o.removeNullCharacters}}),Object.defineProperty(t,"shadow",{enumerable:!0,get:function(){return o.shadow}}),Object.defineProperty(t,"UnexpectedResponseException",{enumerable:!0,get:function(){return o.UnexpectedResponseException}}),Object.defineProperty(t,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return o.UNSUPPORTED_FEATURES}}),Object.defineProperty(t,"Util",{enumerable:!0,get:function(){return o.Util}}),Object.defineProperty(t,"VerbosityLevel",{enumerable:!0,get:function(){return o.VerbosityLevel}}),Object.defineProperty(t,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(t,"apiCompatibilityParams",{enumerable:!0,get:function(){return s.apiCompatibilityParams}}),Object.defineProperty(t,"GlobalWorkerOptions",{enumerable:!0,get:function(){return c.GlobalWorkerOptions}}),Object.defineProperty(t,"renderTextLayer",{enumerable:!0,get:function(){return u.renderTextLayer}}),Object.defineProperty(t,"SVGGraphics",{enumerable:!0,get:function(){return l.SVGGraphics}});var r=n(1),i=n(202),o=n(5),a=n(216),s=n(206),c=n(209),u=n(217),l=n(218),d=n(7),f=d.isNodeJS;if(f){var h=n(219).PDFNodeStream;(0,i.setPDFNetworkStreamFactory)((function(e){return new h(e)}))}else{var p,g=n(222).PDFNetworkStream;(0,r.isFetchSupported)()&&(p=n(223).PDFFetchStream),(0,i.setPDFNetworkStreamFactory)((function(e){return p&&(0,r.isValidFetchUrl)(e.url)?new p(e):new g(e)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=F,t.getFilenameFromUrl=P,t.isFetchSupported=M,t.isValidFetchUrl=I,t.loadScript=B,t.deprecated=L,t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.BaseCMapReaderFactory=t.DOMCanvasFactory=t.BaseCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var r=o(n(2)),i=n(5);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(c)throw o}}}}function s(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))}}function d(e){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){var t=v();return function(){var n,r=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}var w="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=w;var D="http://www.w3.org/2000/svg",C=function(){function e(){y(this,e),this.constructor===e&&(0,i.unreachable)("Cannot initialize BaseCanvasFactory.")}return _(e,[{key:"create",value:function(e,t){(0,i.unreachable)("Abstract method `create` called.")}},{key:"reset",value:function(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}}]),e}();t.BaseCanvasFactory=C;var k=function(e){f(n,e);var t=p(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.ownerDocument,o=void 0===i?globalThis.document:i;return y(this,n),e=t.call(this),e._document=o,e}return _(n,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var n=this._document.createElement("canvas"),r=n.getContext("2d");return n.width=e,n.height=t,{canvas:n,context:r}}}]),n}(C);t.DOMCanvasFactory=k;var T=function(){function e(t){var n=t.baseUrl,r=void 0===n?null:n,o=t.isCompressed,a=void 0!==o&&o;y(this,e),this.constructor===e&&(0,i.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=r,this.isCompressed=a}return _(e,[{key:"fetch",value:function(){var e=l(r["default"].mark((function e(t){var n,o,a,s=this;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(n){e.next=5;break}throw new Error("CMap name must be specified.");case 5:return o=this.baseUrl+n+(this.isCompressed?".bcmap":""),a=this.isCompressed?i.CMapCompressionType.BINARY:i.CMapCompressionType.NONE,e.abrupt("return",this._fetchData(o,a)["catch"]((function(e){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"","CMap at: ").concat(o))})));case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_fetchData",value:function(e,t){(0,i.unreachable)("Abstract method `_fetchData` called.")}}]),e}();t.BaseCMapReaderFactory=T;var S=function(e){f(n,e);var t=p(n);function n(){return y(this,n),t.apply(this,arguments)}return _(n,[{key:"_fetchData",value:function(e,t){var n=this;return M()&&I(e,document.baseURI)?fetch(e).then(function(){var e=l(r["default"].mark((function e(o){var a;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o.ok){e.next=2;break}throw new Error(o.statusText);case 2:if(!n.isCompressed){e.next=10;break}return e.t0=Uint8Array,e.next=6,o.arrayBuffer();case 6:e.t1=e.sent,a=new e.t0(e.t1),e.next=15;break;case 10:return e.t2=i.stringToBytes,e.next=13,o.text();case 13:e.t3=e.sent,a=(0,e.t2)(e.t3);case 15:return e.abrupt("return",{cMapData:a,compressionType:t});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()):new Promise((function(r,o){var a=new XMLHttpRequest;a.open("GET",e,!0),n.isCompressed&&(a.responseType="arraybuffer"),a.onreadystatechange=function(){if(a.readyState===XMLHttpRequest.DONE){var e;if(200===a.status||0===a.status)if(n.isCompressed&&a.response?e=new Uint8Array(a.response):!n.isCompressed&&a.responseText&&(e=(0,i.stringToBytes)(a.responseText)),e)return void r({cMapData:e,compressionType:t});o(new Error(a.statusText))}},a.send(null)}))}}]),n}(T);t.DOMCMapReaderFactory=S;var A=function(){function e(){y(this,e)}return _(e,[{key:"create",value:function(e,t){(0,i.assert)(e>0&&t>0,"Invalid SVG dimensions");var n=document.createElementNS(D,"svg:svg");return n.setAttribute("version","1.1"),n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 "+e+" "+t),n}},{key:"createElement",value:function(e){return(0,i.assert)("string"===typeof e,"Invalid SVG element type"),document.createElementNS(D,e)}}]),e}();t.DOMSVGFactory=A;var E=function(){function e(t){var n=t.viewBox,r=t.scale,i=t.rotation,o=t.offsetX,a=void 0===o?0:o,s=t.offsetY,c=void 0===s?0:s,u=t.dontFlip,l=void 0!==u&&u;y(this,e),this.viewBox=n,this.scale=r,this.rotation=i,this.offsetX=a,this.offsetY=c;var d,f,h,p,g,m,v,b,x=(n[2]+n[0])/2,_=(n[3]+n[1])/2;switch(i%=360,i=i<0?i+360:i,i){case 180:d=-1,f=0,h=0,p=1;break;case 90:d=0,f=1,h=1,p=0;break;case 270:d=0,f=-1,h=-1,p=0;break;case 0:d=1,f=0,h=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}l&&(h=-h,p=-p),0===d?(g=Math.abs(_-n[1])*r+a,m=Math.abs(x-n[0])*r+c,v=Math.abs(n[3]-n[1])*r,b=Math.abs(n[2]-n[0])*r):(g=Math.abs(x-n[0])*r+a,m=Math.abs(_-n[1])*r+c,v=Math.abs(n[2]-n[0])*r,b=Math.abs(n[3]-n[1])*r),this.transform=[d*r,f*r,h*r,p*r,g-d*r*x-h*r*_,m-f*r*x-p*r*_],this.width=v,this.height=b}return _(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.scale,r=void 0===n?this.scale:n,i=t.rotation,o=void 0===i?this.rotation:i,a=t.offsetX,s=void 0===a?this.offsetX:a,c=t.offsetY,u=void 0===c?this.offsetY:c,l=t.dontFlip,d=void 0!==l&&l;return new e({viewBox:this.viewBox.slice(),scale:r,rotation:o,offsetX:s,offsetY:u,dontFlip:d})}},{key:"convertToViewportPoint",value:function(e,t){return i.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=i.Util.applyTransform([e[0],e[1]],this.transform),n=i.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}},{key:"convertToPdfPoint",value:function(e,t){return i.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=E;var U=function(e){f(n,e);var t=p(n);function n(e,r){var i;return y(this,n),i=t.call(this,e),i.type=r,i}return n}(i.BaseException);t.RenderingCancelledException=U;var O={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,r=t.target,o=t.rel,a=t.enabled,s=void 0===a||a;(0,i.assert)(n&&"string"===typeof n,'addLinkAttributes: A valid "url" parameter must provided.');var c=(0,i.removeNullCharacters)(n);s?e.href=e.title=c:(e.href="",e.title="Disabled: ".concat(c),e.onclick=function(){return!1});var u="";switch(r){case O.NONE:break;case O.SELF:u="_self";break;case O.BLANK:u="_blank";break;case O.PARENT:u="_parent";break;case O.TOP:u="_top";break}e.target=u,e.rel="string"===typeof o?o:w}function P(e){var t=e.indexOf("#"),n=e.indexOf("?"),r=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",r)+1,r)}t.LinkTarget=O;var R,N=function(){function e(){y(this,e),this.started=Object.create(null),this.times=[]}return _(e,[{key:"time",value:function(e){e in this.started&&(0,i.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,i.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e,t=[],n=0,r=a(this.times);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=i.name;o.length>n&&(n=o.length)}}catch(d){r.e(d)}finally{r.f()}var s,c=a(this.times);try{for(c.s();!(s=c.n()).done;){var u=s.value,l=u.end-u.start;t.push("".concat(u.name.padEnd(n)," ").concat(l,"ms\n"))}}catch(d){c.e(d)}finally{c.f()}return t.join("")}}]),e}();function M(){return"undefined"!==typeof fetch&&"undefined"!==typeof Response&&"body"in Response.prototype&&"undefined"!==typeof ReadableStream}function I(e,t){try{var n=t?new URL(e,t):new URL(e),r=n.protocol;return"http:"===r||"https:"===r}catch(i){return!1}}function B(e){return new Promise((function(t,n){var r=document.createElement("script");r.src=e,r.onload=t,r.onerror=function(){n(new Error("Cannot load script at: ".concat(r.src)))},(document.head||document.documentElement).appendChild(r)}))}function L(e){console.log("Deprecated API usage: "+e)}t.StatTimer=N;var z=function(){function e(){y(this,e)}return _(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,i.isString)(e))return null;R||(R=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=R.exec(e);if(!t)return null;var n=parseInt(t[1],10),r=parseInt(t[2],10);r=r>=1&&r<=12?r-1:0;var o=parseInt(t[3],10);o=o>=1&&o<=31?o:1;var a=parseInt(t[4],10);a=a>=0&&a<=23?a:0;var s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;var c=parseInt(t[6],10);c=c>=0&&c<=59?c:0;var u=t[7]||"Z",l=parseInt(t[8],10);l=l>=0&&l<=23?l:0;var d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===u?(a+=l,s+=d):"+"===u&&(a-=l,s-=d),new Date(Date.UTC(n,r,o,a,s,c))}}]),e}();t.PDFDateString=z},function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){"use strict";(function(e){function t(e){return t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var n=function(e){var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(P){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new U(r||[]);return o._invoke=T(e,n,a),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=l;var f="suspendedStart",h="suspendedYield",p="executing",g="completed",m={};function v(){}function b(){}function y(){}var x={};x[a]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(O([])));w&&w!==r&&i.call(w,a)&&(x=w);var D=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,n){function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"===t(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):n.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;function a(e,t){function i(){return new n((function(n,i){r(e,t,n,i)}))}return o=o?o.then(i,i):i()}this._invoke=a}function T(e,t,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===g){if("throw"===i)throw o;return F()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=d(e,t,n);if("normal"===c.type){if(r=n.done?g:h,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=g,n.method="throw",n.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=n,S(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=d(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,m;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function O(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){while(++r<e.length)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:F}}function F(){return{value:n,done:!0}}return b.prototype=D.constructor=y,y.constructor=b,b.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(D),e},e.awrap=function(e){return{__await:e}},C(k.prototype),k.prototype[s]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(D),u(D,c,"Generator"),D[a]=function(){return this},D.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(r){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(4)(e))},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=f();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=re,t.arraysToBytes=ie,t.assert=z,t.bytesToString=te,t.createPromiseCapability=De,t.escapeString=pe,t.getModificationDate=we,t.getVerbosityLevel=M,t.info=I,t.isArrayBuffer=xe,t.isArrayEqual=_e,t.isBool=ve,t.isNum=be,t.isString=ye,t.isSameOrigin=W,t.createValidAbsoluteUrl=H,t.removeNullCharacters=ee,t.setVerbosityLevel=N,t.shadow=V,t.string32=oe,t.stringToBytes=ne,t.stringToPDFString=he,t.stringToUTF8String=ge,t.utf8StringToString=me,t.warn=B,t.unreachable=L,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,n(6);var p=[1,0,0,1,0,0];t.IDENTITY_MATRIX=p;var g=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=g;var m={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=m;var v={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.TextRenderingMode=v;var b={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=b;var y={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationType=y;var x={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=x;var _={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=_;var w={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=w;var D={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=D;var C={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=C;var k={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationFieldFlag=k;var T={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=T;var S={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.StreamType=S;var A={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};t.FontType=A;var E={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=E;var U={NONE:0,BINARY:1,STREAM:2};t.CMapCompressionType=U;var O={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=O;var F={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"};t.UNSUPPORTED_FEATURES=F;var P={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=P;var R=E.WARNINGS;function N(e){Number.isInteger(e)&&(R=e)}function M(){return R}function I(e){R>=E.INFOS&&console.log("Info: ".concat(e))}function B(e){R>=E.WARNINGS&&console.log("Warning: ".concat(e))}function L(e){throw new Error(e)}function z(e,t){e||L(t)}function W(e,t){var n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch(i){return!1}var r=new URL(t,n);return n.origin===r.origin}function j(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function H(e,t){if(!e)return null;try{var n=t?new URL(e,t):new URL(e);if(j(n))return n}catch(r){}return null}function V(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}var q=function(){function e(t){this.constructor===e&&L("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=q;var $=function(e){s(n,e);var t=u(n);function n(e,r){var i;return a(this,n),i=t.call(this,e),i.code=r,i}return n}(q);t.PasswordException=$;var G=function(e){s(n,e);var t=u(n);function n(e,r){var i;return a(this,n),i=t.call(this,e),i.details=r,i}return n}(q);t.UnknownErrorException=G;var X=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(q);t.InvalidPDFException=X;var Y=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(q);t.MissingPDFException=Y;var K=function(e){s(n,e);var t=u(n);function n(e,r){var i;return a(this,n),i=t.call(this,e),i.status=r,i}return n}(q);t.UnexpectedResponseException=K;var Z=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(q);t.FormatError=Z;var J=function(e){s(n,e);var t=u(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(q);t.AbortException=J;var Q=/\x00/g;function ee(e){return"string"!==typeof e?(B("The argument for removeNullCharacters must be a string."),e):e.replace(Q,"")}function te(e){z(null!==e&&"object"===o(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);for(var r=[],i=0;i<t;i+=n){var a=Math.min(i+n,t),s=e.subarray(i,a);r.push(String.fromCharCode.apply(null,s))}return r.join("")}function ne(e){z("string"===typeof e,"Invalid argument for stringToBytes");for(var t=e.length,n=new Uint8Array(t),r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}function re(e){return void 0!==e.length?e.length:(z(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}function ie(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var n=0,r=0;r<t;r++)n+=re(e[r]);for(var i=0,o=new Uint8Array(n),a=0;a<t;a++){var s=e[a];s instanceof Uint8Array||(s="string"===typeof s?ne(s):new Uint8Array(s));var c=s.byteLength;o.set(s,i),i+=c}return o}function oe(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function ae(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}var se={get value(){return V(this,"value",ae())}};function ce(){try{return new Function(""),!0}catch(e){return!1}}t.IsLittleEndianCached=se;var ue={get value(){return V(this,"value",ce())}};t.IsEvalSupportedCached=ue;var le=["rgb(",0,",",0,",",0,")"],de=function(){function e(){a(this,e)}return i(e,null,[{key:"makeCssRgb",value:function(e,t,n){return le[1]=e,le[3]=t,le[5]=n,le.join("")}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){var n=e[0]*t[0]+e[1]*t[2]+t[4],r=e[0]*t[1]+e[1]*t[3]+t[5];return[n,r]}},{key:"applyInverseTransform",value:function(e,t){var n=t[0]*t[3]-t[1]*t[2],r=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,i=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n;return[r,i]}},{key:"getAxialAlignedBoundingBox",value:function(t,n){var r=e.applyTransform(t,n),i=e.applyTransform(t.slice(2,4),n),o=e.applyTransform([t[0],t[3]],n),a=e.applyTransform([t[2],t[1]],n);return[Math.min(r[0],i[0],o[0],a[0]),Math.min(r[1],i[1],o[1],a[1]),Math.max(r[0],i[0],o[0],a[0]),Math.max(r[1],i[1],o[1],a[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"apply3dTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],o=e[2]*t[1]+e[3]*t[3],a=(n+o)/2,s=Math.sqrt((n+o)*(n+o)-4*(n*o-i*r))/2,c=a+s||1,u=a-s||1;return[Math.sqrt(c),Math.sqrt(u)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,n){function r(e,t){return e-t}var i=[t[0],t[2],n[0],n[2]].sort(r),o=[t[1],t[3],n[1],n[3]].sort(r),a=[];return t=e.normalizeRect(t),n=e.normalizeRect(n),i[0]===t[0]&&i[1]===n[0]||i[0]===n[0]&&i[1]===t[0]?(a[0]=i[1],a[2]=i[2],o[0]===t[1]&&o[1]===n[1]||o[0]===n[1]&&o[1]===t[1]?(a[1]=o[1],a[3]=o[2],a):null):null}}]),e}();t.Util=de;var fe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function he(e){var t=e.length,n=[];if("þ"===e[0]&&"ÿ"===e[1])for(var r=2;r<t;r+=2)n.push(String.fromCharCode(e.charCodeAt(r)<<8|e.charCodeAt(r+1)));else if("ÿ"===e[0]&&"þ"===e[1])for(var i=2;i<t;i+=2)n.push(String.fromCharCode(e.charCodeAt(i+1)<<8|e.charCodeAt(i)));else for(var o=0;o<t;++o){var a=fe[e.charCodeAt(o)];n.push(a?String.fromCharCode(a):e.charAt(o))}return n.join("")}function pe(e){return e.replace(/([\(\)\\])/g,"\\$1")}function ge(e){return decodeURIComponent(escape(e))}function me(e){return unescape(encodeURIComponent(e))}function ve(e){return"boolean"===typeof e}function be(e){return"number"===typeof e}function ye(e){return"string"===typeof e}function xe(e){return"object"===o(e)&&null!==e&&void 0!==e.byteLength}function _e(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))}function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date(Date.now()),t=[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),(e.getUTCDate()+1).toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")];return t.join("")}function De(){var e=Object.create(null),t=!1;return Object.defineProperty(e,"settled",{get:function(){return t}}),e.promise=new Promise((function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}})),e}var Ce=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!r&&URL.createObjectURL){var i=new Blob([t],{type:n});return URL.createObjectURL(i)}for(var o="data:".concat(n,";base64,"),a=0,s=t.length;a<s;a+=3){var c=255&t[a],u=255&t[a+1],l=255&t[a+2],d=c>>2,f=(3&c)<<4|u>>4,h=a+1<s?(15&u)<<2|l>>6:64,p=a+2<s?63&l:64;o+=e[d]+e[f]+e[h]+e[p]}return o}}();t.createObjectURL=Ce},function(e,t,n){"use strict";var r=n(7);function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}if("undefined"===typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!==typeof globalThis&&globalThis.Math===Math||(globalThis=n(8)),globalThis._pdfjsCompatibilityChecked=!0;var o="object"===("undefined"===typeof window?"undefined":i(window))&&"object"===("undefined"===typeof document?"undefined":i(document)),a="undefined"!==typeof navigator&&navigator.userAgent||"",s=/Trident/.test(a);(function(){!globalThis.btoa&&r.isNodeJS&&(globalThis.btoa=function(e){return Buffer.from(e,"binary").toString("base64")})})(),function(){!globalThis.atob&&r.isNodeJS&&(globalThis.atob=function(e){return Buffer.from(e,"base64").toString("binary")})}(),function(){o&&"undefined"===typeof Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})}(),function(){if(o&&!r.isNodeJS){var e=document.createElement("div");if(e.classList.add("testOne","testTwo"),!0!==e.classList.contains("testOne")||!0!==e.classList.contains("testTwo")){var t=DOMTokenList.prototype.add,n=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];t.call(this,a)}},DOMTokenList.prototype.remove=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i=0,o=t;i<o.length;i++){var a=o[i];n.call(this,a)}}}}}(),function(){if(o&&!r.isNodeJS){var e=document.createElement("div");!1!==e.classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(e){var t=arguments.length>1?!!arguments[1]:!this.contains(e);return this[t?"add":"remove"](e),t})}}(),function(){if(o&&s){var e=window.history.pushState,t=window.history.replaceState;window.history.pushState=function(t,n,r){var i=void 0===r?[t,n]:[t,n,r];e.apply(this,i)},window.history.replaceState=function(e,n,r){var i=void 0===r?[e,n]:[e,n,r];t.apply(this,i)}}}(),function(){String.prototype.startsWith||n(53)}(),function(){String.prototype.endsWith||n(64)}(),function(){String.prototype.includes||n(66)}(),function(){Array.prototype.includes||n(68)}(),function(){Array.from||n(76)}(),function(){Object.assign||n(98)}(),function(){Object.fromEntries||n(101)}(),function(){Math.log2||(Math.log2=n(105))}(),function(){Number.isNaN||(Number.isNaN=n(107))}(),function(){Number.isInteger||(Number.isInteger=n(109))}(),function(){Uint8Array.prototype.slice||n(112)}(),function(){globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=n(117))}(),function(){globalThis.URL=n(138)}(),function(){var e=!1;if("undefined"!==typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),e=!0}catch(t){}e||(globalThis.ReadableStream=n(145).ReadableStream)}(),function(){globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=n(146))}(),function(){globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=n(153))}(),function(){globalThis.WeakMap||(globalThis.WeakMap=n(155))}(),function(){globalThis.WeakSet||(globalThis.WeakSet=n(161))}(),function(){String.prototype.codePointAt||n(163)}(),function(){String.fromCodePoint||(String.fromCodePoint=n(165))}(),function(){globalThis.Symbol||n(167)}(),function(){String.prototype.padStart||n(190)}(),function(){String.prototype.padEnd||n(195)}(),function(){Object.values||(Object.values=n(197))}(),function(){Object.entries||(Object.entries=n(200))}()}},function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var i="object"===("undefined"===typeof process?"undefined":r(process))&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=i},function(e,t,n){n(9),e.exports=n(11)},function(e,t,n){var r=n(10),i=n(11);r({global:!0},{globalThis:i})},function(e,t,n){var r=n(11),i=n(12).f,o=n(26),a=n(29),s=n(30),c=n(40),u=n(52);e.exports=function(e,t){var n,l,d,f,h,p,g=e.target,m=e.global,v=e.stat;if(l=m?r:v?r[g]||s(g,{}):(r[g]||{}).prototype,l)for(d in t){if(h=t[d],e.noTargetGet?(p=i(l,d),f=p&&p.value):f=l[d],n=u(m?d:g+(v?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof h===typeof f)continue;c(h,f)}(e.sham||f&&f.sham)&&o(h,"sham",!0),a(l,d,h,e)}}},function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},function(e,t,n){var r=n(13),i=n(15),o=n(16),a=n(17),s=n(21),c=n(23),u=n(24),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(n){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){var r=n(14);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(18),i=n(20);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(14),i=n(19),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(22);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(13),i=n(14),o=n(25);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(11),i=n(22),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(13),i=n(27),o=n(16);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(13),i=n(24),o=n(28),a=n(21),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(22);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(11),i=n(26),o=n(23),a=n(30),s=n(31),c=n(33),u=c.get,l=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),l(n).source=d.join("string"==typeof t?t:"")),e!==r?(c?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(e,t,n){var r=n(11),i=n(26);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(32),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(11),i=n(30),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},function(e,t,n){var r,i,o,a=n(34),s=n(11),c=n(22),u=n(26),l=n(23),d=n(35),f=n(39),h=s.WeakMap,p=function(e){return o(e)?i(e):r(e,{})},g=function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var m=new h,v=m.get,b=m.has,y=m.set;r=function(e,t){return y.call(m,e,t),t},i=function(e){return v.call(m,e)||{}},o=function(e){return b.call(m,e)}}else{var x=d("state");f[x]=!0,r=function(e,t){return u(e,x,t),t},i=function(e){return l(e,x)?e[x]:{}},o=function(e){return l(e,x)}}e.exports={set:r,get:i,has:o,enforce:p,getterFor:g}},function(e,t,n){var r=n(11),i=n(31),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(36),i=n(38),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){var r=n(37),i=n(32);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var r=n(23),i=n(41),o=n(12),a=n(27);e.exports=function(e,t){for(var n=i(t),s=a.f,c=o.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},function(e,t,n){var r=n(42),i=n(44),o=n(51),a=n(28);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(43),i=n(11),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(11);e.exports=r},function(e,t,n){var r=n(45),i=n(50),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(23),i=n(17),o=n(46).indexOf,a=n(39);e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(17),i=n(47),o=n(49),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(48),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(48),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(14),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},function(e,t,n){n(54);var r=n(61);e.exports=r("String","startsWith")},function(e,t,n){"use strict";var r=n(10),i=n(12).f,o=n(47),a=n(55),s=n(20),c=n(60),u=n(37),l="".startsWith,d=Math.min,f=c("startsWith"),h=!u&&!f&&!!function(){var e=i(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!h&&!f},{startsWith:function(e){var t=String(s(this));a(e);var n=o(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return l?l.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=n(56);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(22),i=n(19),o=n(57),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(11),i=n(36),o=n(23),a=n(38),s=n(58),c=n(59),u=i("wks"),l=r.Symbol,d=c?l:l&&l.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(l,e)?u[e]=l[e]:u[e]=d("Symbol."+e)),u[e]}},function(e,t,n){var r=n(14);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r=n(58);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(57),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},function(e,t,n){var r=n(11),i=n(62),o=Function.call;e.exports=function(e,t,n){return i(o,r[e].prototype[t],n)}},function(e,t,n){var r=n(63);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){n(65);var r=n(61);e.exports=r("String","endsWith")},function(e,t,n){"use strict";var r=n(10),i=n(12).f,o=n(47),a=n(55),s=n(20),c=n(60),u=n(37),l="".endsWith,d=Math.min,f=c("endsWith"),h=!u&&!f&&!!function(){var e=i(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!h&&!f},{endsWith:function(e){var t=String(s(this));a(e);var n=arguments.length>1?arguments[1]:void 0,r=o(t.length),i=void 0===n?r:d(o(n),r),c=String(e);return l?l.call(t,c,i):t.slice(i-c.length,i)===c}})},function(e,t,n){n(67);var r=n(61);e.exports=r("String","includes")},function(e,t,n){"use strict";var r=n(10),i=n(55),o=n(20),a=n(60);r({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(69);var r=n(61);e.exports=r("Array","includes")},function(e,t,n){"use strict";var r=n(10),i=n(46).includes,o=n(70),a=n(75),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){var r=n(57),i=n(71),o=n(27),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){var r,i=n(28),o=n(72),a=n(50),s=n(39),c=n(74),u=n(25),l=n(35),d=">",f="<",h="prototype",p="script",g=l("IE_PROTO"),m=function(){},v=function(e){return f+p+d+e+f+"/"+p+d},b=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}x=r?b(r):y();var e=a.length;while(e--)delete x[h][a[e]];return x()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[h]=i(e),n=new m,m[h]=null,n[g]=e):n=x(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(13),i=n(27),o=n(28),a=n(73);e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=a(t),s=r.length,c=0;while(s>c)i.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r=n(45),i=n(50);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(42);e.exports=r("document","documentElement")},function(e,t,n){var r=n(13),i=n(14),o=n(23),a=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,l=o(t,0)?t[0]:c,d=o(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(u&&!r)return!0;var e={length:-1};u?a(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,l,d)}))}},function(e,t,n){n(77),n(89);var r=n(43);e.exports=r.Array.from},function(e,t,n){"use strict";var r=n(78).charAt,i=n(33),o=n(79),a="String Iterator",s=i.set,c=i.getterFor(a);o(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(48),i=n(20),o=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){"use strict";var r=n(10),i=n(80),o=n(82),a=n(87),s=n(85),c=n(26),u=n(29),l=n(57),d=n(37),f=n(86),h=n(81),p=h.IteratorPrototype,g=h.BUGGY_SAFARI_ITERATORS,m=l("iterator"),v="keys",b="values",y="entries",x=function(){return this};e.exports=function(e,t,n,l,h,_,w){i(n,t,l);var D,C,k,T=function(e){if(e===h&&O)return O;if(!g&&e in E)return E[e];switch(e){case v:return function(){return new n(this,e)};case b:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},S=t+" Iterator",A=!1,E=e.prototype,U=E[m]||E["@@iterator"]||h&&E[h],O=!g&&U||T(h),F="Array"==t&&E.entries||U;if(F&&(D=o(F.call(new e)),p!==Object.prototype&&D.next&&(d||o(D)===p||(a?a(D,p):"function"!=typeof D[m]&&c(D,m,x)),s(D,S,!0,!0),d&&(f[S]=x))),h==b&&U&&U.name!==b&&(A=!0,O=function(){return U.call(this)}),d&&!w||E[m]===O||c(E,m,O),f[t]=O,h)if(C={values:T(b),keys:_?O:T(v),entries:T(y)},w)for(k in C)(g||A||!(k in E))&&u(E,k,C[k]);else r({target:t,proto:!0,forced:g||A},C);return C}},function(e,t,n){"use strict";var r=n(81).IteratorPrototype,i=n(71),o=n(16),a=n(85),s=n(86),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,u,!1,!0),s[u]=c,e}},function(e,t,n){"use strict";var r,i,o,a=n(82),s=n(26),c=n(23),u=n(57),l=n(37),d=u("iterator"),f=!1,h=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):f=!0),void 0==r&&(r={}),l||c(r,d)||s(r,d,h),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(e,t,n){var r=n(23),i=n(83),o=n(35),a=n(84),s=o("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){var r=n(20);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(14);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(27).f,i=n(23),o=n(57),a=o("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,n){var r=n(28),i=n(88);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){var r=n(22);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(10),i=n(90),o=n(97),a=!o((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:a},{from:i})},function(e,t,n){"use strict";var r=n(62),i=n(83),o=n(91),a=n(92),s=n(47),c=n(93),u=n(94);e.exports=function(e){var t,n,l,d,f,h,p=i(e),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,b=void 0!==v,y=u(p),x=0;if(b&&(v=r(v,m>2?arguments[2]:void 0,2)),void 0==y||g==Array&&a(y))for(t=s(p.length),n=new g(t);t>x;x++)h=b?v(p[x],x):p[x],c(n,x,h);else for(d=y.call(p),f=d.next,n=new g;!(l=f.call(d)).done;x++)h=b?o(d,v,[l.value,x],!0):l.value,c(n,x,h);return n.length=x,n}},function(e,t,n){var r=n(28);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e["return"];throw void 0!==o&&r(o.call(e)),a}}},function(e,t,n){var r=n(57),i=n(86),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){"use strict";var r=n(21),i=n(27),o=n(16);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){var r=n(95),i=n(86),o=n(57),a=o("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(96),i=n(19),o=n(57),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=Object(e),a))?n:s?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(57),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},function(e,t,n){var r=n(57),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},function(e,t,n){n(99);var r=n(43);e.exports=r.Object.assign},function(e,t,n){var r=n(10),i=n(100);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";var r=n(13),i=n(14),o=n(73),a=n(51),s=n(15),c=n(83),u=n(18),l=Object.assign,d=Object.defineProperty;e.exports=!l||i((function(){if(r&&1!==l({b:1},l(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||o(l({},t)).join("")!=i}))?function(e,t){var n=c(e),i=arguments.length,l=1,d=a.f,f=s.f;while(i>l){var h,p=u(arguments[l++]),g=d?o(p).concat(d(p)):o(p),m=g.length,v=0;while(m>v)h=g[v++],r&&!f.call(p,h)||(n[h]=p[h])}return n}:l},function(e,t,n){n(102),n(103);var r=n(43);e.exports=r.Object.fromEntries},function(e,t,n){"use strict";var r=n(17),i=n(70),o=n(86),a=n(33),s=n(79),c="Array Iterator",u=a.set,l=a.getterFor(c);e.exports=s(Array,"Array",(function(e,t){u(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){var r=n(10),i=n(104),o=n(93);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,n){o(t,e,n)}),void 0,!0),t}})},function(e,t,n){var r=n(28),i=n(92),o=n(47),a=n(62),s=n(94),c=n(91),u=function(e,t){this.stopped=e,this.result=t},l=e.exports=function(e,t,n,l,d){var f,h,p,g,m,v,b,y=a(t,n,l?2:1);if(d)f=e;else{if(h=s(e),"function"!=typeof h)throw TypeError("Target is not iterable");if(i(h)){for(p=0,g=o(e.length);g>p;p++)if(m=l?y(r(b=e[p])[0],b[1]):y(e[p]),m&&m instanceof u)return m;return new u(!1)}f=h.call(e)}v=f.next;while(!(b=v.call(f)).done)if(m=c(f,y,b.value,l),"object"==typeof m&&m&&m instanceof u)return m;return new u(!1)};l.stop=function(e){return new u(!0,e)}},function(e,t,n){n(106);var r=n(43);e.exports=r.Math.log2},function(e,t,n){var r=n(10),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return i(e)/o}})},function(e,t,n){n(108);var r=n(43);e.exports=r.Number.isNaN},function(e,t,n){var r=n(10);r({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){n(110);var r=n(43);e.exports=r.Number.isInteger},function(e,t,n){var r=n(10),i=n(111);r({target:"Number",stat:!0},{isInteger:i})},function(e,t,n){var r=n(22),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){n(113)},function(e,t,n){"use strict";var r=n(114),i=n(116),o=n(14),a=r.aTypedArray,s=r.aTypedArrayConstructor,c=r.exportTypedArrayMethod,u=[].slice,l=o((function(){new Int8Array(1).slice()}));c("slice",(function(e,t){var n=u.call(a(this),e,t),r=i(this,this.constructor),o=0,c=n.length,l=new(s(r))(c);while(c>o)l[o]=n[o++];return l}),l)},function(e,t,n){"use strict";var r,i=n(115),o=n(13),a=n(11),s=n(22),c=n(23),u=n(95),l=n(26),d=n(29),f=n(27).f,h=n(82),p=n(87),g=n(57),m=n(38),v=a.Int8Array,b=v&&v.prototype,y=a.Uint8ClampedArray,x=y&&y.prototype,_=v&&h(v),w=b&&h(b),D=Object.prototype,C=D.isPrototypeOf,k=g("toStringTag"),T=m("TYPED_ARRAY_TAG"),S=i&&!!p&&"Opera"!==u(a.opera),A=!1,E={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U=function(e){var t=u(e);return"DataView"===t||c(E,t)},O=function(e){return s(e)&&c(E,u(e))},F=function(e){if(O(e))return e;throw TypeError("Target is not a typed array")},P=function(e){if(p){if(C.call(_,e))return e}else for(var t in E)if(c(E,r)){var n=a[t];if(n&&(e===n||C.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},R=function(e,t,n){if(o){if(n)for(var r in E){var i=a[r];i&&c(i.prototype,e)&&delete i.prototype[e]}w[e]&&!n||d(w,e,n?t:S&&b[e]||t)}},N=function(e,t,n){var r,i;if(o){if(p){if(n)for(r in E)i=a[r],i&&c(i,e)&&delete i[e];if(_[e]&&!n)return;try{return d(_,e,n?t:S&&v[e]||t)}catch(s){}}for(r in E)i=a[r],!i||i[e]&&!n||d(i,e,t)}};for(r in E)a[r]||(S=!1);if((!S||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},S))for(r in E)a[r]&&p(a[r],_);if((!S||!w||w===D)&&(w=_.prototype,S))for(r in E)a[r]&&p(a[r].prototype,w);if(S&&h(x)!==w&&p(x,w),o&&!c(w,k))for(r in A=!0,f(w,k,{get:function(){return s(this)?this[T]:void 0}}),E)a[r]&&l(a[r],T,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:S,TYPED_ARRAY_TAG:A&&T,aTypedArray:F,aTypedArrayConstructor:P,exportTypedArrayMethod:R,exportTypedArrayStaticMethod:N,isView:U,isTypedArray:O,TypedArray:_,TypedArrayPrototype:w}},function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},function(e,t,n){var r=n(28),i=n(63),o=n(57),a=o("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[a])?t:i(n)}},function(e,t,n){n(118),n(77),n(120),n(122),n(136),n(137);var r=n(43);e.exports=r.Promise},function(e,t,n){var r=n(96),i=n(29),o=n(119);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";var r=n(96),i=n(95);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){var r=n(11),i=n(121),o=n(102),a=n(26),s=n(57),c=s("iterator"),u=s("toStringTag"),l=o.values;for(var d in i){var f=r[d],h=f&&f.prototype;if(h){if(h[c]!==l)try{a(h,c,l)}catch(g){h[c]=l}if(h[u]||a(h,u,d),i[d])for(var p in o)if(h[p]!==o[p])try{a(h,p,o[p])}catch(g){h[p]=o[p]}}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r,i,o,a,s=n(10),c=n(37),u=n(11),l=n(42),d=n(123),f=n(29),h=n(124),p=n(85),g=n(125),m=n(22),v=n(63),b=n(126),y=n(19),x=n(31),_=n(104),w=n(97),D=n(116),C=n(127).set,k=n(130),T=n(131),S=n(133),A=n(132),E=n(134),U=n(33),O=n(52),F=n(57),P=n(135),R=F("species"),N="Promise",M=U.get,I=U.set,B=U.getterFor(N),L=d,z=u.TypeError,W=u.document,j=u.process,H=l("fetch"),V=A.f,q=V,$="process"==y(j),G=!!(W&&W.createEvent&&u.dispatchEvent),X="unhandledrejection",Y="rejectionhandled",K=0,Z=1,J=2,Q=1,ee=2,te=O(N,(function(){var e=x(L)!==String(L);if(!e){if(66===P)return!0;if(!$&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!L.prototype["finally"])return!0;if(P>=51&&/native code/.test(L))return!1;var t=L.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[R]=n,!(t.then((function(){}))instanceof n)})),ne=te||!w((function(e){L.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},ie=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;k((function(){var i=t.value,o=t.state==Z,a=0;while(r.length>a){var s,c,u,l=r[a++],d=o?l.ok:l.fail,f=l.resolve,h=l.reject,p=l.domain;try{d?(o||(t.rejection===ee&&ce(e,t),t.rejection=Q),!0===d?s=i:(p&&p.enter(),s=d(i),p&&(p.exit(),u=!0)),s===l.promise?h(z("Promise-chain cycle")):(c=re(s))?c.call(s,f,h):f(s)):h(i)}catch(g){p&&!u&&p.exit(),h(g)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ae(e,t)}))}},oe=function(e,t,n){var r,i;G?(r=W.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},(i=u["on"+e])?i(r):e===X&&S("Unhandled promise rejection",n)},ae=function(e,t){C.call(u,(function(){var n,r=t.value,i=se(t);if(i&&(n=E((function(){$?j.emit("unhandledRejection",r,e):oe(X,e,r)})),t.rejection=$||se(t)?ee:Q,n.error))throw n.value}))},se=function(e){return e.rejection!==Q&&!e.parent},ce=function(e,t){C.call(u,(function(){$?j.emit("rejectionHandled",e):oe(Y,e,t.value)}))},ue=function(e,t,n,r){return function(i){e(t,n,i,r)}},le=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=J,ie(e,t,!0))},de=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw z("Promise can't be resolved itself");var i=re(n);i?k((function(){var r={done:!1};try{i.call(n,ue(de,e,r,t),ue(le,e,r,t))}catch(o){le(e,r,o,t)}})):(t.value=n,t.state=Z,ie(e,t,!1))}catch(o){le(e,{done:!1},o,t)}}};te&&(L=function(e){b(this,L,N),v(e),r.call(this);var t=M(this);try{e(ue(de,this,t),ue(le,this,t))}catch(n){le(this,t,n)}},r=function(e){I(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:K,value:void 0})},r.prototype=h(L.prototype,{then:function(e,t){var n=B(this),r=V(D(this,L));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=$?j.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=K&&ie(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=M(e);this.promise=e,this.resolve=ue(de,e,t),this.reject=ue(le,e,t)},A.f=V=function(e){return e===L||e===o?new i(e):q(e)},c||"function"!=typeof d||(a=d.prototype.then,f(d.prototype,"then",(function(e,t){var n=this;return new L((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof H&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return T(L,H.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:L}),p(L,N,!1,!0),g(N),o=l(N),s({target:N,stat:!0,forced:te},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),s({target:N,stat:!0,forced:c||te},{resolve:function(e){return T(c&&this===o?L:this,e)}}),s({target:N,stat:!0,forced:ne},{all:function(e){var t=this,n=V(t),r=n.resolve,i=n.reject,o=E((function(){var n=v(t.resolve),o=[],a=0,s=1;_(e,(function(e){var c=a++,u=!1;o.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=V(t),r=n.reject,i=E((function(){var i=v(t.resolve);_(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(e,t,n){var r=n(11);e.exports=r.Promise},function(e,t,n){var r=n(29);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(42),i=n(27),o=n(57),a=n(13),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r,i,o,a=n(11),s=n(14),c=n(19),u=n(62),l=n(74),d=n(25),f=n(128),h=a.location,p=a.setImmediate,g=a.clearImmediate,m=a.process,v=a.MessageChannel,b=a.Dispatch,y=0,x={},_="onreadystatechange",w=function(e){if(x.hasOwnProperty(e)){var t=x[e];delete x[e],t()}},D=function(e){return function(){w(e)}},C=function(e){w(e.data)},k=function(e){a.postMessage(e+"",h.protocol+"//"+h.host)};p&&g||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return x[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(y),y},g=function(e){delete x[e]},"process"==c(m)?r=function(e){m.nextTick(D(e))}:b&&b.now?r=function(e){b.now(D(e))}:v&&!f?(i=new v,o=i.port2,i.port1.onmessage=C,r=u(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(k)||"file:"===h.protocol?r=_ in d("script")?function(e){l.appendChild(d("script"))[_]=function(){l.removeChild(this),w(e)}}:function(e){setTimeout(D(e),0)}:(r=k,a.addEventListener("message",C,!1))),e.exports={set:p,clear:g}},function(e,t,n){var r=n(129);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(42);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r,i,o,a,s,c,u,l,d=n(11),f=n(12).f,h=n(19),p=n(127).set,g=n(128),m=d.MutationObserver||d.WebKitMutationObserver,v=d.process,b=d.Promise,y="process"==h(v),x=f(d,"queueMicrotask"),_=x&&x.value;_||(r=function(){var e,t;y&&(e=v.domain)&&e.exit();while(i){t=i.fn,i=i.next;try{t()}catch(n){throw i?a():o=void 0,n}}o=void 0,e&&e.enter()},y?a=function(){v.nextTick(r)}:m&&!g?(s=!0,c=document.createTextNode(""),new m(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):b&&b.resolve?(u=b.resolve(void 0),l=u.then,a=function(){l.call(u,r)}):a=function(){p.call(d,r)}),e.exports=_||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,n){var r=n(28),i=n(22),o=n(132);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},function(e,t,n){"use strict";var r=n(63),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},function(e,t,n){var r=n(11);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,n){var r,i,o=n(11),a=n(129),s=o.process,c=s&&s.versions,u=c&&c.v8;u?(r=u.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},function(e,t,n){"use strict";var r=n(10),i=n(63),o=n(132),a=n(134),s=n(104);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),r=n.resolve,c=n.reject,u=a((function(){var n=i(t.resolve),o=[],a=0,c=1;s(e,(function(e){var i=a++,s=!1;o.push(void 0),c++,n.call(t,e).then((function(e){s||(s=!0,o[i]={status:"fulfilled",value:e},--c||r(o))}),(function(e){s||(s=!0,o[i]={status:"rejected",reason:e},--c||r(o))}))})),--c||r(o)}));return u.error&&c(u.value),n.promise}})},function(e,t,n){"use strict";var r=n(10),i=n(37),o=n(123),a=n(14),s=n(42),c=n(116),u=n(131),l=n(29),d=!!o&&a((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=c(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),i||"function"!=typeof o||o.prototype["finally"]||l(o.prototype,"finally",s("Promise").prototype["finally"])},function(e,t,n){n(139),n(144),n(142);var r=n(43);e.exports=r.URL},function(e,t,n){"use strict";n(77);var r,i=n(10),o=n(13),a=n(140),s=n(11),c=n(72),u=n(29),l=n(126),d=n(23),f=n(100),h=n(90),p=n(78).codeAt,g=n(141),m=n(85),v=n(142),b=n(33),y=s.URL,x=v.URLSearchParams,_=v.getState,w=b.set,D=b.getterFor("URL"),C=Math.floor,k=Math.pow,T="Invalid authority",S="Invalid scheme",A="Invalid host",E="Invalid port",U=/[A-Za-z]/,O=/[\d+-.A-Za-z]/,F=/\d/,P=/^(0x|0X)/,R=/^[0-7]+$/,N=/^\d+$/,M=/^[\dA-Fa-f]+$/,I=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,B=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,L=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,z=/[\u0009\u000A\u000D]/g,W=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return A;if(n=H(t.slice(1,-1)),!n)return A;e.host=n}else if(J(e)){if(t=g(t),I.test(t))return A;if(n=j(t),null===n)return A;e.host=n}else{if(B.test(t))return A;for(n="",r=h(t),i=0;i<r.length;i++)n+=K(r[i],$);e.host=n}},j=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),t=c.length,t>4)return e;for(n=[],r=0;r<t;r++){if(i=c[r],""==i)return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=P.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?N:8==o?R:M).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=k(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*k(256,3-r);return s},H=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,d=0,f=function(){return e.charAt(d)};if(":"==f()){if(":"!=e.charAt(1))return;d+=2,u++,l=u}while(f()){if(8==u)return;if(":"!=f()){t=n=0;while(n<4&&M.test(f()))t=16*t+parseInt(f(),16),d++,n++;if("."==f()){if(0==n)return;if(d-=n,u>6)return;r=0;while(f()){if(i=null,r>0){if(!("."==f()&&r<4))return;d++}if(!F.test(f()))return;while(F.test(f())){if(o=parseInt(f(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;d++}c[u]=256*c[u]+i,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==f()){if(d++,!f())return}else if(f())return;c[u++]=t}else{if(null!==l)return;d++,u++,l=u}}if(null!==l){a=u-l,u=7;while(0!=u&&a>0)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s}else if(8!=u)return;return c},V=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t},q=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=C(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=V(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},$={},G=f({},$,{" ":1,'"':1,"<":1,">":1,"`":1}),X=f({},G,{"#":1,"?":1,"{":1,"}":1}),Y=f({},X,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),K=function(e,t){var n=p(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},J=function(e){return d(Z,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&U.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},ie=function(e){return"."===e||"%2e"===e.toLowerCase()},oe=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ae={},se={},ce={},ue={},le={},de={},fe={},he={},pe={},ge={},me={},ve={},be={},ye={},xe={},_e={},we={},De={},Ce={},ke={},Te={},Se=function(e,t,n,i){var o,a,s,c,u=n||ae,l=0,f="",p=!1,g=!1,m=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(L,"")),t=t.replace(z,""),o=h(t);while(l<=o.length){switch(a=o[l],u){case ae:if(!a||!U.test(a)){if(n)return S;u=ce;continue}f+=a.toLowerCase(),u=se;break;case se:if(a&&(O.test(a)||"+"==a||"-"==a||"."==a))f+=a.toLowerCase();else{if(":"!=a){if(n)return S;f="",u=ce,l=0;continue}if(n&&(J(e)!=d(Z,f)||"file"==f&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(J(e)&&Z[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?u=ye:J(e)&&i&&i.scheme==e.scheme?u=ue:J(e)?u=he:"/"==o[l+1]?(u=le,l++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Ce)}break;case ce:if(!i||i.cannotBeABaseURL&&"#"!=a)return S;if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,u=Te;break}u="file"==i.scheme?ye:de;continue;case ue:if("/"!=a||"/"!=o[l+1]){u=de;continue}u=pe,l++;break;case le:if("/"==a){u=ge;break}u=De;continue;case de:if(e.scheme=i.scheme,a==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&J(e))u=fe;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",u=ke;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),u=De;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=Te}break;case fe:if(!J(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,u=De;continue}u=ge}else u=pe;break;case he:if(u=pe,"/"!=a||"/"!=f.charAt(l+1))continue;l++;break;case pe:if("/"!=a&&"\\"!=a){u=ge;continue}break;case ge:if("@"==a){p&&(f="%40"+f),p=!0,s=h(f);for(var v=0;v<s.length;v++){var b=s[v];if(":"!=b||m){var y=K(b,Y);m?e.password+=y:e.username+=y}else m=!0}f=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&J(e)){if(p&&""==f)return T;l-=h(f).length+1,f="",u=me}else f+=a;break;case me:case ve:if(n&&"file"==e.scheme){u=_e;continue}if(":"!=a||g){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&J(e)){if(J(e)&&""==f)return A;if(n&&""==f&&(Q(e)||null!==e.port))return;if(c=W(e,f),c)return c;if(f="",u=we,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),f+=a}else{if(""==f)return A;if(c=W(e,f),c)return c;if(f="",u=be,n==ve)return}break;case be:if(!F.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&J(e)||n){if(""!=f){var x=parseInt(f,10);if(x>65535)return E;e.port=J(e)&&x===Z[e.scheme]?null:x,f=""}if(n)return;u=we;continue}return E}f+=a;break;case ye:if(e.scheme="file","/"==a||"\\"==a)u=xe;else{if(!i||"file"!=i.scheme){u=De;continue}if(a==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",u=ke;else{if("#"!=a){ne(o.slice(l).join(""))||(e.host=i.host,e.path=i.path.slice(),re(e)),u=De;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=Te}}break;case xe:if("/"==a||"\\"==a){u=_e;break}i&&"file"==i.scheme&&!ne(o.slice(l).join(""))&&(te(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),u=De;continue;case _e:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&te(f))u=De;else if(""==f){if(e.host="",n)return;u=we}else{if(c=W(e,f),c)return c;if("localhost"==e.host&&(e.host=""),n)return;f="",u=we}continue}f+=a;break;case we:if(J(e)){if(u=De,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(u=De,"/"!=a))continue}else e.fragment="",u=Te;else e.query="",u=ke;break;case De:if(a==r||"/"==a||"\\"==a&&J(e)||!n&&("?"==a||"#"==a)){if(oe(f)?(re(e),"/"==a||"\\"==a&&J(e)||e.path.push("")):ie(f)?"/"==a||"\\"==a&&J(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(a==r||"?"==a||"#"==a))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==a?(e.query="",u=ke):"#"==a&&(e.fragment="",u=Te)}else f+=K(a,X);break;case Ce:"?"==a?(e.query="",u=ke):"#"==a?(e.fragment="",u=Te):a!=r&&(e.path[0]+=K(a,$));break;case ke:n||"#"!=a?a!=r&&("'"==a&&J(e)?e.query+="%27":e.query+="#"==a?"%23":K(a,$)):(e.fragment="",u=Te);break;case Te:a!=r&&(e.fragment+=K(a,G));break}l++}},Ae=function(e){var t,n,r=l(this,Ae,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=w(r,{type:"URL"});if(void 0!==i)if(i instanceof Ae)t=D(i);else if(n=Se(t={},String(i)),n)throw TypeError(n);if(n=Se(s,a,null,t),n)throw TypeError(n);var c=s.searchParams=new x,u=_(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},o||(r.href=Ue.call(r),r.origin=Oe.call(r),r.protocol=Fe.call(r),r.username=Pe.call(r),r.password=Re.call(r),r.host=Ne.call(r),r.hostname=Me.call(r),r.port=Ie.call(r),r.pathname=Be.call(r),r.search=Le.call(r),r.searchParams=ze.call(r),r.hash=We.call(r))},Ee=Ae.prototype,Ue=function(){var e=D(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==i?(u+="//",Q(e)&&(u+=n+(r?":"+r:"")+"@"),u+=q(i),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},Oe=function(){var e=D(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&J(e)?t+"://"+q(e.host)+(null!==n?":"+n:""):"null"},Fe=function(){return D(this).scheme+":"},Pe=function(){return D(this).username},Re=function(){return D(this).password},Ne=function(){var e=D(this),t=e.host,n=e.port;return null===t?"":null===n?q(t):q(t)+":"+n},Me=function(){var e=D(this).host;return null===e?"":q(e)},Ie=function(){var e=D(this).port;return null===e?"":String(e)},Be=function(){var e=D(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Le=function(){var e=D(this).query;return e?"?"+e:""},ze=function(){return D(this).searchParams},We=function(){var e=D(this).fragment;return e?"#"+e:""},je=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&c(Ee,{href:je(Ue,(function(e){var t=D(this),n=String(e),r=Se(t,n);if(r)throw TypeError(r);_(t.searchParams).updateSearchParams(t.query)})),origin:je(Oe),protocol:je(Fe,(function(e){var t=D(this);Se(t,String(e)+":",ae)})),username:je(Pe,(function(e){var t=D(this),n=h(String(e));if(!ee(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=K(n[r],Y)}})),password:je(Re,(function(e){var t=D(this),n=h(String(e));if(!ee(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=K(n[r],Y)}})),host:je(Ne,(function(e){var t=D(this);t.cannotBeABaseURL||Se(t,String(e),me)})),hostname:je(Me,(function(e){var t=D(this);t.cannotBeABaseURL||Se(t,String(e),ve)})),port:je(Ie,(function(e){var t=D(this);ee(t)||(e=String(e),""==e?t.port=null:Se(t,e,be))})),pathname:je(Be,(function(e){var t=D(this);t.cannotBeABaseURL||(t.path=[],Se(t,e+"",we))})),search:je(Le,(function(e){var t=D(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Se(t,e,ke)),_(t.searchParams).updateSearchParams(t.query)})),searchParams:je(ze),hash:je(We,(function(e){var t=D(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Se(t,e,Te)):t.fragment=null}))}),u(Ee,"toJSON",(function(){return Ue.call(this)}),{enumerable:!0}),u(Ee,"toString",(function(){return Ue.call(this)}),{enumerable:!0}),y){var He=y.createObjectURL,Ve=y.revokeObjectURL;He&&u(Ae,"createObjectURL",(function(e){return He.apply(y,arguments)})),Ve&&u(Ae,"revokeObjectURL",(function(e){return Ve.apply(y,arguments)}))}m(Ae,"URL"),i({global:!0,forced:!a,sham:!o},{URL:Ae})},function(e,t,n){var r=n(14),i=n(57),o=n(37),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(e,t,n){"use strict";var r=2147483647,i=36,o=1,a=26,s=38,c=700,u=72,l=128,d="-",f=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",g=i-o,m=Math.floor,v=String.fromCharCode,b=function(e){var t=[],n=0,r=e.length;while(n<r){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t},y=function(e){return e+22+75*(e<26)},x=function(e,t,n){var r=0;for(e=n?m(e/c):e>>1,e+=m(e/t);e>g*a>>1;r+=i)e=m(e/g);return m(r+(g+1)*e/(e+s))},_=function(e){var t=[];e=b(e);var n,s,c=e.length,f=l,h=0,g=u;for(n=0;n<e.length;n++)s=e[n],s<128&&t.push(v(s));var _=t.length,w=_;_&&t.push(d);while(w<c){var D=r;for(n=0;n<e.length;n++)s=e[n],s>=f&&s<D&&(D=s);var C=w+1;if(D-f>m((r-h)/C))throw RangeError(p);for(h+=(D-f)*C,f=D,n=0;n<e.length;n++){if(s=e[n],s<f&&++h>r)throw RangeError(p);if(s==f){for(var k=h,T=i;;T+=i){var S=T<=g?o:T>=g+a?a:T-g;if(k<S)break;var A=k-S,E=i-S;t.push(v(y(S+A%E))),k=m(A/E)}t.push(v(y(k))),g=x(h,C,w==_),h=0,++w}}++h,++f}return t.join("")};e.exports=function(e){var t,n,r=[],i=e.toLowerCase().replace(h,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(f.test(n)?"xn--"+_(n):n);return r.join(".")}},function(e,t,n){"use strict";n(102);var r=n(10),i=n(42),o=n(140),a=n(29),s=n(124),c=n(85),u=n(80),l=n(33),d=n(126),f=n(23),h=n(62),p=n(95),g=n(28),m=n(22),v=n(71),b=n(16),y=n(143),x=n(94),_=n(57),w=i("fetch"),D=i("Headers"),C=_("iterator"),k="URLSearchParams",T=k+"Iterator",S=l.set,A=l.getterFor(k),E=l.getterFor(T),U=/\+/g,O=Array(4),F=function(e){return O[e-1]||(O[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},P=function(e){try{return decodeURIComponent(e)}catch(t){return e}},R=function(e){var t=e.replace(U," "),n=4;try{return decodeURIComponent(t)}catch(r){while(n)t=t.replace(F(n--),P);return t}},N=/[!'()~]|%20/g,M={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},I=function(e){return M[e]},B=function(e){return encodeURIComponent(e).replace(N,I)},L=function(e,t){if(t){var n,r,i=t.split("&"),o=0;while(o<i.length)n=i[o++],n.length&&(r=n.split("="),e.push({key:R(r.shift()),value:R(r.join("="))}))}},z=function(e){this.entries.length=0,L(this.entries,e)},W=function(e,t){if(e<t)throw TypeError("Not enough arguments")},j=u((function(e,t){S(this,{type:T,iterator:y(A(e).entries),kind:t})}),"Iterator",(function(){var e=E(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),H=function(){d(this,H,k);var e,t,n,r,i,o,a,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,h=[];if(S(l,{type:k,entries:h,updateURL:function(){},updateSearchParams:z}),void 0!==u)if(m(u))if(e=x(u),"function"===typeof e){t=e.call(u),n=t.next;while(!(r=n.call(t)).done){if(i=y(g(r.value)),o=i.next,(a=o.call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");h.push({key:a.value+"",value:s.value+""})}}else for(c in u)f(u,c)&&h.push({key:c,value:u[c]+""});else L(h,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},V=H.prototype;s(V,{append:function(e,t){W(arguments.length,2);var n=A(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){W(arguments.length,1);var t=A(this),n=t.entries,r=e+"",i=0;while(i<n.length)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){W(arguments.length,1);for(var t=A(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){W(arguments.length,1);for(var t=A(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){W(arguments.length,1);var t=A(this).entries,n=e+"",r=0;while(r<t.length)if(t[r++].key===n)return!0;return!1},set:function(e,t){W(arguments.length,1);for(var n,r=A(this),i=r.entries,o=!1,a=e+"",s=t+"",c=0;c<i.length;c++)n=i[c],n.key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=A(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){var t,n=A(this).entries,r=h(e,arguments.length>1?arguments[1]:void 0,3),i=0;while(i<n.length)t=n[i++],r(t.value,t.key,this)},keys:function(){return new j(this,"keys")},values:function(){return new j(this,"values")},entries:function(){return new j(this,"entries")}},{enumerable:!0}),a(V,C,V.entries),a(V,"toString",(function(){var e,t=A(this).entries,n=[],r=0;while(r<t.length)e=t[r++],n.push(B(e.key)+"="+B(e.value));return n.join("&")}),{enumerable:!0}),c(H,k),r({global:!0,forced:!o},{URLSearchParams:H}),o||"function"!=typeof w||"function"!=typeof D||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],m(t)&&(n=t.body,p(n)===k&&(r=t.headers?new D(t.headers):new D,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:b(0,String(n)),headers:b(0,r)}))),i.push(t)),w.apply(this,i)}}),e.exports={URLSearchParams:H,getState:A}},function(e,t,n){var r=n(28),i=n(94);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){"use strict";var r=n(10);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,n){(function(e,n){n(t)})(0,(function(e){"use strict";var t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol:function(e){return"Symbol("+e+")"};function n(){}var r=Number.isNaN||function(e){return e!==e},i=n;function o(e){return"object"===typeof e&&null!==e||"function"===typeof e}function a(e){return e.slice()}function s(e,t,n,r,i){new Uint8Array(e).set(new Uint8Array(n,r,i),t)}function c(e){return!1!==u(e)&&e!==1/0}function u(e){return"number"===typeof e&&(!r(e)&&!(e<0))}function l(e,t,n){if("function"!==typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,n)}function d(e,t,n,r){var i=e[t];if(void 0!==i){if("function"!==typeof i)throw new TypeError(i+" is not a method");switch(n){case 0:return function(){return h(i,e,r)};case 1:return function(t){var n=[t].concat(r);return h(i,e,n)}}}return function(){return D(void 0)}}function f(e,t,n){var r=e[t];if(void 0!==r)return l(r,e,n)}function h(e,t,n){try{return D(l(e,t,n))}catch(r){return C(r)}}function p(e){return e}function g(e){return!1}function m(e){if(e=Number(e),r(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function v(e){if(void 0===e)return function(){return 1};if("function"!==typeof e)throw new TypeError("size property of a queuing strategy must be a function");return function(t){return e(t)}}var b=Promise,y=Promise.prototype.then,x=Promise.resolve.bind(b),_=Promise.reject.bind(b);function w(e){return new b(e)}function D(e){return x(e)}function C(e){return _(e)}function k(e,t,n){return y.call(e,t,n)}function T(e,t,n){k(k(e,t,n),void 0,i)}function S(e,t){T(e,t)}function A(e,t){T(e,void 0,t)}function E(e,t,n){return k(e,t,n)}function U(e){k(e,void 0,i)}var O=16384,F=function(){function e(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.push=function(e){var t=this._back,n=t;t._elements.length===O-1&&(n={_elements:[],_next:void 0}),t._elements.push(e),n!==t&&(this._back=n,t._next=n),++this._size},e.prototype.shift=function(){var e=this._front,t=e,n=this._cursor,r=n+1,i=e._elements,o=i[n];return r===O&&(t=e._next,r=0),--this._size,this._cursor=r,e!==t&&(this._front=t),i[n]=void 0,o},e.prototype.forEach=function(e){var t=this._cursor,n=this._front,r=n._elements;while(t!==r.length||void 0!==n._next){if(t===r.length&&(n=n._next,r=n._elements,t=0,0===r.length))break;e(r[t]),++t}},e.prototype.peek=function(){var e=this._front,t=this._cursor;return e._elements[t]},e}();function P(e,t,n){var r=null;!0===n&&(r=Object.prototype);var i=Object.create(r);return i.value=e,i.done=t,i}function R(e,t){e._forAuthorCode=!0,e._ownerReadableStream=t,t._reader=e,"readable"===t._state?B(e):"closed"===t._state?z(e):L(e,t._storedError)}function N(e,t){var n=e._ownerReadableStream;return In(n,t)}function M(e){"readable"===e._ownerReadableStream._state?W(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):j(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function I(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function B(e){e._closedPromise=w((function(t,n){e._closedPromise_resolve=t,e._closedPromise_reject=n}))}function L(e,t){B(e),W(e,t)}function z(e){B(e),H(e)}function W(e,t){U(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function j(e,t){L(e,t)}function H(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}var V=t("[[CancelSteps]]"),q=t("[[PullSteps]]");function $(e,t){void 0===t&&(t=!1);var n=new Q(e);return n._forAuthorCode=t,n}function G(e){var t=w((function(t,n){var r={_resolve:t,_reject:n};e._reader._readRequests.push(r)}));return t}function X(e,t,n){var r=e._reader,i=r._readRequests.shift();i._resolve(P(t,n,r._forAuthorCode))}function Y(e){return e._reader._readRequests.length}function K(e){var t=e._reader;return void 0!==t&&!!ee(t)}var Z,J,Q=function(){function e(e){if(!1===Nn(e))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===Mn(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");R(this,e),this._readRequests=new F}return Object.defineProperty(e.prototype,"closed",{get:function(){return ee(this)?this._closedPromise:C(ne("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return ee(this)?void 0===this._ownerReadableStream?C(I("cancel")):N(this,e):C(ne("cancel"))},e.prototype.read=function(){return ee(this)?void 0===this._ownerReadableStream?C(I("read from")):te(this):C(ne("read"))},e.prototype.releaseLock=function(){if(!ee(this))throw ne("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");M(this)}},e}();function ee(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function te(e){var t=e._ownerReadableStream;return t._disturbed=!0,"closed"===t._state?D(P(void 0,!0,e._forAuthorCode)):"errored"===t._state?C(t._storedError):t._readableStreamController[q]()}function ne(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}"symbol"===typeof t.asyncIterator&&(Z={},Z[t.asyncIterator]=function(){return this},J=Z,Object.defineProperty(J,t.asyncIterator,{enumerable:!1}));var re={next:function(){if(!1===oe(this))return C(ae("next"));var e=this._asyncIteratorReader;return void 0===e._ownerReadableStream?C(I("iterate")):E(te(e),(function(t){var n=t.done;n&&M(e);var r=t.value;return P(r,n,!0)}))},return:function(e){if(!1===oe(this))return C(ae("next"));var t=this._asyncIteratorReader;if(void 0===t._ownerReadableStream)return C(I("finish iterating"));if(t._readRequests.length>0)return C(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var n=N(t,e);return M(t),E(n,(function(){return P(e,!0,!0)}))}return M(t),D(P(e,!0,!0))}};function ie(e,t){void 0===t&&(t=!1);var n=$(e),r=Object.create(re);return r._asyncIteratorReader=n,r._preventCancel=Boolean(t),r}function oe(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader")}function ae(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function se(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function ce(e,t,n){if(n=Number(n),!c(n))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:n}),e._queueTotalSize+=n}function ue(e){var t=e._queue.peek();return t.value}function le(e){e._queue=new F,e._queueTotalSize=0}void 0!==J&&Object.setPrototypeOf(re,J),Object.defineProperty(re,"next",{enumerable:!1}),Object.defineProperty(re,"return",{enumerable:!1});var de=t("[[AbortSteps]]"),fe=t("[[ErrorSteps]]"),he=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),me(this);var n=t.size,r=t.highWaterMark,i=e.type;if(void 0!==i)throw new RangeError("Invalid type is specified");var o=v(n);void 0===r&&(r=1),r=m(r),Xe(this,e,r,o)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===ve(this))throw at("locked");return be(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===ve(this)?C(at("abort")):!0===be(this)?C(new TypeError("Cannot abort a stream that already has a writer")):ye(this,e)},e.prototype.close=function(){return!1===ve(this)?C(at("close")):!0===be(this)?C(new TypeError("Cannot close a stream that already has a writer")):!0===Ee(this)?C(new TypeError("Cannot close an already-closing stream")):xe(this)},e.prototype.getWriter=function(){if(!1===ve(this))throw at("getWriter");return pe(this)},e}();function pe(e){return new Ne(e)}function ge(e,t,n,r,i,o){void 0===i&&(i=1),void 0===o&&(o=function(){return 1});var a=Object.create(he.prototype);me(a);var s=Object.create(qe.prototype);return Ge(a,s,e,t,n,r,i,o),a}function me(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new F,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function ve(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function be(e){return void 0!==e._writer}function ye(e,t){var n=e._state;if("closed"===n||"errored"===n)return D(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var r=!1;"erroring"===n&&(r=!0,t=void 0);var i=w((function(n,i){e._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:i,_reason:t,_wasAlreadyErroring:r}}));return e._pendingAbortRequest._promise=i,!1===r&&De(e,t),i}function xe(e){var t=e._state;if("closed"===t||"errored"===t)return C(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var n=w((function(t,n){var r={_resolve:t,_reject:n};e._closeRequest=r})),r=e._writer;return void 0!==r&&!0===e._backpressure&&"writable"===t&&_t(r),Ke(e._writableStreamController),n}function _e(e){var t=w((function(t,n){var r={_resolve:t,_reject:n};e._writeRequests.push(r)}));return t}function we(e,t){var n=e._state;"writable"!==n?Ce(e):De(e,t)}function De(e,t){var n=e._writableStreamController;e._state="erroring",e._storedError=t;var r=e._writer;void 0!==r&&We(r,t),!1===Ue(e)&&!0===n._started&&Ce(e)}function Ce(e){e._state="errored",e._writableStreamController[fe]();var t=e._storedError;if(e._writeRequests.forEach((function(e){e._reject(t)})),e._writeRequests=new F,void 0!==e._pendingAbortRequest){var n=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,!0===n._wasAlreadyErroring)return n._reject(t),void Pe(e);var r=e._writableStreamController[de](n._reason);T(r,(function(){n._resolve(),Pe(e)}),(function(t){n._reject(t),Pe(e)}))}else Pe(e)}function ke(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function Te(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,we(e,t)}function Se(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0;var t=e._state;"erroring"===t&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var n=e._writer;void 0!==n&&pt(n)}function Ae(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),we(e,t)}function Ee(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function Ue(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}function Oe(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function Fe(e){e._inFlightWriteRequest=e._writeRequests.shift()}function Pe(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&ft(t,e._storedError)}function Re(e,t){var n=e._writer;void 0!==n&&t!==e._backpressure&&(!0===t?yt(n):_t(n)),e._backpressure=t}var Ne=function(){function e(e){if(!1===ve(e))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===be(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;var t=e._state;if("writable"===t)!1===Ee(e)&&!0===e._backpressure?gt(this):vt(this),ut(this);else if("erroring"===t)mt(this,e._storedError),ut(this);else if("closed"===t)vt(this),dt(this);else{var n=e._storedError;mt(this,n),lt(this,n)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return!1===Me(this)?C(st("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Me(this))throw st("desiredSize");if(void 0===this._ownerWritableStream)throw ct("desiredSize");return je(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return!1===Me(this)?C(st("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===Me(this)?C(st("abort")):void 0===this._ownerWritableStream?C(ct("abort")):Ie(this,e)},e.prototype.close=function(){if(!1===Me(this))return C(st("close"));var e=this._ownerWritableStream;return void 0===e?C(ct("close")):!0===Ee(e)?C(new TypeError("Cannot close an already-closing stream")):Be(this)},e.prototype.releaseLock=function(){if(!1===Me(this))throw st("releaseLock");var e=this._ownerWritableStream;void 0!==e&&He(this)},e.prototype.write=function(e){return!1===Me(this)?C(st("write")):void 0===this._ownerWritableStream?C(ct("write to")):Ve(this,e)},e}();function Me(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function Ie(e,t){var n=e._ownerWritableStream;return ye(n,t)}function Be(e){var t=e._ownerWritableStream;return xe(t)}function Le(e){var t=e._ownerWritableStream,n=t._state;return!0===Ee(t)||"closed"===n?D(void 0):"errored"===n?C(t._storedError):Be(e)}function ze(e,t){"pending"===e._closedPromiseState?ft(e,t):ht(e,t)}function We(e,t){"pending"===e._readyPromiseState?bt(e,t):xt(e,t)}function je(e){var t=e._ownerWritableStream,n=t._state;return"errored"===n||"erroring"===n?null:"closed"===n?0:Je(t._writableStreamController)}function He(e){var t=e._ownerWritableStream,n=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");We(e,n),ze(e,n),t._writer=void 0,e._ownerWritableStream=void 0}function Ve(e,t){var n=e._ownerWritableStream,r=n._writableStreamController,i=Ze(r,t);if(n!==e._ownerWritableStream)return C(ct("write to"));var o=n._state;if("errored"===o)return C(n._storedError);if(!0===Ee(n)||"closed"===o)return C(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return C(n._storedError);var a=_e(n);return Qe(r,t,i),a}var qe=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(e){if(!1===$e(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var t=this._controlledWritableStream._state;"writable"===t&&ot(this,e)},e.prototype[de]=function(e){var t=this._abortAlgorithm(e);return Ye(this),t},e.prototype[fe]=function(){le(this)},e}();function $e(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")}function Ge(e,t,n,r,i,o,a,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,le(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=a,t._writeAlgorithm=r,t._closeAlgorithm=i,t._abortAlgorithm=o;var c=it(t);Re(e,c);var u=n(),l=D(u);T(l,(function(){t._started=!0,et(t)}),(function(n){t._started=!0,we(e,n)}))}function Xe(e,t,n,r){var i=Object.create(qe.prototype);function o(){return f(t,"start",[i])}var a=d(t,"write",1,[i]),s=d(t,"close",0,[]),c=d(t,"abort",1,[]);Ge(e,i,o,a,s,c,n,r)}function Ye(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Ke(e){ce(e,"close",0),et(e)}function Ze(e,t){try{return e._strategySizeAlgorithm(t)}catch(n){return tt(e,n),1}}function Je(e){return e._strategyHWM-e._queueTotalSize}function Qe(e,t,n){var r={chunk:t};try{ce(e,r,n)}catch(a){return void tt(e,a)}var i=e._controlledWritableStream;if(!1===Ee(i)&&"writable"===i._state){var o=it(e);Re(i,o)}et(e)}function et(e){var t=e._controlledWritableStream;if(!1!==e._started&&void 0===t._inFlightWriteRequest){var n=t._state;if("erroring"!==n){if(0!==e._queue.length){var r=ue(e);"close"===r?nt(e):rt(e,r.chunk)}}else Ce(t)}}function tt(e,t){"writable"===e._controlledWritableStream._state&&ot(e,t)}function nt(e){var t=e._controlledWritableStream;Oe(t),se(e);var n=e._closeAlgorithm();Ye(e),T(n,(function(){Se(t)}),(function(e){Ae(t,e)}))}function rt(e,t){var n=e._controlledWritableStream;Fe(n);var r=e._writeAlgorithm(t);T(r,(function(){ke(n);var t=n._state;if(se(e),!1===Ee(n)&&"writable"===t){var r=it(e);Re(n,r)}et(e)}),(function(t){"writable"===n._state&&Ye(e),Te(n,t)}))}function it(e){var t=Je(e);return t<=0}function ot(e,t){var n=e._controlledWritableStream;Ye(e),De(n,t)}function at(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function st(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function ct(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function ut(e){e._closedPromise=w((function(t,n){e._closedPromise_resolve=t,e._closedPromise_reject=n,e._closedPromiseState="pending"}))}function lt(e,t){ut(e),ft(e,t)}function dt(e){ut(e),pt(e)}function ft(e,t){U(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function ht(e,t){lt(e,t)}function pt(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function gt(e){e._readyPromise=w((function(t,n){e._readyPromise_resolve=t,e._readyPromise_reject=n})),e._readyPromiseState="pending"}function mt(e,t){gt(e),bt(e,t)}function vt(e){gt(e),_t(e)}function bt(e,t){U(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function yt(e){gt(e)}function xt(e,t){mt(e,t)}function _t(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function wt(e){if("object"!==typeof e||null===e)return!1;try{return"boolean"===typeof e.aborted}catch(Z){return!1}}var Dt="undefined"!==typeof DOMException?DOMException:void 0;function Ct(e){if("function"!==typeof e&&"object"!==typeof e)return!1;try{return new e,!0}catch(Z){return!1}}function kt(){var e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}var Tt=Ct(Dt)?Dt:kt();function St(e,t,r,i,o,a){var s=$(e),c=pe(t);e._disturbed=!0;var u=!1,l=D(void 0);return w((function(d,f){var h;if(void 0!==a){if(h=function(){var n=new Tt("Aborted","AbortError"),r=[];!1===i&&r.push((function(){return"writable"===t._state?ye(t,n):D(void 0)})),!1===o&&r.push((function(){return"readable"===e._state?In(e,n):D(void 0)})),x((function(){return Promise.all(r.map((function(e){return e()})))}),!0,n)},!0===a.aborted)return void h();a.addEventListener("abort",h)}function p(){return w((function(e,t){function n(r){r?e():k(g(),n,t)}n(!1)}))}function g(){return!0===u?D(!0):k(c._readyPromise,(function(){return k(te(s),(function(e){return!0===e.done||(l=k(Ve(c,e.value),void 0,n),!1)}))}))}if(b(e,s._closedPromise,(function(e){!1===i?x((function(){return ye(t,e)}),!0,e):_(!0,e)})),b(t,c._closedPromise,(function(t){!1===o?x((function(){return In(e,t)}),!0,t):_(!0,t)})),y(e,s._closedPromise,(function(){!1===r?x((function(){return Le(c)})):_()})),!0===Ee(t)||"closed"===t._state){var m=new TypeError("the destination writable stream closed before all data could be piped to it");!1===o?x((function(){return In(e,m)}),!0,m):_(!0,m)}function v(){var e=l;return k(l,(function(){return e!==l?v():void 0}))}function b(e,t,n){"errored"===e._state?n(e._storedError):A(t,n)}function y(e,t,n){"closed"===e._state?n():S(t,n)}function x(e,n,r){function i(){T(e(),(function(){return C(n,r)}),(function(e){return C(!0,e)}))}!0!==u&&(u=!0,"writable"===t._state&&!1===Ee(t)?S(v(),i):i())}function _(e,n){!0!==u&&(u=!0,"writable"===t._state&&!1===Ee(t)?S(v(),(function(){return C(e,n)})):C(e,n))}function C(e,t){He(c),M(s),void 0!==a&&a.removeEventListener("abort",h),e?f(t):d(void 0)}U(p())}))}var At=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Et(this))throw Wt("desiredSize");return Mt(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===Et(this))throw Wt("close");if(!1===Bt(this))throw new TypeError("The stream is not in a state that permits close");Pt(this)},e.prototype.enqueue=function(e){if(!1===Et(this))throw Wt("enqueue");if(!1===Bt(this))throw new TypeError("The stream is not in a state that permits enqueue");return Rt(this,e)},e.prototype.error=function(e){if(!1===Et(this))throw Wt("error");Nt(this,e)},e.prototype[V]=function(e){le(this);var t=this._cancelAlgorithm(e);return Ft(this),t},e.prototype[q]=function(){var e=this._controlledReadableStream;if(this._queue.length>0){var t=se(this);return!0===this._closeRequested&&0===this._queue.length?(Ft(this),Bn(e)):Ut(this),D(P(t,!1,e._reader._forAuthorCode))}var n=G(e);return Ut(this),n},e}();function Et(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function Ut(e){var t=Ot(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var n=e._pullAlgorithm();T(n,(function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Ut(e))}),(function(t){Nt(e,t)}))}else e._pullAgain=!0}function Ot(e){var t=e._controlledReadableStream;if(!1===Bt(e))return!1;if(!1===e._started)return!1;if(!0===Mn(t)&&Y(t)>0)return!0;var n=Mt(e);return n>0}function Ft(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Pt(e){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(Ft(e),Bn(t))}function Rt(e,t){var n=e._controlledReadableStream;if(!0===Mn(n)&&Y(n)>0)X(n,t,!1);else{var r=void 0;try{r=e._strategySizeAlgorithm(t)}catch(i){throw Nt(e,i),i}try{ce(e,t,r)}catch(o){throw Nt(e,o),o}}Ut(e)}function Nt(e,t){var n=e._controlledReadableStream;"readable"===n._state&&(le(e),Ft(e),Ln(n,t))}function Mt(e){var t=e._controlledReadableStream,n=t._state;return"errored"===n?null:"closed"===n?0:e._strategyHWM-e._queueTotalSize}function It(e){return!0!==Ot(e)}function Bt(e){var t=e._controlledReadableStream._state;return!1===e._closeRequested&&"readable"===t}function Lt(e,t,n,r,i,o,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,le(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=o,t._pullAlgorithm=r,t._cancelAlgorithm=i,e._readableStreamController=t;var s=n();T(D(s),(function(){t._started=!0,Ut(t)}),(function(e){Nt(t,e)}))}function zt(e,t,n,r){var i=Object.create(At.prototype);function o(){return f(t,"start",[i])}var a=d(t,"pull",0,[i]),s=d(t,"cancel",1,[]);Lt(e,i,o,a,s,n,r)}function Wt(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function jt(e,t){var n,r,i,o,s,c=$(e),u=!1,l=!1,d=!1,f=w((function(e){s=e}));function h(){if(!0===u)return D(void 0);u=!0;var e=E(te(c),(function(e){u=!1;var t=e.done;if(!0===t)return!1===l&&Pt(i._readableStreamController),void(!1===d&&Pt(o._readableStreamController));var n=e.value,r=n,a=n;!1===l&&Rt(i._readableStreamController,r),!1===d&&Rt(o._readableStreamController,a)}));return U(e),D(void 0)}function p(t){if(l=!0,n=t,!0===d){var i=a([n,r]),o=In(e,i);s(o)}return f}function g(t){if(d=!0,r=t,!0===l){var i=a([n,r]),o=In(e,i);s(o)}return f}function m(){}return i=Pn(m,h,p),o=Pn(m,h,g),A(c._closedPromise,(function(e){Nt(i._readableStreamController,e),Nt(o._readableStreamController,e)})),[i,o]}var Ht=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},Vt=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!1===Gt(this))throw _n("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(e){if(!1===Gt(this))throw _n("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");g(this._view.buffer),mn(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!1===Gt(this))throw _n("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");g(e.buffer),vn(this._associatedReadableByteStreamController,e)},e}(),qt=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!1===$t(this))throw wn("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var e=this._pendingPullIntos.peek(),t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),n=Object.create(Vt.prototype);xn(n,this,t),this._byobRequest=n}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===$t(this))throw wn("desiredSize");return gn(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===$t(this))throw wn("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");fn(this)},e.prototype.enqueue=function(e){if(!1===$t(this))throw wn("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(e))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");g(e.buffer),hn(this,e)},e.prototype.error=function(e){if(!1===$t(this))throw wn("error");pn(this,e)},e.prototype[V]=function(e){if(this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek();t.bytesFilled=0}le(this);var n=this._cancelAlgorithm(e);return dn(this),n},e.prototype[q]=function(){var e=this._controlledReadableByteStream;if(this._queueTotalSize>0){var t=this._queue.shift();this._queueTotalSize-=t.byteLength,tn(this);var n=void 0;try{n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}catch(s){return C(s)}return D(P(n,!1,e._reader._forAuthorCode))}var r=this._autoAllocateChunkSize;if(void 0!==r){var i=void 0;try{i=new ArrayBuffer(r)}catch(c){return C(c)}var o={buffer:i,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}var a=G(e);return Xt(this),a},e}();function $t(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function Gt(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function Xt(e){var t=ln(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var n=e._pullAlgorithm();T(n,(function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Xt(e))}),(function(t){pn(e,t)}))}else e._pullAgain=!0}function Yt(e){nn(e),e._pendingPullIntos=new F}function Kt(e,t){var n=!1;"closed"===e._state&&(n=!0);var r=Zt(t);"default"===t.readerType?X(e,r,n):kn(e,r,n)}function Zt(e){var t=e.bytesFilled,n=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/n)}function Jt(e,t,n,r){e._queue.push({buffer:t,byteOffset:n,byteLength:r}),e._queueTotalSize+=r}function Qt(e,t){var n=t.elementSize,r=t.bytesFilled-t.bytesFilled%n,i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+i,a=o-o%n,c=i,u=!1;a>r&&(c=a-t.bytesFilled,u=!0);var l=e._queue;while(c>0){var d=l.peek(),f=Math.min(c,d.byteLength),h=t.byteOffset+t.bytesFilled;s(t.buffer,h,d.buffer,d.byteOffset,f),d.byteLength===f?l.shift():(d.byteOffset+=f,d.byteLength-=f),e._queueTotalSize-=f,en(e,f,t),c-=f}return u}function en(e,t,n){nn(e),n.bytesFilled+=t}function tn(e){0===e._queueTotalSize&&!0===e._closeRequested?(dn(e),Bn(e._controlledReadableByteStream)):Xt(e)}function nn(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function rn(e){while(e._pendingPullIntos.length>0){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();!0===Qt(e,t)&&(un(e),Kt(e._controlledReadableByteStream,t))}}function on(e,t){var n=e._controlledReadableByteStream,r=1;t.constructor!==DataView&&(r=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,o=p(t.buffer),a={buffer:o,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:r,ctor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(a),Cn(n);if("closed"===n._state){var s=new i(a.buffer,a.byteOffset,0);return D(P(s,!0,n._reader._forAuthorCode))}if(e._queueTotalSize>0){if(!0===Qt(e,a)){var c=Zt(a);return tn(e),D(P(c,!1,n._reader._forAuthorCode))}if(!0===e._closeRequested){var u=new TypeError("Insufficient bytes to fill elements in the given buffer");return pn(e,u),C(u)}}e._pendingPullIntos.push(a);var l=Cn(n);return Xt(e),l}function an(e,t){t.buffer=p(t.buffer);var n=e._controlledReadableByteStream;if(!0===Sn(n))while(Tn(n)>0){var r=un(e);Kt(n,r)}}function sn(e,t,n){if(n.bytesFilled+t>n.byteLength)throw new RangeError("bytesWritten out of range");if(en(e,t,n),!(n.bytesFilled<n.elementSize)){un(e);var r=n.bytesFilled%n.elementSize;if(r>0){var i=n.byteOffset+n.bytesFilled,o=n.buffer.slice(i-r,i);Jt(e,o,0,o.byteLength)}n.buffer=p(n.buffer),n.bytesFilled-=r,Kt(e._controlledReadableByteStream,n),rn(e)}}function cn(e,t){var n=e._pendingPullIntos.peek(),r=e._controlledReadableByteStream;if("closed"===r._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");an(e,n)}else sn(e,t,n);Xt(e)}function un(e){var t=e._pendingPullIntos.shift();return nn(e),t}function ln(e){var t=e._controlledReadableByteStream;if("readable"!==t._state)return!1;if(!0===e._closeRequested)return!1;if(!1===e._started)return!1;if(!0===K(t)&&Y(t)>0)return!0;if(!0===Sn(t)&&Tn(t)>0)return!0;var n=gn(e);return n>0}function dn(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function fn(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){var n=e._pendingPullIntos.peek();if(n.bytesFilled>0){var r=new TypeError("Insufficient bytes to fill elements in the given buffer");throw pn(e,r),r}}dn(e),Bn(t)}}function hn(e,t){var n=e._controlledReadableByteStream,r=t.buffer,i=t.byteOffset,o=t.byteLength,a=p(r);if(!0===K(n))if(0===Y(n))Jt(e,a,i,o);else{var s=new Uint8Array(a,i,o);X(n,s,!1)}else!0===Sn(n)?(Jt(e,a,i,o),rn(e)):Jt(e,a,i,o);Xt(e)}function pn(e,t){var n=e._controlledReadableByteStream;"readable"===n._state&&(Yt(e),le(e),dn(e),Ln(n,t))}function gn(e){var t=e._controlledReadableByteStream,n=t._state;return"errored"===n?null:"closed"===n?0:e._strategyHWM-e._queueTotalSize}function mn(e,t){if(t=Number(t),!1===c(t))throw new RangeError("bytesWritten must be a finite");cn(e,t)}function vn(e,t){var n=e._pendingPullIntos.peek();if(n.byteOffset+n.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(n.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");n.buffer=t.buffer,cn(e,t.byteLength)}function bn(e,t,n,r,i,o,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=void 0,t._queue=t._queueTotalSize=void 0,le(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=m(o),t._pullAlgorithm=r,t._cancelAlgorithm=i,t._autoAllocateChunkSize=a,t._pendingPullIntos=new F,e._readableStreamController=t;var s=n();T(D(s),(function(){t._started=!0,Xt(t)}),(function(e){pn(t,e)}))}function yn(e,t,n){var r=Object.create(qt.prototype);function i(){return f(t,"start",[r])}var o=d(t,"pull",0,[r]),a=d(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(void 0!==s&&(s=Number(s),!1===Ht(s)||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");bn(e,r,i,o,a,n,s)}function xn(e,t,n){e._associatedReadableByteStreamController=t,e._view=n}function _n(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function wn(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function Dn(e,t){void 0===t&&(t=!1);var n=new An(e);return n._forAuthorCode=t,n}function Cn(e){var t=w((function(t,n){var r={_resolve:t,_reject:n};e._reader._readIntoRequests.push(r)}));return t}function kn(e,t,n){var r=e._reader,i=r._readIntoRequests.shift();i._resolve(P(t,n,r._forAuthorCode))}function Tn(e){return e._reader._readIntoRequests.length}function Sn(e){var t=e._reader;return void 0!==t&&!!En(t)}var An=function(){function e(e){if(!Nn(e))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===$t(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Mn(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");R(this,e),this._readIntoRequests=new F}return Object.defineProperty(e.prototype,"closed",{get:function(){return En(this)?this._closedPromise:C(On("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return En(this)?void 0===this._ownerReadableStream?C(I("cancel")):N(this,e):C(On("cancel"))},e.prototype.read=function(e){return En(this)?void 0===this._ownerReadableStream?C(I("read from")):ArrayBuffer.isView(e)?(g(e.buffer),0===e.byteLength?C(new TypeError("view must have non-zero byteLength")):Un(this,e)):C(new TypeError("view must be an array buffer view")):C(On("read"))},e.prototype.releaseLock=function(){if(!En(this))throw On("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");M(this)}},e}();function En(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function Un(e,t){var n=e._ownerReadableStream;return n._disturbed=!0,"errored"===n._state?C(n._storedError):on(n._readableStreamController,t)}function On(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}var Fn=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Rn(this);var n=t.size,r=t.highWaterMark,i=e.type,o=String(i);if("bytes"===o){if(void 0!==n)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===r&&(r=0),r=m(r),yn(this,e,r)}else{if(void 0!==i)throw new RangeError("Invalid type is specified");var a=v(n);void 0===r&&(r=1),r=m(r),zt(this,e,r,a)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===Nn(this))throw zn("locked");return Mn(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return!1===Nn(this)?C(zn("cancel")):!0===Mn(this)?C(new TypeError("Cannot cancel a stream that already has a reader")):In(this,e)},e.prototype.getReader=function(e){var t=(void 0===e?{}:e).mode;if(!1===Nn(this))throw zn("getReader");if(void 0===t)return $(this,!0);if(t=String(t),"byob"===t)return Dn(this,!0);throw new RangeError("Invalid mode is specified")},e.prototype.pipeThrough=function(e,t){var n=e.writable,r=e.readable,i=void 0===t?{}:t,o=i.preventClose,a=i.preventAbort,s=i.preventCancel,c=i.signal;if(!1===Nn(this))throw zn("pipeThrough");if(!1===ve(n))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===Nn(r))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),a=Boolean(a),s=Boolean(s),void 0!==c&&!wt(c))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===Mn(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===be(n))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var u=St(this,n,o,a,s,c);return U(u),r},e.prototype.pipeTo=function(e,t){var n=void 0===t?{}:t,r=n.preventClose,i=n.preventAbort,o=n.preventCancel,a=n.signal;return!1===Nn(this)?C(zn("pipeTo")):!1===ve(e)?C(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(r=Boolean(r),i=Boolean(i),o=Boolean(o),void 0===a||wt(a)?!0===Mn(this)?C(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===be(e)?C(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):St(this,e,r,i,o,a):C(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},e.prototype.tee=function(){if(!1===Nn(this))throw zn("tee");var e=jt(this);return a(e)},e.prototype.getIterator=function(e){var t=(void 0===e?{}:e).preventCancel,n=void 0!==t&&t;if(!1===Nn(this))throw zn("getIterator");return ie(this,n)},e}();function Pn(e,t,n,r,i){void 0===r&&(r=1),void 0===i&&(i=function(){return 1});var o=Object.create(Fn.prototype);Rn(o);var a=Object.create(At.prototype);return Lt(o,a,e,t,n,r,i),o}function Rn(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Nn(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function Mn(e){return void 0!==e._reader}function In(e,t){if(e._disturbed=!0,"closed"===e._state)return D(void 0);if("errored"===e._state)return C(e._storedError);Bn(e);var r=e._readableStreamController[V](t);return E(r,n)}function Bn(e){e._state="closed";var t=e._reader;void 0!==t&&(ee(t)&&(t._readRequests.forEach((function(e){e._resolve(P(void 0,!0,t._forAuthorCode))})),t._readRequests=new F),H(t))}function Ln(e,t){e._state="errored",e._storedError=t;var n=e._reader;void 0!==n&&(ee(n)?(n._readRequests.forEach((function(e){e._reject(t)})),n._readRequests=new F):(n._readIntoRequests.forEach((function(e){e._reject(t)})),n._readIntoRequests=new F),W(n,t))}function zn(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}"symbol"===typeof t.asyncIterator&&Object.defineProperty(Fn.prototype,t.asyncIterator,{value:Fn.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var Wn=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(e){return e.byteLength},e}(),jn=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(){return 1},e}(),Hn=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={});var r=t.size,i=t.highWaterMark,o=n.size,a=n.highWaterMark,s=e.writableType;if(void 0!==s)throw new RangeError("Invalid writable type specified");var c=v(r);void 0===i&&(i=1),i=m(i);var u=e.readableType;if(void 0!==u)throw new RangeError("Invalid readable type specified");var l,d=v(o);void 0===a&&(a=0),a=m(a);var h=w((function(e){l=e}));Vn(this,h,i,c,a,d),Jn(this,e);var p=f(e,"start",[this._transformStreamController]);l(p)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!1===qn(this))throw ur("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!1===qn(this))throw ur("writable");return this._writable},enumerable:!0,configurable:!0}),e}();function Vn(e,t,n,r,i,o){function a(){return t}function s(t){return ir(e,t)}function c(t){return or(e,t)}function u(){return ar(e)}function l(){return sr(e)}function d(t){return Gn(e,t),D(void 0)}e._writable=ge(a,s,u,c,n,r),e._readable=Pn(a,l,d,i,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Xn(e,!0),e._transformStreamController=void 0}function qn(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function $n(e,t){Nt(e._readable._readableStreamController,t),Gn(e,t)}function Gn(e,t){Qn(e._transformStreamController),tt(e._writable._writableStreamController,t),!0===e._backpressure&&Xn(e,!1)}function Xn(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=w((function(t){e._backpressureChangePromise_resolve=t})),e._backpressure=t}var Yn=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Kn(this))throw cr("desiredSize");var e=this._controlledTransformStream._readable._readableStreamController;return Mt(e)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(e){if(!1===Kn(this))throw cr("enqueue");er(this,e)},e.prototype.error=function(e){if(!1===Kn(this))throw cr("error");tr(this,e)},e.prototype.terminate=function(){if(!1===Kn(this))throw cr("terminate");rr(this)},e}();function Kn(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function Zn(e,t,n,r){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=n,t._flushAlgorithm=r}function Jn(e,t){var n=Object.create(Yn.prototype),r=function(e){try{return er(n,e),D(void 0)}catch(t){return C(t)}},i=t.transform;if(void 0!==i){if("function"!==typeof i)throw new TypeError("transform is not a method");r=function(e){return h(i,t,[e,n])}}var o=d(t,"flush",0,[n]);Zn(e,n,r,o)}function Qn(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function er(e,t){var n=e._controlledTransformStream,r=n._readable._readableStreamController;if(!1===Bt(r))throw new TypeError("Readable side is not in a state that permits enqueue");try{Rt(r,t)}catch(o){throw Gn(n,o),n._readable._storedError}var i=It(r);i!==n._backpressure&&Xn(n,!0)}function tr(e,t){$n(e._controlledTransformStream,t)}function nr(e,t){var n=e._transformAlgorithm(t);return E(n,void 0,(function(t){throw $n(e._controlledTransformStream,t),t}))}function rr(e){var t=e._controlledTransformStream,n=t._readable._readableStreamController;!0===Bt(n)&&Pt(n);var r=new TypeError("TransformStream terminated");Gn(t,r)}function ir(e,t){var n=e._transformStreamController;if(!0===e._backpressure){var r=e._backpressureChangePromise;return E(r,(function(){var r=e._writable,i=r._state;if("erroring"===i)throw r._storedError;return nr(n,t)}))}return nr(n,t)}function or(e,t){return $n(e,t),D(void 0)}function ar(e){var t=e._readable,n=e._transformStreamController,r=n._flushAlgorithm();return Qn(n),E(r,(function(){if("errored"===t._state)throw t._storedError;var e=t._readableStreamController;!0===Bt(e)&&Pt(e)}),(function(n){throw $n(e,n),t._storedError}))}function sr(e){return Xn(e,!1),e._backpressureChangePromise}function cr(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function ur(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}e.ByteLengthQueuingStrategy=Wn,e.CountQueuingStrategy=jn,e.ReadableStream=Fn,e.TransformStream=Hn,e.WritableStream=he,Object.defineProperty(e,"__esModule",{value:!0})}))},function(e,t,n){n(147),n(118),n(77),n(120);var r=n(43);e.exports=r.Map},function(e,t,n){"use strict";var r=n(148),i=n(152);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,n){"use strict";var r=n(10),i=n(11),o=n(52),a=n(29),s=n(149),c=n(104),u=n(126),l=n(22),d=n(14),f=n(97),h=n(85),p=n(151);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),v=g?"set":"add",b=i[e],y=b&&b.prototype,x=b,_={},w=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof b||!(m||y.forEach&&!d((function(){(new b).entries().next()})))))x=n.getConstructor(t,e,g,v),s.REQUIRED=!0;else if(o(e,!0)){var D=new x,C=D[v](m?{}:-0,1)!=D,k=d((function(){D.has(1)})),T=f((function(e){new b(e)})),S=!m&&d((function(){var e=new b,t=5;while(t--)e[v](t,t);return!e.has(-0)}));T||(x=t((function(t,n){u(t,x,e);var r=p(new b,t,x);return void 0!=n&&c(n,r[v],r,g),r})),x.prototype=y,y.constructor=x),(k||S)&&(w("delete"),w("has"),g&&w("get")),(S||C)&&w(v),m&&y.clear&&delete y.clear}return _[e]=x,r({global:!0,forced:x!=b},_),h(x,e),m||n.setStrong(x,e,g),x}},function(e,t,n){var r=n(39),i=n(22),o=n(23),a=n(27).f,s=n(38),c=n(150),u=s("meta"),l=0,d=Object.isExtensible||function(){return!0},f=function(e){a(e,u,{value:{objectID:"O"+ ++l,weakData:{}}})},h=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,u)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[u].objectID},p=function(e,t){if(!o(e,u)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[u].weakData},g=function(e){return c&&m.REQUIRED&&d(e)&&!o(e,u)&&f(e),e},m=e.exports={REQUIRED:!1,fastKey:h,getWeakData:p,onFreeze:g};r[u]=!0},function(e,t,n){var r=n(14);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(22),i=n(87);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},function(e,t,n){"use strict";var r=n(27).f,i=n(71),o=n(124),a=n(62),s=n(126),c=n(104),u=n(79),l=n(125),d=n(13),f=n(149).fastKey,h=n(33),p=h.set,g=h.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,l,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=r&&c(r,e[u],e,n)})),h=g(t),m=function(e,t,n){var r,i,o=h(e),a=v(e,t);return a?a.value=n:(o.last=a={index:i=f(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},v=function(e,t){var n,r=h(e),i=f(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(l.prototype,{clear:function(){var e=this,t=h(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=h(t),r=v(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),d?n.size--:t.size--}return!!r},forEach:function(e){var t,n=h(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!v(this,e)}}),o(l.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),d&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),o=g(r);u(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},function(e,t,n){n(154),n(118),n(77),n(120);var r=n(43);e.exports=r.Set},function(e,t,n){"use strict";var r=n(148),i=n(152);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,n){n(118),n(156),n(120);var r=n(43);e.exports=r.WeakMap},function(e,t,n){"use strict";var r,i=n(11),o=n(124),a=n(149),s=n(148),c=n(157),u=n(22),l=n(33).enforce,d=n(34),f=!i.ActiveXObject&&"ActiveXObject"in i,h=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",p,c);if(d&&f){r=c.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var m=g.prototype,v=m["delete"],b=m.has,y=m.get,x=m.set;o(m,{delete:function(e){if(u(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),v.call(this,e)||t.frozen["delete"](e)}return v.call(this,e)},has:function(e){if(u(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(u(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),b.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(u(e)&&!h(e)){var n=l(this);n.frozen||(n.frozen=new r),b.call(this,e)?x.call(this,e,t):n.frozen.set(e,t)}else x.call(this,e,t);return this}})}},function(e,t,n){"use strict";var r=n(124),i=n(149).getWeakData,o=n(28),a=n(22),s=n(126),c=n(104),u=n(158),l=n(23),d=n(33),f=d.set,h=d.getterFor,p=u.find,g=u.findIndex,m=0,v=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},y=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,u){var d=e((function(e,r){s(e,d,t),f(e,{type:t,id:m++,frozen:void 0}),void 0!=r&&c(r,e[u],e,n)})),p=h(t),g=function(e,t,n){var r=p(e),a=i(o(t),!0);return!0===a?v(r).set(t,n):a[r.id]=n,e};return r(d.prototype,{delete:function(e){var t=p(this);if(!a(e))return!1;var n=i(e);return!0===n?v(t)["delete"](e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!a(e))return!1;var n=i(e);return!0===n?v(t).has(e):n&&l(n,t.id)}}),r(d.prototype,n?{get:function(e){var t=p(this);if(a(e)){var n=i(e);return!0===n?v(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},function(e,t,n){var r=n(62),i=n(18),o=n(83),a=n(47),s=n(159),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,l=4==e,d=6==e,f=5==e||d;return function(h,p,g,m){for(var v,b,y=o(h),x=i(y),_=r(p,g,3),w=a(x.length),D=0,C=m||s,k=t?C(h,w):n?C(h,0):void 0;w>D;D++)if((f||D in x)&&(v=x[D],b=_(v,D,y),e))if(t)k[D]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return D;case 2:c.call(k,v)}else if(l)return!1;return d?-1:u||l?l:k}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},function(e,t,n){var r=n(22),i=n(160),o=n(57),a=o("species");e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(19);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){n(118),n(162),n(120);var r=n(43);e.exports=r.WeakSet},function(e,t,n){"use strict";var r=n(148),i=n(157);r("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,n){n(164);var r=n(61);e.exports=r("String","codePointAt")},function(e,t,n){"use strict";var r=n(10),i=n(78).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},function(e,t,n){n(166);var r=n(43);e.exports=r.String.fromCodePoint},function(e,t,n){var r=n(10),i=n(49),o=String.fromCharCode,a=String.fromCodePoint,s=!!a&&1!=a.length;r({target:"String",stat:!0,forced:s},{fromCodePoint:function(e){var t,n=[],r=arguments.length,a=0;while(r>a){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){n(168),n(118),n(170),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189);var r=n(43);e.exports=r.Symbol},function(e,t,n){"use strict";var r=n(10),i=n(14),o=n(160),a=n(22),s=n(83),c=n(47),u=n(93),l=n(159),d=n(169),f=n(57),h=n(135),p=f("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",v=h>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),b=d("concat"),y=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)},x=!v||!b;r({target:"Array",proto:!0,forced:x},{concat:function(e){var t,n,r,i,o,a=s(this),d=l(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],y(o)){if(i=c(o.length),f+i>g)throw TypeError(m);for(n=0;n<i;n++,f++)n in o&&u(d,f,o[n])}else{if(f>=g)throw TypeError(m);u(d,f++,o)}return d.length=f,d}})},function(e,t,n){var r=n(14),i=n(57),o=n(135),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";var r=n(10),i=n(11),o=n(42),a=n(37),s=n(13),c=n(58),u=n(59),l=n(14),d=n(23),f=n(160),h=n(22),p=n(28),g=n(83),m=n(17),v=n(21),b=n(16),y=n(71),x=n(73),_=n(44),w=n(171),D=n(51),C=n(12),k=n(27),T=n(15),S=n(26),A=n(29),E=n(36),U=n(35),O=n(39),F=n(38),P=n(57),R=n(172),N=n(173),M=n(85),I=n(33),B=n(158).forEach,L=U("hidden"),z="Symbol",W="prototype",j=P("toPrimitive"),H=I.set,V=I.getterFor(z),q=Object[W],$=i.Symbol,G=o("JSON","stringify"),X=C.f,Y=k.f,K=w.f,Z=T.f,J=E("symbols"),Q=E("op-symbols"),ee=E("string-to-symbol-registry"),te=E("symbol-to-string-registry"),ne=E("wks"),re=i.QObject,ie=!re||!re[W]||!re[W].findChild,oe=s&&l((function(){return 7!=y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=X(q,t);r&&delete q[t],Y(e,t,n),r&&e!==q&&Y(q,t,r)}:Y,ae=function(e,t){var n=J[e]=y($[W]);return H(n,{type:z,tag:e,description:t}),s||(n.description=t),n},se=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof $},ce=function(e,t,n){e===q&&ce(Q,t,n),p(e);var r=v(t,!0);return p(n),d(J,r)?(n.enumerable?(d(e,L)&&e[L][r]&&(e[L][r]=!1),n=y(n,{enumerable:b(0,!1)})):(d(e,L)||Y(e,L,b(1,{})),e[L][r]=!0),oe(e,r,n)):Y(e,r,n)},ue=function(e,t){p(e);var n=m(t),r=x(n).concat(pe(n));return B(r,(function(t){s&&!de.call(n,t)||ce(e,t,n[t])})),e},le=function(e,t){return void 0===t?y(e):ue(y(e),t)},de=function(e){var t=v(e,!0),n=Z.call(this,t);return!(this===q&&d(J,t)&&!d(Q,t))&&(!(n||!d(this,t)||!d(J,t)||d(this,L)&&this[L][t])||n)},fe=function(e,t){var n=m(e),r=v(t,!0);if(n!==q||!d(J,r)||d(Q,r)){var i=X(n,r);return!i||!d(J,r)||d(n,L)&&n[L][r]||(i.enumerable=!0),i}},he=function(e){var t=K(m(e)),n=[];return B(t,(function(e){d(J,e)||d(O,e)||n.push(e)})),n},pe=function(e){var t=e===q,n=K(t?Q:m(e)),r=[];return B(n,(function(e){!d(J,e)||t&&!d(q,e)||r.push(J[e])})),r};if(c||($=function(){if(this instanceof $)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=F(e),n=function(e){this===q&&n.call(Q,e),d(this,L)&&d(this[L],t)&&(this[L][t]=!1),oe(this,t,b(1,e))};return s&&ie&&oe(q,t,{configurable:!0,set:n}),ae(t,e)},A($[W],"toString",(function(){return V(this).tag})),A($,"withoutSetter",(function(e){return ae(F(e),e)})),T.f=de,k.f=ce,C.f=fe,_.f=w.f=he,D.f=pe,R.f=function(e){return ae(P(e),e)},s&&(Y($[W],"description",{configurable:!0,get:function(){return V(this).description}}),a||A(q,"propertyIsEnumerable",de,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:$}),B(x(ne),(function(e){N(e)})),r({target:z,stat:!0,forced:!c},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=$(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:le,defineProperty:ce,defineProperties:ue,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:he,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:l((function(){D.f(1)}))},{getOwnPropertySymbols:function(e){return D.f(g(e))}}),G){var ge=!c||l((function(){var e=$();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}));r({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,n){var r,i=[e],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=t,(h(t)||void 0!==e)&&!se(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!se(t))return t}),i[1]=t,G.apply(null,i)}})}$[W][j]||S($[W],j,$[W].valueOf),M($,z),O[L]=!0},function(e,t,n){var r=n(17),i=n(44).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},function(e,t,n){var r=n(57);t.f=r},function(e,t,n){var r=n(43),i=n(23),o=n(172),a=n(27).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){var r=n(173);r("asyncIterator")},function(e,t,n){"use strict";var r=n(10),i=n(13),o=n(11),a=n(23),s=n(22),c=n(27).f,u=n(40),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var d={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new l(e):void 0===e?l():l(e);return""===e&&(d[t]=!0),t};u(f,l);var h=f.prototype=l.prototype;h.constructor=f;var p=h.toString,g="Symbol(test)"==String(l("test")),m=/^Symbol\((.*)\)[^)]+$/;c(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(d,e))return"";var n=g?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},function(e,t,n){var r=n(173);r("hasInstance")},function(e,t,n){var r=n(173);r("isConcatSpreadable")},function(e,t,n){var r=n(173);r("iterator")},function(e,t,n){var r=n(173);r("match")},function(e,t,n){var r=n(173);r("matchAll")},function(e,t,n){var r=n(173);r("replace")},function(e,t,n){var r=n(173);r("search")},function(e,t,n){var r=n(173);r("species")},function(e,t,n){var r=n(173);r("split")},function(e,t,n){var r=n(173);r("toPrimitive")},function(e,t,n){var r=n(173);r("toStringTag")},function(e,t,n){var r=n(173);r("unscopables")},function(e,t,n){var r=n(85);r(Math,"Math",!0)},function(e,t,n){var r=n(11),i=n(85);i(r.JSON,"JSON",!0)},function(e,t,n){n(191);var r=n(61);e.exports=r("String","padStart")},function(e,t,n){"use strict";var r=n(10),i=n(192).start,o=n(194);r({target:"String",proto:!0,forced:o},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(47),i=n(193),o=n(20),a=Math.ceil,s=function(e){return function(t,n,s){var c,u,l=String(o(t)),d=l.length,f=void 0===s?" ":String(s),h=r(n);return h<=d||""==f?l:(c=h-d,u=i.call(f,a(c/f.length)),u.length>c&&(u=u.slice(0,c)),e?l+u:u+l)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,n){"use strict";var r=n(48),i=n(20);e.exports="".repeat||function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){var r=n(129);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){n(196);var r=n(61);e.exports=r("String","padEnd")},function(e,t,n){"use strict";var r=n(10),i=n(192).end,o=n(194);r({target:"String",proto:!0,forced:o},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(198);var r=n(43);e.exports=r.Object.values},function(e,t,n){var r=n(10),i=n(199).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,n){var r=n(13),i=n(73),o=n(17),a=n(15).f,s=function(e){return function(t){var n,s=o(t),c=i(s),u=c.length,l=0,d=[];while(u>l)n=c[l++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){n(201);var r=n(43);e.exports=r.Object.entries},function(e,t,n){var r=n(10),i=n(199).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},function(module,exports,__w_pdfjs_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(203),_node_utils=__w_pdfjs_require__(204),_annotation_storage=__w_pdfjs_require__(205),_api_compatibility=__w_pdfjs_require__(206),_canvas=__w_pdfjs_require__(207),_worker_options=__w_pdfjs_require__(209),_is_node=__w_pdfjs_require__(7),_message_handler=__w_pdfjs_require__(210),_metadata=__w_pdfjs_require__(211),_optional_content_config=__w_pdfjs_require__(213),_transport_stream=__w_pdfjs_require__(214),_webgl=__w_pdfjs_require__(215);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function asyncGeneratorStep(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){asyncGeneratorStep(o,r,i,a,s,"next",e)}function s(e){asyncGeneratorStep(o,r,i,a,s,"throw",e)}a(void 0)}))}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"===typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _iterableToArrayLimit(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){i=!0,o=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _typeof(e){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_is_node.isNodeJS?_node_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory,DefaultCMapReaderFactory=_is_node.isNodeJS?_node_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory,createPDFNetworkStream;function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){var t,n=new PDFDocumentLoadingTask;if("string"===typeof e)t={url:e};else if((0,_util.isArrayBuffer)(e))t={data:e};else if(e instanceof PDFDataRangeTransport)t={range:e};else{if("object"!==_typeof(e))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");t=e}var r=Object.create(null),i=null,o=null;for(var a in t)if("url"!==a||"undefined"===typeof window)if("range"!==a)if("worker"!==a)if("data"!==a||t[a]instanceof Uint8Array)r[a]=t[a];else{var s=t[a];if("string"===typeof s)r[a]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");r[a]=new Uint8Array(s)}else r[a]=new Uint8Array(s)}else o=t[a];else i=t[a];else r[a]=new URL(t[a],window.location).href;if(r.rangeChunkSize=r.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,r.CMapReaderFactory=r.CMapReaderFactory||DefaultCMapReaderFactory,r.ignoreErrors=!0!==r.stopAtErrors,r.fontExtraProperties=!0===r.fontExtraProperties,r.pdfBug=!0===r.pdfBug,Number.isInteger(r.maxImageSize)||(r.maxImageSize=-1),"boolean"!==typeof r.isEvalSupported&&(r.isEvalSupported=!0),"boolean"!==typeof r.disableFontFace&&(r.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"undefined"===typeof r.ownerDocument&&(r.ownerDocument=globalThis.document),"boolean"!==typeof r.disableRange&&(r.disableRange=!1),"boolean"!==typeof r.disableStream&&(r.disableStream=!1),"boolean"!==typeof r.disableAutoFetch&&(r.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(r.verbosity),!o){var c={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};o=c.port?PDFWorker.fromPort(c):new PDFWorker(c),n._worker=o}var u=n.docId;return o.promise.then((function(){if(n.destroyed)throw new Error("Loading aborted");var e=_fetchDocument(o,r,i,u),t=new Promise((function(e){var t;i?t=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,disableRange:r.disableRange,disableStream:r.disableStream},i):r.data||(t=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream})),e(t)}));return Promise.all([e,t]).then((function(e){var t=_slicedToArray(e,2),i=t[0],a=t[1];if(n.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(u,i,o.port);s.postMessageTransfers=o.postMessageTransfers;var c=new WorkerTransport(s,n,a,r);n._transport=c,s.send("Ready",null)}))}))["catch"](n._capability.reject),n}function _fetchDocument(e,t,n,r){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(n&&(t.length=n.length,t.initialData=n.initialData,t.progressiveDone=n.progressiveDone),e.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.6.347",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties}).then((function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t})))}var PDFDocumentLoadingTask=function(){var e=0,t=function(){function t(){_classCallCheck(this,t),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(t,[{key:"destroy",value:function(){var e=this;this.destroyed=!0;var t=this._transport?this._transport.destroy():Promise.resolve();return t.then((function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)}))}},{key:"promise",get:function(){return this._capability.promise}}]),t}();return t}(),PDFDataRangeTransport=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.length=t,this.initialData=n,this.progressiveDone=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var n,r=_createForOfIteratorHelper(this._rangeListeners);try{for(r.s();!(n=r.n()).done;){var i=n.value;i(e,t)}}catch(o){r.e(o)}finally{r.f()}}},{key:"onDataProgress",value:function(e,t){var n=this;this._readyCapability.promise.then((function(){var r,i=_createForOfIteratorHelper(n._progressListeners);try{for(i.s();!(r=i.n()).done;){var o=r.value;o(e,t)}}catch(a){i.e(a)}finally{i.f()}}))}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then((function(){var n,r=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(r.s();!(n=r.n()).done;){var i=n.value;i(e)}}catch(o){r.e(o)}finally{r.f()}}))}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then((function(){var t,n=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(n.s();!(t=n.n()).done;){var r=t.value;r()}}catch(i){n.e(i)}finally{n.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function e(t,n){_classCallCheck(this,e),this._pdfInfo=t,this._transport=n}return _createClass(e,[{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getOptionalContentConfig",value:function(){return this._transport.getOptionalContentConfig()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"saveDocument",value:function(e){return this._transport.saveDocument(e)}},{key:"annotationStorage",get:function(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),e}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=n,this._ownerDocument=i,this._transport=r,this._stats=o?new _display_utils.StatTimer:null,this._pdfBug=o,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this.destroyed=!1}return _createClass(e,[{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,n=e.rotation,r=void 0===n?this.rotate:n,i=e.offsetX,o=void 0===i?0:i,a=e.offsetY,s=void 0===a?0:a,c=e.dontFlip,u=void 0!==c&&c;return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:r,offsetX:o,offsetY:s,dontFlip:u})}},{key:"getAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intent,n=void 0===t?null:t;return this.annotationsPromise&&this.annotationsIntent===n||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,n),this.annotationsIntent=n),this.annotationsPromise}},{key:"render",value:function(e){var t=this,n=e.canvasContext,r=e.viewport,i=e.intent,o=void 0===i?"display":i,a=e.enableWebGL,s=void 0!==a&&a,c=e.renderInteractiveForms,u=void 0!==c&&c,l=e.transform,d=void 0===l?null:l,f=e.imageLayer,h=void 0===f?null:f,p=e.canvasFactory,g=void 0===p?null:p,m=e.background,v=void 0===m?null:m,b=e.annotationStorage,y=void 0===b?null:b,x=e.optionalContentConfigPromise,_=void 0===x?null:x;this._stats&&this._stats.time("Overall");var w="print"===o?"print":"display";this.pendingCleanup=!1,_||(_=this._transport.getOptionalContentConfig());var D=this._intentStates.get(w);D||(D=Object.create(null),this._intentStates.set(w,D)),D.streamReaderCancelTimeout&&(clearTimeout(D.streamReaderCancelTimeout),D.streamReaderCancelTimeout=null);var C=g||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),k=new _webgl.WebGLContext({enable:s});D.displayReadyCapability||(D.displayReadyCapability=(0,_util.createPromiseCapability)(),D.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:w,renderInteractiveForms:!0===u,annotationStorage:y&&y.getAll()||null}));var T=function(e){var n=D.renderTasks.indexOf(S);n>=0&&D.renderTasks.splice(n,1),(t.cleanupAfterRender||"print"===w)&&(t.pendingCleanup=!0),t._tryCleanup(),e?(S.capability.reject(e),t._abortOperatorList({intentState:D,reason:e})):S.capability.resolve(),t._stats&&(t._stats.timeEnd("Rendering"),t._stats.timeEnd("Overall"))},S=new InternalRenderTask({callback:T,params:{canvasContext:n,viewport:r,transform:d,imageLayer:h,background:v},objs:this.objs,commonObjs:this.commonObjs,operatorList:D.operatorList,pageIndex:this._pageIndex,canvasFactory:C,webGLContext:k,useRequestAnimationFrame:"print"!==w,pdfBug:this._pdfBug});D.renderTasks||(D.renderTasks=[]),D.renderTasks.push(S);var A=S.task;return Promise.all([D.displayReadyCapability.promise,_]).then((function(e){var n=_slicedToArray(e,2),r=n[0],i=n[1];t.pendingCleanup?T():(t._stats&&t._stats.time("Rendering"),S.initializeGraphics({transparency:r,optionalContentConfig:i}),S.operatorListChanged())}))["catch"](T),A}},{key:"getOperatorList",value:function(){function e(){if(r.operatorList.lastChunk){r.opListReadCapability.resolve(r.operatorList);var e=r.renderTasks.indexOf(t);e>=0&&r.renderTasks.splice(e,1)}}var t,n="oplist",r=this._intentStates.get(n);return r||(r=Object.create(null),this._intentStates.set(n,r)),r.opListReadCapability||(t=Object.create(null),t.operatorListChanged=e,r.opListReadCapability=(0,_util.createPromiseCapability)(),r.renderTasks=[],r.renderTasks.push(t),r.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:n})),r.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,n=void 0!==t&&t,r=e.disableCombineTextItems,i=void 0!==r&&r,o=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===n,combineTextItems:!0!==i},{highWaterMark:o,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.streamTextContent(e);return new Promise((function(e,n){function r(){i.read().then((function(t){var n,i=t.value,a=t.done;a?e(o):(Object.assign(o.styles,i.styles),(n=o.items).push.apply(n,_toConsumableArray(i.items)),r())}),n)}var i=t.getReader(),o={items:[],styles:Object.create(null)};r()}))}},{key:"_destroy",value:function(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var e,t=[],n=_createForOfIteratorHelper(this._intentStates);try{for(n.s();!(e=n.n()).done;){var r=_slicedToArray(e.value,2),i=r[0],o=r[1];if(this._abortOperatorList({intentState:o,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==i){var a,s=_createForOfIteratorHelper(o.renderTasks);try{for(s.s();!(a=s.n()).done;){var c=a.value;t.push(c.completed),c.cancel()}}catch(u){s.e(u)}finally{s.f()}}}}catch(u){n.e(u)}finally{n.f()}return this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}},{key:"_tryCleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.pendingCleanup)return!1;var t,n=_createForOfIteratorHelper(this._intentStates.values());try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.renderTasks,o=r.operatorList;if(0!==i.length||!o.lastChunk)return!1}}catch(a){n.e(a)}finally{n.f()}return this._intentStates.clear(),this.objs.clear(),this.annotationsPromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}},{key:"_startRenderPage",value:function(e,t){var n=this._intentStates.get(t);n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var n=0,r=e.length;n<r;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk;for(var i=0;i<t.renderTasks.length;i++)t.renderTasks[i].operatorListChanged();e.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(e){var t=this;(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var n=this._transport.messageHandler.sendWithStream("GetOperatorList",e),r=n.getReader(),i=this._intentStates.get(e.intent);i.streamReader=r;var o=function e(){r.read().then((function(n){var r=n.value,o=n.done;o?i.streamReader=null:t._transport.destroyed||(t._renderPageChunk(r,i),e())}),(function(e){if(i.streamReader=null,!t._transport.destroyed){if(i.operatorList){i.operatorList.lastChunk=!0;for(var n=0;n<i.renderTasks.length;n++)i.renderTasks[n].operatorListChanged();t._tryCleanup()}if(i.displayReadyCapability)i.displayReadyCapability.reject(e);else{if(!i.opListReadCapability)throw e;i.opListReadCapability.reject(e)}}}))};o()}},{key:"_abortOperatorList",value:function(e){var t=this,n=e.intentState,r=e.reason,i=e.force,o=void 0!==i&&i;if((0,_util.assert)(r instanceof Error||"object"===_typeof(r)&&null!==r,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),n.streamReader){if(!o){if(0!==n.renderTasks.length)return;if(r instanceof _display_utils.RenderingCancelledException)return void(n.streamReaderCancelTimeout=setTimeout((function(){t._abortOperatorList({intentState:n,reason:r,force:!0}),n.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}if(n.streamReader.cancel(new _util.AbortException(r&&r.message)),n.streamReader=null,!this._transport.destroyed){var a,s=_createForOfIteratorHelper(this._intentStates);try{for(s.s();!(a=s.n()).done;){var c=_slicedToArray(a.value,2),u=c[0],l=c[1];if(l===n){this._intentStates["delete"](u);break}}}catch(d){s.e(d)}finally{s.f()}this.cleanup()}}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),e}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return _createClass(e,[{key:"postMessage",value:function(e,t){var n=this;function r(e){if("object"!==_typeof(e)||null===e)return e;if(i.has(e))return i.get(e);var n,o;if((n=e.buffer)&&(0,_util.isArrayBuffer)(n)){var a=t&&t.includes(n);return o=a?new e.constructor(n,e.byteOffset,e.byteLength):new e.constructor(e),i.set(e,o),o}for(var s in o=Array.isArray(e)?[]:{},i.set(e,o),e){var c=void 0,u=e;while(!(c=Object.getOwnPropertyDescriptor(u,s)))u=Object.getPrototypeOf(u);if("undefined"!==typeof c.value)if("function"!==typeof c.value)o[s]=r(c.value);else if(e.hasOwnProperty&&e.hasOwnProperty(s))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(e[s]))}return o}if(this._defer){var i=new WeakMap,o={data:r(e)};this._deferred.then((function(){n._listeners.forEach((function(e){e.call(n,o)}))}))}else this._listeners.forEach((function(t){t.call(n,{data:e})}))}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this._listeners.indexOf(t);this._listeners.splice(n,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"===typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if("undefined"!==typeof fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(t){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref12=_asyncToGenerator(_regenerator["default"].mark((function _callee(){var mainWorkerMessageHandler,worker;return _regenerator["default"].wrap((function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}}),_callee)})));return function(){return _ref12.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){var t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}var PDFWorker=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.name,r=void 0===n?null:n,i=t.port,o=void 0===i?null:i,a=t.verbosity,s=void 0===a?(0,_util.getVerbosityLevel)():a;if(_classCallCheck(this,e),o&&pdfWorkerPorts.has(o))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=r,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,o)return pdfWorkerPorts.set(o,this),void this._initializeFromPort(o);this._initialize()}return _createClass(e,[{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var e=this;if("undefined"!==typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var t=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));var n=new Worker(t),r=new _message_handler.MessageHandler("main","worker",n),i=function(){n.removeEventListener("error",o),r.destroy(),n.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},o=function(){e._webWorker||i()};n.addEventListener("error",o),r.on("test",(function(t){n.removeEventListener("error",o),e.destroyed?i():t?(e._messageHandler=r,e._port=n,e._webWorker=n,t.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),r.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),r.destroy(),n.terminate())})),r.on("ready",(function(t){if(n.removeEventListener("error",o),e.destroyed)i();else try{a()}catch(r){e._setupFakeWorker()}}));var a=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{r.send("test",t,[t.buffer])}catch(n){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,r.send("test",t)}};return void a()}catch(s){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((function(t){if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var n=new LoopbackPort;e._port=n;var r="fake"+nextFakeWorkerId++,i=new _message_handler.MessageHandler(r+"_worker",r,n);t.setup(i,n);var o=new _message_handler.MessageHandler(r,r+"_worker",n);e._messageHandler=o,e._readyCapability.resolve(),o.send("configure",{verbosity:e.verbosity})}}))["catch"]((function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))}))}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts["delete"](this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(t){if(!t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(t.port)?pdfWorkerPorts.get(t.port):new e(t)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),e}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function e(t,n,r,i){_classCallCheck(this,e),this.messageHandler=t,this.loadingTask=n,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:n.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:i.ownerDocument}),this._params=i,this.CMapReaderFactory=new i.CMapReaderFactory({baseUrl:i.cMapUrl,isCompressed:i.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(e,[{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];this.pageCache.forEach((function(e){e&&t.push(e._destroy())})),this.pageCache.length=0,this.pagePromises.length=0;var n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then((function(){e.fontLoader.clear(),e._networkStream&&e._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,n=this.loadingTask;t.on("GetReader",(function(t,n){(0,_util.assert)(e._networkStream,"GetReader - no `IPDFStream` instance available."),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},n.onPull=function(){e._fullReader.read().then((function(e){var t=e.value,r=e.done;r?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(t),"GetReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(t),1,[t]))}))["catch"]((function(e){n.error(e)}))},n.onCancel=function(t){e._fullReader.cancel(t),n.ready["catch"]((function(t){if(!e.destroyed)throw t}))}})),t.on("ReaderHeadersReady",(function(t){var r=(0,_util.createPromiseCapability)(),i=e._fullReader;return i.headersReady.then((function(){i.isStreamingSupported&&i.isRangeSupported||(e._lastProgress&&n.onProgress&&n.onProgress(e._lastProgress),i.onProgress=function(e){n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})}),r.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})}),r.reject),r.promise})),t.on("GetRangeReader",(function(t,n){(0,_util.assert)(e._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var r=e._networkStream.getRangeReader(t.begin,t.end);r?(n.onPull=function(){r.read().then((function(e){var t=e.value,r=e.done;r?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(t),"GetRangeReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(t),1,[t]))}))["catch"]((function(e){n.error(e)}))},n.onCancel=function(t){r.cancel(t),n.ready["catch"]((function(t){if(!e.destroyed)throw t}))}):n.close()})),t.on("GetDoc",(function(t){var r=t.pdfInfo;e._numPages=r.numPages,n._capability.resolve(new PDFDocumentProxy(r,e))})),t.on("DocException",(function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details);break}if(!(t instanceof Error)){var r="DocException - expected a valid Error.";(0,_util.warn)(r)}n._capability.reject(t)})),t.on("PasswordRequest",(function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),n.onPassword){var r=function(t){e._passwordCapability.resolve({password:t})};try{n.onPassword(r,t.code)}catch(i){e._passwordCapability.reject(i)}}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise})),t.on("DataLoaded",(function(t){n.onProgress&&n.onProgress({loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)})),t.on("StartRenderPage",(function(t){if(!e.destroyed){var n=e.pageCache[t.pageIndex];n._startRenderPage(t.transparency,t.intent)}})),t.on("commonobj",(function(n){if(!e.destroyed){var r=_slicedToArray(n,3),i=r[0],o=r[1],a=r[2];if(!e.commonObjs.has(i))switch(o){case"Font":var s=e._params;if("error"in a){var c=a.error;(0,_util.warn)("Error during font loading: ".concat(c)),e.commonObjs.resolve(i,c);break}var u=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(u={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var l=new _font_loader.FontFaceObject(a,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:u});e.fontLoader.bind(l)["catch"]((function(e){return t.sendWithPromise("FontFallback",{id:i})}))["finally"]((function(){!s.fontExtraProperties&&l.data&&(l.data=null),e.commonObjs.resolve(i,l)}));break;case"FontPath":case"Image":e.commonObjs.resolve(i,a);break;default:throw new Error("Got unknown common object type ".concat(o))}}})),t.on("obj",(function(t){if(!e.destroyed){var n=_slicedToArray(t,4),r=n[0],i=n[1],o=n[2],a=n[3],s=e.pageCache[i];if(!s.objs.has(r))switch(o){case"Image":s.objs.resolve(r,a);var c=8e6;a&&"data"in a&&a.data.length>c&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(o))}}})),t.on("DocProgress",(function(t){e.destroyed||n.onProgress&&n.onProgress({loaded:t.loaded,total:t.total})})),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("FetchBuiltInCMap",(function(t,n){if(e.destroyed)n.error(new Error("Worker was destroyed"));else{var r=!1;n.onPull=function(){r?n.close():(r=!0,e.CMapReaderFactory.fetch(t).then((function(e){n.enqueue(e,1,[e.cMapData.buffer])}))["catch"]((function(e){n.error(e)})))}}}))}},{key:"_onUnsupportedFeature",value:function(e){var t=e.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(t)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));var n=e-1;if(n in this.pagePromises)return this.pagePromises[n];var r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then((function(e){if(t.destroyed)throw new Error("Transport destroyed");var r=new PDFPageProxy(n,e,t,t._params.ownerDocument,t._params.pdfBug);return t.pageCache[n]=r,r}));return this.pagePromises[n]=r,r}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e})["catch"]((function(e){return Promise.reject(new Error(e))}))}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"saveDocument",value:function(e){return this.messageHandler.sendWithPromise("SaveDocument",{numPages:this._numPages,annotationStorage:e&&e.getAll()||null,filename:this._fullReader?this._fullReader.filename:null})["finally"]((function(){e&&e.resetModified()}))}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((function(e){return new _optional_content_config.OptionalContentConfig(e)}))}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then((function(t){return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:e._fullReader?e._fullReader.filename:null}}))}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var e=this;return this.messageHandler.sendWithPromise("Cleanup",null).then((function(){for(var t=0,n=e.pageCache.length;t<n;t++){var r=e.pageCache[t];if(r){var i=r.cleanup();if(!i)throw new Error("startCleanup: Page ".concat(t+1," is currently rendering."))}}e.commonObjs.clear(),e.fontLoader.clear()}))}},{key:"loadingParams",get:function(){var e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,disableFontFace:e.disableFontFace})}}]),e}(),PDFObjects=function(){function e(){_classCallCheck(this,e),this._objs=Object.create(null)}return _createClass(e,[{key:"_ensureObj",value:function(e){return this._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var n=this._objs[e];if(!n||!n.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return n.data}},{key:"has",value:function(e){var t=this._objs[e];return!!t&&t.resolved}},{key:"resolve",value:function(e,t){var n=this._ensureObj(e);n.resolved=!0,n.data=t,n.capability.resolve(t)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),e}(),RenderTask=function(){function e(t){_classCallCheck(this,e),this._internalRenderTask=t,this.onContinue=null}return _createClass(e,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),e}(),InternalRenderTask=function(){var e=new WeakSet,t=function(){function t(e){var n=e.callback,r=e.params,i=e.objs,o=e.commonObjs,a=e.operatorList,s=e.pageIndex,c=e.canvasFactory,u=e.webGLContext,l=e.useRequestAnimationFrame,d=void 0!==l&&l,f=e.pdfBug,h=void 0!==f&&f;_classCallCheck(this,t),this.callback=n,this.params=r,this.objs=i,this.commonObjs=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=c,this.webGLContext=u,this._pdfBug=h,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===d&&"undefined"!==typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=r.canvasContext.canvas}return _createClass(t,[{key:"initializeGraphics",value:function(t){var n=t.transparency,r=void 0!==n&&n,i=t.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var o=this.params,a=o.canvasContext,s=o.viewport,c=o.transform,u=o.imageLayer,l=o.background;this.gfx=new _canvas.CanvasGraphics(a,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,u,i),this.gfx.beginDrawing({transform:c,viewport:s,transparency:r,background:l}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e["delete"](this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){e._nextBound()["catch"](e.cancel.bind(e))})):Promise.resolve().then(this._nextBound)["catch"](this.cancel.bind(this))}},{key:"_next",value:function(){var t=_asyncToGenerator(_regenerator["default"].mark((function t(){return _regenerator["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e["delete"](this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)})));function n(){return t.apply(this,arguments)}return n}()},{key:"completed",get:function(){return this.capability.promise["catch"]((function(){}))}}]),t}();return t}(),version="2.6.347";exports.version=version;var build="3be9c65f";exports.build=build},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=o(n(2)),i=n(5);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=f();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==a(t)&&"function"!==typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){p(o,r,i,a,s,"next",e)}function s(e){p(o,r,i,a,s,"throw",e)}a(void 0)}))}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}var y,x=function(){function e(t){var n=t.docId,r=t.onUnsupportedFeature,o=t.ownerDocument,a=void 0===o?globalThis.document:o;m(this,e),this.constructor===e&&(0,i.unreachable)("Cannot initialize BaseFontLoader."),this.docId=n,this._onUnsupportedFeature=r,this._document=a,this.nativeFontFaces=[],this.styleElement=null}return b(e,[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.push(e),this._document.fonts.add(e)}},{key:"insertRule",value:function(e){var t=this.styleElement;t||(t=this.styleElement=this._document.createElement("style"),t.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),this._document.documentElement.getElementsByTagName("head")[0].appendChild(t));var n=t.sheet;n.insertRule(e,n.cssRules.length)}},{key:"clear",value:function(){var e=this;this.nativeFontFaces.forEach((function(t){e._document.fonts["delete"](t)})),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){var e=g(r["default"].mark((function e(t){var n,o,a=this;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.attached&&!t.missingFile){e.next=2;break}return e.abrupt("return");case 2:if(t.attached=!0,!this.isFontLoadingAPISupported){e.next=19;break}if(n=t.createNativeFontFace(),!n){e.next=18;break}return this.addNativeFontFace(n),e.prev=7,e.next=10,n.loaded;case 10:e.next=18;break;case 12:throw e.prev=12,e.t0=e["catch"](7),this._onUnsupportedFeature({featureId:i.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,i.warn)("Failed to load font '".concat(n.family,"': '").concat(e.t0,"'.")),t.disableFontFace=!0,e.t0;case 18:return e.abrupt("return");case 19:if(o=t.createFontFaceRule(),!o){e.next=26;break}if(this.insertRule(o),!this.isSyncFontLoadingSupported){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,new Promise((function(e){var n=a._queueLoadingCallback(e);a._prepareFontLoadEvent([o],[t],n)}));case 26:case"end":return e.stop()}}),e,this,[[7,12]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_queueLoadingCallback",value:function(e){(0,i.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(e,t,n){(0,i.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var e="undefined"!==typeof this._document&&!!this._document.fonts;return(0,i.shadow)(this,"isFontLoadingAPISupported",e)}},{key:"isSyncFontLoadingSupported",get:function(){(0,i.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,i.unreachable)("Abstract method `_loadTestFont`.")}}]),e}();t.FontLoader=y,t.FontLoader=y=function(e){s(n,e);var t=u(n);function n(e){var r;return m(this,n),r=t.call(this,e),r.loadingContext={requests:[],nextRequestId:0},r.loadTestFontId=0,r}return b(n,[{key:"_queueLoadingCallback",value:function(e){function t(){(0,i.assert)(!r.done,"completeRequest() cannot be called twice."),r.done=!0;while(n.requests.length>0&&n.requests[0].done){var e=n.requests.shift();setTimeout(e.callback,0)}}var n=this.loadingContext,r={id:"pdfjs-font-loading-".concat(n.nextRequestId++),done:!1,complete:t,callback:e};return n.requests.push(r),r}},{key:"_prepareFontLoadEvent",value:function(e,t,n){var r,o,a=this;function s(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function c(e,t,n,r){var i=e.substring(0,t),o=e.substring(t+n);return i+r+o}var u=this._document.createElement("canvas");u.width=1,u.height=1;var l=u.getContext("2d"),d=0;function f(e,t){if(d++,d>30)return(0,i.warn)("Load test font never loaded."),void t();l.font="30px "+e,l.fillText(".",0,20);var n=l.getImageData(0,0,1,1);n.data[3]>0?t():setTimeout(f.bind(null,e,t))}var h="lt".concat(Date.now()).concat(this.loadTestFontId++),p=this._loadTestFont,g=976;p=c(p,g,h.length,h);var m=16,v=1482184792,b=s(p,m);for(r=0,o=h.length-3;r<o;r+=4)b=b-v+s(h,r)|0;r<h.length&&(b=b-v+s(h+"XXX",r)|0),p=c(p,m,4,(0,i.string32)(b));var y="url(data:font/opentype;base64,".concat(btoa(p),");"),x='@font-face {font-family:"'.concat(h,'";src:').concat(y,"}");this.insertRule(x);var _=[];for(r=0,o=t.length;r<o;r++)_.push(t[r].loadedName);_.push(h);var w=this._document.createElement("div");for(w.style.visibility="hidden",w.style.width=w.style.height="10px",w.style.position="absolute",w.style.top=w.style.left="0px",r=0,o=_.length;r<o;++r){var D=this._document.createElement("span");D.textContent="Hi",D.style.fontFamily=_[r],w.appendChild(D)}this._document.body.appendChild(w),f(h,(function(){a._document.body.removeChild(w),n.complete()}))}},{key:"isSyncFontLoadingSupported",get:function(){var e=!1;if("undefined"===typeof navigator)e=!0;else{var t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,i.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_loadTestFont",get:function(){var e=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,i.shadow)(this,"_loadTestFont",e())}}]),n}(x);var _=function(){function e(t,n){var r=n.isEvalSupported,i=void 0===r||r,o=n.disableFontFace,a=void 0!==o&&o,s=n.ignoreErrors,c=void 0!==s&&s,u=n.onUnsupportedFeature,l=void 0===u?null:u,d=n.fontRegistry,f=void 0===d?null:d;for(var h in m(this,e),this.compiledGlyphs=Object.create(null),t)this[h]=t[h];this.isEvalSupported=!1!==i,this.disableFontFace=!0===a,this.ignoreErrors=!0===c,this._onUnsupportedFeature=l,this.fontRegistry=f}return b(e,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var e=(0,i.bytesToString)(new Uint8Array(this.data)),t="url(data:".concat(this.mimetype,";base64,").concat(btoa(e),");"),n='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(t,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var n,r;try{n=e.get(this.loadedName+"_path_"+t)}catch(u){if(!this.ignoreErrors)throw u;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:i.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,i.warn)('getPathGenerator - ignoring character: "'.concat(u,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&i.IsEvalSupportedCached.value){for(var o,a="",s=0,c=n.length;s<c;s++)r=n[s],o=void 0!==r.args?r.args.join(","):"",a+="c."+r.cmd+"("+o+");\n";return this.compiledGlyphs[t]=new Function("c","size",a)}return this.compiledGlyphs[t]=function(e,t){for(var i=0,o=n.length;i<o;i++)r=n[i],"scale"===r.cmd&&(r.args=[t,-t]),e[r.cmd].apply(e,r.args)}}}]),e}();t.FontFaceObject=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeCMapReaderFactory=t.NodeCanvasFactory=void 0;var r=n(1),i=n(7),o=n(5);function a(e){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function d(e){var t=p();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==a(t)&&"function"!==typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var v=function e(){m(this,e),(0,o.unreachable)("Not implemented: NodeCanvasFactory")};t.NodeCanvasFactory=v;var b=function e(){m(this,e),(0,o.unreachable)("Not implemented: NodeCMapReaderFactory")};t.NodeCMapReaderFactory=b,i.isNodeJS&&(t.NodeCanvasFactory=v=function(e){u(n,e);var t=d(n);function n(){return m(this,n),t.apply(this,arguments)}return c(n,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var n=__webpack_require__(2),r=n.createCanvas(e,t);return{canvas:r,context:r.getContext("2d")}}}]),n}(r.BaseCanvasFactory),t.NodeCMapReaderFactory=b=function(e){u(n,e);var t=d(n);function n(){return m(this,n),t.apply(this,arguments)}return c(n,[{key:"_fetchData",value:function(e,t){return new Promise((function(n,r){var i=__webpack_require__(1);i.readFile(e,(function(e,i){!e&&i?n({cMapData:new Uint8Array(i),compressionType:t}):r(new Error(e))}))}))}}]),n}(r.BaseCMapReaderFactory))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationStorage=void 0;var a=function(){function e(){r(this,e),this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}return o(e,[{key:"getOrCreateValue",value:function(e,t){return this._storage.has(e)?this._storage.get(e):(this._storage.set(e,t),t)}},{key:"setValue",value:function(e,t){this._storage.get(e)!==t&&this._setModified(),this._storage.set(e,t)}},{key:"getAll",value:function(){return 0===this._storage.size?null:Object.fromEntries(this._storage)}},{key:"_setModified",value:function(){this._modified||(this._modified=!0,"function"===typeof this.onSetModified&&this.onSetModified())}},{key:"resetModified",value:function(){this._modified&&(this._modified=!1,"function"===typeof this.onResetModified&&this.onResetModified())}},{key:"size",get:function(){return this._storage.size}}]),e}();t.AnnotationStorage=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiCompatibilityParams=void 0;var r=n(7),i=Object.create(null);(function(){r.isNodeJS&&(i.disableFontFace=!0)})();var o=Object.freeze(i);t.apiCompatibilityParams=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=n(5),i=n(208);function o(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(c)throw o}}}}function a(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=16,u=100,l=4096,d=.65,f=!0,h=1e3,p=16;function g(e){e.mozCurrentTransform||(e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[],Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=t*i-n*r,c=n*r-t*i;return[i/s,n/c,r/c,t/s,(i*o-r*a)/c,(n*o-t*a)/s]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var n=this._transformMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5],this._originalTranslate(e,t)},e.scale=function(e,t){var n=this._transformMatrix;n[0]=n[0]*e,n[1]=n[1]*e,n[2]=n[2]*t,n[3]=n[3]*t,this._originalScale(e,t)},e.transform=function(t,n,r,i,o,a){var s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*n,s[1]*t+s[3]*n,s[0]*r+s[2]*i,s[1]*r+s[3]*i,s[0]*o+s[2]*a+s[4],s[1]*o+s[3]*a+s[5]],e._originalTransform(t,n,r,i,o,a)},e.setTransform=function(t,n,r,i,o,a){this._transformMatrix=[t,n,r,i,o,a],e._originalSetTransform(t,n,r,i,o,a)},e.rotate=function(e){var t=Math.cos(e),n=Math.sin(e),r=this._transformMatrix;this._transformMatrix=[r[0]*t+r[2]*n,r[1]*t+r[3]*n,r[0]*-n+r[2]*t,r[1]*-n+r[3]*t,r[4],r[5]],this._originalRotate(e)})}var m=function(){function e(e){this.canvasFactory=e,this.cache=Object.create(null)}return e.prototype={getCanvas:function(e,t,n,r){var i;return void 0!==this.cache[e]?(i=this.cache[e],this.canvasFactory.reset(i,t,n),i.context.setTransform(1,0,0,1,0,0)):(i=this.canvasFactory.create(t,n),this.cache[e]=i),r&&g(i.context),i},clear:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}},e}();function v(e){var t,n,r,i,o=1e3,a=e.width,s=e.height,c=a+1,u=new Uint8Array(c*(s+1)),l=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),d=a+7&-8,f=e.data,h=new Uint8Array(d*s),p=0;for(t=0,i=f.length;t<i;t++){var g=128,m=f[t];while(g>0)h[p++]=m&g?0:255,g>>=1}var v=0;for(p=0,0!==h[p]&&(u[0]=1,++v),n=1;n<a;n++)h[p]!==h[p+1]&&(u[n]=h[p]?2:1,++v),p++;for(0!==h[p]&&(u[n]=2,++v),t=1;t<s;t++){p=t*d,r=t*c,h[p-d]!==h[p]&&(u[r]=h[p]?1:8,++v);var b=(h[p]?4:0)+(h[p-d]?8:0);for(n=1;n<a;n++)b=(b>>2)+(h[p+1]?4:0)+(h[p-d+1]?8:0),l[b]&&(u[r+n]=l[b],++v),p++;if(h[p-d]!==h[p]&&(u[r+n]=h[p]?2:4,++v),v>o)return null}for(p=d*(s-1),r=t*c,0!==h[p]&&(u[r]=8,++v),n=1;n<a;n++)h[p]!==h[p+1]&&(u[r+n]=h[p]?4:8,++v),p++;if(0!==h[p]&&(u[r+n]=4,++v),v>o)return null;var y=new Int32Array([0,c,-1,0,-c,0,0,0,1]),x=[];for(t=0;v&&t<=s;t++){var _=t*c,w=_+a;while(_<w&&!u[_])_++;if(_!==w){var D,C=[_%c,t],k=u[_],T=_;do{var S=y[k];do{_+=S}while(!u[_]);D=u[_],5!==D&&10!==D?(k=D,u[_]=0):(k=D&51*k>>4,u[_]&=k>>2|k<<2),C.push(_%c),C.push(_/c|0),u[_]||--v}while(T!==_);x.push(C),--t}}var A=function(e){e.save(),e.scale(1/a,-1/s),e.translate(0,-s),e.beginPath();for(var t=0,n=x.length;t<n;t++){var r=x[t];e.moveTo(r[0],r[1]);for(var i=2,o=r.length;i<o;i+=2)e.lineTo(r[i],r[i+1])}e.fill(),e.beginPath(),e.restore()};return A}var b=function(){function e(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=r.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=r.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null,this.transferMaps=null}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),y=function(){var e=15,t=10;function n(e,t,n,r,i,o,a){this.ctx=e,this.current=new b,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=r,this.webGLContext=i,this.imageLayer=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=a,this.cachedCanvases=new m(this.canvasFactory),e&&g(e),this._cachedGetSinglePixelWidth=null}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("undefined"!==typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var i,o,a,s,c,u,l,d,f,h=t.height,g=t.width,m=h%p,v=(h-m)/p,b=0===m?v:v+1,y=e.createImageData(g,p),x=0,_=t.data,w=y.data;if(n)switch(n.length){case 1:u=n[0],l=n[0],d=n[0],f=n[0];break;case 4:u=n[0],l=n[1],d=n[2],f=n[3];break}if(t.kind===r.ImageKind.GRAYSCALE_1BPP){var D=_.byteLength,C=new Uint32Array(w.buffer,0,w.byteLength>>2),k=C.length,T=g+7>>3,S=4294967295,A=r.IsLittleEndianCached.value?4278190080:255;if(f&&255===f[0]&&0===f[255]){var E=[A,S];S=E[0],A=E[1]}for(o=0;o<b;o++){for(s=o<v?p:m,i=0,a=0;a<s;a++){for(var U=D-x,O=0,F=U>T?g:8*U-7,P=-8&F,R=0,N=0;O<P;O+=8)N=_[x++],C[i++]=128&N?S:A,C[i++]=64&N?S:A,C[i++]=32&N?S:A,C[i++]=16&N?S:A,C[i++]=8&N?S:A,C[i++]=4&N?S:A,C[i++]=2&N?S:A,C[i++]=1&N?S:A;for(;O<F;O++)0===R&&(N=_[x++],R=128),C[i++]=N&R?S:A,R>>=1}while(i<k)C[i++]=0;e.putImageData(y,0,o*p)}}else if(t.kind===r.ImageKind.RGBA_32BPP){var M=!!(u||l||d);for(a=0,c=g*p*4,o=0;o<v;o++){if(w.set(_.subarray(x,x+c)),x+=c,M)for(var I=0;I<c;I+=4)u&&(w[I+0]=u[w[I+0]]),l&&(w[I+1]=l[w[I+1]]),d&&(w[I+2]=d[w[I+2]]);e.putImageData(y,0,a),a+=p}if(o<b){if(c=g*m*4,w.set(_.subarray(x,x+c)),M)for(var B=0;B<c;B+=4)u&&(w[B+0]=u[w[B+0]]),l&&(w[B+1]=l[w[B+1]]),d&&(w[B+2]=d[w[B+2]]);e.putImageData(y,0,a)}}else{if(t.kind!==r.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));var L=!!(u||l||d);for(s=p,c=g*s,o=0;o<b;o++){for(o>=v&&(s=m,c=g*s),i=0,a=c;a--;)w[i++]=_[x++],w[i++]=_[x++],w[i++]=_[x++],w[i++]=255;if(L)for(var z=0;z<i;z+=4)u&&(w[z+0]=u[w[z+0]]),l&&(w[z+1]=l[w[z+1]]),d&&(w[z+2]=d[w[z+2]]);e.putImageData(y,0,o*p)}}}}function s(e,t){for(var n=t.height,r=t.width,i=n%p,o=(n-i)/p,a=0===i?o:o+1,s=e.createImageData(r,p),c=0,u=t.data,l=s.data,d=0;d<a;d++){for(var f=d<o?p:i,h=3,g=0;g<f;g++)for(var m=0,v=0;v<r;v++){if(!m){var b=u[c++];m=128}l[h]=b&m?0:255,h+=4,m>>=1}e.putImageData(s,0,d*p)}}function y(e,t){for(var n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],r=0,i=n.length;r<i;r++){var o=n[r];void 0!==e[o]&&(t[o]=e[o])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function x(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function _(e,t,n,r){for(var i=e.length,o=3;o<i;o+=4){var a=e[o];if(0===a)e[o-3]=t,e[o-2]=n,e[o-1]=r;else if(a<255){var s=255-a;e[o-3]=e[o-3]*a+t*s>>8,e[o-2]=e[o-2]*a+n*s>>8,e[o-1]=e[o-1]*a+r*s>>8}}}function w(e,t,n){for(var r=e.length,i=1/255,o=3;o<r;o+=4){var a=n?n[e[o]]:e[o];t[o]=t[o]*a*i|0}}function D(e,t,n){for(var r=e.length,i=3;i<r;i+=4){var o=77*e[i-3]+152*e[i-2]+28*e[i-1];t[i]=n?t[i]*n[o>>8]>>8:t[i]*o>>16}}function C(e,t,n,r,i,o,a){var s,c=!!o,u=c?o[0]:0,l=c?o[1]:0,d=c?o[2]:0;s="Luminosity"===i?D:w;for(var f=1048576,h=Math.min(r,Math.ceil(f/n)),p=0;p<r;p+=h){var g=Math.min(h,r-p),m=e.getImageData(0,p,n,g),v=t.getImageData(0,p,n,g);c&&_(m.data,u,l,d),s(m.data,v.data,a),e.putImageData(v,0,p)}}function k(e,t,n,r){var i=t.canvas,o=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var a=t.backdrop||null;if(!t.transferMap&&r.isEnabled){var s=r.composeSMask({layer:n.canvas,mask:i,properties:{subtype:t.subtype,backdrop:a}});return e.setTransform(1,0,0,1,0,0),void e.drawImage(s,t.offsetX,t.offsetY)}C(o,n,i.width,i.height,t.subtype,a,t.transferMap),e.drawImage(i,0,0)}var T=["butt","round","square"],S=["miter","round","bevel"],A={},E={};for(var U in n.prototype={beginDrawing:function(e){var t=e.transform,n=e.viewport,r=e.transparency,i=void 0!==r&&r,o=e.background,a=void 0===o?null:o,s=this.ctx.canvas.width,c=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=a||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,s,c),this.ctx.restore(),i){var u=this.cachedCanvases.getCanvas("transparent",s,c,!0);this.compositeCtx=this.ctx,this.transparentCanvas=u.canvas,this.ctx=u.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),x(this.ctx),t&&this.ctx.transform.apply(this.ctx,t),this.ctx.transform.apply(this.ctx,n.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(n,i,a,s){var c=n.argsArray,u=n.fnArray,l=i||0,d=c.length;if(d===l)return l;var f,h=d-l>t&&"function"===typeof a,p=h?Date.now()+e:0,g=0,m=this.commonObjs,v=this.objs;while(1){if(void 0!==s&&l===s.nextBreakPoint)return s.breakIt(l,a),l;if(f=u[l],f!==r.OPS.dependency)this[f].apply(this,c[l]);else{var b,y=o(c[l]);try{for(y.s();!(b=y.n()).done;){var x=b.value,_=x.startsWith("g_")?m:v;if(!_.has(x))return _.get(x,a),l}}catch(w){y.e(w)}finally{y.f()}}if(l++,l===d)return l;if(h&&++g>t){if(Date.now()>p)return a(),l;g=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=T[e]},setLineJoin:function(e){this.ctx.lineJoin=S[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t],i=r[0],o=r[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o[0],o[1]);break;case"CA":this.current.strokeAlpha=r[1];break;case"ca":this.current.fillAlpha=r[1],this.ctx.globalAlpha=r[1];break;case"BM":this.ctx.globalCompositeOperation=o;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=o?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break;case"TR":this.current.transferMaps=o}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,n=e.canvas.height,r="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(r,t,n,!0),o=this.ctx,a=o.mozCurrentTransform;this.ctx.save();var s=i.context;s.scale(1/e.scaleX,1/e.scaleY),s.translate(-e.offsetX,-e.offsetY),s.transform.apply(s,a),e.startTransformInverse=s.mozCurrentTransformInverse,y(o,s),this.ctx=s,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(o),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),k(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),y(e,this.ctx),this.current.resumeSMaskCtx=e;var t=r.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),k(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),y(e,this.ctx);var t=r.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(e,t,n,r,i,o){this.ctx.transform(e,t,n,r,i,o),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var n=this.ctx,i=this.current,o=i.x,a=i.y,s=0,c=0,u=e.length;s<u;s++)switch(0|e[s]){case r.OPS.rectangle:o=t[c++],a=t[c++];var l=t[c++],d=t[c++];0===l&&n.lineWidth<this.getSinglePixelWidth()&&(l=this.getSinglePixelWidth()),0===d&&n.lineWidth<this.getSinglePixelWidth()&&(d=this.getSinglePixelWidth());var f=o+l,h=a+d;n.moveTo(o,a),n.lineTo(f,a),n.lineTo(f,h),n.lineTo(o,h),n.lineTo(o,a),n.closePath();break;case r.OPS.moveTo:o=t[c++],a=t[c++],n.moveTo(o,a);break;case r.OPS.lineTo:o=t[c++],a=t[c++],n.lineTo(o,a);break;case r.OPS.curveTo:o=t[c+4],a=t[c+5],n.bezierCurveTo(t[c],t[c+1],t[c+2],t[c+3],o,a),c+=6;break;case r.OPS.curveTo2:n.bezierCurveTo(o,a,t[c],t[c+1],t[c+2],t[c+3]),o=t[c+2],a=t[c+3],c+=4;break;case r.OPS.curveTo3:o=t[c+2],a=t[c+3],n.bezierCurveTo(t[c],t[c+1],o,a,o,a),c+=4;break;case r.OPS.closePath:n.closePath();break}i.setCurrentPoint(o,a)},closePath:function(){this.ctx.closePath()},stroke:function(e){e="undefined"===typeof e||e;var t=this.ctx,n=this.current.strokeColor;if(t.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(n&&n.hasOwnProperty("type")&&"Pattern"===n.type){t.save();var i=t.mozCurrentTransform,o=r.Util.singularValueDecompose2dScale(i)[0];t.strokeStyle=n.getPattern(t,this),t.lineWidth=Math.max(this.getSinglePixelWidth()*d,this.current.lineWidth*o),t.stroke(),t.restore()}else t.lineWidth=Math.max(this.getSinglePixelWidth()*d,this.current.lineWidth),t.stroke();e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e="undefined"===typeof e||e;var t=this.ctx,n=this.current.fillColor,r=this.current.patternFill,i=!1;r&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=n.getPattern(t,this),i=!0),this.contentVisible&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),i&&t.restore(),e&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=A},eoClip:function(){this.pendingClip=E},beginText:function(){this.current.textMatrix=r.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];t.setTransform.apply(t,r.transform),t.translate(r.x,r.y),r.addToPath(t,r.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){var n=this.commonObjs.get(e),i=this.current;if(!n)throw new Error("Can't find font for ".concat(e));if(i.fontMatrix=n.fontMatrix?n.fontMatrix:r.FONT_IDENTITY_MATRIX,0!==i.fontMatrix[0]&&0!==i.fontMatrix[3]||(0,r.warn)("Invalid font matrix for font "+e),t<0?(t=-t,i.fontDirection=-1):i.fontDirection=1,this.current.font=n,this.current.fontSize=t,!n.isType3Font){var o=n.loadedName||"sans-serif",a="normal";n.black?a="900":n.bold&&(a="bold");var s=n.italic?"italic":"normal",l='"'.concat(o,'", ').concat(n.fallbackName),d=t;t<c?d=c:t>u&&(d=u),this.current.fontSizeScale=t/d,this.ctx.font="".concat(s," ").concat(a," ").concat(d,"px ").concat(l)}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,n,r,i,o){this.current.textMatrix=[e,t,n,r,i,o],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,n,i){var o,a=this.ctx,s=this.current,c=s.font,u=s.textRenderingMode,l=s.fontSize/s.fontSizeScale,d=u&r.TextRenderingMode.FILL_STROKE_MASK,f=!!(u&r.TextRenderingMode.ADD_TO_PATH_FLAG),h=s.patternFill&&!c.missingFile;if((c.disableFontFace||f||h)&&(o=c.getPathGenerator(this.commonObjs,e)),c.disableFontFace||h?(a.save(),a.translate(t,n),a.beginPath(),o(a,l),i&&a.setTransform.apply(a,i),d!==r.TextRenderingMode.FILL&&d!==r.TextRenderingMode.FILL_STROKE||a.fill(),d!==r.TextRenderingMode.STROKE&&d!==r.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore()):(d!==r.TextRenderingMode.FILL&&d!==r.TextRenderingMode.FILL_STROKE||a.fillText(e,t,n),d!==r.TextRenderingMode.STROKE&&d!==r.TextRenderingMode.FILL_STROKE||a.strokeText(e,t,n)),f){var p=this.pendingTextPaths||(this.pendingTextPaths=[]);p.push({transform:a.mozCurrentTransform,x:t,y:n,fontSize:l,addToPath:o})}},get isFontSubpixelAAEnabled(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),t=e.context;t.scale(1.5,1),t.fillText("I",0,10);for(var n=t.getImageData(0,0,10,10).data,i=!1,o=3;o<n.length;o+=4)if(n[o]>0&&n[o]<255){i=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",i)},showText:function(e){var t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);var i=t.fontSize;if(0!==i){var o,a=this.ctx,s=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,l=t.fontDirection,f=t.textHScale*l,h=e.length,p=n.vertical,g=p?1:-1,m=n.defaultVMetrics,v=i*t.fontMatrix[0],b=t.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;if(a.save(),t.patternFill){a.save();var y=t.fillColor.getPattern(a,this);o=a.mozCurrentTransform,a.restore(),a.fillStyle=y}a.transform.apply(a,t.textMatrix),a.translate(t.x,t.y+t.textRise),l>0?a.scale(f,-1):a.scale(f,1);var x=t.lineWidth,_=t.textMatrixScale;if(0===_||0===x){var w=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;w!==r.TextRenderingMode.STROKE&&w!==r.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,x=this.getSinglePixelWidth()*d)}else x/=_;1!==s&&(a.scale(s,s),x/=s),a.lineWidth=x;var D,C=0;for(D=0;D<h;++D){var k=e[D];if((0,r.isNum)(k))C+=g*k*i/1e3;else{var T,S,A,E,U,O,F,P,R=!1,N=(k.isSpace?u:0)+c,M=k.fontChar,I=k.accent,B=k.width;if(p)U=k.vmetric||m,O=k.vmetric?U[1]:.5*B,O=-O*v,F=U[2]*v,B=U?-U[0]:B,T=O/s,S=(C+F)/s;else T=C/s,S=0;if(n.remeasure&&B>0){var L=1e3*a.measureText(M).width/i*s;if(B<L&&this.isFontSubpixelAAEnabled){var z=B/L;R=!0,a.save(),a.scale(z,1),T/=z}else B!==L&&(T+=(B-L)/2e3*i/s)}this.contentVisible&&(k.isInFont||n.missingFile)&&(b&&!I?a.fillText(M,T,S):(this.paintChar(M,T,S,o),I&&(A=T+i*I.offset.x/s,E=S-i*I.offset.y/s,this.paintChar(I.fontChar,A,E,o)))),P=p?B*v-N*l:B*v+N*l,C+=P,R&&a.restore()}}p?t.y-=C:t.x+=C*f,a.restore()}},showType3Text:function(e){var t,n,i,o,a=this.ctx,s=this.current,c=s.font,u=s.fontSize,l=s.fontDirection,d=c.vertical?1:-1,f=s.charSpacing,h=s.wordSpacing,p=s.textHScale*l,g=s.fontMatrix||r.FONT_IDENTITY_MATRIX,m=e.length,v=s.textRenderingMode===r.TextRenderingMode.INVISIBLE;if(!v&&0!==u){for(this._cachedGetSinglePixelWidth=null,a.save(),a.transform.apply(a,s.textMatrix),a.translate(s.x,s.y),a.scale(p,l),t=0;t<m;++t)if(n=e[t],(0,r.isNum)(n))o=d*n*u/1e3,this.ctx.translate(o,0),s.x+=o*p;else{var b=(n.isSpace?h:0)+f,y=c.charProcOperatorList[n.operatorListId];if(y){this.contentVisible&&(this.processingType3=n,this.save(),a.scale(u,u),a.transform.apply(a,g),this.executeOperatorList(y),this.restore());var x=r.Util.applyTransform([n.width,0],g);i=x[0]*u+b,a.translate(i,0),s.x+=i*p}else(0,r.warn)('Type3 character "'.concat(n.operatorListId,'" is not available.'))}a.restore(),this.processingType3=null}},setCharWidth:function(e,t){},setCharWidthAndBounds:function(e,t,n,r,i,o){this.ctx.rect(n,r,i-n,o-r),this.clip(),this.endPath()},getColorN_Pattern:function(e){var t,r=this;if("TilingPattern"===e[0]){var o=e[1],a=this.baseTransform||this.ctx.mozCurrentTransform.slice(),s={createCanvasGraphics:function(e){return new n(e,r.commonObjs,r.objs,r.canvasFactory,r.webGLContext)}};t=new i.TilingPattern(e,o,this.ctx,s,a)}else t=(0,i.getShadingPatternFromIR)(e);return t},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(e,t,n){var i=r.Util.makeCssRgb(e,t,n);this.ctx.strokeStyle=i,this.current.strokeColor=i},setFillRGBColor:function(e,t,n){var i=r.Util.makeCssRgb(e,t,n);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1},shadingFill:function(e){if(this.contentVisible){var t=this.ctx;this.save();var n=(0,i.getShadingPatternFromIR)(e);t.fillStyle=n.getPattern(t,this,!0);var o=t.mozCurrentTransformInverse;if(o){var a=t.canvas,s=a.width,c=a.height,u=r.Util.applyTransform([0,0],o),l=r.Util.applyTransform([0,c],o),d=r.Util.applyTransform([s,0],o),f=r.Util.applyTransform([s,c],o),h=Math.min(u[0],l[0],d[0],f[0]),p=Math.min(u[1],l[1],d[1],f[1]),g=Math.max(u[0],l[0],d[0],f[0]),m=Math.max(u[1],l[1],d[1],f[1]);this.ctx.fillRect(h,p,g-h,m-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()}},beginInlineImage:function(){(0,r.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,r.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t)){var n=t[2]-t[0],r=t[3]-t[1];this.ctx.rect(t[0],t[1],n,r),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())},beginGroup:function(e){if(this.contentVisible){this.save();var t=this.ctx;e.isolated||(0,r.info)("TODO: Support non-isolated groups."),e.knockout&&(0,r.warn)("Knockout groups not supported.");var n=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");var i=r.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),o=[0,0,t.canvas.width,t.canvas.height];i=r.Util.intersect(i,o)||[0,0,0,0];var a=Math.floor(i[0]),s=Math.floor(i[1]),c=Math.max(Math.ceil(i[2])-a,1),u=Math.max(Math.ceil(i[3])-s,1),d=1,f=1;c>l&&(d=c/l,c=l),u>l&&(f=u/l,u=l);var h="groupAt"+this.groupLevel;e.smask&&(h+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(h,c,u,!0),g=p.context;g.scale(1/d,1/f),g.translate(-a,-s),g.transform.apply(g,n),e.smask?this.smaskStack.push({canvas:p.canvas,context:g,offsetX:a,offsetY:s,scaleX:d,scaleY:f,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(a,s),t.scale(d,f)),y(t,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null}},endGroup:function(e){if(this.contentVisible){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()}},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,n){if(this.save(),x(this.ctx),this.current=new b,Array.isArray(e)&&4===e.length){var r=e[2]-e[0],i=e[3]-e[1];this.ctx.rect(e[0],e[1],r,i),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,n)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(e){if(this.contentVisible){var t=this.ctx,n=e.width,r=e.height,i=this.current.fillColor,o=this.current.patternFill,a=this.processingType3;if(f&&a&&void 0===a.compiled&&(a.compiled=n<=h&&r<=h?v({data:e.data,width:n,height:r}):null),a&&a.compiled)a.compiled(t);else{var c=this.cachedCanvases.getCanvas("maskCanvas",n,r),u=c.context;u.save(),s(u,e),u.globalCompositeOperation="source-in",u.fillStyle=o?i.getPattern(u,this):i,u.fillRect(0,0,n,r),u.restore(),this.paintInlineImageXObject(c.canvas)}}},paintImageMaskXObjectRepeat:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){var a=e.width,c=e.height,u=this.current.fillColor,l=this.current.patternFill,d=this.cachedCanvases.getCanvas("maskCanvas",a,c),f=d.context;f.save(),s(f,e),f.globalCompositeOperation="source-in",f.fillStyle=l?u.getPattern(f,this):u,f.fillRect(0,0,a,c),f.restore();for(var h=this.ctx,p=0,g=o.length;p<g;p+=2)h.save(),h.transform(t,n,r,i,o[p],o[p+1]),h.scale(1,-1),h.drawImage(d.canvas,0,0,a,c,0,-1,1,1),h.restore()}},paintImageMaskXObjectGroup:function(e){if(this.contentVisible)for(var t=this.ctx,n=this.current.fillColor,r=this.current.patternFill,i=0,o=e.length;i<o;i++){var a=e[i],c=a.width,u=a.height,l=this.cachedCanvases.getCanvas("maskCanvas",c,u),d=l.context;d.save(),s(d,a),d.globalCompositeOperation="source-in",d.fillStyle=r?n.getPattern(d,this):n,d.fillRect(0,0,c,u),d.restore(),t.save(),t.transform.apply(t,a.transform),t.scale(1,-1),t.drawImage(l.canvas,0,0,c,u,0,-1,1,1),t.restore()}},paintImageXObject:function(e){if(this.contentVisible){var t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,r.warn)("Dependent image isn't ready yet")}},paintImageXObjectRepeat:function(e,t,n,i){if(this.contentVisible){var o=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);if(o){for(var a=o.width,s=o.height,c=[],u=0,l=i.length;u<l;u+=2)c.push({transform:[t,0,0,n,i[u],i[u+1]],x:0,y:0,w:a,h:s});this.paintInlineImageXObjectGroup(o,c)}else(0,r.warn)("Dependent image isn't ready yet")}},paintInlineImageXObject:function(e){if(this.contentVisible){var t=e.width,n=e.height,r=this.ctx;this.save(),r.scale(1/t,-1/n);var i,o,s=r.mozCurrentTransformInverse,c=s[0],u=s[1],l=Math.max(Math.sqrt(c*c+u*u),1),d=s[2],f=s[3],h=Math.max(Math.sqrt(d*d+f*f),1);if("function"===typeof HTMLElement&&e instanceof HTMLElement||!e.data)i=e;else{o=this.cachedCanvases.getCanvas("inlineImage",t,n);var p=o.context;a(p,e,this.current.transferMaps),i=o.canvas}var g=t,m=n,v="prescale1";while(l>2&&g>1||h>2&&m>1){var b=g,y=m;l>2&&g>1&&(b=Math.ceil(g/2),l/=g/b),h>2&&m>1&&(y=Math.ceil(m/2),h/=m/y),o=this.cachedCanvases.getCanvas(v,b,y),p=o.context,p.clearRect(0,0,b,y),p.drawImage(i,0,0,g,m,0,0,b,y),i=o.canvas,g=b,m=y,v="prescale1"===v?"prescale2":"prescale1"}if(r.drawImage(i,0,0,g,m,0,-n,t,n),this.imageLayer){var x=this.getCanvasPosition(0,-n);this.imageLayer.appendImage({imgData:e,left:x[0],top:x[1],width:t/s[0],height:n/s[3]})}this.restore()}},paintInlineImageXObjectGroup:function(e,t){if(this.contentVisible){var n=this.ctx,r=e.width,i=e.height,o=this.cachedCanvases.getCanvas("inlineImage",r,i),s=o.context;a(s,e,this.current.transferMaps);for(var c=0,u=t.length;c<u;c++){var l=t[c];if(n.save(),n.transform.apply(n,l.transform),n.scale(1,-1),n.drawImage(o.canvas,l.x,l.y,l.w,l.h,0,-1,1,1),this.imageLayer){var d=this.getCanvasPosition(l.x,l.y);this.imageLayer.appendImage({imgData:e,left:d[0],top:d[1],width:r,height:i})}n.restore()}}},paintSolidColorImageMask:function(){this.contentVisible&&this.ctx.fillRect(0,0,1,1)},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){this.markedContentStack.push({visible:!0})},beginMarkedContentProps:function(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()},endMarkedContent:function(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()},beginCompat:function(){},endCompat:function(){},consumePath:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===E?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth:function(e){if(null===this._cachedGetSinglePixelWidth){var t=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1],t[2]*t[2]+t[3]*t[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(e,t){var n=this.ctx.mozCurrentTransform;return[n[0]*e+n[2]*t+n[4],n[1]*e+n[3]*t+n[5]]},isContentVisible:function(){for(var e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}},r.OPS)n.prototype[r.OPS[U]]=n.prototype[U];return n}();t.CanvasGraphics=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPatternFromIR=s,t.TilingPattern=void 0;var r=n(5),i={};function o(e,t){if(t&&"undefined"!==typeof Path2D){var n=t[2]-t[0],r=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],n,r),e.clip(i)}}i.RadialAxial={fromIR:function(e){var t=e[1],n=e[2],r=e[3],i=e[4],a=e[5],s=e[6],c=e[7];return{type:"Pattern",getPattern:function(e){var u;o(e,n),"axial"===t?u=e.createLinearGradient(i[0],i[1],a[0],a[1]):"radial"===t&&(u=e.createRadialGradient(i[0],i[1],s,a[0],a[1],c));for(var l=0,d=r.length;l<d;++l){var f=r[l];u.addColorStop(f[0],f[1])}return u}}}};var a=function(){function e(e,t,n,r,i,o,a,s){var c,u=t.coords,l=t.colors,d=e.data,f=4*e.width;u[n+1]>u[r+1]&&(c=n,n=r,r=c,c=o,o=a,a=c),u[r+1]>u[i+1]&&(c=r,r=i,i=c,c=a,a=s,s=c),u[n+1]>u[r+1]&&(c=n,n=r,r=c,c=o,o=a,a=c);var h=(u[n]+t.offsetX)*t.scaleX,p=(u[n+1]+t.offsetY)*t.scaleY,g=(u[r]+t.offsetX)*t.scaleX,m=(u[r+1]+t.offsetY)*t.scaleY,v=(u[i]+t.offsetX)*t.scaleX,b=(u[i+1]+t.offsetY)*t.scaleY;if(!(p>=b))for(var y,x,_,w,D,C,k,T,S=l[o],A=l[o+1],E=l[o+2],U=l[a],O=l[a+1],F=l[a+2],P=l[s],R=l[s+1],N=l[s+2],M=Math.round(p),I=Math.round(b),B=M;B<=I;B++){if(B<m){var L=void 0;L=B<p?0:p===m?1:(p-B)/(p-m),y=h-(h-g)*L,x=S-(S-U)*L,_=A-(A-O)*L,w=E-(E-F)*L}else{var z=void 0;z=B>b?1:m===b?0:(m-B)/(m-b),y=g-(g-v)*z,x=U-(U-P)*z,_=O-(O-R)*z,w=F-(F-N)*z}var W=void 0;W=B<p?0:B>b?1:(p-B)/(p-b),D=h-(h-v)*W,C=S-(S-P)*W,k=A-(A-R)*W,T=E-(E-N)*W;for(var j=Math.round(Math.min(y,D)),H=Math.round(Math.max(y,D)),V=f*B+4*j,q=j;q<=H;q++)W=(y-q)/(y-D),W<0?W=0:W>1&&(W=1),d[V++]=x-(x-C)*W|0,d[V++]=_-(_-k)*W|0,d[V++]=w-(w-T)*W|0,d[V++]=255}}function t(t,n,r){var i,o,a=n.coords,s=n.colors;switch(n.type){case"lattice":var c=n.verticesPerRow,u=Math.floor(a.length/c)-1,l=c-1;for(i=0;i<u;i++)for(var d=i*c,f=0;f<l;f++,d++)e(t,r,a[d],a[d+1],a[d+c],s[d],s[d+1],s[d+c]),e(t,r,a[d+c+1],a[d+1],a[d+c],s[d+c+1],s[d+1],s[d+c]);break;case"triangles":for(i=0,o=a.length;i<o;i+=3)e(t,r,a[i],a[i+1],a[i+2],s[i],s[i+1],s[i+2]);break;default:throw new Error("illegal figure")}}function n(e,n,r,i,o,a,s,c){var u,l,d,f,h=1.1,p=3e3,g=2,m=Math.floor(e[0]),v=Math.floor(e[1]),b=Math.ceil(e[2])-m,y=Math.ceil(e[3])-v,x=Math.min(Math.ceil(Math.abs(b*n[0]*h)),p),_=Math.min(Math.ceil(Math.abs(y*n[1]*h)),p),w=b/x,D=y/_,C={coords:r,colors:i,offsetX:-m,offsetY:-v,scaleX:1/w,scaleY:1/D},k=x+2*g,T=_+2*g;if(c.isEnabled)u=c.drawFigures({width:x,height:_,backgroundColor:a,figures:o,context:C}),l=s.getCanvas("mesh",k,T,!1),l.context.drawImage(u,g,g),u=l.canvas;else{l=s.getCanvas("mesh",k,T,!1);var S=l.context,A=S.createImageData(x,_);if(a){var E=A.data;for(d=0,f=E.length;d<f;d+=4)E[d]=a[0],E[d+1]=a[1],E[d+2]=a[2],E[d+3]=255}for(d=0;d<o.length;d++)t(A,o[d],C);S.putImageData(A,g,g),u=l.canvas}return{canvas:u,offsetX:m-g*w,offsetY:v-g*D,scaleX:w,scaleY:D}}return n}();function s(e){var t=i[e[0]];if(!t)throw new Error("Unknown IR type: ".concat(e[0]));return t.fromIR(e)}i.Mesh={fromIR:function(e){var t=e[2],n=e[3],i=e[4],s=e[5],c=e[6],u=e[7],l=e[8];return{type:"Pattern",getPattern:function(e,d,f){var h;if(o(e,u),f)h=r.Util.singularValueDecompose2dScale(e.mozCurrentTransform);else if(h=r.Util.singularValueDecompose2dScale(d.baseTransform),c){var p=r.Util.singularValueDecompose2dScale(c);h=[h[0]*p[0],h[1]*p[1]]}var g=a(s,h,t,n,i,f?null:l,d.cachedCanvases,d.webGLContext);return f||(e.setTransform.apply(e,d.baseTransform),c&&e.transform.apply(e,c)),e.translate(g.offsetX,g.offsetY),e.scale(g.scaleX,g.scaleY),e.createPattern(g.canvas,"no-repeat")}}}},i.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var c=function(){var e={COLORED:1,UNCOLORED:2},t=3e3;function n(e,t,n,r,i){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=r,this.baseTransform=i,this.type="Pattern",this.ctx=n}return n.prototype={createPatternCanvas:function(e){var t=this.operatorList,n=this.bbox,i=this.xstep,o=this.ystep,a=this.paintType,s=this.tilingType,c=this.color,u=this.canvasGraphicsFactory;(0,r.info)("TilingType: "+s);var l=n[0],d=n[1],f=n[2],h=n[3],p=r.Util.singularValueDecompose2dScale(this.matrix),g=r.Util.singularValueDecompose2dScale(this.baseTransform),m=[p[0]*g[0],p[1]*g[1]],v=this.getSizeAndScale(i,this.ctx.canvas.width,m[0]),b=this.getSizeAndScale(o,this.ctx.canvas.height,m[1]),y=e.cachedCanvases.getCanvas("pattern",v.size,b.size,!0),x=y.context,_=u.createCanvasGraphics(x);return _.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(_,a,c),_.transform(v.scale,0,0,b.scale,0,0),_.transform(1,0,0,1,-l,-d),this.clipBbox(_,n,l,d,f,h),_.executeOperatorList(t),this.ctx.transform(1,0,0,1,l,d),this.ctx.scale(1/v.scale,1/b.scale),y.canvas},getSizeAndScale:function(e,n,r){e=Math.abs(e);var i=Math.max(t,n),o=Math.ceil(e*r);return o>=i?o=i:r=o/e,{scale:r,size:o}},clipBbox:function(e,t,n,r,i,o){if(Array.isArray(t)&&4===t.length){var a=i-n,s=o-r;e.ctx.rect(n,r,a,s),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(t,n,i){var o=t.ctx,a=t.current;switch(n){case e.COLORED:var s=this.ctx;o.fillStyle=s.fillStyle,o.strokeStyle=s.strokeStyle,a.fillColor=s.fillStyle,a.strokeColor=s.strokeStyle;break;case e.UNCOLORED:var c=r.Util.makeCssRgb(i[0],i[1],i[2]);o.fillStyle=c,o.strokeStyle=c,a.fillColor=c,a.strokeColor=c;break;default:throw new r.FormatError("Unsupported paint type: ".concat(n))}},getPattern:function(e,t){e=this.ctx,e.setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var n=this.createPatternCanvas(t);return e.createPattern(n,"repeat")}},n}();t.TilingPattern=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var r=Object.create(null);t.GlobalWorkerOptions=r,r.workerPort=void 0===r.workerPort?null:r.workerPort,r.workerSrc=void 0===r.workerSrc?"":r.workerSrc},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=o(n(2)),i=n(5);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,c,"next",e)}function c(e){a(o,r,i,s,c,"throw",e)}s(void 0)}))}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function d(e){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}var f={UNKNOWN:0,DATA:1,ERROR:2},h={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function p(e){if("object"!==d(e)||null===e)return e;switch(e.name){case"AbortException":return new i.AbortException(e.message);case"MissingPDFException":return new i.MissingPDFException(e.message);case"UnexpectedResponseException":return new i.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new i.UnknownErrorException(e.message,e.details);default:return new i.UnknownErrorException(e.message,e.toString())}}var g=function(){function e(t,n,r){var i=this;c(this,e),this.sourceName=t,this.targetName=n,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===i.sourceName)if(t.stream)i._processStreamMessage(t);else if(t.callback){var n=t.callbackId,o=i.callbackCapabilities[n];if(!o)throw new Error("Cannot resolve callback ".concat(n));if(delete i.callbackCapabilities[n],t.callback===f.DATA)o.resolve(t.data);else{if(t.callback!==f.ERROR)throw new Error("Unexpected callback case");o.reject(p(t.reason))}}else{var a=i.actionHandler[t.action];if(!a)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var s=i.sourceName,c=t.sourceName;new Promise((function(e){e(a(t.data))})).then((function(e){r.postMessage({sourceName:s,targetName:c,callback:f.DATA,callbackId:t.callbackId,data:e})}),(function(e){r.postMessage({sourceName:s,targetName:c,callback:f.ERROR,callbackId:t.callbackId,reason:p(e)})}))}else t.streamId?i._createStreamSink(t):a(t.data)}},r.addEventListener("message",this._onComObjOnMessage)}return l(e,[{key:"on",value:function(e,t){var n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called "'.concat(e,'"'));n[e]=t}},{key:"send",value:function(e,t,n){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}},{key:"sendWithPromise",value:function(e,t,n){var r=this.callbackId++,o=(0,i.createPromiseCapability)();this.callbackCapabilities[r]=o;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:t},n)}catch(a){o.reject(a)}return o.promise}},{key:"sendWithStream",value:function(e,t,n,r){var o=this,a=this.streamId++,s=this.sourceName,c=this.targetName,u=this.comObj;return new ReadableStream({start:function(n){var u=(0,i.createPromiseCapability)();return o.streamControllers[a]={controller:n,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},o._postMessage({sourceName:s,targetName:c,action:e,streamId:a,data:t,desiredSize:n.desiredSize},r),u.promise},pull:function(e){var t=(0,i.createPromiseCapability)();return o.streamControllers[a].pullCall=t,u.postMessage({sourceName:s,targetName:c,stream:h.PULL,streamId:a,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,i.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,i.createPromiseCapability)();return o.streamControllers[a].cancelCall=t,o.streamControllers[a].isClosed=!0,u.postMessage({sourceName:s,targetName:c,stream:h.CANCEL,streamId:a,reason:p(e)}),t.promise}},n)}},{key:"_createStreamSink",value:function(e){var t=this,n=this.actionHandler[e.action],r=e.streamId,o=this.sourceName,a=e.sourceName,s=this.comObj,c={enqueue:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var c=this.desiredSize;this.desiredSize-=n,c>0&&this.desiredSize<=0&&(this.sinkCapability=(0,i.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:o,targetName:a,stream:h.ENQUEUE,streamId:r,chunk:e},s)}},close:function(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:o,targetName:a,stream:h.CLOSE,streamId:r}),delete t.streamSinks[r])},error:function(e){(0,i.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:o,targetName:a,stream:h.ERROR,streamId:r,reason:p(e)}))},sinkCapability:(0,i.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[r]=c,new Promise((function(t){t(n(e.data,c))})).then((function(){s.postMessage({sourceName:o,targetName:a,stream:h.START_COMPLETE,streamId:r,success:!0})}),(function(e){s.postMessage({sourceName:o,targetName:a,stream:h.START_COMPLETE,streamId:r,reason:p(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,n=this.sourceName,r=e.sourceName,o=this.comObj;switch(e.stream){case h.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(p(e.reason));break;case h.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(p(e.reason));break;case h.PULL:if(!this.streamSinks[t]){o.postMessage({sourceName:n,targetName:r,stream:h.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var a=this.streamSinks[e.streamId].onPull;new Promise((function(e){e(a&&a())})).then((function(){o.postMessage({sourceName:n,targetName:r,stream:h.PULL_COMPLETE,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:r,stream:h.PULL_COMPLETE,streamId:t,reason:p(e)})}));break;case h.ENQUEUE:if((0,i.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case h.CLOSE:if((0,i.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case h.ERROR:(0,i.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(p(e.reason)),this._deleteStreamController(t);break;case h.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(p(e.reason)),this._deleteStreamController(t);break;case h.CANCEL:if(!this.streamSinks[t])break;var s=this.streamSinks[e.streamId].onCancel;new Promise((function(t){t(s&&s(p(e.reason)))})).then((function(){o.postMessage({sourceName:n,targetName:r,stream:h.CANCEL_COMPLETE,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:r,stream:h.CANCEL_COMPLETE,streamId:t,reason:p(e)})})),this.streamSinks[t].sinkCapability.reject(p(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e=s(r["default"].mark((function e(t){return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(e){return e&&e.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}();t.MessageHandler=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(5),i=n(212);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var c=function(){function e(t){o(this,e),(0,r.assert)("string"===typeof t,"Metadata: input is not a string"),t=this._repair(t);var n=new i.SimpleXMLParser,a=n.parseFromString(t);this._metadataMap=new Map,a&&this._parse(a)}return s(e,[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(e,t){for(var n=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(e,t,n,r){return String.fromCharCode(64*t+8*n+1*r)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))})),r="",i=0,o=n.length;i<o;i+=2){var a=256*n.charCodeAt(i)+n.charCodeAt(i+1);r+=a>=32&&a<127&&60!==a&&62!==a&&38!==a?String.fromCharCode(a):"&#x"+(65536+a).toString(16).substring(1)+";"}return">"+r}))}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase()){t=t.firstChild;while(t&&"rdf:rdf"!==t.nodeName.toLowerCase())t=t.nextSibling}var n=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===n&&t.hasChildNodes())for(var r=t.childNodes,i=0,o=r.length;i<o;i++){var a=r[i];if("rdf:description"===a.nodeName.toLowerCase())for(var s=0,c=a.childNodes.length;s<c;s++)if("#text"!==a.childNodes[s].nodeName.toLowerCase()){var u=a.childNodes[s],l=u.nodeName.toLowerCase();this._metadataMap.set(l,u.textContent.trim())}}}},{key:"get",value:function(e){return this._metadataMap.has(e)?this._metadataMap.get(e):null}},{key:"getAll",value:function(){return Object.fromEntries(this._metadataMap)}},{key:"has",value:function(e){return this._metadataMap.has(e)}}]),e}();t.Metadata=c},function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return u(e)||c(e,t)||a(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){i=!0,o=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function u(e){if(Array.isArray(e))return e}function l(e,t,n){return l="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=d(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}},l(e,t,n||e)}function d(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=b(e),null===e)break;return e}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){var t=v();return function(){var n,r=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleXMLParser=void 0;var w={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function D(e,t){var n=e[t];return" "===n||"\n"===n||"\r"===n||"\t"===n}function C(e){for(var t=0,n=e.length;t<n;t++)if(!D(e,t))return!1;return!0}var k=function(){function e(){y(this,e)}return _(e,[{key:"_resolveEntities",value:function(e){var t=this;return e.replace(/&([^;]+);/g,(function(e,n){if("#x"===n.substring(0,2))return String.fromCharCode(parseInt(n.substring(2),16));if("#"===n.substring(0,1))return String.fromCharCode(parseInt(n.substring(1),10));switch(n){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return t.onResolveEntity(n)}))}},{key:"_parseContent",value:function(e,t){var n=[],r=t;function i(){while(r<e.length&&D(e,r))++r}while(r<e.length&&!D(e,r)&&">"!==e[r]&&"/"!==e[r])++r;var o=e.substring(t,r);i();while(r<e.length&&">"!==e[r]&&"/"!==e[r]&&"?"!==e[r]){i();var a="",s="";while(r<e.length&&!D(e,r)&&"="!==e[r])a+=e[r],++r;if(i(),"="!==e[r])return null;++r,i();var c=e[r];if('"'!==c&&"'"!==c)return null;var u=e.indexOf(c,++r);if(u<0)return null;s=e.substring(r,u),n.push({name:a,value:this._resolveEntities(s)}),r=u+1,i()}return{name:o,attributes:n,parsed:r-t}}},{key:"_parseProcessingInstruction",value:function(e,t){var n=t;function r(){while(n<e.length&&D(e,n))++n}while(n<e.length&&!D(e,n)&&">"!==e[n]&&"/"!==e[n])++n;var i=e.substring(t,n);r();var o=n;while(n<e.length&&("?"!==e[n]||">"!==e[n+1]))++n;var a=e.substring(o,n);return{name:i,value:a,parsed:n-t}}},{key:"parseXml",value:function(e){var t=0;while(t<e.length){var n=e[t],r=t;if("<"===n){++r;var i=e[r],o=void 0;switch(i){case"/":if(++r,o=e.indexOf(">",r),o<0)return void this.onError(w.UnterminatedElement);this.onEndElement(e.substring(r,o)),r=o+1;break;case"?":++r;var a=this._parseProcessingInstruction(e,r);if("?>"!==e.substring(r+a.parsed,r+a.parsed+2))return void this.onError(w.UnterminatedXmlDeclaration);this.onPi(a.name,a.value),r+=a.parsed+2;break;case"!":if("--"===e.substring(r+1,r+3)){if(o=e.indexOf("--\x3e",r+3),o<0)return void this.onError(w.UnterminatedComment);this.onComment(e.substring(r+3,o)),r=o+3}else if("[CDATA["===e.substring(r+1,r+8)){if(o=e.indexOf("]]>",r+8),o<0)return void this.onError(w.UnterminatedCdat);this.onCdata(e.substring(r+8,o)),r=o+3}else{if("DOCTYPE"!==e.substring(r+1,r+8))return void this.onError(w.MalformedElement);var s=e.indexOf("[",r+8),c=!1;if(o=e.indexOf(">",r+8),o<0)return void this.onError(w.UnterminatedDoctypeDeclaration);if(s>0&&o>s){if(o=e.indexOf("]>",r+8),o<0)return void this.onError(w.UnterminatedDoctypeDeclaration);c=!0}var u=e.substring(r+8,o+(c?1:0));this.onDoctype(u),r=o+(c?2:1)}break;default:var l=this._parseContent(e,r);if(null===l)return void this.onError(w.MalformedElement);var d=!1;if("/>"===e.substring(r+l.parsed,r+l.parsed+2))d=!0;else if(">"!==e.substring(r+l.parsed,r+l.parsed+1))return void this.onError(w.UnterminatedElement);this.onBeginElement(l.name,l.attributes,d),r+=l.parsed+(d?2:1);break}}else{while(r<e.length&&"<"!==e[r])r++;var f=e.substring(t,r);this.onText(this._resolveEntities(f))}t=r}}},{key:"onResolveEntity",value:function(e){return"&".concat(e,";")}},{key:"onPi",value:function(e,t){}},{key:"onComment",value:function(e){}},{key:"onCdata",value:function(e){}},{key:"onDoctype",value:function(e){}},{key:"onText",value:function(e){}},{key:"onBeginElement",value:function(e,t,n){}},{key:"onEndElement",value:function(e){}},{key:"onError",value:function(e){}}]),e}(),T=function(){function e(t,n){y(this,e),this.nodeName=t,this.nodeValue=n,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return _(e,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map((function(e){return e.textContent})).join(""):this.nodeValue||""}}]),e}(),S=function(e){f(n,e);var t=p(n);function n(){var e;return y(this,n),e=t.call(this),e._currentFragment=null,e._stack=null,e._errorCode=w.NoError,e}return _(n,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=w.NoError,this.parseXml(e),this._errorCode===w.NoError){var t=i(this._currentFragment,1),n=t[0];if(n)return{documentElement:n}}}},{key:"onResolveEntity",value:function(e){switch(e){case"apos":return"'"}return l(b(n.prototype),"onResolveEntity",this).call(this,e)}},{key:"onText",value:function(e){if(!C(e)){var t=new T("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new T("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,n){var r=new T(e);r.childNodes=[],this._currentFragment.push(r),n||(this._stack.push(this._currentFragment),this._currentFragment=r.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment[this._currentFragment.length-1];if(t)for(var n=0,r=t.childNodes.length;n<r;n++)t.childNodes[n].parentNode=t}},{key:"onError",value:function(e){this._errorCode=e}}]),n}(k);t.SimpleXMLParser=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var r=n(5);function i(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=o(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(c)throw a}}}}function o(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function e(t,n){u(this,e),this.visible=!0,this.name=t,this.intent=n},d=function(){function e(t){if(u(this,e),this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==t){this.name=t.name,this.creator=t.creator,this._order=t.order;var n,r=i(t.groups);try{for(r.s();!(n=r.n()).done;){var o=n.value;this._groups.set(o.id,new l(o.name,o.intent))}}catch(v){r.e(v)}finally{r.f()}if("OFF"===t.baseState){var a,s=i(this._groups);try{for(s.s();!(a=s.n()).done;){var c=a.value;c.visible=!1}}catch(v){s.e(v)}finally{s.f()}}var d,f=i(t.on);try{for(f.s();!(d=f.n()).done;){var h=d.value;this._groups.get(h).visible=!0}}catch(v){f.e(v)}finally{f.f()}var p,g=i(t.off);try{for(g.s();!(p=g.n()).done;){var m=p.value;this._groups.get(m).visible=!1}}catch(v){g.e(v)}finally{g.f()}}}return c(e,[{key:"isVisible",value:function(e){if("OCG"===e.type)return this._groups.has(e.id)?this._groups.get(e.id).visible:((0,r.warn)("Optional content group not found: ".concat(e.id)),!0);if("OCMD"===e.type){if(e.expression&&(0,r.warn)("Visibility expression not supported yet."),!e.policy||"AnyOn"===e.policy){var t,n=i(e.ids);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(!this._groups.has(o))return(0,r.warn)("Optional content group not found: ".concat(o)),!0;if(this._groups.get(o).visible)return!0}}catch(g){n.e(g)}finally{n.f()}return!1}if("AllOn"===e.policy){var a,s=i(e.ids);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(!this._groups.has(c))return(0,r.warn)("Optional content group not found: ".concat(c)),!0;if(!this._groups.get(c).visible)return!1}}catch(g){s.e(g)}finally{s.f()}return!0}if("AnyOff"===e.policy){var u,l=i(e.ids);try{for(l.s();!(u=l.n()).done;){var d=u.value;if(!this._groups.has(d))return(0,r.warn)("Optional content group not found: ".concat(d)),!0;if(!this._groups.get(d).visible)return!0}}catch(g){l.e(g)}finally{l.f()}return!1}if("AllOff"===e.policy){var f,h=i(e.ids);try{for(h.s();!(f=h.n()).done;){var p=f.value;if(!this._groups.has(p))return(0,r.warn)("Optional content group not found: ".concat(p)),!0;if(this._groups.get(p).visible)return!1}}catch(g){h.e(g)}finally{h.f()}return!0}return(0,r.warn)("Unknown optional content policy ".concat(e.policy,".")),!0}return(0,r.warn)("Unknown group type ".concat(e.type,".")),!0}},{key:"setVisibility",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._groups.has(e)?this._groups.get(e).visible=!!t:(0,r.warn)("Optional content group not found: ".concat(e))}},{key:"getOrder",value:function(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}},{key:"getGroups",value:function(){return this._groups.size?Object.fromEntries(this._groups):null}},{key:"getGroup",value:function(e){return this._groups.get(e)||null}}]),e}();t.OptionalContentConfig=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r=o(n(2)),i=n(5);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,c,"next",e)}function c(e){a(o,r,i,s,c,"throw",e)}s(void 0)}))}}function c(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}function u(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}var p=function(){function e(t,n){var r=this;d(this,e),(0,i.assert)(n,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=t.progressiveDone||!1;var o=t.initialData;if(o&&o.length>0){var a=new Uint8Array(o).buffer;this._queuedChunks.push(a)}this._pdfDataRangeTransport=n,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(e,t){r._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener((function(e,t){r._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(e){r._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){r._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}return h(e,[{key:"_onReceiveData",value:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var n=this._rangeReaders.some((function(n){return n._begin===e.begin&&(n._enqueue(t),!0)}));(0,i.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_onProgress",value:function(e){if(void 0===e.total){var t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{var n=this._fullRequestReader;n&&n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,i.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new g(this,e,this._progressiveDone)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=new m(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeReaders.slice(0);t.forEach((function(t){t.cancel(e)})),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFDataTransportStream=p;var g=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];d(this,e),this._stream=t,this._done=r||!1,this._filename=null,this._queuedChunks=n||[],this._loaded=0;var i,o=c(this._queuedChunks);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._loaded+=a.byteLength}}catch(s){o.e(s)}finally{o.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return h(e,[{key:"_enqueue",value:function(e){if(!this._done){if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e,done:!1})}else this._queuedChunks.push(e);this._loaded+=e.byteLength}}},{key:"read",value:function(){var e=s(r["default"].mark((function e(){var t,n;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return n=(0,i.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),e}(),m=function(){function e(t,n,r){d(this,e),this._stream=t,this._begin=n,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return h(e,[{key:"_enqueue",value:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{var t=this._requests.shift();t.resolve({value:e,done:!1}),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"read",value:function(){var e=s(r["default"].mark((function e(){var t,n;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,i.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var r=n(5);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var s=function(){function e(t){var n=t.enable,r=void 0!==n&&n;i(this,e),this._enabled=!0===r}return a(e,[{key:"composeSMask",value:function(e){var t=e.layer,n=e.mask,r=e.properties;return c.composeSMask(t,n,r)}},{key:"drawFigures",value:function(e){var t=e.width,n=e.height,r=e.backgroundColor,i=e.figures,o=e.context;return c.drawFigures(t,n,r,i,o)}},{key:"clear",value:function(){c.cleanup()}},{key:"isEnabled",get:function(){var e=this._enabled;return e&&(e=c.tryInitGL()),(0,r.shadow)(this,"isEnabled",e)}}]),e}();t.WebGLContext=s;var c=function(){function e(e,t,n){var r=e.createShader(n);e.shaderSource(r,t),e.compileShader(r);var i=e.getShaderParameter(r,e.COMPILE_STATUS);if(!i){var o=e.getShaderInfoLog(r);throw new Error("Error during shader compilation: "+o)}return r}function t(t,n){return e(t,n,t.VERTEX_SHADER)}function n(t,n){return e(t,n,t.FRAGMENT_SHADER)}function r(e,t){for(var n=e.createProgram(),r=0,i=t.length;r<i;++r)e.attachShader(n,t[r]);e.linkProgram(n);var o=e.getProgramParameter(n,e.LINK_STATUS);if(!o){var a=e.getProgramInfoLog(n);throw new Error("Error during program linking: "+a)}return n}function i(e,t,n){e.activeTexture(n);var r=e.createTexture();return e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),r}var o,a;function s(){o||(a=document.createElement("canvas"),o=a.getContext("webgl",{premultipliedalpha:!1}))}var c="  attribute vec2 a_position;                                      attribute vec2 a_texCoord;                                                                                                      uniform vec2 u_resolution;                                                                                                      varying vec2 v_texCoord;                                                                                                        void main() {                                                     vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0;       gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);                                                                              v_texCoord = a_texCoord;                                      }                                                             ",u="  precision mediump float;                                                                                                        uniform vec4 u_backdrop;                                        uniform int u_subtype;                                          uniform sampler2D u_image;                                      uniform sampler2D u_mask;                                                                                                       varying vec2 v_texCoord;                                                                                                        void main() {                                                     vec4 imageColor = texture2D(u_image, v_texCoord);               vec4 maskColor = texture2D(u_mask, v_texCoord);                 if (u_backdrop.a > 0.0) {                                         maskColor.rgb = maskColor.rgb * maskColor.a +                                   u_backdrop.rgb * (1.0 - maskColor.a);         }                                                               float lum;                                                      if (u_subtype == 0) {                                             lum = maskColor.a;                                            } else {                                                          lum = maskColor.r * 0.3 + maskColor.g * 0.59 +                        maskColor.b * 0.11;                                     }                                                               imageColor.a *= lum;                                            imageColor.rgb *= imageColor.a;                                 gl_FragColor = imageColor;                                    }                                                             ",l=null;function d(){var e,i;s(),e=a,a=null,i=o,o=null;var d=t(i,c),f=n(i,u),h=r(i,[d,f]);i.useProgram(h);var p={};p.gl=i,p.canvas=e,p.resolutionLocation=i.getUniformLocation(h,"u_resolution"),p.positionLocation=i.getAttribLocation(h,"a_position"),p.backdropLocation=i.getUniformLocation(h,"u_backdrop"),p.subtypeLocation=i.getUniformLocation(h,"u_subtype");var g=i.getAttribLocation(h,"a_texCoord"),m=i.getUniformLocation(h,"u_image"),v=i.getUniformLocation(h,"u_mask"),b=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,b),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(g),i.vertexAttribPointer(g,2,i.FLOAT,!1,0,0),i.uniform1i(m,0),i.uniform1i(v,1),l=p}function f(e,t,n){var r=e.width,o=e.height;l||d();var a=l,s=a.canvas,c=a.gl;s.width=r,s.height=o,c.viewport(0,0,c.drawingBufferWidth,c.drawingBufferHeight),c.uniform2f(a.resolutionLocation,r,o),n.backdrop?c.uniform4f(a.resolutionLocation,n.backdrop[0],n.backdrop[1],n.backdrop[2],1):c.uniform4f(a.resolutionLocation,0,0,0,0),c.uniform1i(a.subtypeLocation,"Luminosity"===n.subtype?1:0);var u=i(c,e,c.TEXTURE0),f=i(c,t,c.TEXTURE1),h=c.createBuffer();return c.bindBuffer(c.ARRAY_BUFFER,h),c.bufferData(c.ARRAY_BUFFER,new Float32Array([0,0,r,0,0,o,0,o,r,0,r,o]),c.STATIC_DRAW),c.enableVertexAttribArray(a.positionLocation),c.vertexAttribPointer(a.positionLocation,2,c.FLOAT,!1,0,0),c.clearColor(0,0,0,0),c.enable(c.BLEND),c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA),c.clear(c.COLOR_BUFFER_BIT),c.drawArrays(c.TRIANGLES,0,6),c.flush(),c.deleteTexture(u),c.deleteTexture(f),c.deleteBuffer(h),s}var h="  attribute vec2 a_position;                                      attribute vec3 a_color;                                                                                                         uniform vec2 u_resolution;                                      uniform vec2 u_scale;                                           uniform vec2 u_offset;                                                                                                          varying vec4 v_color;                                                                                                           void main() {                                                     vec2 position = (a_position + u_offset) * u_scale;              vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0;         gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);                                                                              v_color = vec4(a_color / 255.0, 1.0);                         }                                                             ",p="  precision mediump float;                                                                                                        varying vec4 v_color;                                                                                                           void main() {                                                     gl_FragColor = v_color;                                       }                                                             ",g=null;function m(){var e,i;s(),e=a,a=null,i=o,o=null;var c=t(i,h),u=n(i,p),l=r(i,[c,u]);i.useProgram(l);var d={};d.gl=i,d.canvas=e,d.resolutionLocation=i.getUniformLocation(l,"u_resolution"),d.scaleLocation=i.getUniformLocation(l,"u_scale"),d.offsetLocation=i.getUniformLocation(l,"u_offset"),d.positionLocation=i.getAttribLocation(l,"a_position"),d.colorLocation=i.getAttribLocation(l,"a_color"),g=d}function v(e,t,n,r,i){g||m();var o=g,a=o.canvas,s=o.gl;a.width=e,a.height=t,s.viewport(0,0,s.drawingBufferWidth,s.drawingBufferHeight),s.uniform2f(o.resolutionLocation,e,t);var c,u,l,d=0;for(c=0,u=r.length;c<u;c++)switch(r[c].type){case"lattice":l=r[c].coords.length/r[c].verticesPerRow|0,d+=(l-1)*(r[c].verticesPerRow-1)*6;break;case"triangles":d+=r[c].coords.length;break}var f=new Float32Array(2*d),h=new Uint8Array(3*d),p=i.coords,v=i.colors,b=0,y=0;for(c=0,u=r.length;c<u;c++){var x=r[c],_=x.coords,w=x.colors;switch(x.type){case"lattice":var D=x.verticesPerRow;l=_.length/D|0;for(var C=1;C<l;C++)for(var k=C*D+1,T=1;T<D;T++,k++)f[b]=p[_[k-D-1]],f[b+1]=p[_[k-D-1]+1],f[b+2]=p[_[k-D]],f[b+3]=p[_[k-D]+1],f[b+4]=p[_[k-1]],f[b+5]=p[_[k-1]+1],h[y]=v[w[k-D-1]],h[y+1]=v[w[k-D-1]+1],h[y+2]=v[w[k-D-1]+2],h[y+3]=v[w[k-D]],h[y+4]=v[w[k-D]+1],h[y+5]=v[w[k-D]+2],h[y+6]=v[w[k-1]],h[y+7]=v[w[k-1]+1],h[y+8]=v[w[k-1]+2],f[b+6]=f[b+2],f[b+7]=f[b+3],f[b+8]=f[b+4],f[b+9]=f[b+5],f[b+10]=p[_[k]],f[b+11]=p[_[k]+1],h[y+9]=h[y+3],h[y+10]=h[y+4],h[y+11]=h[y+5],h[y+12]=h[y+6],h[y+13]=h[y+7],h[y+14]=h[y+8],h[y+15]=v[w[k]],h[y+16]=v[w[k]+1],h[y+17]=v[w[k]+2],b+=12,y+=18;break;case"triangles":for(var S=0,A=_.length;S<A;S++)f[b]=p[_[S]],f[b+1]=p[_[S]+1],h[y]=v[w[S]],h[y+1]=v[w[S]+1],h[y+2]=v[w[S]+2],b+=2,y+=3;break}}n?s.clearColor(n[0]/255,n[1]/255,n[2]/255,1):s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT);var E=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,E),s.bufferData(s.ARRAY_BUFFER,f,s.STATIC_DRAW),s.enableVertexAttribArray(o.positionLocation),s.vertexAttribPointer(o.positionLocation,2,s.FLOAT,!1,0,0);var U=s.createBuffer();return s.bindBuffer(s.ARRAY_BUFFER,U),s.bufferData(s.ARRAY_BUFFER,h,s.STATIC_DRAW),s.enableVertexAttribArray(o.colorLocation),s.vertexAttribPointer(o.colorLocation,3,s.UNSIGNED_BYTE,!1,0,0),s.uniform2f(o.scaleLocation,i.scaleX,i.scaleY),s.uniform2f(o.offsetLocation,i.offsetX,i.offsetY),s.drawArrays(s.TRIANGLES,0,d),s.flush(),s.deleteBuffer(E),s.deleteBuffer(U),a}return{tryInitGL:function(){try{return s(),!!o}catch(e){}return!1},composeSMask:f,drawFigures:v,cleanup:function(){l&&l.canvas&&(l.canvas.width=0,l.canvas.height=0),g&&g.canvas&&(g.canvas.width=0,g.canvas.height=0),l=null,g=null}}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var r=n(1),i=n(5),o=n(205);function a(e,t,n){return a="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=s(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}},a(e,t,n||e)}function s(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=b(e),null===e)break;return e}function c(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}function u(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){var t=v();return function(){var n,r=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}var w=function(){function e(){y(this,e)}return _(e,null,[{key:"create",value:function(e){var t=e.data.annotationType;switch(t){case i.AnnotationType.LINK:return new C(e);case i.AnnotationType.TEXT:return new k(e);case i.AnnotationType.WIDGET:var n=e.data.fieldType;switch(n){case"Tx":return new S(e);case"Btn":return e.data.radioButton?new E(e):e.data.checkBox?new A(e):new U(e);case"Ch":return new O(e)}return new T(e);case i.AnnotationType.POPUP:return new F(e);case i.AnnotationType.FREETEXT:return new R(e);case i.AnnotationType.LINE:return new N(e);case i.AnnotationType.SQUARE:return new M(e);case i.AnnotationType.CIRCLE:return new I(e);case i.AnnotationType.POLYLINE:return new B(e);case i.AnnotationType.CARET:return new z(e);case i.AnnotationType.INK:return new W(e);case i.AnnotationType.POLYGON:return new L(e);case i.AnnotationType.HIGHLIGHT:return new j(e);case i.AnnotationType.UNDERLINE:return new H(e);case i.AnnotationType.SQUIGGLY:return new V(e);case i.AnnotationType.STRIKEOUT:return new q(e);case i.AnnotationType.STAMP:return new $(e);case i.AnnotationType.FILEATTACHMENT:return new G(e);default:return new D(e)}}}]),e}(),D=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];y(this,e),this.isRenderable=n,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,n&&(this.container=this._createContainer(r))}return _(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,n=this.page,r=this.viewport,o=document.createElement("section"),a=t.rect[2]-t.rect[0],s=t.rect[3]-t.rect[1];o.setAttribute("data-annotation-id",t.id);var c=i.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(o.style.transform="matrix(".concat(r.transform.join(","),")"),o.style.transformOrigin="-".concat(c[0],"px -").concat(c[1],"px"),!e&&t.borderStyle.width>0){o.style.borderWidth="".concat(t.borderStyle.width,"px"),t.borderStyle.style!==i.AnnotationBorderStyleType.UNDERLINE&&(a-=2*t.borderStyle.width,s-=2*t.borderStyle.width);var u=t.borderStyle.horizontalCornerRadius,l=t.borderStyle.verticalCornerRadius;if(u>0||l>0){var d="".concat(u,"px / ").concat(l,"px");o.style.borderRadius=d}switch(t.borderStyle.style){case i.AnnotationBorderStyleType.SOLID:o.style.borderStyle="solid";break;case i.AnnotationBorderStyleType.DASHED:o.style.borderStyle="dashed";break;case i.AnnotationBorderStyleType.BEVELED:(0,i.warn)("Unimplemented border style: beveled");break;case i.AnnotationBorderStyleType.INSET:(0,i.warn)("Unimplemented border style: inset");break;case i.AnnotationBorderStyleType.UNDERLINE:o.style.borderBottomStyle="solid";break;default:break}t.color?o.style.borderColor=i.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):o.style.borderWidth=0}return o.style.left="".concat(c[0],"px"),o.style.top="".concat(c[1],"px"),o.style.width="".concat(a,"px"),o.style.height="".concat(s,"px"),o}},{key:"_createPopup",value:function(e,t,n){t||(t=document.createElement("div"),t.style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var r=new P({container:e,trigger:t,color:n.color,title:n.title,modificationDate:n.modificationDate,contents:n.contents,hideWrapper:!0}),i=r.render();i.style.left=e.style.width,e.appendChild(i)}},{key:"render",value:function(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}}]),e}(),C=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.url||e.data.dest||e.data.action);return t.call(this,e,r)}return _(n,[{key:"render",value:function(){this.container.className="linkAnnotation";var e=this.data,t=this.linkService,n=document.createElement("a");return e.url?(0,r.addLinkAttributes)(n,{url:e.url,target:e.newWindow?r.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(n,e.action):this._bindLink(n,e.dest),this.container.appendChild(n),this.container}},{key:"_bindLink",value:function(e,t){var n=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&n.linkService.navigateTo(t),!1},t&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var n=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return n.linkService.executeNamedAction(t),!1},e.className="internalLink"}}]),n}(D),k=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r)}return _(n,[{key:"render",value:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}]),n}(D),T=function(e){f(n,e);var t=p(n);function n(){return y(this,n),t.apply(this,arguments)}return _(n,[{key:"render",value:function(){return this.container}}]),n}(D),S=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return t.call(this,e,r)}return _(n,[{key:"render",value:function(){var e=["left","center","right"],t=this.annotationStorage,n=this.data.id;this.container.className="textWidgetAnnotation";var r=null;if(this.renderInteractiveForms){var i=t.getOrCreateValue(n,this.data.fieldValue);if(this.data.multiLine?(r=document.createElement("textarea"),r.textContent=i):(r=document.createElement("input"),r.type="text",r.setAttribute("value",i)),r.addEventListener("input",(function(e){t.setValue(n,e.target.value)})),r.disabled=this.data.readOnly,r.name=this.data.fieldName,null!==this.data.maxLen&&(r.maxLength=this.data.maxLen),this.data.comb){var o=this.data.rect[2]-this.data.rect[0],a=o/this.data.maxLen;r.classList.add("comb"),r.style.letterSpacing="calc(".concat(a,"px - 1ch)")}}else{r=document.createElement("div"),r.textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell";var s=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(s=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(r,s)}return null!==this.data.textAlignment&&(r.style.textAlign=e[this.data.textAlignment]),this.container.appendChild(r),this.container}},{key:"_setTextStyle",value:function(e,t){var n=e.style;if(n.fontSize="".concat(this.data.fontSize,"px"),n.direction=this.data.fontDirection<0?"rtl":"ltr",t){var r="normal";t.black?r="900":t.bold&&(r="bold"),n.fontWeight=r,n.fontStyle=t.italic?"italic":"normal";var i=t.loadedName?'"'.concat(t.loadedName,'", '):"",o=t.fallbackName||"Helvetica, sans-serif";n.fontFamily=i+o}}}]),n}(T),A=function(e){f(n,e);var t=p(n);function n(e){return y(this,n),t.call(this,e,e.renderInteractiveForms)}return _(n,[{key:"render",value:function(){var e=this.annotationStorage,t=this.data,n=t.id,r=e.getOrCreateValue(n,t.fieldValue&&"Off"!==t.fieldValue);this.container.className="buttonWidgetAnnotation checkBox";var i=document.createElement("input");return i.disabled=t.readOnly,i.type="checkbox",i.name=this.data.fieldName,r&&i.setAttribute("checked",!0),i.addEventListener("change",(function(t){e.setValue(n,t.target.checked)})),this.container.appendChild(i),this.container}}]),n}(T),E=function(e){f(n,e);var t=p(n);function n(e){return y(this,n),t.call(this,e,e.renderInteractiveForms)}return _(n,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var e=this.annotationStorage,t=this.data,n=t.id,r=e.getOrCreateValue(n,t.fieldValue===t.buttonValue),i=document.createElement("input");return i.disabled=t.readOnly,i.type="radio",i.name=t.fieldName,r&&i.setAttribute("checked",!0),i.addEventListener("change",(function(t){var r,i=t.target.name,o=c(document.getElementsByName(i));try{for(o.s();!(r=o.n()).done;){var a=r.value;a!==t.target&&e.setValue(a.parentNode.getAttribute("data-annotation-id"),!1)}}catch(s){o.e(s)}finally{o.f()}e.setValue(n,t.target.checked)})),this.container.appendChild(i),this.container}}]),n}(T),U=function(e){f(n,e);var t=p(n);function n(){return y(this,n),t.apply(this,arguments)}return _(n,[{key:"render",value:function(){var e=a(b(n.prototype),"render",this).call(this);return e.className="buttonWidgetAnnotation pushButton",e}}]),n}(C),O=function(e){f(n,e);var t=p(n);function n(e){return y(this,n),t.call(this,e,e.renderInteractiveForms)}return _(n,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var e=this.annotationStorage,t=this.data.id;e.getOrCreateValue(t,this.data.fieldValue.length>0?this.data.fieldValue[0]:null);var n=document.createElement("select");n.disabled=this.data.readOnly,n.name=this.data.fieldName,this.data.combo||(n.size=this.data.options.length,this.data.multiSelect&&(n.multiple=!0));var r,i=c(this.data.options);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=document.createElement("option");a.textContent=o.displayValue,a.value=o.exportValue,this.data.fieldValue.includes(o.exportValue)&&a.setAttribute("selected",!0),n.appendChild(a)}}catch(s){i.e(s)}finally{i.f()}return n.addEventListener("input",(function(n){var r=n.target.options,i=r[r.selectedIndex].value;e.setValue(t,i)})),this.container.appendChild(n),this.container}}]),n}(T),F=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!(!e.data.title&&!e.data.contents);return t.call(this,e,r)}return _(n,[{key:"render",value:function(){var e=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",e.includes(this.data.parentType))return this.container;var t='[data-annotation-id="'.concat(this.data.parentId,'"]'),n=this.layer.querySelector(t);if(!n)return this.container;var r=new P({container:this.container,trigger:n,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),i=parseFloat(n.style.left),o=parseFloat(n.style.width);return this.container.style.transformOrigin="-".concat(i+o,"px -").concat(n.style.top),this.container.style.left="".concat(i+o,"px"),this.container.appendChild(r.render()),this.container}}]),n}(D),P=function(){function e(t){y(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.modificationDate=t.modificationDate,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}return _(e,[{key:"render",value:function(){var e=.7,t=document.createElement("div");t.className="popupWrapper",this.hideElement=this.hideWrapper?t:this.container,this.hideElement.setAttribute("hidden",!0);var n=document.createElement("div");n.className="popup";var o=this.color;if(o){var a=e*(255-o[0])+o[0],s=e*(255-o[1])+o[1],c=e*(255-o[2])+o[2];n.style.backgroundColor=i.Util.makeCssRgb(0|a,0|s,0|c)}var u=document.createElement("h1");u.textContent=this.title,n.appendChild(u);var l=r.PDFDateString.toDateObject(this.modificationDate);if(l){var d=document.createElement("span");d.textContent="{{date}}, {{time}}",d.dataset.l10nId="annotation_date_string",d.dataset.l10nArgs=JSON.stringify({date:l.toLocaleDateString(),time:l.toLocaleTimeString()}),n.appendChild(d)}var f=this._formatContents(this.contents);return n.appendChild(f),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),n.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(n),t}},{key:"_formatContents",value:function(e){for(var t=document.createElement("p"),n=e.split(/(?:\r\n?|\n)/),r=0,i=n.length;r<i;++r){var o=n[r];t.appendChild(document.createTextNode(o)),r<i-1&&t.appendChild(document.createElement("br"))}return t}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),e}(),R=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _(n,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(D),N=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _(n,[{key:"render",value:function(){this.container.className="lineAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),i.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),i.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),i.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),r.appendChild(i),this.container.append(r),this._createPopup(this.container,i,e),this.container}}]),n}(D),M=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _(n,[{key:"render",value:function(){this.container.className="squareAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),i=e.borderStyle.width,o=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",i/2),o.setAttribute("y",i/2),o.setAttribute("width",t-i),o.setAttribute("height",n-i),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),r.appendChild(o),this.container.append(r),this._createPopup(this.container,o,e),this.container}}]),n}(D),I=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _(n,[{key:"render",value:function(){this.container.className="circleAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),i=e.borderStyle.width,o=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",t/2),o.setAttribute("cy",n/2),o.setAttribute("rx",t/2-i/2),o.setAttribute("ry",n/2-i/2),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),r.appendChild(o),this.container.append(r),this._createPopup(this.container,o,e),this.container}}]),n}(D),B=function(e){f(n,e);var t=p(n);function n(e){var r;y(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return r=t.call(this,e,i,!0),r.containerClassName="polylineAnnotation",r.svgElementName="svg:polyline",r}return _(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,n=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],i=this.svgFactory.create(n,r),o=[],a=c(t.vertices);try{for(a.s();!(e=a.n()).done;){var s=e.value,u=s.x-t.rect[0],l=t.rect[3]-s.y;o.push(u+","+l)}}catch(f){a.e(f)}finally{a.f()}o=o.join(" ");var d=this.svgFactory.createElement(this.svgElementName);return d.setAttribute("points",o),d.setAttribute("stroke-width",t.borderStyle.width||1),d.setAttribute("stroke","transparent"),d.setAttribute("fill","none"),i.appendChild(d),this.container.append(i),this._createPopup(this.container,d,t),this.container}}]),n}(D),L=function(e){f(n,e);var t=p(n);function n(e){var r;return y(this,n),r=t.call(this,e),r.containerClassName="polygonAnnotation",r.svgElementName="svg:polygon",r}return n}(B),z=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _(n,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(D),W=function(e){f(n,e);var t=p(n);function n(e){var r;y(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return r=t.call(this,e,i,!0),r.containerClassName="inkAnnotation",r.svgElementName="svg:polyline",r}return _(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,n=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],i=this.svgFactory.create(n,r),o=c(t.inkLists);try{for(o.s();!(e=o.n()).done;){var a,s=e.value,u=[],l=c(s);try{for(l.s();!(a=l.n()).done;){var d=a.value,f=d.x-t.rect[0],h=t.rect[3]-d.y;u.push("".concat(f,",").concat(h))}}catch(g){l.e(g)}finally{l.f()}u=u.join(" ");var p=this.svgFactory.createElement(this.svgElementName);p.setAttribute("points",u),p.setAttribute("stroke-width",t.borderStyle.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","none"),this._createPopup(this.container,p,t),i.appendChild(p)}}catch(g){o.e(g)}finally{o.f()}return this.container.append(i),this.container}}]),n}(D),j=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _(n,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(D),H=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _(n,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(D),V=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _(n,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(D),q=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _(n,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(D),$=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return _(n,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(D),G=function(e){f(n,e);var t=p(n);function n(e){var o;y(this,n),o=t.call(this,e,!0);var a=o.data.file,s=a.filename,c=a.content;return o.filename=(0,r.getFilenameFromUrl)(s),o.content=c,o.linkService.eventBus&&o.linkService.eventBus.dispatch("fileattachmentannotation",{source:m(o),id:(0,i.stringToPDFString)(s),filename:s,content:c}),o}return _(n,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,i.warn)("Download cannot be started due to unavailable download manager")}}]),n}(D),X=function(){function e(){y(this,e)}return _(e,null,[{key:"render",value:function(e){var t,n=[],a=[],s=c(e.annotations);try{for(s.s();!(t=s.n()).done;){var u=t.value;u&&(u.annotationType!==i.AnnotationType.POPUP?n.push(u):a.push(u))}}catch(p){s.e(p)}finally{s.f()}a.length&&n.push.apply(n,a);for(var l=0,d=n;l<d.length;l++){var f=d[l],h=w.create({data:f,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderInteractiveForms:"boolean"!==typeof e.renderInteractiveForms||e.renderInteractiveForms,svgFactory:new r.DOMSVGFactory,annotationStorage:e.annotationStorage||new o.AnnotationStorage});h.isRenderable&&e.div.appendChild(h.render())}}},{key:"update",value:function(e){var t,n=c(e.annotations);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=e.div.querySelector('[data-annotation-id="'.concat(r.id,'"]'));i&&(i.style.transform="matrix(".concat(e.viewport.transform.join(","),")"))}}catch(o){n.e(o)}finally{n.f()}e.div.removeAttribute("hidden")}}]),e}();t.AnnotationLayer=X},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var r=n(5),i=function(){var e=1e5,t=/\S/;function n(e){return!t.test(e)}function i(e,t,i){var o=document.createElement("span"),a={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(e._textDivs.push(o),n(t.str))return a.isWhitespace=!0,void e._textDivProperties.set(o,a);var s=r.Util.transform(e._viewport.transform,t.transform),c=Math.atan2(s[1],s[0]),u=i[t.fontName];u.vertical&&(c+=Math.PI/2);var l,d,f=Math.sqrt(s[2]*s[2]+s[3]*s[3]),h=f;u.ascent?h=u.ascent*h:u.descent&&(h=(1+u.descent)*h),0===c?(l=s[4],d=s[5]-h):(l=s[4]+h*Math.sin(c),d=s[5]-h*Math.cos(c)),o.style.left="".concat(l,"px"),o.style.top="".concat(d,"px"),o.style.fontSize="".concat(f,"px"),o.style.fontFamily=u.fontFamily,o.textContent=t.str,e._fontInspectorEnabled&&(o.dataset.fontName=t.fontName),0!==c&&(a.angle=c*(180/Math.PI));var p=!1;if(t.str.length>1)p=!0;else if(t.transform[0]!==t.transform[3]){var g=Math.abs(t.transform[0]),m=Math.abs(t.transform[3]);g!==m&&Math.max(g,m)/Math.min(g,m)>1.5&&(p=!0)}if(p&&(u.vertical?a.canvasWidth=t.height*e._viewport.scale:a.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(o,a),e._textContentStream&&e._layoutText(o),e._enhanceTextSelection){var v=1,b=0;0!==c&&(v=Math.cos(c),b=Math.sin(c));var y,x,_=(u.vertical?t.height:t.width)*e._viewport.scale,w=f;0!==c?(y=[v,b,-b,v,l,d],x=r.Util.getAxialAlignedBoundingBox([0,0,_,w],y)):x=[l,d,l+_,d+w],e._bounds.push({left:x[0],top:x[1],right:x[2],bottom:x[3],div:o,size:[_,w],m:y})}}function o(t){if(!t._canceled){var n=t._textDivs,r=t._capability,i=n.length;if(i>e)return t._renderingDone=!0,void r.resolve();if(!t._textContentStream)for(var o=0;o<i;o++)t._layoutText(n[o]);t._renderingDone=!0,r.resolve()}}function a(e,t,n){for(var r=0,i=0;i<n;i++){var o=e[t++];o>0&&(r=r?Math.min(o,r):o)}return r}function s(e){for(var t=e._bounds,n=e._viewport,i=c(n.width,n.height,t),o=0;o<i.length;o++){var s=t[o].div,u=e._textDivProperties.get(s);if(0!==u.angle){var l=i[o],d=t[o],f=d.m,h=f[0],p=f[1],g=[[0,0],[0,d.size[1]],[d.size[0],0],d.size],m=new Float64Array(64);g.forEach((function(e,t){var n=r.Util.applyTransform(e,f);m[t+0]=h&&(l.left-n[0])/h,m[t+4]=p&&(l.top-n[1])/p,m[t+8]=h&&(l.right-n[0])/h,m[t+12]=p&&(l.bottom-n[1])/p,m[t+16]=p&&(l.left-n[0])/-p,m[t+20]=h&&(l.top-n[1])/h,m[t+24]=p&&(l.right-n[0])/-p,m[t+28]=h&&(l.bottom-n[1])/h,m[t+32]=h&&(l.left-n[0])/-h,m[t+36]=p&&(l.top-n[1])/-p,m[t+40]=h&&(l.right-n[0])/-h,m[t+44]=p&&(l.bottom-n[1])/-p,m[t+48]=p&&(l.left-n[0])/p,m[t+52]=h&&(l.top-n[1])/-h,m[t+56]=p&&(l.right-n[0])/p,m[t+60]=h&&(l.bottom-n[1])/-h}));var v=1+Math.min(Math.abs(h),Math.abs(p));u.paddingLeft=a(m,32,16)/v,u.paddingTop=a(m,48,16)/v,u.paddingRight=a(m,0,16)/v,u.paddingBottom=a(m,16,16)/v,e._textDivProperties.set(s,u)}else u.paddingLeft=t[o].left-i[o].left,u.paddingTop=t[o].top-i[o].top,u.paddingRight=i[o].right-t[o].right,u.paddingBottom=i[o].bottom-t[o].bottom,e._textDivProperties.set(s,u)}}function c(e,t,n){var r=n.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));u(e,r);var i=new Array(n.length);return r.forEach((function(e){var t=e.index;i[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}})),n.map((function(t,n){var o=i[n],a=r[n];a.x1=t.top,a.y1=e-o.right,a.x2=t.bottom,a.y2=e-o.left,a.index=n,a.x1New=void 0,a.x2New=void 0})),u(t,r),r.forEach((function(e){var t=e.index;i[t].top=e.x1New,i[t].bottom=e.x2New})),i}function u(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));var n={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},r=[{start:-1/0,end:1/0,boundary:n}];t.forEach((function(e){var t=0;while(t<r.length&&r[t].end<=e.y1)t++;var n,i,o=r.length-1;while(o>=0&&r[o].start>=e.y2)o--;var a,s,c=-1/0;for(a=t;a<=o;a++){var u;n=r[a],i=n.boundary,u=i.x2>e.x1?i.index>e.index?i.x1New:e.x1:void 0===i.x2New?(i.x2+e.x1)/2:i.x2New,u>c&&(c=u)}for(e.x1New=c,a=t;a<=o;a++)n=r[a],i=n.boundary,void 0===i.x2New?i.x2>e.x1?i.index>e.index&&(i.x2New=i.x2):i.x2New=c:i.x2New>c&&(i.x2New=Math.max(c,i.x2));var l=[],d=null;for(a=t;a<=o;a++){n=r[a],i=n.boundary;var f=i.x2>e.x2?i:e;d===f?l[l.length-1].end=n.end:(l.push({start:n.start,end:n.end,boundary:f}),d=f)}for(r[t].start<e.y1&&(l[0].start=e.y1,l.unshift({start:r[t].start,end:e.y1,boundary:r[t].boundary})),e.y2<r[o].end&&(l[l.length-1].end=e.y2,l.push({start:e.y2,end:r[o].end,boundary:r[o].boundary})),a=t;a<=o;a++)if(n=r[a],i=n.boundary,void 0===i.x2New){var h=!1;for(s=t-1;!h&&s>=0&&r[s].start>=i.y1;s--)h=r[s].boundary===i;for(s=o+1;!h&&s<r.length&&r[s].end<=i.y2;s++)h=r[s].boundary===i;for(s=0;!h&&s<l.length;s++)h=l[s].boundary===i;h||(i.x2New=c)}Array.prototype.splice.apply(r,[t,o-t+1].concat(l))})),r.forEach((function(t){var n=t.boundary;void 0===n.x2New&&(n.x2New=Math.max(e,n.x2))}))}function l(e){var t=this,n=e.textContent,i=e.textContentStream,o=e.container,a=e.viewport,s=e.textDivs,c=e.textContentItemsStr,u=e.enhanceTextSelection;this._textContent=n,this._textContentStream=i,this._container=o,this._document=o.ownerDocument,this._viewport=a,this._textDivs=s||[],this._textContentItemsStr=c||[],this._enhanceTextSelection=!!u,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,r.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise["finally"]((function(){t._layoutTextCtx&&(t._layoutTextCtx.canvas.width=0,t._layoutTextCtx.canvas.height=0,t._layoutTextCtx=null)}))["catch"]((function(){}))}function d(e){var t=new l({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}return l.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(e,t){for(var n=0,r=e.length;n<r;n++)this._textContentItemsStr.push(e[n].str),i(this,e[n],t)},_layoutText:function(e){var t=this._textDivProperties.get(e);if(!t.isWhitespace){var n="";if(0!==t.canvasWidth){var r=e.style,i=r.fontSize,o=r.fontFamily;i===this._layoutTextLastFontSize&&o===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(i," ").concat(o),this._layoutTextLastFontSize=i,this._layoutTextLastFontFamily=o);var a=this._layoutTextCtx.measureText(e.textContent),s=a.width;s>0&&(t.scale=t.canvasWidth/s,n="scaleX(".concat(t.scale,")"))}0!==t.angle&&(n="rotate(".concat(t.angle,"deg) ").concat(n)),n.length>0&&(this._enhanceTextSelection&&(t.originalTransform=n),e.style.transform=n),this._textDivProperties.set(e,t),this._container.appendChild(e)}},_render:function(e){var t=this,n=(0,r.createPromiseCapability)(),i=Object.create(null),a=this._document.createElement("canvas");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,c=this._textContent.styles;this._processItems(s,c),n.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');var u=function e(){t._reader.read().then((function(r){var o=r.value,a=r.done;a?n.resolve():(Object.assign(i,o.styles),t._processItems(o.items,i),e())}),n.reject)};this._reader=this._textContentStream.getReader(),u()}n.promise.then((function(){i=null,e?t._renderTimer=setTimeout((function(){o(t),t._renderTimer=null}),e):o(t)}),this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(s(this),this._bounds=null);for(var t=[],n=[],r=0,i=this._textDivs.length;r<i;r++){var o=this._textDivs[r],a=this._textDivProperties.get(o);a.isWhitespace||(e?(t.length=0,n.length=0,a.originalTransform&&t.push(a.originalTransform),a.paddingTop>0?(n.push("".concat(a.paddingTop,"px")),t.push("translateY(".concat(-a.paddingTop,"px)"))):n.push(0),a.paddingRight>0?n.push("".concat(a.paddingRight/a.scale,"px")):n.push(0),a.paddingBottom>0?n.push("".concat(a.paddingBottom,"px")):n.push(0),a.paddingLeft>0?(n.push("".concat(a.paddingLeft/a.scale,"px")),t.push("translateX(".concat(-a.paddingLeft/a.scale,"px)"))):n.push(0),o.style.padding=n.join(" "),t.length&&(o.style.transform=t.join(" "))):(o.style.padding=null,o.style.transform=a.originalTransform))}}}},d}();t.renderTextLayer=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(5),i=n(1),o=n(7);function a(e){return u(e)||c(e)||g(e)||s()}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e){if(Array.isArray(e))return m(e)}function l(e,t){return h(e)||f(e,t)||g(e,t)||d()}function d(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){i=!0,o=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function h(e){if(Array.isArray(e))return e}function p(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}function g(e,t){if(e){if("string"===typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}var x=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=x;var _=function(e){var t,n=[],r=[],i=p(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;"save"!==o.fn?"restore"===o.fn?n=r.pop():n.push(o):(n.push({fnId:92,fn:"group",items:[]}),r.push(n),n=n[n.length-1].items)}}catch(a){i.e(a)}finally{i.f()}return n},w=function(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)},D=function(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(w(e[0])," ").concat(w(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(w(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(w(e[4])," ").concat(w(e[5]),")");return"matrix(".concat(w(e[0])," ").concat(w(e[1])," ").concat(w(e[2])," ").concat(w(e[3])," ").concat(w(e[4])," ")+"".concat(w(e[5]),")")},C={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},k="http://www.w3.org/XML/1998/namespace",T="http://www.w3.org/1999/xlink",S=["butt","round","square"],A=["miter","round","bevel"],E=function(){for(var e=new Uint8Array([137,80,78,71,13,10,26,10]),t=12,n=new Int32Array(256),i=0;i<256;i++){for(var a=i,s=0;s<8;s++)a=1&a?3988292384^a>>1&2147483647:a>>1&2147483647;n[i]=a}function c(e,t,r){for(var i=-1,o=t;o<r;o++){var a=255&(i^e[o]),s=n[a];i=i>>>8^s}return-1^i}function u(e,t,n,r){var i=r,o=t.length;n[i]=o>>24&255,n[i+1]=o>>16&255,n[i+2]=o>>8&255,n[i+3]=255&o,i+=4,n[i]=255&e.charCodeAt(0),n[i+1]=255&e.charCodeAt(1),n[i+2]=255&e.charCodeAt(2),n[i+3]=255&e.charCodeAt(3),i+=4,n.set(t,i),i+=t.length;var a=c(n,r+4,i);n[i]=a>>24&255,n[i+1]=a>>16&255,n[i+2]=a>>8&255,n[i+3]=255&a}function l(e,t,n){for(var r=1,i=0,o=t;o<n;++o)r=(r+(255&e[o]))%65521,i=(i+r)%65521;return i<<16|r}function d(e){if(!o.isNodeJS)return f(e);try{var t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);var n=__webpack_require__(3).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(i){(0,r.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+i)}return f(e)}function f(e){var t=e.length,n=65535,r=Math.ceil(t/n),i=new Uint8Array(2+t+5*r+4),o=0;i[o++]=120,i[o++]=156;var a=0;while(t>n)i[o++]=0,i[o++]=255,i[o++]=255,i[o++]=0,i[o++]=0,i.set(e.subarray(a,a+n),o),o+=n,a+=n,t-=n;i[o++]=1,i[o++]=255&t,i[o++]=t>>8&255,i[o++]=255&~t,i[o++]=(65535&~t)>>8&255,i.set(e.subarray(a),o),o+=e.length-a;var s=l(e,0,e.length);return i[o++]=s>>24&255,i[o++]=s>>16&255,i[o++]=s>>8&255,i[o++]=255&s,i}function h(n,i,o,a){var s,c,l,f=n.width,h=n.height,p=n.data;switch(i){case r.ImageKind.GRAYSCALE_1BPP:c=0,s=1,l=f+7>>3;break;case r.ImageKind.RGB_24BPP:c=2,s=8,l=3*f;break;case r.ImageKind.RGBA_32BPP:c=6,s=8,l=4*f;break;default:throw new Error("invalid format")}for(var g=new Uint8Array((1+l)*h),m=0,v=0,b=0;b<h;++b)g[m++]=0,g.set(p.subarray(v,v+l),m),v+=l,m+=l;if(i===r.ImageKind.GRAYSCALE_1BPP&&a){m=0;for(var y=0;y<h;y++){m++;for(var x=0;x<l;x++)g[m++]^=255}}var _=new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,h>>24&255,h>>16&255,h>>8&255,255&h,s,c,0,0,0]),w=d(g),D=e.length+3*t+_.length+w.length,C=new Uint8Array(D),k=0;return C.set(e,k),k+=e.length,u("IHDR",_,C,k),k+=t+_.length,u("IDATA",w,C,k),k+=t+w.length,u("IEND",new Uint8Array(0),C,k),(0,r.createObjectURL)(C,"image/png",o)}return function(e,t,n){var i=void 0===e.kind?r.ImageKind.GRAYSCALE_1BPP:e.kind;return h(e,i,t,n)}}(),U=function(){function e(){v(this,e),this.fontSizeScale=1,this.fontWeight=C.fontWeight,this.fontSize=0,this.textMatrix=r.IDENTITY_MATRIX,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=r.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=C.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return y(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}(),O=0,F=0,P=0;t.SVGGraphics=x=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var a in v(this,e),this.svgFactory=new i.DOMSVGFactory,this.current=new U,this.transformMatrix=r.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=n,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!o,this._operatorIdMapping=[],r.OPS)this._operatorIdMapping[r.OPS[a]]=a}return y(e,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,n=e.fnArray,i=e.argsArray,o=0,a=n.length;o<a;o++)if(n[o]===r.OPS.dependency){var s,c=p(i[o]);try{var u=function(){var e=s.value,n=e.startsWith("g_")?t.commonObjs:t.objs,r=new Promise((function(t){n.get(e,t)}));t.current.dependencies.push(r)};for(c.s();!(s=c.n()).done;)u()}catch(l){c.e(l)}finally{c.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(e,t,n,i,o,a){var s=[e,t,n,i,o,a];this.transformMatrix=r.Util.transform(this.transformMatrix,s),this.tgrp=null}},{key:"getSVG",value:function(e,t){var n=this;this.viewport=t;var i=this._initialize(t);return this.loadDependencies(e).then((function(){return n.transformMatrix=r.IDENTITY_MATRIX,n.executeOpTree(n.convertOpList(e)),i}))}},{key:"convertOpList",value:function(e){for(var t=this._operatorIdMapping,n=e.argsArray,r=e.fnArray,i=[],o=0,a=r.length;o<a;o++){var s=r[o];i.push({fnId:s,fn:t[s],args:n[o]})}return _(i)}},{key:"executeOpTree",value:function(e){var t,n=p(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,o=i.fn,a=i.fnId,s=i.args;switch(0|a){case r.OPS.beginText:this.beginText();break;case r.OPS.dependency:break;case r.OPS.setLeading:this.setLeading(s);break;case r.OPS.setLeadingMoveText:this.setLeadingMoveText(s[0],s[1]);break;case r.OPS.setFont:this.setFont(s);break;case r.OPS.showText:this.showText(s[0]);break;case r.OPS.showSpacedText:this.showText(s[0]);break;case r.OPS.endText:this.endText();break;case r.OPS.moveText:this.moveText(s[0],s[1]);break;case r.OPS.setCharSpacing:this.setCharSpacing(s[0]);break;case r.OPS.setWordSpacing:this.setWordSpacing(s[0]);break;case r.OPS.setHScale:this.setHScale(s[0]);break;case r.OPS.setTextMatrix:this.setTextMatrix(s[0],s[1],s[2],s[3],s[4],s[5]);break;case r.OPS.setTextRise:this.setTextRise(s[0]);break;case r.OPS.setTextRenderingMode:this.setTextRenderingMode(s[0]);break;case r.OPS.setLineWidth:this.setLineWidth(s[0]);break;case r.OPS.setLineJoin:this.setLineJoin(s[0]);break;case r.OPS.setLineCap:this.setLineCap(s[0]);break;case r.OPS.setMiterLimit:this.setMiterLimit(s[0]);break;case r.OPS.setFillRGBColor:this.setFillRGBColor(s[0],s[1],s[2]);break;case r.OPS.setStrokeRGBColor:this.setStrokeRGBColor(s[0],s[1],s[2]);break;case r.OPS.setStrokeColorN:this.setStrokeColorN(s);break;case r.OPS.setFillColorN:this.setFillColorN(s);break;case r.OPS.shadingFill:this.shadingFill(s[0]);break;case r.OPS.setDash:this.setDash(s[0],s[1]);break;case r.OPS.setRenderingIntent:this.setRenderingIntent(s[0]);break;case r.OPS.setFlatness:this.setFlatness(s[0]);break;case r.OPS.setGState:this.setGState(s[0]);break;case r.OPS.fill:this.fill();break;case r.OPS.eoFill:this.eoFill();break;case r.OPS.stroke:this.stroke();break;case r.OPS.fillStroke:this.fillStroke();break;case r.OPS.eoFillStroke:this.eoFillStroke();break;case r.OPS.clip:this.clip("nonzero");break;case r.OPS.eoClip:this.clip("evenodd");break;case r.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case r.OPS.paintImageXObject:this.paintImageXObject(s[0]);break;case r.OPS.paintInlineImageXObject:this.paintInlineImageXObject(s[0]);break;case r.OPS.paintImageMaskXObject:this.paintImageMaskXObject(s[0]);break;case r.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(s[0],s[1]);break;case r.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case r.OPS.closePath:this.closePath();break;case r.OPS.closeStroke:this.closeStroke();break;case r.OPS.closeFillStroke:this.closeFillStroke();break;case r.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case r.OPS.nextLine:this.nextLine();break;case r.OPS.transform:this.transform(s[0],s[1],s[2],s[3],s[4],s[5]);break;case r.OPS.constructPath:this.constructPath(s[0],s[1]);break;case r.OPS.endPath:this.endPath();break;case 92:this.group(i.items);break;default:(0,r.warn)("Unimplemented operator ".concat(o));break}}}catch(c){n.e(c)}finally{n.f()}}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(e,t,n,r,i,o){var a=this.current;a.textMatrix=a.lineMatrix=[e,t,n,r,i,o],a.textMatrixScale=Math.sqrt(e*e+t*t),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size","".concat(w(a.fontSize),"px")),a.tspan.setAttributeNS(null,"y",w(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.appendChild(a.tspan)}},{key:"beginText",value:function(){var e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=r.IDENTITY_MATRIX,e.lineMatrix=r.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}},{key:"moveText",value:function(e,t){var n=this.current;n.x=n.lineX+=e,n.y=n.lineY+=t,n.xcoords=[],n.ycoords=[],n.tspan=this.svgFactory.createElement("svg:tspan"),n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size","".concat(w(n.fontSize),"px")),n.tspan.setAttributeNS(null,"y",w(-n.y))}},{key:"showText",value:function(e){var t=this.current,n=t.font,i=t.fontSize;if(0!==i){var o,a=t.fontSizeScale,s=t.charSpacing,c=t.wordSpacing,u=t.fontDirection,l=t.textHScale*u,d=n.vertical,f=d?1:-1,h=n.defaultVMetrics,g=i*t.fontMatrix[0],m=0,v=p(e);try{for(v.s();!(o=v.n()).done;){var b=o.value;if(null!==b)if((0,r.isNum)(b))m+=f*b*i/1e3;else{var y=(b.isSpace?c:0)+s,x=b.fontChar,_=void 0,T=void 0,S=b.width;if(d){var A=void 0,E=b.vmetric||h;A=b.vmetric?E[1]:.5*S,A=-A*g;var U=E[2]*g;S=E?-E[0]:S,_=A/a,T=(m+U)/a}else _=m/a,T=0;(b.isInFont||n.missingFile)&&(t.xcoords.push(t.x+_),d&&t.ycoords.push(-t.y+T),t.tspan.textContent+=x);var O=void 0;O=d?S*g-y*u:S*g+y*u,m+=O}else m+=u*c}}catch(N){v.e(N)}finally{v.f()}t.tspan.setAttributeNS(null,"x",t.xcoords.map(w).join(" ")),d?t.tspan.setAttributeNS(null,"y",t.ycoords.map(w).join(" ")):t.tspan.setAttributeNS(null,"y",w(-t.y)),d?t.y-=m:t.x+=m*l,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(w(t.fontSize),"px")),t.fontStyle!==C.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==C.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);var F=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;if(F===r.TextRenderingMode.FILL||F===r.TextRenderingMode.FILL_STROKE?(t.fillColor!==C.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===r.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),F===r.TextRenderingMode.STROKE||F===r.TextRenderingMode.FILL_STROKE){var P=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,P)}var R=t.textMatrix;0!==t.textRise&&(R=R.slice(),R[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(D(R)," scale(").concat(w(l),", -1)")),t.txtElement.setAttributeNS(k,"xml:space","preserve"),t.txtElement.appendChild(t.tspan),t.txtgrp.appendChild(t.txtElement),this._ensureTransformGroup().appendChild(t.txtElement)}}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"addFontStyle",value:function(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var t=(0,r.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}},{key:"setFont",value:function(e){var t=this.current,n=this.commonObjs.get(e[0]),i=e[1];t.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),t.fontMatrix=n.fontMatrix?n.fontMatrix:r.FONT_IDENTITY_MATRIX;var o="normal";n.black?o="900":n.bold&&(o="bold");var a=n.italic?"italic":"normal";i<0?(i=-i,t.fontDirection=-1):t.fontDirection=1,t.fontSize=i,t.fontFamily=n.loadedName,t.fontWeight=o,t.fontStyle=a,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",w(-t.y)),t.xcoords=[],t.ycoords=[]}},{key:"endText",value:function(){var e=this.current;e.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement&&e.txtElement.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(e){e>0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=S[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=A[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,n){this.current.strokeColor=r.Util.makeCssRgb(e,t,n)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,n){this.current.fillColor=r.Util.makeCssRgb(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport.width,n=this.viewport.height,i=r.Util.inverseTransform(this.transformMatrix),o=r.Util.applyTransform([0,0],i),a=r.Util.applyTransform([0,n],i),s=r.Util.applyTransform([t,0],i),c=r.Util.applyTransform([t,n],i),u=Math.min(o[0],a[0],s[0],c[0]),l=Math.min(o[1],a[1],s[1],c[1]),d=Math.max(o[0],a[0],s[0],c[0]),f=Math.max(o[1],a[1],s[1],c[1]),h=this.svgFactory.createElement("svg:rect");h.setAttributeNS(null,"x",u),h.setAttributeNS(null,"y",l),h.setAttributeNS(null,"width",d-u),h.setAttributeNS(null,"height",f-l),h.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&h.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(h)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],n=e[2],i=e[3]||r.IDENTITY_MATRIX,o=l(e[4],4),s=o[0],c=o[1],u=o[2],d=o[3],f=e[5],h=e[6],p=e[7],g="shading".concat(P++),m=r.Util.applyTransform([s,c],i),v=l(m,2),b=v[0],y=v[1],x=r.Util.applyTransform([u,d],i),_=l(x,2),w=_[0],D=_[1],C=r.Util.singularValueDecompose2dScale(i),k=l(C,2),T=k[0],S=k[1],A=f*T,E=h*S,U=this.svgFactory.createElement("svg:pattern");U.setAttributeNS(null,"id",g),U.setAttributeNS(null,"patternUnits","userSpaceOnUse"),U.setAttributeNS(null,"width",A),U.setAttributeNS(null,"height",E),U.setAttributeNS(null,"x","".concat(b)),U.setAttributeNS(null,"y","".concat(y));var O=this.svg,F=this.transformMatrix,R=this.current.fillColor,N=this.current.strokeColor,M=this.svgFactory.create(w-b,D-y);if(this.svg=M,this.transformMatrix=i,2===p){var I=r.Util.makeCssRgb.apply(r.Util,a(t));this.current.fillColor=I,this.current.strokeColor=I}return this.executeOpTree(this.convertOpList(n)),this.svg=O,this.transformMatrix=F,this.current.fillColor=R,this.current.strokeColor=N,U.appendChild(M.childNodes[0]),this.defs.appendChild(U),"url(#".concat(g,")")}},{key:"_makeShadingPattern",value:function(e){switch(e[0]){case"RadialAxial":var t,n="shading".concat(P++),i=e[3];switch(e[1]){case"axial":var o=e[4],a=e[5];t=this.svgFactory.createElement("svg:linearGradient"),t.setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",o[0]),t.setAttributeNS(null,"y1",o[1]),t.setAttributeNS(null,"x2",a[0]),t.setAttributeNS(null,"y2",a[1]);break;case"radial":var s=e[4],c=e[5],u=e[6],l=e[7];t=this.svgFactory.createElement("svg:radialGradient"),t.setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",c[0]),t.setAttributeNS(null,"cy",c[1]),t.setAttributeNS(null,"r",l),t.setAttributeNS(null,"fx",s[0]),t.setAttributeNS(null,"fy",s[1]),t.setAttributeNS(null,"fr",u);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var d,f=p(i);try{for(f.s();!(d=f.n()).done;){var h=d.value,g=this.svgFactory.createElement("svg:stop");g.setAttributeNS(null,"offset",h[0]),g.setAttributeNS(null,"stop-color",h[1]),t.appendChild(g)}}catch(m){f.e(m)}finally{f.f()}return this.defs.appendChild(t),"url(#".concat(n,")");case"Mesh":return(0,r.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var n,i=this.current,o=i.x,a=i.y,s=[],c=0,u=p(e);try{for(u.s();!(n=u.n()).done;){var l=n.value;switch(0|l){case r.OPS.rectangle:o=t[c++],a=t[c++];var d=t[c++],f=t[c++],h=o+d,g=a+f;s.push("M",w(o),w(a),"L",w(h),w(a),"L",w(h),w(g),"L",w(o),w(g),"Z");break;case r.OPS.moveTo:o=t[c++],a=t[c++],s.push("M",w(o),w(a));break;case r.OPS.lineTo:o=t[c++],a=t[c++],s.push("L",w(o),w(a));break;case r.OPS.curveTo:o=t[c+4],a=t[c+5],s.push("C",w(t[c]),w(t[c+1]),w(t[c+2]),w(t[c+3]),w(o),w(a)),c+=6;break;case r.OPS.curveTo2:s.push("C",w(o),w(a),w(t[c]),w(t[c+1]),w(t[c+2]),w(t[c+3])),o=t[c+2],a=t[c+3],c+=4;break;case r.OPS.curveTo3:o=t[c+2],a=t[c+3],s.push("C",w(t[c]),w(t[c+1]),w(o),w(a),w(o),w(a)),c+=4;break;case r.OPS.closePath:s.push("Z");break}}}catch(m){u.e(m)}finally{u.f()}s=s.join(" "),i.path&&e.length>0&&e[0]!==r.OPS.rectangle&&e[0]!==r.OPS.moveTo?s=i.path.getAttributeNS(null,"d")+s:(i.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(i.path)),i.path.setAttributeNS(null,"d",s),i.path.setAttributeNS(null,"fill","none"),i.element=i.path,i.setCurrentPoint(o,a)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(O++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",D(this.transformMatrix));var r=e.element.cloneNode(!0);"evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.appendChild(r),this.defs.appendChild(n),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach((function(e){e.clipGroup=null})),n.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,n=p(e);try{for(n.s();!(t=n.n()).done;){var i=l(t.value,2),o=i[0],a=i[1];switch(o){case"LW":this.setLineWidth(a);break;case"LC":this.setLineCap(a);break;case"LJ":this.setLineJoin(a);break;case"ML":this.setMiterLimit(a);break;case"D":this.setDash(a[0],a[1]);break;case"RI":this.setRenderingIntent(a);break;case"FL":this.setFlatness(a);break;case"Font":this.setFont(a);break;case"CA":this.setStrokeAlpha(a);break;case"ca":this.setFillAlpha(a);break;default:(0,r.warn)("Unimplemented graphic state operator ".concat(o));break}}}catch(s){n.e(s)}finally{n.f()}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.current,r=n.dashArray;1!==t&&r.length>0&&(r=r.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",w(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",w(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(w).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",w(t*n.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}},{key:"paintImageXObject",value:function(e){var t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,r.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,t){var n=e.width,r=e.height,i=E(e,this.forceDataSchema,!!t),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",w(n)),o.setAttributeNS(null,"height",w(r)),this.current.element=o,this.clip("nonzero");var a=this.svgFactory.createElement("svg:image");a.setAttributeNS(T,"xlink:href",i),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",w(-r)),a.setAttributeNS(null,"width",w(n)+"px"),a.setAttributeNS(null,"height",w(r)+"px"),a.setAttributeNS(null,"transform","scale(".concat(w(1/n)," ").concat(w(-1/r),")")),t?t.appendChild(a):this._ensureTransformGroup().appendChild(a)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,n=e.width,r=e.height,i=t.fillColor;t.maskId="mask".concat(F++);var o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",t.maskId);var a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",w(n)),a.setAttributeNS(null,"height",w(r)),a.setAttributeNS(null,"fill",i),a.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.appendChild(o),this._ensureTransformGroup().appendChild(a),this.paintInlineImageXObject(e,o)}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var n=t[2]-t[0],r=t[3]-t[1],i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x",t[0]),i.setAttributeNS(null,"y",t[1]),i.setAttributeNS(null,"width",w(n)),i.setAttributeNS(null,"height",w(r)),this.current.element=i,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.appendChild(n),this.defs=n;var r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",D(e.transform)),t.appendChild(r),this.svg=r,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",D(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=a(n(2)),i=n(5),o=n(220);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){var t=h();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function g(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){g(o,r,i,a,s,"next",e)}function s(e){g(o,r,i,a,s,"throw",e)}a(void 0)}))}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}var x=__webpack_require__(1),_=__webpack_require__(4),w=__webpack_require__(5),D=__webpack_require__(6),C=/^file:\/\/\/[a-zA-Z]:\//;function k(e){var t=D.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?D.parse("file:///".concat(e)):(t.host||(t.protocol="file:"),t)}var T=function(){function e(t){v(this,e),this.source=t,this.url=k(t.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return y(e,[{key:"getFullReader",value:function(){return(0,i.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new F(this):new U(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=this.isFsUrl?new P(this,e,t):new O(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFNodeStream=T;var S=function(){function e(t){v(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var n=t.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=(0,i.createPromiseCapability)(),this._headersCapability=(0,i.createPromiseCapability)()}return y(e,[{key:"read",value:function(){var e=m(r["default"].mark((function e(){var t,n;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(t=this._readableStream.read(),null!==t){e.next=10;break}return this._readCapability=(0,i.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),n=new Uint8Array(t).buffer,e.abrupt("return",{value:n,done:!1});case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new i.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),A=function(){function e(t){v(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,i.createPromiseCapability)();var n=t.source;this._isStreamingSupported=!n.disableStream}return y(e,[{key:"read",value:function(){var e=m(r["default"].mark((function e(){var t,n;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(t=this._readableStream.read(),null!==t){e.next=10;break}return this._readCapability=(0,i.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),n=new Uint8Array(t).buffer,e.abrupt("return",{value:n,done:!1});case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}();function E(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var U=function(e){c(n,e);var t=l(n);function n(e){var r;v(this,n),r=t.call(this,e);var a=function(t){if(404===t.statusCode){var n=new i.MissingPDFException('Missing PDF "'.concat(r._url,'".'));return r._storedError=n,void r._headersCapability.reject(n)}r._headersCapability.resolve(),r._setReadableStream(t);var a=function(e){return r._readableStream.headers[e.toLowerCase()]},s=(0,o.validateRangeRequestCapabilities)({getResponseHeader:a,isHttp:e.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),c=s.allowRangeRequests,u=s.suggestedLength;r._isRangeSupported=c,r._contentLength=u||r._contentLength,r._filename=(0,o.extractFilenameFromHeader)(a)};return r._request=null,"http:"===r._url.protocol?r._request=_.request(E(r._url,e.httpHeaders),a):r._request=w.request(E(r._url,e.httpHeaders),a),r._request.on("error",(function(e){r._storedError=e,r._headersCapability.reject(e)})),r._request.end(),r}return n}(S),O=function(e){c(n,e);var t=l(n);function n(e,r,o){var a;for(var s in v(this,n),a=t.call(this,e),a._httpHeaders={},e.httpHeaders){var c=e.httpHeaders[s];"undefined"!==typeof c&&(a._httpHeaders[s]=c)}a._httpHeaders.Range="bytes=".concat(r,"-").concat(o-1);var u=function(e){if(404!==e.statusCode)a._setReadableStream(e);else{var t=new i.MissingPDFException('Missing PDF "'.concat(a._url,'".'));a._storedError=t}};return a._request=null,"http:"===a._url.protocol?a._request=_.request(E(a._url,a._httpHeaders),u):a._request=w.request(E(a._url,a._httpHeaders),u),a._request.on("error",(function(e){a._storedError=e})),a._request.end(),a}return n}(A),F=function(e){c(n,e);var t=l(n);function n(e){var r;v(this,n),r=t.call(this,e);var o=decodeURIComponent(r._url.path);return C.test(r._url.href)&&(o=o.replace(/^\//,"")),x.lstat(o,(function(e,t){if(e)return"ENOENT"===e.code&&(e=new i.MissingPDFException('Missing PDF "'.concat(o,'".'))),r._storedError=e,void r._headersCapability.reject(e);r._contentLength=t.size,r._setReadableStream(x.createReadStream(o)),r._headersCapability.resolve()})),r}return n}(S),P=function(e){c(n,e);var t=l(n);function n(e,r,i){var o;v(this,n),o=t.call(this,e);var a=decodeURIComponent(o._url.path);return C.test(o._url.href)&&(a=a.replace(/^\//,"")),o._setReadableStream(x.createReadStream(a,{start:r,end:i-1})),o}return n}(A)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=s,t.extractFilenameFromHeader=a,t.validateRangeRequestCapabilities=o,t.validateResponseStatus=c;var r=n(5),i=n(221);function o(e){var t=e.getResponseHeader,n=e.isHttp,i=e.rangeChunkSize,o=e.disableRange;(0,r.assert)(i>0,"Range chunk size must be larger than zero");var a={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);if(!Number.isInteger(s))return a;if(a.suggestedLength=s,s<=2*i)return a;if(o||!n)return a;if("bytes"!==t("Accept-Ranges"))return a;var c=t("Content-Encoding")||"identity";return"identity"!==c||(a.allowRangeRequests=!0),a}function a(e){var t=e("Content-Disposition");if(t){var n=(0,i.getFilenameFromContentDispositionHeader)(t);if(n.includes("%"))try{n=decodeURIComponent(n)}catch(r){}if(/\.pdf$/i.test(n))return n}return null}function s(e,t){return 404===e||0===e&&t.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+t+'".'):new r.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)}function c(e){return 200===e||206===e}},function(e,t,n){"use strict";function r(e,t){return c(e)||s(e,t)||o(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){i=!0,o=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function c(e){if(Array.isArray(e))return e}function u(e){var t=!0,n=s("filename\\*","i").exec(e);if(n){n=n[1];var i=d(n);return i=unescape(i),i=f(i),i=h(i),u(i)}if(n=l(e),n){var o=h(n);return u(o)}if(n=s("filename","i").exec(e),n){n=n[1];var a=d(n);return a=h(a),u(a)}function s(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function c(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{var r=new TextDecoder(e,{fatal:!0}),i=Array.from(n,(function(e){return 255&e.charCodeAt(0)}));n=r.decode(new Uint8Array(i)),t=!1}catch(o){if(/^utf-?8$/i.test(e))try{n=decodeURIComponent(escape(n)),t=!1}catch(a){}}}return n}function u(e){return t&&/[\x80-\xff]/.test(e)&&(e=c("utf-8",e),t&&(e=c("iso-8859-1",e))),e}function l(e){var t,n=[],i=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");while(null!==(t=i.exec(e))){var o=t,a=r(o,4),c=a[1],u=a[2],l=a[3];if(c=parseInt(c,10),c in n){if(0===c)break}else n[c]=[u,l]}for(var h=[],p=0;p<n.length;++p){if(!(p in n))break;var g=r(n[p],2),m=g[0],v=g[1];v=d(v),m&&(v=unescape(v),0===p&&(v=f(v))),h.push(v)}return h.join("")}function d(e){if(e.startsWith('"')){for(var t=e.slice(1).split('\\"'),n=0;n<t.length;++n){var r=t[n].indexOf('"');-1!==r&&(t[n]=t[n].slice(0,r),t.length=n+1),t[n]=t[n].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function f(e){var t=e.indexOf("'");if(-1===t)return e;var n=e.slice(0,t),r=e.slice(t+1),i=r.replace(/^[^']*'/,"");return c(n,i)}function h(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,n,r){if("q"===n||"Q"===n)return r=r.replace(/_/g," "),r=r.replace(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})),c(t,r);try{r=atob(r)}catch(i){}return c(t,r)}))}return""}Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r=a(n(2)),i=n(5),o=n(220);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,c,"next",e)}function c(e){s(o,r,i,a,c,"throw",e)}a(void 0)}))}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}var f=200,h=206;function p(e){var t=e.response;if("string"!==typeof t)return t;var n=(0,i.stringToBytes)(t);return n.buffer}var g=function(){function e(t,n){u(this,e),this.url=t,n=n||{},this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&n.httpHeaders||{},this.withCredentials=n.withCredentials||!1,this.getXhr=n.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return d(e,[{key:"requestRange",value:function(e,t,n){var r={begin:e,end:t};for(var i in n)r[i]=n[i];return this.request(r)}},{key:"requestFull",value:function(e){return this.request(e)}},{key:"request",value:function(e){var t=this.getXhr(),n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};for(var i in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var o=this.httpHeaders[i];"undefined"!==typeof o&&t.setRequestHeader(i,o)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),r.expectedStatus=h):r.expectedStatus=f,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,t.send(null),n}},{key:"onProgress",value:function(e,t){var n=this.pendingRequests[e];n&&n.onProgress&&n.onProgress(t)}},{key:"onStateChange",value:function(e,t){var n=this.pendingRequests[e];if(n){var r=n.xhr;if(r.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4===r.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===r.status&&this.isHttp)n.onError&&n.onError(r.status);else{var i=r.status||f,o=i===f&&n.expectedStatus===h;if(o||i===n.expectedStatus){var a=p(r);if(i===h){var s=r.getResponseHeader("Content-Range"),c=/bytes (\d+)-(\d+)\/(\d+)/.exec(s);n.onDone({begin:parseInt(c[1],10),chunk:a})}else a?n.onDone({begin:0,chunk:a}):n.onError&&n.onError(r.status)}else n.onError&&n.onError(r.status)}}}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),m=function(){function e(t){u(this,e),this._source=t,this._manager=new g(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return d(e,[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,i.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new v(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var n=new b(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}}]),e}();t.PDFNetworkStream=m;var v=function(){function e(t,n){u(this,e),this._manager=t;var r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._fullRequestId=t.requestFull(r),this._headersReceivedCapability=(0,i.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return d(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=function(e){return t.getResponseHeader(e)},r=(0,o.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=r.allowRangeRequests,a=r.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){if(e)if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e.chunk,done:!1})}else this._cachedChunks.push(e.chunk);this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[])}},{key:"_onError",value:function(e){var t=this._url,n=(0,o.createResponseStatusError)(e,t);this._storedError=n,this._headersReceivedCapability.reject(n),this._requests.forEach((function(e){e.reject(n)})),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"read",value:function(){var e=c(r["default"].mark((function e(){var t,n;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return n=(0,i.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),e}(),b=function(){function e(t,n,r){u(this,e),this._manager=t;var i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(n,r,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return d(e,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(e){var t=e.chunk;if(this._requests.length>0){var n=this._requests.shift();n.resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._close()}},{key:"_onProgress",value:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}},{key:"read",value:function(){var e=c(r["default"].mark((function e(){var t,n;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,i.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=a(n(2)),i=n(5),o=n(220);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,c,"next",e)}function c(e){s(o,r,i,a,c,"throw",e)}a(void 0)}))}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function f(e,t,n){return{method:"GET",headers:e,signal:n&&n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function h(e){var t=new Headers;for(var n in e){var r=e[n];"undefined"!==typeof r&&t.append(n,r)}return t}var p=function(){function e(t){u(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return d(e,[{key:"getFullReader",value:function(){return(0,i.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new g(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=new m(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFFetchStream=p;var g=function(){function e(t){var n=this;u(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var r=t.source;this._withCredentials=r.withCredentials||!1,this._contentLength=r.length,this._headersCapability=(0,i.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._headers=h(this._stream.httpHeaders);var a=r.url;fetch(a,f(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,a);n._reader=e.body.getReader(),n._headersCapability.resolve();var t=function(t){return e.headers.get(t)},r=(0,o.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:n._stream.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),s=r.allowRangeRequests,c=r.suggestedLength;n._isRangeSupported=s,n._contentLength=c||n._contentLength,n._filename=(0,o.extractFilenameFromHeader)(t),!n._isStreamingSupported&&n._isRangeSupported&&n.cancel(new i.AbortException("Streaming is disabled."))}))["catch"](this._headersCapability.reject),this.onProgress=null}return d(e,[{key:"read",value:function(){var e=c(r["default"].mark((function e(){var t,n,i,o;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,n=t.value,i=t.done,!i){e.next=9;break}return e.abrupt("return",{value:n,done:i});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),o=new Uint8Array(n).buffer,e.abrupt("return",{value:o,done:!1});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),m=function(){function e(t,n,r){var a=this;u(this,e),this._stream=t,this._reader=null,this._loaded=0;var s=t.source;this._withCredentials=s.withCredentials||!1,this._readCapability=(0,i.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._headers=h(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(n,"-").concat(r-1));var c=s.url;fetch(c,f(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,c);a._readCapability.resolve(),a._reader=e.body.getReader()}))["catch"]((function(e){if(!e||"AbortError"!==e.name)throw e})),this.onProgress=null}return d(e,[{key:"read",value:function(){var e=c(r["default"].mark((function e(){var t,n,i,o;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,n=t.value,i=t.done,!i){e.next=9;break}return e.abrupt("return",{value:n,done:i});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),o=new Uint8Array(n).buffer,e.abrupt("return",{value:o,done:!1});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}()}])}))}).call(this,__webpack_require__("b639").Buffer,__webpack_require__("4362"),__webpack_require__("c8ba"))},"44cf":function(e,t,n){var r=n("ebf8"),i=n("1dc6");function o(e){return e.arrayBuffer?r.resolve(i.openArrayBuffer(e.arrayBuffer)):r.reject(new Error("Could not find file in options"))}t.openZip=o},"45f3":function(e,t){(function(){var t,n,r,i,o,a,s,c=[].slice,u={}.hasOwnProperty;t=function(){var e,t,n,r,i,a;if(a=arguments[0],i=2<=arguments.length?c.call(arguments,1):[],o(Object.assign))Object.assign.apply(null,arguments);else for(e=0,n=i.length;e<n;e++)if(r=i[e],null!=r)for(t in r)u.call(r,t)&&(a[t]=r[t]);return a},o=function(e){return!!e&&"[object Function]"===Object.prototype.toString.call(e)},a=function(e){var t;return!!e&&("function"===(t=typeof e)||"object"===t)},r=function(e){return o(Array.isArray)?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},i=function(e){var t;if(r(e))return!e.length;for(t in e)if(u.call(e,t))return!1;return!0},s=function(e){var t,n;return a(e)&&(n=Object.getPrototypeOf(e))&&(t=n.constructor)&&"function"===typeof t&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},n=function(e){return o(e.valueOf)?e.valueOf():e},e.exports.assign=t,e.exports.isFunction=o,e.exports.isObject=a,e.exports.isArray=r,e.exports.isEmpty=i,e.exports.isPlainObject=s,e.exports.getValue=n}).call(this)},4631:function(e,t,n){(function(t){var n,n;(function(t){e.exports=t()})((function(){var e,r,i;return function e(t,r,i){function o(s,c){if(!r[s]){if(!t[s]){var u="function"==typeof n&&n;if(!c&&u)return n(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var d=r[s]={exports:{}};t[s][0].call(d.exports,(function(e){var n=t[s][1][e];return o(n||e)}),d,d.exports,e,t,r,i)}return r[s].exports}for(var a="function"==typeof n&&n,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,n){var r=e("../../lib/promises");function i(){function e(e){return r.reject(new Error("could not open external image: '"+e+"'\ncannot open linked files from a web browser"))}return{read:e}}n.Files=i},{"../../lib/promises":23}],2:[function(e,t,n){var r=e("../lib/promises"),i=e("../lib/zipfile");function o(e){return e.arrayBuffer?r.resolve(i.openArrayBuffer(e.arrayBuffer)):r.reject(new Error("Could not find file in options"))}n.openZip=o},{"../lib/promises":23,"../lib/zipfile":40}],3:[function(e,t,n){var r=e("underscore"),i=e("./promises"),o=e("./documents"),a=e("./styles/html-paths"),s=e("./results"),c=e("./images"),u=e("./html"),l=e("./writers");function d(e){return{convertToHtml:function(t){var n=r.indexBy(t.type===o.types.document?t.comments:[],"commentId"),i=new f(e,n);return i.convertToHtml(t)}}}function f(e,t){var n=1,d=[],f=[];e=r.extend({ignoreEmptyParagraphs:!0},e);var h=void 0===e.idPrefix?"":e.idPrefix,y=e.ignoreEmptyParagraphs,x=a.topLevelElement("p"),_=e.styleMap||[];function w(t){var n=[],o=C(t,n,{}),a=[];v(o,(function(e){"deferred"===e.type&&a.push(e)}));var c={};return i.mapSeries(a,(function(e){return e.value().then((function(t){c[e.id]=t}))})).then((function(){function t(e){return m(e,(function(e){return"deferred"===e.type?c[e.id]:e.children?[r.extend({},e,{children:t(e.children)})]:[e]}))}var i=l.writer({prettyPrint:e.prettyPrint,outputFormat:e.outputFormat});return u.write(i,u.simplify(t(o))),new s.Result(i.asString(),n)}))}function D(e,t,n){return m(e,(function(e){return C(e,t,n)}))}function C(e,t,n){if(!n)throw new Error("options not set");var r=$[e.type];return r?r(e,t,n):[]}function k(e,t,n){return T(e,t).wrap((function(){var r=D(e.children,t,n);return y?r:[u.forceWrite].concat(r)}))}function T(e,t){var n=U(e);return n?n.to:(e.styleId&&t.push(g("paragraph",e)),x)}function S(e,t,n){var r=function(){return D(e.children,t,n)},i=[];e.isSmallCaps&&i.push(A("smallCaps")),e.isAllCaps&&i.push(A("allCaps")),e.isStrikethrough&&i.push(A("strikethrough","s")),e.isUnderline&&i.push(A("underline")),e.verticalAlignment===o.verticalAlignment.subscript&&i.push(a.element("sub",{},{fresh:!1})),e.verticalAlignment===o.verticalAlignment.superscript&&i.push(a.element("sup",{},{fresh:!1})),e.isItalic&&i.push(A("italic","em")),e.isBold&&i.push(A("bold","strong"));var s=a.empty,c=U(e);return c?s=c.to:e.styleId&&t.push(g("run",e)),i.push(s),i.forEach((function(e){r=e.wrap.bind(e,r)})),r()}function A(e,t){var n=E({type:e});return n||(t?a.element(t,{},{fresh:!1}):a.empty)}function E(e,t){var n=U(e);return n?n.to:t}function U(e){for(var t=0;t<_.length;t++)if(_[t].from.matches(e))return _[t]}function O(e){return function(t,n){return i.attempt((function(){return e(t,n)})).caught((function(e){return n.push(s.error(e)),[]}))}}function F(e){return R(e.noteType,e.noteId)}function P(e){return N(e.noteType,e.noteId)}function R(e,t){return M(e+"-"+t)}function N(e,t){return M(e+"-ref-"+t)}function M(e){return h+e}var I=a.elements([a.element("table",{},{fresh:!0})]);function B(e,t,n){return E(e,I).wrap((function(){return L(e,t,n)}))}function L(e,t,n){var i,a=r.findIndex(e.children,(function(e){return!e.type===o.types.tableRow||!e.isHeader}));if(-1===a&&(a=e.children.length),0===a)i=D(e.children,t,r.extend({},n,{isTableHeader:!1}));else{var s=D(e.children.slice(0,a),t,r.extend({},n,{isTableHeader:!0})),c=D(e.children.slice(a),t,r.extend({},n,{isTableHeader:!1}));i=[u.freshElement("thead",{},s),u.freshElement("tbody",{},c)]}return[u.forceWrite].concat(i)}function z(e,t,n){var r=D(e.children,t,n);return[u.freshElement("tr",{},[u.forceWrite].concat(r))]}function W(e,t,n){var r=n.isTableHeader?"th":"td",i=D(e.children,t,n),o={};return 1!==e.colSpan&&(o.colspan=e.colSpan.toString()),1!==e.rowSpan&&(o.rowspan=e.rowSpan.toString()),[u.freshElement(r,o,[u.forceWrite].concat(i))]}function j(e,n,r){return E(e,a.ignore).wrap((function(){var n=t[e.commentId],r=f.length+1,i="["+b(n)+r+"]";return f.push({label:i,comment:n}),[u.freshElement("a",{href:"#"+R("comment",e.commentId),id:N("comment",e.commentId)},[u.text(i)])]}))}function H(e,t,n){var r=e.label,i=e.comment,o=D(i.body,t,n).concat([u.nonFreshElement("p",{},[u.text(" "),u.freshElement("a",{href:"#"+N("comment",i.commentId)},[u.text("↑")])])]);return[u.freshElement("dt",{id:R("comment",i.commentId)},[u.text("Comment "+r)]),u.freshElement("dd",{},o)]}function V(e,t,n){return q(e).wrap((function(){return[]}))}function q(e){var t=U(e);return t?t.to:"line"===e.breakType?a.topLevelElement("br"):a.empty}var $={document:function(e,t,n){var r=D(e.children,t,n),i=d.map((function(t){return e.notes.resolve(t)})),o=D(i,t,n);return r.concat([u.freshElement("ol",{},o),u.freshElement("dl",{},m(f,(function(e){return H(e,t,n)})))])},paragraph:k,run:S,text:function(e,t,n){return[u.text(e.value)]},tab:function(e,t,n){return[u.text("\t")]},hyperlink:function(e,t,n){var r=e.anchor?"#"+M(e.anchor):e.href,i={href:r};null!=e.targetFrame&&(i.target=e.targetFrame);var o=D(e.children,t,n);return[u.nonFreshElement("a",i,o)]},bookmarkStart:function(e,t,n){var r=u.freshElement("a",{id:M(e.name)},[u.forceWrite]);return[r]},noteReference:function(e,t,r){d.push(e);var i=u.freshElement("a",{href:"#"+F(e),id:P(e)},[u.text("["+n+++"]")]);return[u.freshElement("sup",{},[i])]},note:function(e,t,n){var r=D(e.body,t,n),i=u.elementWithTag(a.element("p",{},{fresh:!1}),[u.text(" "),u.freshElement("a",{href:"#"+P(e)},[u.text("↑")])]),o=r.concat([i]);return u.freshElement("li",{id:F(e)},o)},commentReference:j,comment:H,image:p(O(e.convertImage||c.dataUri)),table:B,tableRow:z,tableCell:W,break:V};return{convertToHtml:w}}n.DocumentConverter=d;var h=1;function p(e){return function(t,n,r){return[{type:"deferred",id:h++,value:function(){return e(t,n,r)}}]}}function g(e,t){return s.warning("Unrecognised "+e+" style: '"+t.styleName+"' (Style ID: "+t.styleId+")")}function m(e,t){return r.flatten(e.map(t),!0)}function v(e,t){e.forEach((function(e){t(e),e.children&&v(e.children,t)}))}var b=n.commentAuthorLabel=function(e){return e.authorInitials||""}},{"./documents":4,"./html":18,"./images":20,"./promises":23,"./results":25,"./styles/html-paths":28,"./writers":33,underscore:103}],4:[function(e,t,n){(function(t){var r=e("underscore"),i=n.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function o(e,t){return t=t||{},{type:i.document,children:e,notes:t.notes||new h({}),comments:t.comments||[]}}function a(e,t){t=t||{};var n=t.indent||{};return{type:i.paragraph,children:e,styleId:t.styleId||null,styleName:t.styleName||null,numbering:t.numbering||null,alignment:t.alignment||null,indent:{start:n.start||null,end:n.end||null,firstLine:n.firstLine||null,hanging:n.hanging||null}}}function s(e,t){return t=t||{},{type:i.run,children:e,styleId:t.styleId||null,styleName:t.styleName||null,isBold:!!t.isBold,isUnderline:!!t.isUnderline,isItalic:!!t.isItalic,isStrikethrough:!!t.isStrikethrough,isAllCaps:!!t.isAllCaps,isSmallCaps:!!t.isSmallCaps,verticalAlignment:t.verticalAlignment||c.baseline,font:t.font||null,fontSize:t.fontSize||null}}var c={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function u(e){return{type:i.text,value:e}}function l(){return{type:i.tab}}function d(e,t){return{type:i.hyperlink,children:e,href:t.href,anchor:t.anchor,targetFrame:t.targetFrame}}function f(e){return{type:i.noteReference,noteType:e.noteType,noteId:e.noteId}}function h(e){this._notes=r.indexBy(e,(function(e){return v(e.noteType,e.noteId)}))}function p(e){return{type:i.note,noteType:e.noteType,noteId:e.noteId,body:e.body}}function g(e){return{type:i.commentReference,commentId:e.commentId}}function m(e){return{type:i.comment,commentId:e.commentId,body:e.body,authorName:e.authorName,authorInitials:e.authorInitials}}function v(e,t){return e+"-"+t}function b(e){return{type:i.image,read:function(n){return n?e.readImage(n):e.readImage().then((function(e){return t.from(e)}))},readAsArrayBuffer:function(){return e.readImage()},readAsBase64String:function(){return e.readImage("base64")},readAsBuffer:function(){return e.readImage().then((function(e){return t.from(e)}))},altText:e.altText,contentType:e.contentType}}function y(e,t){return t=t||{},{type:i.table,children:e,styleId:t.styleId||null,styleName:t.styleName||null}}function x(e,t){return t=t||{},{type:i.tableRow,children:e,isHeader:t.isHeader||!1}}function _(e,t){return t=t||{},{type:i.tableCell,children:e,colSpan:null==t.colSpan?1:t.colSpan,rowSpan:null==t.rowSpan?1:t.rowSpan}}function w(e){return{type:i["break"],breakType:e}}function D(e){return{type:i.bookmarkStart,name:e.name}}h.prototype.resolve=function(e){return this.findNoteByKey(v(e.noteType,e.noteId))},h.prototype.findNoteByKey=function(e){return this._notes[e]||null},n.document=n.Document=o,n.paragraph=n.Paragraph=a,n.run=n.Run=s,n.text=n.Text=u,n.tab=n.Tab=l,n.Hyperlink=d,n.noteReference=n.NoteReference=f,n.Notes=h,n.Note=p,n.commentReference=g,n.comment=m,n.Image=b,n.Table=y,n.TableRow=x,n.TableCell=_,n.lineBreak=w("line"),n.pageBreak=w("page"),n.columnBreak=w("column"),n.BookmarkStart=D,n.verticalAlignment=c}).call(this,e("buffer").Buffer)},{buffer:83,underscore:103}],5:[function(e,t,n){n.createBodyReader=u,n._readNumberingProperties=d;var r=e("dingbat-to-unicode"),i=e("underscore"),o=e("../documents"),a=e("../results").Result,s=e("../results").warning,c=e("./uris");function u(e){return{readXmlElement:function(t){return new l(e).readXmlElement(t)},readXmlElements:function(t){return new l(e).readXmlElements(t)}}}function l(e){var t=[],n=[],a=[],u=e.relationships,l=e.contentTypes,x=e.docxFile,_=e.files,w=e.numbering,D=e.styles;function C(e){var t=e.map(k);return y(t)}function k(e){if("element"===e.type){var t=V[e.name];if(t)return t(e);if(!Object.prototype.hasOwnProperty.call(h,e.name)){var n=s("An unrecognised element was ignored: "+e.name);return p([n])}}return g()}function T(e){return O(e).map((function(t){return{type:"paragraphProperties",styleId:t.styleId,styleName:t.name,alignment:e.firstOrEmpty("w:jc").attributes["w:val"],numbering:d(t.styleId,e.firstOrEmpty("w:numPr"),w),indent:S(e.firstOrEmpty("w:ind"))}}))}function S(e){return{start:e.attributes["w:start"]||e.attributes["w:left"],end:e.attributes["w:end"]||e.attributes["w:right"],firstLine:e.attributes["w:firstLine"],hanging:e.attributes["w:hanging"]}}function A(e){return F(e).map((function(t){var n=e.firstOrEmpty("w:sz").attributes["w:val"],r=/^[0-9]+$/.test(n)?parseInt(n,10)/2:null;return{type:"runProperties",styleId:t.styleId,styleName:t.name,verticalAlignment:e.firstOrEmpty("w:vertAlign").attributes["w:val"],font:e.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:r,isBold:U(e.first("w:b")),isUnderline:E(e.first("w:u")),isItalic:U(e.first("w:i")),isStrikethrough:U(e.first("w:strike")),isAllCaps:U(e.first("w:caps")),isSmallCaps:U(e.first("w:smallCaps"))}}))}function E(e){if(e){var t=e.attributes["w:val"];return void 0!==t&&"false"!==t&&"0"!==t&&"none"!==t}return!1}function U(e){if(e){var t=e.attributes["w:val"];return"false"!==t&&"0"!==t}return!1}function O(e){return R(e,"w:pStyle","Paragraph",D.findParagraphStyleById)}function F(e){return R(e,"w:rStyle","Run",D.findCharacterStyleById)}function P(e){return R(e,"w:tblStyle","Table",D.findTableStyleById)}function R(e,t,n,r){var i=[],o=e.first(t),a=null,s=null;if(o&&(a=o.attributes["w:val"],a)){var c=r(a);c?s=c.name:i.push(ie(n,a))}return v({styleId:a,name:s},i)}var N={type:"unknown"};function M(e){var r=e.attributes["w:fldCharType"];if("begin"===r)t.push(N),n=[];else if("end"===r)t.pop();else if("separate"===r){var i=B(n.join("")),o=null===i?N:{type:"hyperlink",options:i};t.pop(),t.push(o)}return g()}function I(){var e=i.last(t.filter((function(e){return"hyperlink"===e.type})));return e?e.options:null}function B(e){var t=/\s*HYPERLINK "(.*)"/.exec(e);if(t)return{href:t[1]};var n=/\s*HYPERLINK\s+\\l\s+"(.*)"/.exec(e);return n?{anchor:n[1]}:null}function L(e){return n.push(e.text()),g()}function z(e){var t=e.attributes["w:font"],n=e.attributes["w:char"],i=r.hex(t,n);return null==i&&/^F0..$/.test(n)&&(i=r.hex(t,n.substring(2))),null==i?p([s("A w:sym element with an unsupported character was ignored: char "+n+" in font "+t)]):m(new o.Text(i.string))}function W(e){return function(t){var n=t.attributes["w:id"];return m(new o.NoteReference({noteType:e,noteId:n}))}}function j(e){return m(o.commentReference({commentId:e.attributes["w:id"]}))}function H(e){return C(e.children)}var V={"w:p":function(e){var t=e.firstOrEmpty("w:pPr"),n=!!t.firstOrEmpty("w:rPr").first("w:del");if(n)return e.children.forEach((function(e){a.push(e)})),g();var r=e.children;return a.length>0&&(r=a.concat(r),a=[]),b.map(T(t),C(r),(function(e,t){return new o.Paragraph(t,e)})).insertExtra()},"w:r":function(e){return b.map(A(e.firstOrEmpty("w:rPr")),C(e.children),(function(e,t){var n=I();return null!==n&&(t=[new o.Hyperlink(t,n)]),new o.Run(t,e)}))},"w:fldChar":M,"w:instrText":L,"w:t":function(e){return m(new o.Text(e.text()))},"w:tab":function(e){return m(new o.Tab)},"w:noBreakHyphen":function(){return m(new o.Text("‑"))},"w:softHyphen":function(e){return m(new o.Text("­"))},"w:sym":z,"w:hyperlink":function(e){var t=e.attributes["r:id"],n=e.attributes["w:anchor"];return C(e.children).map((function(r){function a(t){var n=e.attributes["w:tgtFrame"]||null;return new o.Hyperlink(r,i.extend({targetFrame:n},t))}if(t){var s=u.findTargetByRelationshipId(t);return n&&(s=c.replaceFragment(s,n)),a({href:s})}return n?a({anchor:n}):r}))},"w:tbl":q,"w:tr":G,"w:tc":X,"w:footnoteReference":W("footnote"),"w:endnoteReference":W("endnote"),"w:commentReference":j,"w:br":function(e){var t=e.attributes["w:type"];return null==t||"textWrapping"===t?m(o.lineBreak):"page"===t?m(o.pageBreak):"column"===t?m(o.columnBreak):p([s("Unsupported break type: "+t)])},"w:bookmarkStart":function(e){var t=e.attributes["w:name"];return"_GoBack"===t?g():m(new o.BookmarkStart({name:t}))},"mc:AlternateContent":function(e){return H(e.first("mc:Fallback"))},"w:sdt":function(e){return C(e.firstOrEmpty("w:sdtContent").children)},"w:ins":H,"w:object":H,"w:smartTag":H,"w:drawing":H,"w:pict":function(e){return H(e).toExtra()},"v:roundrect":H,"v:shape":H,"v:textbox":H,"w:txbxContent":H,"wp:inline":Z,"wp:anchor":Z,"v:imagedata":te,"v:group":H,"v:rect":H};return{readXmlElement:k,readXmlElements:C};function q(e){var t=$(e.firstOrEmpty("w:tblPr"));return C(e.children).flatMap(K).flatMap((function(e){return t.map((function(t){return o.Table(e,t)}))}))}function $(e){return P(e).map((function(e){return{styleId:e.styleId,styleName:e.name}}))}function G(e){var t=e.firstOrEmpty("w:trPr"),n=!!t.first("w:tblHeader");return C(e.children).map((function(e){return o.TableRow(e,{isHeader:n})}))}function X(e){return C(e.children).map((function(t){var n=e.firstOrEmpty("w:tcPr"),r=n.firstOrEmpty("w:gridSpan").attributes["w:val"],i=r?parseInt(r,10):1,a=o.TableCell(t,{colSpan:i});return a._vMerge=Y(n),a}))}function Y(e){var t=e.first("w:vMerge");if(t){var n=t.attributes["w:val"];return"continue"===n||!n}return null}function K(e){var t=i.any(e,(function(e){return e.type!==o.types.tableRow}));if(t)return v(e,[s("unexpected non-row element in table, cell merging may be incorrect")]);var n=i.any(e,(function(e){return i.any(e.children,(function(e){return e.type!==o.types.tableCell}))}));if(n)return v(e,[s("unexpected non-cell element in table row, cell merging may be incorrect")]);var r={};return e.forEach((function(e){var t=0;e.children.forEach((function(e){e._vMerge&&r[t]?r[t].rowSpan++:(r[t]=e,e._vMerge=!1),t+=e.colSpan}))})),e.forEach((function(e){e.children=e.children.filter((function(e){return!e._vMerge})),e.children.forEach((function(e){delete e._vMerge}))})),m(e)}function Z(e){var t=e.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return y(t.map(J.bind(null,e)))}function J(e,t){var n=e.first("wp:docPr").attributes,r=Q(n.descr)?n.title:n.descr,i=ee(t);return null===i?p([s("Could not find image file for a:blip element")]):re(i,r)}function Q(e){return null==e||/^\s*$/.test(e)}function ee(e){var t=e.attributes["r:embed"],n=e.attributes["r:link"];if(t)return ne(t);if(n){var r=u.findTargetByRelationshipId(n);return{path:r,read:_.read.bind(_,r)}}return null}function te(e){var t=e.attributes["r:id"];return t?re(ne(t),e.attributes["o:title"]):p([s("A v:imagedata element without a relationship ID was ignored")])}function ne(e){var t=c.uriToZipEntryName("word",u.findTargetByRelationshipId(e));return{path:t,read:x.read.bind(x,t)}}function re(e,t){var n=l.findContentType(e.path),r=o.Image({readImage:e.read,altText:t,contentType:n}),i=f[n]?[]:s("Image of type "+n+" is unlikely to display in web browsers");return v(r,i)}function ie(e,t){return s(e+" style with ID "+t+" was referenced but not defined in the document")}}function d(e,t,n){if(null!=e){var r=n.findLevelByParagraphStyleId(e);if(null!=r)return r}var i=t.firstOrEmpty("w:ilvl").attributes["w:val"],o=t.firstOrEmpty("w:numId").attributes["w:val"];return void 0===i||void 0===o?null:n.findLevel(o,i)}var f={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},h={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function p(e){return new b(null,null,e)}function g(){return new b(null)}function m(e){return new b(e)}function v(e,t){return new b(e,null,t)}function b(e,t,n){this.value=e||[],this.extra=t||[],this._result=new a({element:this.value,extra:t},n),this.messages=this._result.messages}function y(e){var t=a.combine(i.pluck(e,"_result"));return new b(i.flatten(i.pluck(t.value,"element")),i.filter(i.flatten(i.pluck(t.value,"extra")),_),t.messages)}function x(e,t){return i.flatten([e,t])}function _(e){return e}b.prototype.toExtra=function(){return new b(null,x(this.extra,this.value),this.messages)},b.prototype.insertExtra=function(){var e=this.extra;return e&&e.length?new b(x(this.value,e),null,this.messages):this},b.prototype.map=function(e){var t=this._result.map((function(t){return e(t.element)}));return new b(t.value,this.extra,t.messages)},b.prototype.flatMap=function(e){var t=this._result.flatMap((function(t){return e(t.element)._result}));return new b(t.value.element,x(this.extra,t.value.extra),t.messages)},b.map=function(e,t,n){return new b(n(e.value,t.value),x(e.extra,t.extra),e.messages.concat(t.messages))}},{"../documents":4,"../results":25,"./uris":16,"dingbat-to-unicode":85,underscore:103}],6:[function(e,t,n){var r=e("../documents"),i=e("../results").Result;function o(e){function t(e){return i.combine(e.getElementsByTagName("w:comment").map(n))}function n(t){var n=t.attributes["w:id"];function i(e){return(t.attributes[e]||"").trim()||null}return e.readXmlElements(t.children).map((function(e){return r.comment({commentId:n,body:e,authorName:i("w:author"),authorInitials:i("w:initials")})}))}return t}n.createCommentsReader=o},{"../documents":4,"../results":25}],7:[function(e,t,n){n.readContentTypesFromXml=i;var r={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};function i(e){var t={},n={};return e.children.forEach((function(e){if("content-types:Default"===e.name&&(t[e.attributes.Extension]=e.attributes.ContentType),"content-types:Override"===e.name){var r=e.attributes.PartName;"/"===r.charAt(0)&&(r=r.substring(1)),n[r]=e.attributes.ContentType}})),o(n,t)}function o(e,t){return{findContentType:function(n){var i=e[n];if(i)return i;var o=n.split("."),a=o[o.length-1];if(t.hasOwnProperty(a))return t[a];var s=r[a.toLowerCase()];return s?"image/"+s:null}}}n.defaultContentTypes=o({},{})},{}],8:[function(e,t,n){n.DocumentXmlReader=o;var r=e("../documents"),i=e("../results").Result;function o(e){var t=e.bodyReader;function n(n){var o=n.first("w:body"),a=t.readXmlElements(o.children).map((function(t){return new r.Document(t,{notes:e.notes,comments:e.comments})}));return new i(a.value,a.messages)}return{convertXmlToDocument:n}}},{"../documents":4,"../results":25}],9:[function(e,t,n){n.read=b,n._findPartPaths=y;var r=e("path"),i=e("../promises"),o=e("../documents"),a=e("../results").Result,s=e("../zipfile"),c=e("./office-xml-reader").readXmlFromZipFile,u=e("./body-reader").createBodyReader,l=e("./document-xml-reader").DocumentXmlReader,d=e("./relationships-reader"),f=e("./content-types-reader"),h=e("./numbering-xml"),p=e("./styles-reader"),g=e("./notes-reader"),m=e("./comments-reader"),v=e("./files").Files;function b(e,t){return t=t||{},i.props({contentTypes:k(e),partPaths:y(e),docxFile:e,files:new v(t.path?r.dirname(t.path):null)}).also((function(t){return{styles:S(e,t.partPaths.styles)}})).also((function(t){return{numbering:T(e,t.partPaths.numbering,t.styles)}})).also((function(e){return{footnotes:D(e.partPaths.footnotes,e,(function(e,t){return t?g.createFootnotesReader(e)(t):new a([])})),endnotes:D(e.partPaths.endnotes,e,(function(e,t){return t?g.createEndnotesReader(e)(t):new a([])})),comments:D(e.partPaths.comments,e,(function(e,t){return t?m.createCommentsReader(e)(t):new a([])}))}})).also((function(e){return{notes:e.footnotes.flatMap((function(t){return e.endnotes.map((function(e){return new o.Notes(t.concat(e))}))}))}})).then((function(e){return D(e.partPaths.mainDocument,e,(function(t,n){return e.notes.flatMap((function(r){return e.comments.flatMap((function(e){var i=new l({bodyReader:t,notes:r,comments:e});return i.convertXmlToDocument(n)}))}))}))}))}function y(e){return A(e).then((function(t){var n=x({docxFile:e,relationships:t,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!e.exists(n))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return w({filename:C(n),readElement:d.readRelationships,defaultValue:d.defaultValue})(e).then((function(t){function r(r){return x({docxFile:e,relationships:t,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+r,basePath:s.splitPath(n).dirname,fallbackPath:"word/"+r+".xml"})}return{mainDocument:n,comments:r("comments"),endnotes:r("endnotes"),footnotes:r("footnotes"),numbering:r("numbering"),styles:r("styles")}}))}))}function x(e){var t=e.docxFile,n=e.relationships,r=e.relationshipType,i=e.basePath,o=e.fallbackPath,a=n.findTargetsByType(r),c=a.map((function(e){return _(s.joinPath(i,e),"/")})),u=c.filter((function(e){return t.exists(e)}));return 0===u.length?o:u[0]}function _(e,t){return e.substring(0,t.length)===t?e.substring(t.length):e}function w(e){return function(t){return c(t,e.filename).then((function(t){return t?e.readElement(t):e.defaultValue}))}}function D(e,t,n){var r=w({filename:C(e),readElement:d.readRelationships,defaultValue:d.defaultValue});return r(t.docxFile).then((function(r){var i=new u({relationships:r,contentTypes:t.contentTypes,docxFile:t.docxFile,numbering:t.numbering,styles:t.styles,files:t.files});return c(t.docxFile,e).then((function(e){return n(i,e)}))}))}function C(e){var t=s.splitPath(e);return s.joinPath(t.dirname,"_rels",t.basename+".rels")}var k=w({filename:"[Content_Types].xml",readElement:f.readContentTypesFromXml,defaultValue:f.defaultContentTypes});function T(e,t,n){return w({filename:t,readElement:function(e){return h.readNumberingXml(e,{styles:n})},defaultValue:h.defaultNumbering})(e)}function S(e,t){return w({filename:t,readElement:p.readStylesXml,defaultValue:p.defaultStyles})(e)}var A=w({filename:"_rels/.rels",readElement:d.readRelationships,defaultValue:d.defaultValue})},{"../documents":4,"../promises":23,"../results":25,"../zipfile":40,"./body-reader":5,"./comments-reader":6,"./content-types-reader":7,"./document-xml-reader":8,"./files":1,"./notes-reader":10,"./numbering-xml":11,"./office-xml-reader":12,"./relationships-reader":13,"./styles-reader":15,path:101}],10:[function(e,t,n){var r=e("../documents"),i=e("../results").Result;function o(e,t){function n(t){return i.combine(t.getElementsByTagName("w:"+e).filter(o).map(a))}function o(e){var t=e.attributes["w:type"];return"continuationSeparator"!==t&&"separator"!==t}function a(n){var i=n.attributes["w:id"];return t.readXmlElements(n.children).map((function(t){return r.Note({noteType:e,noteId:i,body:t})}))}return n}n.createFootnotesReader=o.bind(this,"footnote"),n.createEndnotesReader=o.bind(this,"endnote")},{"../documents":4,"../results":25}],11:[function(e,t,n){var r=e("underscore");function i(e,t,n){var i=r.flatten(r.values(t).map((function(e){return r.values(e.levels)}))),o=r.indexBy(i.filter((function(e){return null!=e.paragraphStyleId})),"paragraphStyleId");function a(r,i){var o=e[r];if(o){var s=t[o.abstractNumId];if(s){if(null==s.numStyleLink)return t[o.abstractNumId].levels[i];var c=n.findNumberingStyleById(s.numStyleLink);return a(c.numId,i)}return null}return null}function s(e){return o[e]||null}return{findLevel:a,findLevelByParagraphStyleId:s}}function o(e,t){if(!t||!t.styles)throw new Error("styles is missing");var n=a(e),r=c(e,n);return new i(r,n,t.styles)}function a(e){var t={};return e.getElementsByTagName("w:abstractNum").forEach((function(e){var n=e.attributes["w:abstractNumId"];t[n]=s(e)})),t}function s(e){var t={};e.getElementsByTagName("w:lvl").forEach((function(e){var n=e.attributes["w:ilvl"],r=e.first("w:numFmt").attributes["w:val"],i=e.firstOrEmpty("w:pStyle").attributes["w:val"];t[n]={isOrdered:"bullet"!==r,level:n,paragraphStyleId:i}}));var n=e.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:t,numStyleLink:n}}function c(e){var t={};return e.getElementsByTagName("w:num").forEach((function(e){var n=e.attributes["w:numId"],r=e.first("w:abstractNumId").attributes["w:val"];t[n]={abstractNumId:r}})),t}n.readNumberingXml=o,n.Numbering=i,n.defaultNumbering=new i({},{})},{underscore:103}],12:[function(e,t,n){var r=e("underscore"),i=e("../promises"),o=e("../xml");n.read=s,n.readXmlFromZipFile=c;var a={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","urn:schemas-microsoft-com:vml":"v","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:office:word":"office-word"};function s(e){return o.readString(e,a).then((function(e){return l(e)[0]}))}function c(e,t){return e.exists(t)?e.read(t,"utf-8").then(u).then(s):i.resolve(null)}function u(e){return e.replace(/^\uFEFF/g,"")}function l(e){return"element"===e.type?"mc:AlternateContent"===e.name?e.first("mc:Fallback").children:(e.children=r.flatten(e.children.map(l,!0)),[e]):[e]}},{"../promises":23,"../xml":35,underscore:103}],13:[function(e,t,n){function r(e){var t=[];return e.children.forEach((function(e){if("{http://schemas.openxmlformats.org/package/2006/relationships}Relationship"===e.name){var n={relationshipId:e.attributes.Id,target:e.attributes.Target,type:e.attributes.Type};t.push(n)}})),new i(t)}function i(e){var t={};e.forEach((function(e){t[e.relationshipId]=e.target}));var n={};return e.forEach((function(e){n[e.type]||(n[e.type]=[]),n[e.type].push(e.target)})),{findTargetByRelationshipId:function(e){return t[e]},findTargetsByType:function(e){return n[e]||[]}}}n.readRelationships=r,n.defaultValue=new i([]),n.Relationships=i},{}],14:[function(e,t,n){var r=e("underscore"),i=e("../promises"),o=e("../xml");n.writeStyleMap=u,n.readStyleMap=h;var a="http://schemas.zwobble.org/mammoth/style-map",s="mammoth/style-map",c="/"+s;function u(e,t){return e.write(s,t),l(e).then((function(){return d(e)}))}function l(e){var t="word/_rels/document.xml.rels",n="http://schemas.openxmlformats.org/package/2006/relationships",r="{"+n+"}Relationship";return e.read(t,"utf8").then(o.readString).then((function(i){var s=i.children;f(s,r,"Id",{Id:"rMammothStyleMap",Type:a,Target:c});var u={"":n};return e.write(t,o.writeString(i,u))}))}function d(e){var t="[Content_Types].xml",n="http://schemas.openxmlformats.org/package/2006/content-types",r="{"+n+"}Override";return e.read(t,"utf8").then(o.readString).then((function(i){var a=i.children;f(a,r,"PartName",{PartName:c,ContentType:"text/prs.mammoth.style-map"});var s={"":n};return e.write(t,o.writeString(i,s))}))}function f(e,t,n,i){var a=r.find(e,(function(e){return e.name===t&&e.attributes[n]===i[n]}));a?a.attributes=i:e.push(o.element(t,i))}function h(e){return e.exists(s)?e.read(s,"utf8"):i.resolve(null)}},{"../promises":23,"../xml":35,underscore:103}],15:[function(e,t,n){function r(e,t,n,r){return{findParagraphStyleById:function(t){return e[t]},findCharacterStyleById:function(e){return t[e]},findTableStyleById:function(e){return n[e]},findNumberingStyleById:function(e){return r[e]}}}function i(e){var t={},n={},i={},a={},c={paragraph:t,character:n,table:i};return e.getElementsByTagName("w:style").forEach((function(e){var t=o(e);if("numbering"===t.type)a[t.styleId]=s(e);else{var n=c[t.type];n&&(n[t.styleId]=t)}})),new r(t,n,i,a)}function o(e){var t=e.attributes["w:type"],n=e.attributes["w:styleId"],r=a(e);return{type:t,styleId:n,name:r}}function a(e){var t=e.first("w:name");return t?t.attributes["w:val"]:null}function s(e){var t=e.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{numId:t}}n.readStylesXml=i,n.Styles=r,n.defaultStyles=new r({},{}),r.EMPTY=new r({},{},{},{})},{}],16:[function(e,t,n){function r(e,t){return"/"===t.charAt(0)?t.substr(1):e+"/"+t}function i(e,t){var n=e.indexOf("#");return-1!==n&&(e=e.substring(0,n)),e+"#"+t}n.uriToZipEntryName=r,n.replaceFragment=i},{}],17:[function(e,t,n){var r=e("../styles/html-paths");function i(e,t,n){return a(r.element(e,t,{fresh:!1}),n)}function o(e,t,n){var i=r.element(e,t,{fresh:!0});return a(i,n)}function a(e,t){return{type:"element",tag:e,children:t||[]}}function s(e){return{type:"text",value:e}}var c={type:"forceWrite"};n.freshElement=o,n.nonFreshElement=i,n.elementWithTag=a,n.text=s,n.forceWrite=c;var u={br:!0,hr:!0,img:!0};function l(e){return 0===e.children.length&&u[e.tag.tagName]}n.isVoidElement=l},{"../styles/html-paths":28}],18:[function(e,t,n){var r=e("./ast");function i(e,t){t.forEach((function(t){o(e,t)}))}function o(e,t){a[t.type](e,t)}n.freshElement=r.freshElement,n.nonFreshElement=r.nonFreshElement,n.elementWithTag=r.elementWithTag,n.text=r.text,n.forceWrite=r.forceWrite,n.simplify=e("./simplify");var a={element:s,text:c,forceWrite:function(){}};function s(e,t){r.isVoidElement(t)?e.selfClosing(t.tag.tagName,t.tag.attributes):(e.open(t.tag.tagName,t.tag.attributes),i(e,t.children),e.close(t.tag.tagName))}function c(e,t){e.text(t.value)}n.write=i},{"./ast":17,"./simplify":19}],19:[function(e,t,n){var r=e("underscore"),i=e("./ast");function o(e){return a(f(e))}function a(e){var t=[];return e.map(s).forEach((function(e){d(t,e)})),t}function s(e){return c[e.type](e)}var c={element:u,text:l,forceWrite:l};function u(e){return i.elementWithTag(e.tag,a(e.children))}function l(e){return e}function d(e,t){var n=e[e.length-1];"element"===t.type&&!t.tag.fresh&&n&&"element"===n.type&&t.tag.matchesElement(n.tag)?(t.tag.separator&&d(n.children,i.text(t.tag.separator)),t.children.forEach((function(e){d(n.children,e)}))):e.push(t)}function f(e){return h(e,(function(e){return p[e.type](e)}))}function h(e,t){return r.flatten(r.map(e,t),!0)}var p={element:m,text:v,forceWrite:g};function g(e){return[e]}function m(e){var t=f(e.children);return 0!==t.length||i.isVoidElement(e)?[i.elementWithTag(e.tag,t)]:[]}function v(e){return 0===e.value.length?[]:[e]}t.exports=o},{"./ast":17,underscore:103}],20:[function(e,t,n){var r=e("underscore"),i=e("./promises"),o=e("./html");function a(e){return function(t,n){return i.when(e(t)).then((function(e){var n={};return t.altText&&(n.alt=t.altText),r.extend(n,e),[o.freshElement("img",n)]}))}}n.imgElement=a,n.inline=n.imgElement,n.dataUri=a((function(e){return e.readAsBase64String().then((function(t){return{src:"data:"+e.contentType+";base64,"+t}}))}))},{"./html":18,"./promises":23,underscore:103}],21:[function(e,t,n){(function(t){var r=e("underscore"),i=e("./docx/docx-reader"),o=e("./docx/style-map"),a=e("./document-to-html").DocumentConverter,s=e("./raw-text").convertElementToRawText,c=e("./style-reader").readStyle,u=e("./options-reader").readOptions,l=e("./unzip"),d=e("./results").Result;function f(e,t){return p(e,t)}function h(e,t){var n=Object.create(t||{});return n.outputFormat="markdown",p(e,n)}function p(e,t){return t=u(t),l.openZip(e).tap((function(e){return o.readStyleMap(e).then((function(e){t.embeddedStyleMap=e}))})).then((function(n){return i.read(n,e).then((function(e){return e.map(t.transformDocument)})).then((function(e){return m(e,t)}))}))}function g(e){return l.openZip(e).then(o.readStyleMap)}function m(e,t){var n=v(t.readStyleMap()),i=r.extend({},t,{styleMap:n.value}),o=new a(i);return e.flatMapThen((function(e){return n.flatMapThen((function(t){return o.convertToHtml(e)}))}))}function v(e){return d.combine((e||[]).map(c)).map((function(e){return e.filter((function(e){return!!e}))}))}function b(e){return l.openZip(e).then(i.read).then((function(e){return e.map(s)}))}function y(e,n){return l.openZip(e).tap((function(e){return o.writeStyleMap(e,n)})).then((function(e){return e.toArrayBuffer()})).then((function(e){return{toArrayBuffer:function(){return e},toBuffer:function(){return t.from(e)}}}))}n.convertToHtml=f,n.convertToMarkdown=h,n.convert=p,n.extractRawText=b,n.images=e("./images"),n.transforms=e("./transforms"),n.underline=e("./underline"),n.embedStyleMap=y,n.readEmbeddedStyleMap=g,n.styleMapping=function(){throw new Error("Use a raw string instead of mammoth.styleMapping e.g. \"p[style-name='Title'] => h1\" instead of mammoth.styleMapping(\"p[style-name='Title'] => h1\")")}}).call(this,e("buffer").Buffer)},{"./document-to-html":3,"./docx/docx-reader":9,"./docx/style-map":14,"./images":20,"./options-reader":22,"./raw-text":24,"./results":25,"./style-reader":26,"./transforms":30,"./underline":31,"./unzip":2,buffer:83,underscore:103}],22:[function(e,t,n){n.readOptions=a;var r=e("underscore"),i=n._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh"],o=n._standardOptions={transformDocument:c,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function a(e){return e=e||{},r.extend({},o,e,{customStyleMap:s(e.styleMap),readStyleMap:function(){var e=this.customStyleMap;return this.includeEmbeddedStyleMap&&(e=e.concat(s(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(e=e.concat(i)),e}})}function s(e){return e?r.isString(e)?e.split("\n").map((function(e){return e.trim()})).filter((function(e){return""!==e&&"#"!==e.charAt(0)})):e:[]}function c(e){return e}},{underscore:103}],23:[function(e,t,n){var r=e("underscore"),i=e("bluebird/js/release/promise")();function o(){var e,t,n=new i.Promise((function(n,r){e=n,t=r}));return{resolve:e,reject:t,promise:n}}n.defer=o,n.when=i.resolve,n.resolve=i.resolve,n.all=i.all,n.props=i.props,n.reject=i.reject,n.promisify=i.promisify,n.mapSeries=i.mapSeries,n.attempt=i.attempt,n.nfcall=function(e){var t=Array.prototype.slice.call(arguments,1),n=i.promisify(e);return n.apply(null,t)},i.prototype.fail=i.prototype.caught,i.prototype.also=function(e){return this.then((function(t){var n=r.extend({},t,e(t));return i.props(n)}))}},{"bluebird/js/release/promise":68,underscore:103}],24:[function(e,t,n){var r=e("./documents");function i(e){if("text"===e.type)return e.value;if(e.type===r.types.tab)return"\t";var t="paragraph"===e.type?"\n\n":"";return(e.children||[]).map(i).join("")+t}n.convertElementToRawText=i},{"./documents":4}],25:[function(e,t,n){var r=e("underscore");function i(e,t){this.value=e,this.messages=t||[]}function o(e){return new i(e,[])}function a(e){return{type:"warning",message:e}}function s(e){return{type:"error",message:e.message,error:e}}function c(e){var t=[];return r.flatten(r.pluck(e,"messages"),!0).forEach((function(e){u(t,e)||t.push(e)})),t}function u(e,t){return void 0!==r.find(e,l.bind(null,t))}function l(e,t){return e.type===t.type&&e.message===t.message}n.Result=i,n.success=o,n.warning=a,n.error=s,i.prototype.map=function(e){return new i(e(this.value),this.messages)},i.prototype.flatMap=function(e){var t=e(this.value);return new i(t.value,c([this,t]))},i.prototype.flatMapThen=function(e){var t=this;return e(this.value).then((function(e){return new i(e.value,c([t,e]))}))},i.combine=function(e){var t=r.flatten(r.pluck(e,"value")),n=c(e);return new i(t,n)}},{underscore:103}],26:[function(e,t,n){var r=e("underscore"),i=e("lop"),o=e("./styles/document-matchers"),a=e("./styles/html-paths"),s=e("./styles/parser/tokeniser").tokenise,c=e("./results");function u(e){return _(C,e)}function l(){return i.rules.sequence(i.rules.sequence.capture(f()),i.rules.tokenOfType("whitespace"),i.rules.tokenOfType("arrow"),i.rules.sequence.capture(i.rules.optional(i.rules.sequence(i.rules.tokenOfType("whitespace"),i.rules.sequence.capture(p())).head())),i.rules.tokenOfType("end")).map((function(e,t){return{from:e,to:t.valueOrElse(a.empty)}}))}function d(e){return _(f(),e)}function f(){var e=i.rules.sequence,t=function(e,t){return i.rules.then(i.rules.token("identifier",e),(function(){return t}))},n=t("p",o.paragraph),a=t("r",o.run),s=i.rules.firstOf("p or r or table",n,a),c=i.rules.then(x,(function(e){return{styleId:e}})),u=i.rules.firstOf("style name matcher",i.rules.then(i.rules.sequence(i.rules.tokenOfType("equals"),i.rules.sequence.cut(),i.rules.sequence.capture(v)).head(),(function(e){return{styleName:o.equalTo(e)}})),i.rules.then(i.rules.sequence(i.rules.tokenOfType("startsWith"),i.rules.sequence.cut(),i.rules.sequence.capture(v)).head(),(function(e){return{styleName:o.startsWith(e)}}))),l=i.rules.sequence(i.rules.tokenOfType("open-square-bracket"),i.rules.sequence.cut(),i.rules.token("identifier","style-name"),i.rules.sequence.capture(u),i.rules.tokenOfType("close-square-bracket")).head(),d=i.rules.firstOf("list type",t("ordered-list",{isOrdered:!0}),t("unordered-list",{isOrdered:!1})),f=e(i.rules.tokenOfType("colon"),e.capture(d),e.cut(),i.rules.tokenOfType("open-paren"),e.capture(m),i.rules.tokenOfType("close-paren")).map((function(e,t){return{list:{isOrdered:e.isOrdered,levelIndex:t-1}}}));function h(e){var t=i.rules.firstOf.apply(i.rules.firstOf,["matcher suffix"].concat(e)),n=i.rules.zeroOrMore(t);return i.rules.then(n,(function(e){var t={};return e.forEach((function(e){r.extend(t,e)})),t}))}var p=e(e.capture(s),e.capture(h([c,l,f]))).map((function(e,t){return e(t)})),g=e(i.rules.token("identifier","table"),e.capture(h([c,l]))).map((function(e){return o.table(e)})),b=t("b",o.bold),y=t("i",o.italic),_=t("u",o.underline),w=t("strike",o.strikethrough),D=t("all-caps",o.allCaps),C=t("small-caps",o.smallCaps),k=t("comment-reference",o.commentReference),T=e(i.rules.token("identifier","br"),e.cut(),i.rules.tokenOfType("open-square-bracket"),i.rules.token("identifier","type"),i.rules.tokenOfType("equals"),e.capture(v),i.rules.tokenOfType("close-square-bracket")).map((function(e){switch(e){case"line":return o.lineBreak;case"page":return o.pageBreak;case"column":return o.columnBreak;default:}}));return i.rules.firstOf("element type",p,g,b,y,_,w,D,C,k,T)}function h(e){return _(p(),e)}function p(){var e=i.rules.sequence.capture,t=i.rules.tokenOfType("whitespace"),n=i.rules.then(i.rules.optional(i.rules.sequence(i.rules.tokenOfType("colon"),i.rules.token("identifier","fresh"))),(function(e){return e.map((function(){return!0})).valueOrElse(!1)})),r=i.rules.then(i.rules.optional(i.rules.sequence(i.rules.tokenOfType("colon"),i.rules.token("identifier","separator"),i.rules.tokenOfType("open-paren"),e(v),i.rules.tokenOfType("close-paren")).head()),(function(e){return e.valueOrElse("")})),o=i.rules.oneOrMoreWithSeparator(g,i.rules.tokenOfType("choice")),s=i.rules.sequence(e(o),e(i.rules.zeroOrMore(x)),e(n),e(r)).map((function(e,t,n,r){var i={},o={};return t.length>0&&(i["class"]=t.join(" ")),n&&(o.fresh=!0),r&&(o.separator=r),a.element(e,i,o)}));return i.rules.firstOf("html path",i.rules.then(i.rules.tokenOfType("bang"),(function(){return a.ignore})),i.rules.then(i.rules.zeroOrMoreWithSeparator(s,i.rules.sequence(t,i.rules.tokenOfType("gt"),t)),a.elements))}n.readHtmlPath=h,n.readDocumentMatcher=d,n.readStyle=u;var g=i.rules.then(i.rules.tokenOfType("identifier"),y),m=i.rules.tokenOfType("integer"),v=i.rules.then(i.rules.tokenOfType("string"),y),b={n:"\n",r:"\r",t:"\t"};function y(e){return e.replace(/\\(.)/g,(function(e,t){return b[t]||t}))}var x=i.rules.sequence(i.rules.tokenOfType("dot"),i.rules.sequence.cut(),i.rules.sequence.capture(g)).head();function _(e,t){var n=s(t),r=i.Parser(),o=r.parseTokens(e,n);return o.isSuccess()?c.success(o.value()):new c.Result(null,[c.warning(w(t,o))])}function w(e,t){return"Did not understand this style mapping, so ignored it: "+e+"\n"+t.errors().map(D).join("\n")}function D(e){return"Error was at character number "+e.characterNumber()+": Expected "+e.expected+" but got "+e.actual}var C=l()},{"./results":25,"./styles/document-matchers":27,"./styles/html-paths":28,"./styles/parser/tokeniser":29,lop:89,underscore:103}],27:[function(e,t,n){function r(e){return new a("paragraph",e)}function i(e){return new a("run",e)}function o(e){return new a("table",e)}function a(e,t){t=t||{},this._elementType=e,this._styleId=t.styleId,this._styleName=t.styleName,t.list&&(this._listIndex=t.list.levelIndex,this._listIsOrdered=t.list.isOrdered)}function s(e,t,n){return e.numbering&&e.numbering.level==t&&e.numbering.isOrdered==n}function c(e){return{operator:l,operand:e}}function u(e){return{operator:d,operand:e}}function l(e,t){return e.toUpperCase()===t.toUpperCase()}function d(e,t){return 0===t.toUpperCase().indexOf(e.toUpperCase())}n.paragraph=r,n.run=i,n.table=o,n.bold=new a("bold"),n.italic=new a("italic"),n.underline=new a("underline"),n.strikethrough=new a("strikethrough"),n.allCaps=new a("allCaps"),n.smallCaps=new a("smallCaps"),n.commentReference=new a("commentReference"),n.lineBreak=new a("break",{breakType:"line"}),n.pageBreak=new a("break",{breakType:"page"}),n.columnBreak=new a("break",{breakType:"column"}),n.equalTo=c,n.startsWith=u,a.prototype.matches=function(e){return e.type===this._elementType&&(void 0===this._styleId||e.styleId===this._styleId)&&(void 0===this._styleName||e.styleName&&this._styleName.operator(this._styleName.operand,e.styleName))&&(void 0===this._listIndex||s(e,this._listIndex,this._listIsOrdered))&&(void 0===this._breakType||this._breakType===e.breakType)}},{}],28:[function(e,t,n){var r=e("underscore"),i=e("../html");function o(e,t){return a([c(e,t,{fresh:!0})])}function a(e){return new s(e.map((function(e){return r.isString(e)?c(e):e})))}function s(e){this._elements=e}function c(e,t,n){return n=n||{},new u(e,t,n)}function u(e,t,n){var i={};r.isArray(e)?(e.forEach((function(e){i[e]=!0})),e=e[0]):i[e]=!0,this.tagName=e,this.tagNames=i,this.attributes=t||{},this.fresh=n.fresh,this.separator=n.separator}n.topLevelElement=o,n.elements=a,n.element=c,s.prototype.wrap=function(e){for(var t=e(),n=this._elements.length-1;n>=0;n--)t=this._elements[n].wrapNodes(t);return t},u.prototype.matchesElement=function(e){return this.tagNames[e.tagName]&&r.isEqual(this.attributes||{},e.attributes||{})},u.prototype.wrap=function(e){return this.wrapNodes(e())},u.prototype.wrapNodes=function(e){return[i.elementWithTag(this,e)]},n.empty=a([]),n.ignore={wrap:function(){return[]}}},{"../html":18,underscore:103}],29:[function(e,t,n){var r=e("lop"),i=r.RegexTokeniser;n.tokenise=a;var o="'((?:\\\\.|[^'])*)";function a(e){var t="(?:[a-zA-Z\\-_]|\\\\.)",n=new i([{name:"identifier",regex:new RegExp("("+t+"(?:"+t+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(o+"'")},{name:"unterminated-string",regex:new RegExp(o)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return n.tokenise(e)}},{lop:89}],30:[function(e,t,n){var r=e("underscore");function i(e){return a("paragraph",e)}function o(e){return a("run",e)}function a(e,t){return s((function(n){return n.type===e?t(n):n}))}function s(e){return function t(n){if(n.children){var i=r.map(n.children,t);n=r.extend(n,{children:i})}return e(n)}}function c(e,t){return u(e).filter((function(e){return e.type===t}))}function u(e){var t=[];return l(e,(function(e){t.push(e)})),t}function l(e,t){e.children&&e.children.forEach((function(e){l(e,t),t(e)}))}n.paragraph=i,n.run=o,n._elements=s,n.getDescendantsOfType=c,n.getDescendants=u},{underscore:103}],31:[function(e,t,n){var r=e("./styles/html-paths"),i=e("./html");function o(e){return function(t){return i.elementWithTag(r.element(e),[t])}}n.element=o},{"./html":18,"./styles/html-paths":28}],32:[function(e,t,n){var r=e("underscore");function i(e){return e=e||{},e.prettyPrint?a():s()}n.writer=i;var o={div:!0,p:!0,ul:!0,li:!0};function a(){var e=0,t="  ",n=[],i=!0,a=!1,c=s();function u(t,r){o[t]&&g(),n.push(t),c.open(t,r),o[t]&&e++,i=!1}function l(t){o[t]&&(e--,g()),n.pop(),c.close(t)}function d(e){p();var n=m()?e:e.replace("\n","\n"+t);c.text(n)}function f(e,t){g(),c.selfClosing(e,t)}function h(){return 0===n.length||o[n[n.length-1]]}function p(){a||(g(),a=!0)}function g(){if(a=!1,!i&&h()&&!m()){c._append("\n");for(var n=0;n<e;n++)c._append(t)}}function m(){return r.some(n,(function(e){return"pre"===e}))}return{asString:c.asString,open:u,close:l,text:d,selfClosing:f}}function s(){var e=[];function t(t,n){var r=o(n);e.push("<"+t+r+">")}function n(t){e.push("</"+t+">")}function i(t,n){var r=o(n);e.push("<"+t+r+" />")}function o(e){return r.map(e,(function(e,t){return" "+t+'="'+u(e)+'"'})).join("")}function a(t){e.push(c(t))}function s(t){e.push(t)}function l(){return e.join("")}return{asString:l,open:t,close:n,text:a,selfClosing:i,_append:s}}function c(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function u(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}},{underscore:103}],33:[function(e,t,n){var r=e("./html-writer"),i=e("./markdown-writer");function o(e){return e=e||{},"markdown"===e.outputFormat?i.writer():r.writer(e)}n.writer=o},{"./html-writer":32,"./markdown-writer":34}],34:[function(e,t,n){var r=e("underscore");function i(e){return o(e,e)}function o(e,t){return function(){return{start:e,end:t}}}function a(e){var t=e.href||"";return t?{start:"[",end:"]("+t+")",anchorPosition:"before"}:{}}function s(e){var t=e.src||"",n=e.alt||"";return t||n?{start:"!["+n+"]("+t+")"}:{}}function c(e){return function(t,n){return{start:n?"\n":"",end:n?"":"\n",list:{isOrdered:e.isOrdered,indent:n?n.indent+1:0,count:0}}}}function u(e,t,n){t=t||{indent:0,isOrdered:!1,count:0},t.count++,n.hasClosed=!1;var r=t.isOrdered?t.count+".":"-",i=d("\t",t.indent)+r+" ";return{start:i,end:function(){if(!n.hasClosed)return n.hasClosed=!0,"\n"}}}var l={p:o("","\n\n"),br:o("","  \n"),ul:c({isOrdered:!1}),ol:c({isOrdered:!0}),li:u,strong:i("__"),em:i("*"),a:a,img:s};function d(e,t){return new Array(t+1).join(e)}function f(){var e=[],t=[],n=null,i={};function o(r,o){o=o||{};var s=l[r]||function(){return{}},c=s(o,n,i);t.push({end:c.end,list:n}),c.list&&(n=c.list);var u="before"===c.anchorPosition;u&&a(o),e.push(c.start||""),u||a(o)}function a(t){t.id&&e.push('<a id="'+t.id+'"></a>')}function s(i){var o=t.pop();n=o.list;var a=r.isFunction(o.end)?o.end():o.end;e.push(a||"")}function c(e,t){o(e,t),s(e)}function u(t){e.push(h(t))}function d(){return e.join("")}return{asString:d,open:o,close:s,text:u,selfClosing:c}}function h(e){return e.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}(function(){for(var e=1;e<=6;e++)l["h"+e]=o(d("#",e)+" ","\n\n")})(),n.writer=f},{underscore:103}],35:[function(e,t,n){var r=e("./nodes");n.Element=r.Element,n.element=r.element,n.text=r.text,n.readString=e("./reader").readString,n.writeString=e("./writer").writeString},{"./nodes":36,"./reader":37,"./writer":38}],36:[function(e,t,n){var r=e("underscore");n.Element=o,n.element=function(e,t,n){return new o(e,t,n)},n.text=function(e){return{type:"text",value:e}};var i={first:function(){return null},firstOrEmpty:function(){return i},attributes:{}};function o(e,t,n){this.type="element",this.name=e,this.attributes=t||{},this.children=n||[]}o.prototype.first=function(e){return r.find(this.children,(function(t){return t.name===e}))},o.prototype.firstOrEmpty=function(e){return this.first(e)||i},o.prototype.getElementsByTagName=function(e){var t=r.filter(this.children,(function(t){return t.name===e}));return s(t)},o.prototype.text=function(){if(0===this.children.length)return"";if(1!==this.children.length||"text"!==this.children[0].type)throw new Error("Not implemented");return this.children[0].value};var a={getElementsByTagName:function(e){return s(r.flatten(this.map((function(t){return t.getElementsByTagName(e)}),!0)))}};function s(e){return r.extend(e,a)}},{underscore:103}],37:[function(e,t,n){var r=e("../promises"),i=e("underscore"),o=e("./xmldom"),a=e("./nodes"),s=a.Element;n.readString=u;var c=o.Node;function u(e,t){t=t||{};try{var n=o.parseFromString(e,"text/xml")}catch(f){return r.reject(f)}if("parsererror"===n.documentElement.tagName)return r.resolve(new Error(n.documentElement.textContent));function u(e){switch(e.nodeType){case c.ELEMENT_NODE:return l(e);case c.TEXT_NODE:return a.text(e.nodeValue)}}function l(e){var t=d(e),n=[];i.forEach(e.childNodes,(function(e){var t=u(e);t&&n.push(t)}));var r={};return i.forEach(e.attributes,(function(e){r[d(e)]=e.value})),new s(t,r,n)}function d(e){if(e.namespaceURI){var n,r=t[e.namespaceURI];return n=r?r+":":"{"+e.namespaceURI+"}",n+e.localName}return e.localName}return r.resolve(u(n.documentElement))}},{"../promises":23,"./nodes":36,"./xmldom":39,underscore:103}],38:[function(e,t,n){var r=e("underscore"),i=e("xmlbuilder");function o(e,t){var n=r.invert(t),o={element:c,text:a};function s(e,t){return o[t.type](e,t)}function c(e,t){var n=e.element(u(t.name),t.attributes);t.children.forEach((function(e){s(n,e)}))}function u(e){var t=/^\{(.*)\}(.*)$/.exec(e);if(t){var r=n[t[1]];return r+(""===r?"":":")+t[2]}return e}function l(e){var n=i.create(u(e.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return r.forEach(t,(function(e,t){var r="xmlns"+(""===t?"":":"+t);n.attribute(r,e)})),e.children.forEach((function(e){s(n,e)})),n.end()}return l(e)}function a(e,t){e.text(t.value)}n.writeString=o},{underscore:103,xmlbuilder:128}],39:[function(e,t,n){var r=e("@xmldom/xmldom"),i=e("@xmldom/xmldom/lib/dom");function o(e){var t=null,n=new r.DOMParser({errorHandler:function(e,n){t={level:e,message:n}}}),i=n.parseFromString(e);if(null===t)return i;throw new Error(t.level+": "+t.message)}n.parseFromString=o,n.Node=i.Node},{"@xmldom/xmldom":45,"@xmldom/xmldom/lib/dom":43}],40:[function(e,t,n){var r=e("base64-js"),i=e("jszip");function o(e){return i.loadAsync(e).then((function(e){function t(t){return null!==e.file(t)}function n(t,n){return e.file(t).async("uint8array").then((function(e){if("base64"===n)return r.fromByteArray(e);if(n){var t=new TextDecoder(n);return t.decode(e)}return e}))}function i(t,n){e.file(t,n)}function o(){return e.generateAsync({type:"arraybuffer"})}return{exists:t,read:n,write:i,toArrayBuffer:o}}))}function a(e){var t=e.lastIndexOf("/");return-1===t?{dirname:"",basename:e}:{dirname:e.substring(0,t),basename:e.substring(t+1)}}function s(){var e=Array.prototype.filter.call(arguments,(function(e){return e})),t=[];return e.forEach((function(e){/^\//.test(e)?t=[e]:t.push(e)})),t.join("/")}n.openArrayBuffer=o,n.splitPath=a,n.joinPath=s},{"base64-js":47,jszip:88}],41:[function(e,t,n){"use strict";function r(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"===typeof n.find)return n.find.call(e,t);for(var r=0;r<e.length;r++)if(Object.prototype.hasOwnProperty.call(e,r)){var i=e[r];if(t.call(void 0,i,r,e))return i}}function i(e,t){return void 0===t&&(t=Object),t&&"function"===typeof t.freeze?t.freeze(e):e}function o(e,t){if(null===e||"object"!==typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var a=i({HTML:"text/html",isHTML:function(e){return e===a.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),s=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===s.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});n.assign=o,n.find=r,n.freeze=i,n.MIME_TYPE=a,n.NAMESPACE=s},{}],42:[function(e,t,n){var r=e("./conventions"),i=e("./dom"),o=e("./entities"),a=e("./sax"),s=i.DOMImplementation,c=r.NAMESPACE,u=a.ParseError,l=a.XMLReader;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function f(e){this.options=e||{locator:{}}}function h(e,t,n){if(!e){if(t instanceof p)return t;e=t}var r={},i=e instanceof Function;function o(t){var o=e[t];!o&&i&&(o=2==e.length?function(n){e(t,n)}:e),r[t]=o&&function(e){o("[xmldom "+t+"]\t"+e+m(n))}||function(){}}return n=n||{},o("warning"),o("error"),o("fatalError"),r}function p(){this.cdata=!1}function g(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function m(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function v(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function b(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}f.prototype.parseFromString=function(e,t){var n=this.options,r=new l,i=n.domBuilder||new p,a=n.errorHandler,s=n.locator,u=n.xmlns||{},f=/\/x?html?$/.test(t),g=f?o.HTML_ENTITIES:o.XML_ENTITIES;s&&i.setDocumentLocator(s),r.errorHandler=h(a,i,s),r.domBuilder=n.domBuilder||i,f&&(u[""]=c.HTML),u.xml=u.xml||c.XML;var m=n.normalizeLineEndings||d;return e&&"string"===typeof e?r.parse(m(e),u,g):r.errorHandler.error("invalid doc source"),i.doc},p.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,o=i.createElementNS(e,n||t),a=r.length;b(this,o),this.currentElement=o,this.locator&&g(this.locator,o);for(var s=0;s<a;s++){e=r.getURI(s);var c=r.getValue(s),u=(n=r.getQName(s),i.createAttributeNS(e,n));this.locator&&g(r.getLocator(s),u),u.value=u.nodeValue=c,o.setAttributeNode(u)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&g(this.locator,n),b(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=v.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&g(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=v.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&g(this.locator,r),b(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&g(this.locator,i),b(this,i),this.doc.doctype=i}},warning:function(e){console.warn("[xmldom warning]\t"+e,m(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,m(this.locator))},fatalError:function(e){throw new u(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){p.prototype[e]=function(){return null}})),n.__DOMHandler=p,n.normalizeLineEndings=d,n.DOMParser=f},{"./conventions":41,"./dom":43,"./entities":44,"./sax":46}],43:[function(e,t,n){var r=e("./conventions"),i=r.find,o=r.NAMESPACE;function a(e){return""!==e}function s(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}function c(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function u(e){if(!e)return[];var t=s(e);return Object.keys(t.reduce(c,{}))}function l(e){return function(t){return e&&-1!==e.indexOf(t)}}function d(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function f(e,t){var n=e.prototype;if(!(n instanceof t)){function r(){}r.prototype=t.prototype,r=new r,d(n,r),e.prototype=n=r}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var h={},p=h.ELEMENT_NODE=1,g=h.ATTRIBUTE_NODE=2,m=h.TEXT_NODE=3,v=h.CDATA_SECTION_NODE=4,b=h.ENTITY_REFERENCE_NODE=5,y=h.ENTITY_NODE=6,x=h.PROCESSING_INSTRUCTION_NODE=7,_=h.COMMENT_NODE=8,w=h.DOCUMENT_NODE=9,D=h.DOCUMENT_TYPE_NODE=10,C=h.DOCUMENT_FRAGMENT_NODE=11,k=h.NOTATION_NODE=12,T={},S={},A=(T.INDEX_SIZE_ERR=(S[1]="Index size error",1),T.DOMSTRING_SIZE_ERR=(S[2]="DOMString size error",2),T.HIERARCHY_REQUEST_ERR=(S[3]="Hierarchy request error",3)),E=(T.WRONG_DOCUMENT_ERR=(S[4]="Wrong document",4),T.INVALID_CHARACTER_ERR=(S[5]="Invalid character",5),T.NO_DATA_ALLOWED_ERR=(S[6]="No data allowed",6),T.NO_MODIFICATION_ALLOWED_ERR=(S[7]="No modification allowed",7),T.NOT_FOUND_ERR=(S[8]="Not found",8)),U=(T.NOT_SUPPORTED_ERR=(S[9]="Not supported",9),T.INUSE_ATTRIBUTE_ERR=(S[10]="Attribute in use",10));T.INVALID_STATE_ERR=(S[11]="Invalid state",11),T.SYNTAX_ERR=(S[12]="Syntax error",12),T.INVALID_MODIFICATION_ERR=(S[13]="Invalid modification",13),T.NAMESPACE_ERR=(S[14]="Invalid namespace",14),T.INVALID_ACCESS_ERR=(S[15]="Invalid access",15);function O(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,S[e]),this.message=S[e],Error.captureStackTrace&&Error.captureStackTrace(this,O);return n.code=e,t&&(this.message=this.message+": "+t),n}function F(){}function P(e,t){this._node=e,this._refresh=t,R(this)}function R(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);ke(e,"length",n.length),d(n,e),e._inc=t}}function N(){}function M(e,t){var n=e.length;while(n--)if(e[n]===t)return n}function I(e,t,n,r){if(r?t[M(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&q(i,e,r),V(i,e,n))}}function B(e,t,n){var r=M(t,n);if(!(r>=0))throw new O(E,new Error(e.tagName+"@"+n));var i=t.length-1;while(r<i)t[r]=t[++r];if(t.length=i,e){var o=e.ownerDocument;o&&(q(o,e,n),n.ownerElement=null)}}function L(){}function z(){}function W(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function j(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(j(e,t))return!0}while(e=e.nextSibling)}function H(){this.ownerDocument=this}function V(e,t,n){e&&e._inc++;var r=n.namespaceURI;r===o.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function q(e,t,n,r){e&&e._inc++;var i=n.namespaceURI;i===o.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function $(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{var i=t.firstChild,o=0;while(i)r[o++]=i,i=i.nextSibling;r.length=o,delete r[r.length]}}}function G(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,$(e.ownerDocument,e),t}function X(e){return e&&(e.nodeType===z.DOCUMENT_NODE||e.nodeType===z.DOCUMENT_FRAGMENT_NODE||e.nodeType===z.ELEMENT_NODE)}function Y(e){return e&&(Z(e)||J(e)||K(e)||e.nodeType===z.DOCUMENT_FRAGMENT_NODE||e.nodeType===z.COMMENT_NODE||e.nodeType===z.PROCESSING_INSTRUCTION_NODE)}function K(e){return e&&e.nodeType===z.DOCUMENT_TYPE_NODE}function Z(e){return e&&e.nodeType===z.ELEMENT_NODE}function J(e){return e&&e.nodeType===z.TEXT_NODE}function Q(e,t){var n=e.childNodes||[];if(i(n,Z)||K(t))return!1;var r=i(n,K);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function ee(e,t){var n=e.childNodes||[];function r(e){return Z(e)&&e!==t}if(i(n,r))return!1;var o=i(n,K);return!(t&&o&&n.indexOf(o)>n.indexOf(t))}function te(e,t,n){if(!X(e))throw new O(A,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new O(E,"child not in parent");if(!Y(t)||K(t)&&e.nodeType!==z.DOCUMENT_NODE)throw new O(A,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function ne(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===z.DOCUMENT_FRAGMENT_NODE){var a=o.filter(Z);if(a.length>1||i(o,J))throw new O(A,"More than one element or text in fragment");if(1===a.length&&!Q(e,n))throw new O(A,"Element in fragment can not be inserted before doctype")}if(Z(t)&&!Q(e,n))throw new O(A,"Only one element can be added and only after doctype");if(K(t)){if(i(r,K))throw new O(A,"Only one doctype is allowed");var s=i(r,Z);if(n&&r.indexOf(s)<r.indexOf(n))throw new O(A,"Doctype can only be inserted before an element");if(!n&&s)throw new O(A,"Doctype can not be appended since element is present")}}function re(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===z.DOCUMENT_FRAGMENT_NODE){var a=o.filter(Z);if(a.length>1||i(o,J))throw new O(A,"More than one element or text in fragment");if(1===a.length&&!ee(e,n))throw new O(A,"Element in fragment can not be inserted before doctype")}if(Z(t)&&!ee(e,n))throw new O(A,"Only one element can be added and only after doctype");if(K(t)){function s(e){return K(e)&&e!==n}if(i(r,s))throw new O(A,"Only one doctype is allowed");var c=i(r,Z);if(n&&r.indexOf(c)<r.indexOf(n))throw new O(A,"Doctype can only be inserted before an element")}}function ie(e,t,n,r){te(e,t,n),e.nodeType===z.DOCUMENT_NODE&&(r||ne)(e,t,n);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===C){var o=t.firstChild;if(null==o)return t;var a=t.lastChild}else o=a=t;var s=n?n.previousSibling:e.lastChild;o.previousSibling=s,a.nextSibling=n,s?s.nextSibling=o:e.firstChild=o,null==n?e.lastChild=a:n.previousSibling=a;do{o.parentNode=e}while(o!==a&&(o=o.nextSibling));return $(e.ownerDocument||e,e),t.nodeType==C&&(t.firstChild=t.lastChild=null),t}function oe(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,$(e.ownerDocument,e,t),t}function ae(){this._nsMap={}}function se(){}function ce(){}function ue(){}function le(){}function de(){}function fe(){}function he(){}function pe(){}function ge(){}function me(){}function ve(){}function be(){}function ye(e,t){var n=[],r=9==this.nodeType&&this.documentElement||this,i=r.prefix,o=r.namespaceURI;if(o&&null==i){i=r.lookupPrefix(o);if(null==i)var a=[{namespace:o,prefix:null}]}return we(this,n,e,t,a),n.join("")}function xe(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!i)return!1;if("xml"===r&&i===o.XML||i===o.XMLNS)return!1;var a=n.length;while(a--){var s=n[a];if(s.prefix===r)return s.namespace!==i}return!0}function _e(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,W),'"')}function we(e,t,n,r,i){if(i||(i=[]),r){if(e=r(e),!e)return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case p:var a=e.attributes,s=a.length,c=e.firstChild,u=e.tagName;n=o.isHTML(e.namespaceURI)||n;var l=u;if(!n&&!e.prefix&&e.namespaceURI){for(var d,f=0;f<a.length;f++)if("xmlns"===a.item(f).name){d=a.item(f).value;break}if(!d)for(var h=i.length-1;h>=0;h--){var y=i[h];if(""===y.prefix&&y.namespace===e.namespaceURI){d=y.namespace;break}}if(d!==e.namespaceURI)for(h=i.length-1;h>=0;h--){y=i[h];if(y.namespace===e.namespaceURI){y.prefix&&(l=y.prefix+":"+u);break}}}t.push("<",l);for(var k=0;k<s;k++){var T=a.item(k);"xmlns"==T.prefix?i.push({prefix:T.localName,namespace:T.value}):"xmlns"==T.nodeName&&i.push({prefix:"",namespace:T.value})}for(k=0;k<s;k++){T=a.item(k);if(xe(T,n,i)){var S=T.prefix||"",A=T.namespaceURI;_e(t,S?"xmlns:"+S:"xmlns",A),i.push({prefix:S,namespace:A})}we(T,t,n,r,i)}if(u===l&&xe(e,n,i)){S=e.prefix||"",A=e.namespaceURI;_e(t,S?"xmlns:"+S:"xmlns",A),i.push({prefix:S,namespace:A})}if(c||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(t.push(">"),n&&/^script$/i.test(u))while(c)c.data?t.push(c.data):we(c,t,n,r,i.slice()),c=c.nextSibling;else while(c)we(c,t,n,r,i.slice()),c=c.nextSibling;t.push("</",l,">")}else t.push("/>");return;case w:case C:c=e.firstChild;while(c)we(c,t,n,r,i.slice()),c=c.nextSibling;return;case g:return _e(t,e.name,e.value);case m:return t.push(e.data.replace(/[<&>]/g,W));case v:return t.push("<![CDATA[",e.data,"]]>");case _:return t.push("\x3c!--",e.data,"--\x3e");case D:var E=e.publicId,U=e.systemId;if(t.push("<!DOCTYPE ",e.name),E)t.push(" PUBLIC ",E),U&&"."!=U&&t.push(" ",U),t.push(">");else if(U&&"."!=U)t.push(" SYSTEM ",U,">");else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case x:return t.push("<?",e.target," ",e.data,"?>");case b:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function De(e,t,n){var r;switch(t.nodeType){case p:r=t.cloneNode(!1),r.ownerDocument=e;case C:break;case g:n=!0;break}if(r||(r=t.cloneNode(!1)),r.ownerDocument=e,r.parentNode=null,n){var i=t.firstChild;while(i)r.appendChild(De(e,i,n)),i=i.nextSibling}return r}function Ce(e,t,n){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];"object"!=typeof o&&o!=r[i]&&(r[i]=o)}switch(t.childNodes&&(r.childNodes=new F),r.ownerDocument=e,r.nodeType){case p:var a=t.attributes,s=r.attributes=new N,c=a.length;s._ownerElement=r;for(var u=0;u<c;u++)r.setAttributeNode(Ce(e,a.item(u),!0));break;case g:n=!0}if(n){var l=t.firstChild;while(l)r.appendChild(Ce(e,l,n)),l=l.nextSibling}return r}function ke(e,t,n){e[t]=n}O.prototype=Error.prototype,d(T,O),F.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)we(this[r],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},P.prototype.item=function(e){return R(this),this[e]},f(P,F),N.prototype={length:0,item:F.prototype.item,getNamedItem:function(e){var t=this.length;while(t--){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new O(U);var n=this.getNamedItem(e.nodeName);return I(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new O(U);return t=this.getNamedItemNS(e.namespaceURI,e.localName),I(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return B(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return B(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){var n=this.length;while(n--){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},L.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=new H;if(r.implementation=this,r.childNodes=new F,r.doctype=n||null,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new fe;return r.name=e,r.nodeName=e,r.publicId=t||"",r.systemId=n||"",r}},z.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return ie(this,e,t)},replaceChild:function(e,t){ie(this,e,t,re),t&&this.removeChild(t)},removeChild:function(e){return G(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Ce(this.ownerDocument||this,this,e)},normalize:function(){var e=this.firstChild;while(e){var t=e.nextSibling;t&&t.nodeType==m&&e.nodeType==m?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){var t=this;while(t){var n=t._nsMap;if(n)for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===e)return r;t=t.nodeType==g?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==g?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return null==t}},d(h,z),d(h,z.prototype),H.prototype={nodeName:"#document",nodeType:w,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==C){var n=e.firstChild;while(n){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return ie(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===p&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),G(this,e)},replaceChild:function(e,t){ie(this,e,t,re),e.ownerDocument=this,t&&this.removeChild(t),Z(e)&&(this.documentElement=e)},importNode:function(e,t){return De(this,e,t)},getElementById:function(e){var t=null;return j(this.documentElement,(function(n){if(n.nodeType==p&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=u(e);return new P(this,(function(n){var r=[];return t.length>0&&j(n.documentElement,(function(i){if(i!==n&&i.nodeType===p){var o=i.getAttribute("class");if(o){var a=e===o;if(!a){var s=u(o);a=t.every(l(s))}a&&r.push(i)}}})),r}))},createElement:function(e){var t=new ae;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new F;var n=t.attributes=new N;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new me;return e.ownerDocument=this,e.childNodes=new F,e},createTextNode:function(e){var t=new ue;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new le;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new de;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new ve;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new se;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ge;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new ae,r=t.split(":"),i=n.attributes=new N;return n.childNodes=new F,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new se,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},f(H,z),ae.prototype={nodeType:p,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===C?this.insertBefore(e,null):oe(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new P(this,(function(t){var n=[];return j(t,(function(r){r===t||r.nodeType!=p||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new P(this,(function(n){var r=[];return j(n,(function(i){i===n||i.nodeType!==p||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},H.prototype.getElementsByTagName=ae.prototype.getElementsByTagName,H.prototype.getElementsByTagNameNS=ae.prototype.getElementsByTagNameNS,f(ae,z),se.prototype.nodeType=g,f(se,z),ce.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(S[A])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}},f(ce,z),ue.prototype={nodeName:"#text",nodeType:m,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},f(ue,ce),le.prototype={nodeName:"#comment",nodeType:_},f(le,ce),de.prototype={nodeName:"#cdata-section",nodeType:v},f(de,ce),fe.prototype.nodeType=D,f(fe,z),he.prototype.nodeType=k,f(he,z),pe.prototype.nodeType=y,f(pe,z),ge.prototype.nodeType=b,f(ge,z),me.prototype.nodeName="#document-fragment",me.prototype.nodeType=C,f(me,z),ve.prototype.nodeType=x,f(ve,z),be.prototype.serializeToString=function(e,t,n){return ye.call(e,t,n)},z.prototype.toString=ye;try{if(Object.defineProperty){function Te(e){switch(e.nodeType){case p:case C:var t=[];e=e.firstChild;while(e)7!==e.nodeType&&8!==e.nodeType&&t.push(Te(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(P.prototype,"length",{get:function(){return R(this),this.$$length}}),Object.defineProperty(z.prototype,"textContent",{get:function(){return Te(this)},set:function(e){switch(this.nodeType){case p:case C:while(this.firstChild)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ke=function(e,t,n){e["$$"+t]=n}}}catch(Se){}n.DocumentType=fe,n.DOMException=O,n.DOMImplementation=L,n.Element=ae,n.Node=z,n.NodeList=F,n.XMLSerializer=be},{"./conventions":41}],44:[function(e,t,n){var r=e("./conventions").freeze;n.XML_ENTITIES=r({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),n.HTML_ENTITIES=r({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),n.entityMap=n.HTML_ENTITIES},{"./conventions":41}],45:[function(e,t,n){var r=e("./dom");n.DOMImplementation=r.DOMImplementation,n.XMLSerializer=r.XMLSerializer,n.DOMParser=e("./dom-parser").DOMParser},{"./dom":43,"./dom-parser":42}],46:[function(e,t,n){var r=e("./conventions").NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+i.source+o.source+"*(?::"+i.source+o.source+"*)?$"),s=0,c=1,u=2,l=3,d=4,f=5,h=6,p=7;function g(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,g)}function m(){}function v(e,t,n,i,o){function a(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function s(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(n,t)?n[t]:"#"===t.charAt(0)?a(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function c(t){if(t>v){var n=e.substring(v,t).replace(/&#?\w+;/g,s);h&&u(v),i.characters(n,0,t-v),v=t}}function u(t,n){while(t>=d&&(n=f.exec(e)))l=n.index,d=l+n[0].length,h.lineNumber++;h.columnNumber=t-l+1}var l=0,d=0,f=/.*(?:\r\n?|\n)|.*$/g,h=i.locator,p=[{currentNSMap:t}],m={},v=0;while(1){try{var D=e.indexOf("<",v);if(D<0){if(!e.substr(v).match(/^\s*$/)){var S=i.doc,A=S.createTextNode(e.substr(v));S.appendChild(A),i.currentElement=A}return}switch(D>v&&c(D),e.charAt(D+1)){case"/":var E=e.indexOf(">",D+3),U=e.substring(D+2,E).replace(/[ \t\n\r]+$/g,""),O=p.pop();E<0?(U=e.substring(D+2).replace(/[\s<].*/,""),o.error("end tag name: "+U+" is not complete:"+O.tagName),E=D+1+U.length):U.match(/\s</)&&(U=U.replace(/[\s<].*/,""),o.error("end tag name: "+U+" maybe not complete"),E=D+1+U.length);var F=O.localNSMap,P=O.tagName==U,R=P||O.tagName&&O.tagName.toLowerCase()==U.toLowerCase();if(R){if(i.endElement(O.uri,O.localName,U),F)for(var N in F)Object.prototype.hasOwnProperty.call(F,N)&&i.endPrefixMapping(N);P||o.fatalError("end tag name: "+U+" is not match the current start tagName:"+O.tagName)}else p.push(O);E++;break;case"?":h&&u(D),E=k(e,D,i);break;case"!":h&&u(D),E=C(e,D,i,o);break;default:h&&u(D);var M=new T,I=p[p.length-1].currentNSMap,B=(E=y(e,D,M,I,s,o),M.length);if(!M.closed&&w(e,E,M.tagName,m)&&(M.closed=!0,n.nbsp||o.warning("unclosed xml attribute")),h&&B){for(var L=b(h,{}),z=0;z<B;z++){var W=M[z];u(W.offset),W.locator=b(h,{})}i.locator=L,x(M,i,I)&&p.push(M),i.locator=h}else x(M,i,I)&&p.push(M);r.isHTML(M.uri)&&!M.closed?E=_(e,E,M.tagName,s,i):E++}}catch(j){if(j instanceof g)throw j;o.error("element parse error: "+j),E=-1}E>v?v=E:c(Math.max(D,v)+1)}}function b(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function y(e,t,n,i,o,a){function g(e,t,r){n.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),r)}var m,v=++t,b=s;while(1){var y=e.charAt(v);switch(y){case"=":if(b===c)m=e.slice(t,v),b=l;else{if(b!==u)throw new Error("attribute equal must after attrName");b=l}break;case"'":case'"':if(b===l||b===c){if(b===c&&(a.warning('attribute value must after "="'),m=e.slice(t,v)),t=v+1,v=e.indexOf(y,t),!(v>0))throw new Error("attribute value no end '"+y+"' match");x=e.slice(t,v),g(m,x,t-1),b=f}else{if(b!=d)throw new Error('attribute value must after "="');x=e.slice(t,v),g(m,x,t),a.warning('attribute "'+m+'" missed start quot('+y+")!!"),t=v+1,b=f}break;case"/":switch(b){case s:n.setTagName(e.slice(t,v));case f:case h:case p:b=p,n.closed=!0;case d:case c:case u:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),b==s&&n.setTagName(e.slice(t,v)),v;case">":switch(b){case s:n.setTagName(e.slice(t,v));case f:case h:case p:break;case d:case c:x=e.slice(t,v),"/"===x.slice(-1)&&(n.closed=!0,x=x.slice(0,-1));case u:b===u&&(x=m),b==d?(a.warning('attribute "'+x+'" missed quot(")!'),g(m,x,t)):(r.isHTML(i[""])&&x.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+x+'" missed value!! "'+x+'" instead!!'),g(x,x,t));break;case l:throw new Error("attribute value missed!!")}return v;case"":y=" ";default:if(y<=" ")switch(b){case s:n.setTagName(e.slice(t,v)),b=h;break;case c:m=e.slice(t,v),b=u;break;case d:var x=e.slice(t,v);a.warning('attribute "'+x+'" missed quot(")!!'),g(m,x,t);case f:b=h;break}else switch(b){case u:n.tagName;r.isHTML(i[""])&&m.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+m+'" missed value!! "'+m+'" instead2!!'),g(m,m,t),t=v,b=c;break;case f:a.warning('attribute space is required"'+m+'"!!');case h:b=c,t=v;break;case l:b=d,t=v;break;case p:throw new Error("elements closed character '/' and '>' must be connected to")}}v++}}function x(e,t,n){var i=e.tagName,o=null,a=e.length;while(a--){var s=e[a],c=s.qName,u=s.value,l=c.indexOf(":");if(l>0)var d=s.prefix=c.slice(0,l),f=c.slice(l+1),h="xmlns"===d&&f;else f=c,d=null,h="xmlns"===c&&"";s.localName=f,!1!==h&&(null==o&&(o={},D(n,n={})),n[h]=o[h]=u,s.uri=r.XMLNS,t.startPrefixMapping(h,u))}a=e.length;while(a--){s=e[a];d=s.prefix;d&&("xml"===d&&(s.uri=r.XML),"xmlns"!==d&&(s.uri=n[d||""]))}l=i.indexOf(":");l>0?(d=e.prefix=i.slice(0,l),f=e.localName=i.slice(l+1)):(d=null,f=e.localName=i);var p=e.uri=n[d||""];if(t.startElement(p,f,i,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(t.endElement(p,f,i),o)for(d in o)Object.prototype.hasOwnProperty.call(o,d)&&t.endPrefixMapping(d)}function _(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return t+1}function w(e,t,n,r){var i=r[n];return null==i&&(i=e.lastIndexOf("</"+n+">"),i<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function D(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function C(e,t,n,r){var i=e.charAt(t+2);switch(i){case"-":if("-"===e.charAt(t+3)){var o=e.indexOf("--\x3e",t+4);return o>t?(n.comment(e,t+4,o-t-4),o+3):(r.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){o=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,o-t-9),n.endCDATA(),o+3}var a=S(e,t),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var c=a[1][0],u=!1,l=!1;s>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],l=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(l=a[3][0]));var d=a[s-1];return n.startDTD(c,u,l),n.endDTD(),d.index+d[0].length}}return-1}function k(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function T(){this.attributeNames={}}function S(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);while(n=i.exec(e))if(r.push(n),n[1])return r}g.prototype=new Error,g.prototype.name=g.name,m.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),D(t,t={}),v(e,t,n,r,this.errorHandler),r.endDocument()}},T.prototype={setTagName:function(e){if(!a.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!a.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},n.XMLReader=m,n.ParseError=g},{"./conventions":41}],47:[function(e,t,n){"use strict";n.byteLength=l,n.toByteArray=f,n.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function l(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function d(e,t,n){return 3*(t+n)/4-n}function f(e){var t,n,r=u(e),a=r[0],s=r[1],c=new o(d(e,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(h(r));return i.join("")}function g(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,c=n-i;s<c;s+=a)o.push(p(e,s,s+a>c?c:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],48:[function(e,t,n){"use strict";t.exports=function(e){var t=e._SomePromiseArray;function n(e){var n=new t(e),r=n.promise();return n.setHowMany(1),n.setUnwrap(),n.init(),r}e.any=function(e){return n(e)},e.prototype.any=function(){return n(this)}}},{}],49:[function(e,t,n){(function(n){"use strict";var r;try{throw new Error}catch(d){r=d}var i=e("./schedule"),o=e("./queue"),a=e("./util");function s(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new o(16),this._normalQueue=new o(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=i}function c(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()}function u(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()}function l(e){this._normalQueue._pushOne(e),this._queueTick()}s.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},s.prototype.hasCustomScheduler=function(){return this._customScheduler},s.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},s.prototype.disableTrampolineIfNecessary=function(){a.hasDevTools&&(this._trampolineEnabled=!1)},s.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},s.prototype.fatalError=function(e,t){t?(n.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),n.exit(2)):this.throwLater(e)},s.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!==typeof setTimeout)setTimeout((function(){e(t)}),0);else try{this._schedule((function(){e(t)}))}catch(d){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")}},a.hasDevTools?(s.prototype.invokeLater=function(e,t,n){this._trampolineEnabled?c.call(this,e,t,n):this._schedule((function(){setTimeout((function(){e.call(t,n)}),100)}))},s.prototype.invoke=function(e,t,n){this._trampolineEnabled?u.call(this,e,t,n):this._schedule((function(){e.call(t,n)}))},s.prototype.settlePromises=function(e){this._trampolineEnabled?l.call(this,e):this._schedule((function(){e._settlePromises()}))}):(s.prototype.invokeLater=c,s.prototype.invoke=u,s.prototype.settlePromises=l),s.prototype._drainQueue=function(e){while(e.length()>0){var t=e.shift();if("function"===typeof t){var n=e.shift(),r=e.shift();t.call(n,r)}else t._settlePromises()}},s.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},s.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},s.prototype._reset=function(){this._isTickUsed=!1},t.exports=s,t.exports.firstLineError=r}).call(this,e("_process"))},{"./queue":72,"./schedule":75,"./util":82,_process:102}],50:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var i=!1,o=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},s=function(e,t){0===(50397184&this._bitField)&&this._resolveCallback(t.target)},c=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var u=n(o),l=new e(t);l._propagateFrom(this,1);var d=this._target();if(l._setBoundTo(u),u instanceof e){var f={promiseRejectionQueued:!1,promise:l,target:d,bindingPromise:u};d._then(t,a,void 0,l,f),u._then(s,c,void 0,l,f),l._setOnCancel(u)}else l._resolveCallback(d);return l},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152===(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],51:[function(e,t,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}t.exports=function(t){var n,r,a=e("./util"),s=a.canEvaluate,c=a.isIdentifier,u=function(e){return new Function("ensureMethod","                                    \n        return function(obj) {                                               \n            'use strict'                                                     \n            var len = this.length;                                           \n            ensureMethod(obj, 'methodName');                                 \n            switch(len) {                                                    \n                case 1: return obj.methodName(this[0]);                      \n                case 2: return obj.methodName(this[0], this[1]);             \n                case 3: return obj.methodName(this[0], this[1], this[2]);    \n                case 0: return obj.methodName();                             \n                default:                                                     \n                    return obj.methodName.apply(obj, this);                  \n            }                                                                \n        };                                                                   \n        ".replace(/methodName/g,e))(f)},l=function(e){return new Function("obj","                                             \n        'use strict';                                                        \n        return obj.propertyName;                                             \n        ".replace("propertyName",e))},d=function(e,t,n){var r=n[e];if("function"!==typeof r){if(!c(e))return null;if(r=t(e),n[e]=r,n[" size"]++,n[" size"]>512){for(var i=Object.keys(n),o=0;o<256;++o)delete n[i[o]];n[" size"]=i.length-256}}return r};function f(e,n){var r;if(null!=e&&(r=e[n]),"function"!==typeof r){var i="Object "+a.classString(e)+" has no method '"+a.toString(n)+"'";throw new t.TypeError(i)}return r}function h(e){var t=this.pop(),n=f(e,t);return n.apply(e,this)}function p(e){return e[this]}function g(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}n=function(e){return d(e,u,i)},r=function(e){return d(e,l,o)},t.prototype.call=function(e){for(var t=arguments.length,r=new Array(Math.max(t-1,0)),i=1;i<t;++i)r[i-1]=arguments[i];if(s){var o=n(e);if(null!==o)return this._then(o,void 0,void 0,r,void 0)}return r.push(e),this._then(h,void 0,void 0,r,void 0)},t.prototype.get=function(e){var t,n="number"===typeof e;if(n)t=g;else if(s){var i=r(e);t=null!==i?i:p}else t=p;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":82}],52:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o=e("./util"),a=o.tryCatch,s=o.errorObj,c=t._async;t.prototype["break"]=t.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");var e=this,t=e;while(e._isCancellable()){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(void 0!==e)if("function"===typeof e){if(!t){var r=a(e).call(this._boundValue());r===s&&(this._attachExtraTrace(r.e),c.throwLater(r.e))}}else e._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),c.invoke(this._doInvokeOnCancel,this,e)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":82}],53:[function(e,t,n){"use strict";t.exports=function(t){var n=e("./util"),r=e("./es5").keys,i=n.tryCatch,o=n.errorObj;function a(e,a,s){return function(c){var u=s._boundValue();e:for(var l=0;l<e.length;++l){var d=e[l];if(d===Error||null!=d&&d.prototype instanceof Error){if(c instanceof d)return i(a).call(u,c)}else if("function"===typeof d){var f=i(d).call(u,c);if(f===o)return f;if(f)return i(a).call(u,c)}else if(n.isObject(c)){for(var h=r(d),p=0;p<h.length;++p){var g=h[p];if(d[g]!=c[g])continue e}return i(a).call(u,c)}}return t}}return a}},{"./es5":59,"./util":82}],54:[function(e,t,n){"use strict";t.exports=function(e){var t=!1,n=[];function r(){this._trace=new r.CapturedTrace(o())}function i(){if(t)return new r}function o(){var e=n.length-1;if(e>=0)return n[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},r.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(void 0!==this._trace){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},r.CapturedTrace=null,r.create=i,r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,i=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,c=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=i,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=c,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=o,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},r}},{}],55:[function(e,t,n){(function(n){"use strict";t.exports=function(t,r){var i,o,a,s=t._getDomain,c=t._async,u=e("./errors").Warning,l=e("./util"),d=l.canAttachTrace,f=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,h=/\((?:timers\.js):\d+:\d+\)/,p=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,g=null,m=null,v=!1,b=!(0==l.env("BLUEBIRD_DEBUG")||!l.env("BLUEBIRD_DEBUG")&&"development"!==l.env("NODE_ENV")),y=!(0==l.env("BLUEBIRD_WARNINGS")||!b&&!l.env("BLUEBIRD_WARNINGS")),x=!(0==l.env("BLUEBIRD_LONG_STACK_TRACES")||!b&&!l.env("BLUEBIRD_LONG_STACK_TRACES")),_=0!=l.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(y||!!l.env("BLUEBIRD_W_FORGOTTEN_RETURN"));t.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},t.prototype._ensurePossibleRejectionHandled=function(){0===(524288&this._bitField)&&(this._setRejectionIsUnhandled(),c.invokeLater(this._notifyUnhandledRejection,this,void 0))},t.prototype._notifyUnhandledRejectionIsHandled=function(){K("rejectionHandled",i,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},t.prototype._returnedNonUndefined=function(){return 0!==(268435456&this._bitField)},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),K("unhandledRejection",o,e,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},t.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},t.prototype._warn=function(e,t,n){return j(e,t,n||this)},t.onPossiblyUnhandledRejection=function(e){var t=s();o="function"===typeof e?null===t?e:l.domainBind(t,e):void 0},t.onUnhandledRejectionHandled=function(e){var t=s();i="function"===typeof e?null===t?e:l.domainBind(t,e):void 0};var w=function(){};t.longStackTraces=function(){if(c.haveItemsQueued()&&!ae.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");if(!ae.longStackTraces&&Q()){var e=t.prototype._captureStackTrace,n=t.prototype._attachExtraTrace;ae.longStackTraces=!0,w=function(){if(c.haveItemsQueued()&&!ae.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");t.prototype._captureStackTrace=e,t.prototype._attachExtraTrace=n,r.deactivateLongStackTraces(),c.enableTrampoline(),ae.longStackTraces=!1},t.prototype._captureStackTrace=B,t.prototype._attachExtraTrace=L,r.activateLongStackTraces(),c.disableTrampolineIfNecessary()}},t.hasLongStackTraces=function(){return ae.longStackTraces&&Q()};var D=function(){try{if("function"===typeof CustomEvent){var e=new CustomEvent("CustomEvent");return l.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!l.global.dispatchEvent(n)}}if("function"===typeof Event){e=new Event("CustomEvent");return l.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!l.global.dispatchEvent(n)}}e=document.createEvent("CustomEvent");return e.initCustomEvent("testingtheevent",!1,!0,{}),l.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!l.global.dispatchEvent(n)}}catch(t){}return function(){return!1}}(),C=function(){return l.isNode?function(){return n.emit.apply(n,arguments)}:l.global?function(e){var t="on"+e.toLowerCase(),n=l.global[t];return!!n&&(n.apply(l.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}();function k(e,t){return{promise:t}}var T={promiseCreated:k,promiseFulfilled:k,promiseRejected:k,promiseResolved:k,promiseCancelled:k,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:k},S=function(e){var t=!1;try{t=C.apply(null,arguments)}catch(r){c.throwLater(r),t=!0}var n=!1;try{n=D(e,T[e].apply(null,arguments))}catch(r){c.throwLater(r),n=!0}return n||t};function A(){return!1}function E(e,t,n){var r=this;try{e(t,n,(function(e){if("function"!==typeof e)throw new TypeError("onCancel must be a function, got: "+l.toString(e));r._attachCancellationCallback(e)}))}catch(i){return i}}function U(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?l.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function O(){return this._onCancelField}function F(e){this._onCancelField=e}function P(){this._cancellationParent=void 0,this._onCancelField=void 0}function R(e,t){if(0!==(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function N(e,t){0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}t.config=function(e){if(e=Object(e),"longStackTraces"in e&&(e.longStackTraces?t.longStackTraces():!e.longStackTraces&&t.hasLongStackTraces()&&w()),"warnings"in e){var n=e.warnings;ae.warnings=!!n,_=ae.warnings,l.isObject(n)&&"wForgottenReturn"in n&&(_=!!n.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!ae.cancellation){if(c.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=P,t.prototype._propagateFrom=R,t.prototype._onCancel=O,t.prototype._setOnCancel=F,t.prototype._attachCancellationCallback=U,t.prototype._execute=E,M=R,ae.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!ae.monitoring?(ae.monitoring=!0,t.prototype._fireEvent=S):!e.monitoring&&ae.monitoring&&(ae.monitoring=!1,t.prototype._fireEvent=A)),t},t.prototype._fireEvent=A,t.prototype._execute=function(e,t,n){try{e(t,n)}catch(r){return r}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(e){},t.prototype._attachCancellationCallback=function(e){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(e,t){};var M=N;function I(){var e=this._boundTo;return void 0!==e&&e instanceof t?e.isFulfilled()?e.value():void 0:e}function B(){this._trace=new ie(this._peekContext())}function L(e,t){if(d(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=X(e);l.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),l.notEnumerableProp(e,"__stackCleaned__",!0)}}}function z(e,t,n,r,i){if(void 0===e&&null!==t&&_){if(void 0!==i&&i._returnedNonUndefined())return;if(0===(65535&r._bitField))return;n&&(n+=" ");var o="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),c=$(s),u=c.length-1;u>=0;--u){var l=c[u];if(!h.test(l)){var d=l.match(p);d&&(o="at "+d[1]+":"+d[2]+":"+d[3]+" ");break}}if(c.length>0){var f=c[0];for(u=0;u<s.length;++u)if(s[u]===f){u>0&&(a="\n"+s[u-1]);break}}}var g="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(g,!0,t)}}function W(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),j(n)}function j(e,n,r){if(ae.warnings){var i,o=new u(e);if(n)r._attachExtraTrace(o);else if(ae.longStackTraces&&(i=t._peekContext()))i.attachExtraTrace(o);else{var a=X(o);o.stack=a.message+"\n"+a.stack.join("\n")}S("warning",o)||Y(o,"",!0)}}function H(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}function V(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}function q(e){for(var t=e[0],n=1;n<e.length;++n){for(var r=e[n],i=t.length-1,o=t[i],a=-1,s=r.length-1;s>=0;--s)if(r[s]===o){a=s;break}for(s=a;s>=0;--s){var c=r[s];if(t[i]!==c)break;t.pop(),i--}t=r}}function $(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i="    (No stack trace)"===r||g.test(r),o=i&&ee(r);i&&!o&&(v&&" "!==r.charAt(0)&&(r="    "+r),t.push(r))}return t}function G(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var r=t[n];if("    (No stack trace)"===r||g.test(r))break}return n>0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}function X(e){var t=e.stack,n=e.toString();return t="string"===typeof t&&t.length>0?G(e):["    (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:$(t)}}function Y(e,t,n){if("undefined"!==typeof console){var r;if(l.isObject(e)){var i=e.stack;r=t+m(i,e)}else r=t+String(e);"function"===typeof a?a(r,n):"function"!==typeof console.log&&"object"!==typeof console.log||console.log(r)}}function K(e,t,n,r){var i=!1;try{"function"===typeof t&&(i=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(o){c.throwLater(o)}"unhandledRejection"===e?S(e,n,r)||i||Y(n,"Unhandled rejection "):S(e,r)}function Z(e){var t;if("function"===typeof e)t="[function "+(e.name||"anonymous")+"]";else{t=e&&"function"===typeof e.toString?e.toString():l.toString(e);var n=/\[object [a-zA-Z0-9$_]+\]/;if(n.test(t))try{var r=JSON.stringify(e);t=r}catch(i){}0===t.length&&(t="(empty array)")}return"(<"+J(t)+">, no stack trace)"}function J(e){var t=41;return e.length<t?e:e.substr(0,t-3)+"..."}function Q(){return"function"===typeof oe}var ee=function(){return!1},te=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function ne(e){var t=e.match(te);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function re(e,t){if(Q()){for(var n,r,i=e.stack.split("\n"),o=t.stack.split("\n"),a=-1,s=-1,c=0;c<i.length;++c){var u=ne(i[c]);if(u){n=u.fileName,a=u.line;break}}for(c=0;c<o.length;++c){u=ne(o[c]);if(u){r=u.fileName,s=u.line;break}}a<0||s<0||!n||!r||n!==r||a>=s||(ee=function(e){if(f.test(e))return!0;var t=ne(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}}function ie(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);oe(this,ie),t>32&&this.uncycle()}l.inherits(ie,Error),r.CapturedTrace=ie,ie.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,i=this;void 0!==i;++r)t.push(i),i=i._parent;e=this._length=r;for(r=e-1;r>=0;--r){var o=t[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r<e;++r){var a=t[r].stack,s=n[a];if(void 0!==s&&s!==r){s>0&&(t[s-1]._parent=void 0,t[s-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var c=r>0?t[r-1]:this;s<e-1?(c._parent=t[s+1],c._parent.uncycle(),c._length=c._parent._length+1):(c._parent=void 0,c._length=1);for(var u=c._length+1,l=r-2;l>=0;--l)t[l]._length=u,u++;return}}}},ie.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();var t=X(e),n=t.message,r=[t.stack],i=this;while(void 0!==i)r.push($(i.stack.split("\n"))),i=i._parent;q(r),V(r),l.notEnumerableProp(e,"stack",H(n,r)),l.notEnumerableProp(e,"__stackCleaned__",!0)}};var oe=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"===typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():Z(t)};if("number"===typeof Error.stackTraceLimit&&"function"===typeof Error.captureStackTrace){Error.stackTraceLimit+=6,g=e,m=t;var n=Error.captureStackTrace;return ee=function(e){return f.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var r,i=new Error;if("string"===typeof i.stack&&i.stack.split("\n")[0].indexOf("stackDetection@")>=0)return g=/@/,m=t,v=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(o){r="stack"in o}return!("stack"in i)&&r&&"number"===typeof Error.stackTraceLimit?(g=e,m=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(o){e.stack=o.stack}Error.stackTraceLimit-=6}):(m=function(e,t){return"string"===typeof e?e:"object"!==typeof t&&"function"!==typeof t||void 0===t.name||void 0===t.message?Z(t):t.toString()},null)}();"undefined"!==typeof console&&"undefined"!==typeof console.warn&&(a=function(e){console.warn(e)},l.isNode&&n.stderr.isTTY?a=function(e,t){var n=t?"[33m":"[31m";console.warn(n+e+"[0m\n")}:l.isNode||"string"!==typeof(new Error).stack||(a=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var ae={warnings:y,longStackTraces:!1,cancellation:!1,monitoring:!1};return x&&t.longStackTraces(),{longStackTraces:function(){return ae.longStackTraces},warnings:function(){return ae.warnings},cancellation:function(){return ae.cancellation},monitoring:function(){return ae.monitoring},propagateFromFunction:function(){return M},boundValueFunction:function(){return I},checkForgottenReturns:z,setBounds:re,warn:j,deprecated:W,CapturedTrace:ie,fireDomEvent:D,fireGlobalEvent:C}}}).call(this,e("_process"))},{"./errors":58,"./util":82,_process:102}],56:[function(e,t,n){"use strict";t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype["return"]=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype["throw"]=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1],r=function(){throw t};return this.caught(e,r)},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];r instanceof e&&r.suppressUnhandledRejections();var i=function(){return r};return this.caught(n,i)}}},{}],57:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.reduce,r=e.all;function i(){return r(this)}function o(e,r){return n(e,r,t,t)}e.prototype.each=function(e){return n(this,e,t,0)._then(i,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,r){return n(e,r,t,0)._then(i,void 0,void 0,e,void 0)},e.mapSeries=o}},{}],58:[function(e,t,n){"use strict";var r,i,o=e("./es5"),a=o.freeze,s=e("./util"),c=s.inherits,u=s.notEnumerableProp;function l(e,t){function n(r){if(!(this instanceof n))return new n(r);u(this,"message","string"===typeof r?r:t),u(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return c(n,Error),n}var d=l("Warning","warning"),f=l("CancellationError","cancellation error"),h=l("TimeoutError","timeout error"),p=l("AggregateError","aggregate error");try{r=TypeError,i=RangeError}catch(x){r=l("TypeError","type error"),i=l("RangeError","range error")}for(var g="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),m=0;m<g.length;++m)"function"===typeof Array.prototype[g[m]]&&(p.prototype[g[m]]=Array.prototype[g[m]]);o.defineProperty(p.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),p.prototype["isOperational"]=!0;var v=0;function b(e){if(!(this instanceof b))return new b(e);u(this,"name","OperationalError"),u(this,"message",e),this.cause=e,this["isOperational"]=!0,e instanceof Error?(u(this,"message",e.message),u(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}p.prototype.toString=function(){var e=Array(4*v+1).join(" "),t="\n"+e+"AggregateError of:\n";v++,e=Array(4*v+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",i=r.split("\n"),o=0;o<i.length;++o)i[o]=e+i[o];r=i.join("\n"),t+=r+"\n"}return v--,t},c(b,Error);var y=Error["__BluebirdErrorTypes__"];y||(y=a({CancellationError:f,TimeoutError:h,OperationalError:b,RejectionError:b,AggregateError:p}),o.defineProperty(Error,"__BluebirdErrorTypes__",{value:y,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error:Error,TypeError:r,RangeError:i,CancellationError:y.CancellationError,OperationalError:y.OperationalError,TimeoutError:y.TimeoutError,AggregateError:y.AggregateError,Warning:d}},{"./es5":59,"./util":82}],59:[function(e,t,n){var r=function(){"use strict";return void 0===this}();if(r)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var i={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(e){var t=[];for(var n in e)i.call(e,n)&&t.push(n);return t},c=function(e,t){return{value:e[t]}},u=function(e,t,n){return e[t]=n.value,e},l=function(e){return e},d=function(e){try{return Object(e).constructor.prototype}catch(t){return a}},f=function(e){try{return"[object Array]"===o.call(e)}catch(t){return!1}};t.exports={isArray:f,keys:s,names:s,defineProperty:u,getDescriptor:c,freeze:l,getPrototypeOf:d,isES5:r,propertyIsWritable:function(){return!0}}}},{}],60:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.map;e.prototype.filter=function(e,r){return n(this,e,r,t)},e.filter=function(e,r,i){return n(e,r,i,t)}}},{}],61:[function(e,t,n){"use strict";t.exports=function(t,n){var r=e("./util"),i=t.CancellationError,o=r.errorObj;function a(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function s(e){this.finallyHandler=e}function c(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function u(){return d.call(this,this.promise._target()._settledValue())}function l(e){if(!c(this,e))return o.e=e,o}function d(e){var r=this.promise,a=this.handler;if(!this.called){this.called=!0;var d=this.isFinallyHandler()?a.call(r._boundValue()):a.call(r._boundValue(),e);if(void 0!==d){r._setReturnedNonUndefined();var f=n(d,r);if(f instanceof t){if(null!=this.cancelPromise){if(f._isCancelled()){var h=new i("late cancellation observer");return r._attachExtraTrace(h),o.e=h,o}f.isPending()&&f._attachCancellationCallback(new s(this))}return f._then(u,l,void 0,this,void 0)}}}return r.isRejected()?(c(this),o.e=e,o):(c(this),e)}return a.prototype.isFinallyHandler=function(){return 0===this.type},s.prototype._resultCancelled=function(){c(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!==typeof e?this.then():this._then(n,r,void 0,new a(this,t,e),void 0)},t.prototype.lastly=t.prototype["finally"]=function(e){return this._passThrough(e,0,d,d)},t.prototype.tap=function(e){return this._passThrough(e,1,d)},a}},{"./util":82}],62:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./errors"),c=s.TypeError,u=e("./util"),l=u.errorObj,d=u.tryCatch,f=[];function h(e,n,r){for(var o=0;o<n.length;++o){r._pushContext();var a=d(n[o])(e);if(r._popContext(),a===l){r._pushContext();var s=t.reject(l.e);return r._popContext(),s}var c=i(a,r);if(c instanceof t)return c}return null}function p(e,n,i,o){if(a.cancellation()){var s=new t(r),c=this._finallyPromise=new t(r);this._promise=s.lastly((function(){return c})),s._captureStackTrace(),s._setOnCancel(this)}else{var u=this._promise=new t(r);u._captureStackTrace()}this._stack=o,this._generatorFunction=e,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"===typeof i?[i].concat(f):f,this._yieldedPromise=null,this._cancellationPhase=!1}u.inherits(p,o),p.prototype._isResolved=function(){return null===this._promise},p.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},p.prototype._promiseCancelled=function(){if(!this._isResolved()){var e,n="undefined"!==typeof this._generator["return"];if(n)this._promise._pushContext(),e=d(this._generator["return"]).call(this._generator,void 0),this._promise._popContext();else{var r=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=r,this._promise._attachExtraTrace(r),this._promise._pushContext(),e=d(this._generator["throw"]).call(this._generator,r),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(e)}},p.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=d(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)},p.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=d(this._generator["throw"]).call(this._generator,e);this._promise._popContext(),this._continue(t)},p.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var e=this._yieldedPromise;this._yieldedPromise=null,e.cancel()}},p.prototype.promise=function(){return this._promise},p.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},p.prototype._continue=function(e){var n=this._promise;if(e===l)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(e.e,!1);var r=e.value;if(!0===e.done)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(r);var o=i(r,this._promise);if(o instanceof t||(o=h(o,this._yieldHandlers,this._promise),null!==o)){o=o._target();var a=o._bitField;0===(50397184&a)?(this._yieldedPromise=o,o._proxy(this,null)):0!==(33554432&a)?t._async.invoke(this._promiseFulfilled,this,o._value()):0!==(16777216&a)?t._async.invoke(this._promiseRejected,this,o._reason()):this._promiseCancelled()}else this._promiseRejected(new c("A value %s was yielded that could not be treated as a promise\n\n    See http://goo.gl/MqrFmX\n\n".replace("%s",r)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},t.coroutine=function(e,t){if("function"!==typeof e)throw new c("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var n=Object(t).yieldHandler,r=p,i=(new Error).stack;return function(){var t=e.apply(this,arguments),o=new r(void 0,void 0,n,i),a=o.promise();return o._generator=t,o._promiseFulfilled(void 0),a}},t.coroutine.addYieldHandler=function(e){if("function"!==typeof e)throw new c("expecting a function but got "+u.classString(e));f.push(e)},t.spawn=function(e){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!==typeof e)return n("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var r=new p(e,this),i=r.promise();return r._run(t.spawn),i}}},{"./errors":58,"./util":82}],63:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s,c=e("./util"),u=c.canEvaluate,l=c.tryCatch,d=c.errorObj;if(u){for(var f=function(e){return new Function("value","holder","                             \n            'use strict';                                                    \n            holder.pIndex = value;                                           \n            holder.checkFulfillment(this);                                   \n            ".replace(/Index/g,e))},h=function(e){return new Function("promise","holder","                           \n            'use strict';                                                    \n            holder.pIndex = promise;                                         \n            ".replace(/Index/g,e))},p=function(e){for(var n=new Array(e),r=0;r<n.length;++r)n[r]="this.p"+(r+1);var i=n.join(" = ")+" = null;",a="var promise;\n"+n.map((function(e){return"                                                         \n                promise = "+e+";                                      \n                if (promise instanceof Promise) {                            \n                    promise.cancel();                                        \n                }                                                            \n            "})).join("\n"),s=n.join(", "),c="Holder$"+e,u="return function(tryCatch, errorObj, Promise, async) {    \n            'use strict';                                                    \n            function [TheName](fn) {                                         \n                [TheProperties]                                              \n                this.fn = fn;                                                \n                this.asyncNeeded = true;                                     \n                this.now = 0;                                                \n            }                                                                \n                                                                             \n            [TheName].prototype._callFunction = function(promise) {          \n                promise._pushContext();                                      \n                var ret = tryCatch(this.fn)([ThePassedArguments]);           \n                promise._popContext();                                       \n                if (ret === errorObj) {                                      \n                    promise._rejectCallback(ret.e, false);                   \n                } else {                                                     \n                    promise._resolveCallback(ret);                           \n                }                                                            \n            };                                                               \n                                                                             \n            [TheName].prototype.checkFulfillment = function(promise) {       \n                var now = ++this.now;                                        \n                if (now === [TheTotal]) {                                    \n                    if (this.asyncNeeded) {                                  \n                        async.invoke(this._callFunction, this, promise);     \n                    } else {                                                 \n                        this._callFunction(promise);                         \n                    }                                                        \n                                                                             \n                }                                                            \n            };                                                               \n                                                                             \n            [TheName].prototype._resultCancelled = function() {              \n                [CancellationCode]                                           \n            };                                                               \n                                                                             \n            return [TheName];                                                \n        }(tryCatch, errorObj, Promise, async);                               \n        ";return u=u.replace(/\[TheName\]/g,c).replace(/\[TheTotal\]/g,e).replace(/\[ThePassedArguments\]/g,s).replace(/\[TheProperties\]/g,i).replace(/\[CancellationCode\]/g,a),new Function("tryCatch","errorObj","Promise","async",u)(l,d,t,o)},g=[],m=[],v=[],b=0;b<8;++b)g.push(p(b+1)),m.push(f(b+1)),v.push(h(b+1));s=function(e){this._reject(e)}}t.join=function(){var e,o=arguments.length-1;if(o>0&&"function"===typeof arguments[o]&&(e=arguments[o],o<=8&&u)){var l=new t(i);l._captureStackTrace();for(var d=g[o-1],f=new d(e),h=m,p=0;p<o;++p){var b=r(arguments[p],l);if(b instanceof t){b=b._target();var y=b._bitField;0===(50397184&y)?(b._then(h[p],s,void 0,l,f),v[p](b,f),f.asyncNeeded=!1):0!==(33554432&y)?h[p].call(l,b._value(),f):0!==(16777216&y)?l._reject(b._reason()):l._cancel()}else h[p].call(l,b,f)}if(!l._isFateSealed()){if(f.asyncNeeded){var x=a();null!==x&&(f.fn=c.domainBind(x,f.fn))}l._setAsyncGuaranteed(),l._setOnCancel(f)}return l}for(var _=arguments.length,w=new Array(_),D=0;D<_;++D)w[D]=arguments[D];e&&w.pop();l=new n(w).promise();return void 0!==e?l.spread(e):l}}},{"./util":82}],64:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=t._getDomain,c=e("./util"),u=c.tryCatch,l=c.errorObj,d=t._async;function f(e,t,n,r){this.constructor$(e),this._promise._captureStackTrace();var i=s();this._callback=null===i?t:c.domainBind(i,t),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}function h(e,n,i,o){if("function"!==typeof n)return r("expecting a function but got "+c.classString(n));var a=0;if(void 0!==i){if("object"!==typeof i||null===i)return t.reject(new TypeError("options argument must be an object but it is "+c.classString(i)));if("number"!==typeof i.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+c.classString(i.concurrency)));a=i.concurrency}return a="number"===typeof a&&isFinite(a)&&a>=1?a:0,new f(e,n,a,o).promise()}c.inherits(f,n),f.prototype._asyncInit=function(){this._init$(void 0,-2)},f.prototype._init=function(){},f.prototype._promiseFulfilled=function(e,n){var r=this._values,o=this.length(),s=this._preservedValues,c=this._limit;if(n<0){if(n=-1*n-1,r[n]=e,c>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(c>=1&&this._inFlight>=c)return r[n]=e,this._queue.push(n),!1;null!==s&&(s[n]=e);var d=this._promise,f=this._callback,h=d._boundValue();d._pushContext();var p=u(f).call(h,e,n,o),g=d._popContext();if(a.checkForgottenReturns(p,g,null!==s?"Promise.filter":"Promise.map",d),p===l)return this._reject(p.e),!0;var m=i(p,this._promise);if(m instanceof t){m=m._target();var v=m._bitField;if(0===(50397184&v))return c>=1&&this._inFlight++,r[n]=m,m._proxy(this,-1*(n+1)),!1;if(0===(33554432&v))return 0!==(16777216&v)?(this._reject(m._reason()),!0):(this._cancel(),!0);p=m._value()}r[n]=p}var b=++this._totalResolved;return b>=o&&(null!==s?this._filter(r,s):this._resolve(r),!0)},f.prototype._drainQueue=function(){var e=this._queue,t=this._limit,n=this._values;while(e.length>0&&this._inFlight<t){if(this._isResolved())return;var r=e.pop();this._promiseFulfilled(n[r],r)}},f.prototype._filter=function(e,t){for(var n=t.length,r=new Array(n),i=0,o=0;o<n;++o)e[o]&&(r[i++]=t[o]);r.length=i,this._resolve(r)},f.prototype.preservedValues=function(){return this._preservedValues},t.prototype.map=function(e,t){return h(this,e,t,null)},t.map=function(e,t,n,r){return h(e,t,n,r)}}},{"./util":82}],65:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o){var a=e("./util"),s=a.tryCatch;t.method=function(e){if("function"!==typeof e)throw new t.TypeError("expecting a function but got "+a.classString(e));return function(){var r=new t(n);r._captureStackTrace(),r._pushContext();var i=s(e).apply(this,arguments),a=r._popContext();return o.checkForgottenReturns(i,a,"Promise.method",r),r._resolveFromSyncValue(i),r}},t.attempt=t["try"]=function(e){if("function"!==typeof e)return i("expecting a function but got "+a.classString(e));var r,c=new t(n);if(c._captureStackTrace(),c._pushContext(),arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],l=arguments[2];r=a.isArray(u)?s(e).apply(l,u):s(e).call(l,u)}else r=s(e)();var d=c._popContext();return o.checkForgottenReturns(r,d,"Promise.try",c),c._resolveFromSyncValue(r),c},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":82}],66:[function(e,t,n){"use strict";var r=e("./util"),i=r.maybeWrapAsError,o=e("./errors"),a=o.OperationalError,s=e("./es5");function c(e){return e instanceof Error&&s.getPrototypeOf(e)===Error.prototype}var u=/^(?:name|message|stack|cause)$/;function l(e){var t;if(c(e)){t=new a(e),t.name=e.name,t.message=e.message,t.stack=e.stack;for(var n=s.keys(e),i=0;i<n.length;++i){var o=n[i];u.test(o)||(t[o]=e[o])}return t}return r.markAsOriginatingFromRejection(e),e}function d(e,t){return function(n,r){if(null!==e){if(n){var o=l(i(n));e._attachExtraTrace(o),e._reject(o)}else if(t){for(var a=arguments.length,s=new Array(Math.max(a-1,0)),c=1;c<a;++c)s[c-1]=arguments[c];e._fulfill(s)}else e._fulfill(r);e=null}}}t.exports=d},{"./errors":58,"./es5":59,"./util":82}],67:[function(e,t,n){"use strict";t.exports=function(t){var n=e("./util"),r=t._async,i=n.tryCatch,o=n.errorObj;function a(e,t){var a=this;if(!n.isArray(e))return s.call(a,e,t);var c=i(t).apply(a._boundValue(),[null].concat(e));c===o&&r.throwLater(c.e)}function s(e,t){var n=this,a=n._boundValue(),s=void 0===e?i(t).call(a,null):i(t).call(a,null,e);s===o&&r.throwLater(s.e)}function c(e,t){var n=this;if(!e){var a=new Error(e+"");a.cause=e,e=a}var s=i(t).call(n._boundValue(),e);s===o&&r.throwLater(s.e)}t.prototype.asCallback=t.prototype.nodeify=function(e,t){if("function"==typeof e){var n=s;void 0!==t&&Object(t).spread&&(n=a),this._then(n,c,void 0,this,e)}return this}}},{"./util":82}],68:[function(e,t,n){(function(n){"use strict";t.exports=function(){var r=function(){return new p("circular promise resolution chain\n\n    See http://goo.gl/MqrFmX\n")},i=function(){return new U.PromiseInspection(this._target())},o=function(e){return U.reject(new p(e))};function a(){}var s,c={},u=e("./util");s=u.isNode?function(){var e=n.domain;return void 0===e&&(e=null),e}:function(){return null},u.notEnumerableProp(U,"_getDomain",s);var l=e("./es5"),d=e("./async"),f=new d;l.defineProperty(U,"_async",{value:f});var h=e("./errors"),p=U.TypeError=h.TypeError;U.RangeError=h.RangeError;var g=U.CancellationError=h.CancellationError;U.TimeoutError=h.TimeoutError,U.OperationalError=h.OperationalError,U.RejectionError=h.OperationalError,U.AggregateError=h.AggregateError;var m=function(){},v={},b={},y=e("./thenables")(U,m),x=e("./promise_array")(U,m,y,o,a),_=e("./context")(U),w=_.create,D=e("./debuggability")(U,_),C=(D.CapturedTrace,e("./finally")(U,y)),k=e("./catch_filter")(b),T=e("./nodeback"),S=u.errorObj,A=u.tryCatch;function E(e,t){if("function"!==typeof t)throw new p("expecting a function but got "+u.classString(t));if(e.constructor!==U)throw new p("the promise constructor cannot be invoked directly\n\n    See http://goo.gl/MqrFmX\n")}function U(e){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,e!==m&&(E(this,e),this._resolveFromExecutor(e)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function O(e){this.promise._resolveCallback(e)}function F(e){this.promise._rejectCallback(e,!1)}function P(e){var t=new U(m);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}return U.prototype.toString=function(){return"[object Promise]"},U.prototype.caught=U.prototype["catch"]=function(e){var t=arguments.length;if(t>1){var n,r=new Array(t-1),i=0;for(n=0;n<t-1;++n){var a=arguments[n];if(!u.isObject(a))return o("expecting an object but got A catch statement predicate "+u.classString(a));r[i++]=a}return r.length=i,e=arguments[n],this.then(void 0,k(r,e,this))}return this.then(void 0,e)},U.prototype.reflect=function(){return this._then(i,i,void 0,this,void 0)},U.prototype.then=function(e,t){if(D.warnings()&&arguments.length>0&&"function"!==typeof e&&"function"!==typeof t){var n=".then() only accepts functions but was passed: "+u.classString(e);arguments.length>1&&(n+=", "+u.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},U.prototype.done=function(e,t){var n=this._then(e,t,void 0,void 0,void 0);n._setIsFinal()},U.prototype.spread=function(e){return"function"!==typeof e?o("expecting a function but got "+u.classString(e)):this.all()._then(e,void 0,void 0,v,void 0)},U.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},U.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new x(this).promise()},U.prototype.error=function(e){return this.caught(u.originatesFromRejection,e)},U.getNewLibraryCopy=t.exports,U.is=function(e){return e instanceof U},U.fromNode=U.fromCallback=function(e){var t=new U(m);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=A(e)(T(t,n));return r===S&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},U.all=function(e){return new x(e).promise()},U.cast=function(e){var t=y(e);return t instanceof U||(t=new U(m),t._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},U.resolve=U.fulfilled=U.cast,U.reject=U.rejected=function(e){var t=new U(m);return t._captureStackTrace(),t._rejectCallback(e,!0),t},U.setScheduler=function(e){if("function"!==typeof e)throw new p("expecting a function but got "+u.classString(e));return f.setScheduler(e)},U.prototype._then=function(e,t,n,r,i){var o=void 0!==i,a=o?i:new U(m),c=this._target(),l=c._bitField;o||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!==(2097152&this._bitField)&&(r=0!==(50397184&l)?this._boundValue():c===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var d=s();if(0!==(50397184&l)){var h,p,v=c._settlePromiseCtx;0!==(33554432&l)?(p=c._rejectionHandler0,h=e):0!==(16777216&l)?(p=c._fulfillmentHandler0,h=t,c._unsetRejectionIsUnhandled()):(v=c._settlePromiseLateCancellationObserver,p=new g("late cancellation observer"),c._attachExtraTrace(p),h=t),f.invoke(v,c,{handler:null===d?h:"function"===typeof h&&u.domainBind(d,h),promise:a,receiver:r,value:p})}else c._addCallbacks(e,t,a,r,d);return a},U.prototype._length=function(){return 65535&this._bitField},U.prototype._isFateSealed=function(){return 0!==(117506048&this._bitField)},U.prototype._isFollowing=function(){return 67108864===(67108864&this._bitField)},U.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},U.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},U.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},U.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},U.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},U.prototype._isFinal=function(){return(4194304&this._bitField)>0},U.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},U.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},U.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},U.prototype._setAsyncGuaranteed=function(){f.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},U.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==c)return void 0===t&&this._isBound()?this._boundValue():t},U.prototype._promiseAt=function(e){return this[4*e-4+2]},U.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},U.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},U.prototype._boundValue=function(){},U.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,i=e._receiverAt(0);void 0===i&&(i=c),this._addCallbacks(t,n,r,i,null)},U.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=c),this._addCallbacks(n,r,i,o,null)},U.prototype._addCallbacks=function(e,t,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"===typeof e&&(this._fulfillmentHandler0=null===i?e:u.domainBind(i,e)),"function"===typeof t&&(this._rejectionHandler0=null===i?t:u.domainBind(i,t));else{var a=4*o-4;this[a+2]=n,this[a+3]=r,"function"===typeof e&&(this[a+0]=null===i?e:u.domainBind(i,e)),"function"===typeof t&&(this[a+1]=null===i?t:u.domainBind(i,t))}return this._setLength(o+1),o},U.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},U.prototype._resolveCallback=function(e,t){if(0===(117506048&this._bitField)){if(e===this)return this._rejectCallback(r(),!1);var n=y(e,this);if(!(n instanceof U))return this._fulfill(e);t&&this._propagateFrom(n,2);var i=n._target();if(i!==this){var o=i._bitField;if(0===(50397184&o)){var a=this._length();a>0&&i._migrateCallback0(this);for(var s=1;s<a;++s)i._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(i)}else if(0!==(33554432&o))this._fulfill(i._value());else if(0!==(16777216&o))this._reject(i._reason());else{var c=new g("late cancellation observer");i._attachExtraTrace(c),this._reject(c)}}else this._reject(r())}},U.prototype._rejectCallback=function(e,t,n){var r=u.ensureErrorObject(e),i=r===e;if(!i&&!n&&D.warnings()){var o="a promise was rejected with a non-error: "+u.classString(e);this._warn(o,!0)}this._attachExtraTrace(r,!!t&&i),this._reject(e)},U.prototype._resolveFromExecutor=function(e){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(e,(function(e){t._resolveCallback(e)}),(function(e){t._rejectCallback(e,n)}));n=!1,this._popContext(),void 0!==r&&t._rejectCallback(r,!0)},U.prototype._settlePromiseFromHandler=function(e,t,n,r){var i=r._bitField;if(0===(65536&i)){var o;r._pushContext(),t===v?n&&"number"===typeof n.length?o=A(e).apply(this._boundValue(),n):(o=S,o.e=new p("cannot .spread() a non-array: "+u.classString(n))):o=A(e).call(t,n);var a=r._popContext();i=r._bitField,0===(65536&i)&&(o===b?r._reject(n):o===S?r._rejectCallback(o.e,!1):(D.checkForgottenReturns(o,a,"",r,this),r._resolveCallback(o)))}},U.prototype._target=function(){var e=this;while(e._isFollowing())e=e._followee();return e},U.prototype._followee=function(){return this._rejectionHandler0},U.prototype._setFollowee=function(e){this._rejectionHandler0=e},U.prototype._settlePromise=function(e,t,n,r){var o=e instanceof U,s=this._bitField,c=0!==(134217728&s);0!==(65536&s)?(o&&e._invokeInternalOnCancel(),n instanceof C&&n.isFinallyHandler()?(n.cancelPromise=e,A(t).call(n,r)===S&&e._reject(S.e)):t===i?e._fulfill(i.call(n)):n instanceof a?n._promiseCancelled(e):o||e instanceof x?e._cancel():n.cancel()):"function"===typeof t?o?(c&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,n,r,e)):t.call(n,r,e):n instanceof a?n._isResolved()||(0!==(33554432&s)?n._promiseFulfilled(r,e):n._promiseRejected(r,e)):o&&(c&&e._setAsyncGuaranteed(),0!==(33554432&s)?e._fulfill(r):e._reject(r))},U.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,r=e.receiver,i=e.value;"function"===typeof t?n instanceof U?this._settlePromiseFromHandler(t,r,i,n):t.call(r,i,n):n instanceof U&&n._reject(i)},U.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},U.prototype._settlePromise0=function(e,t,n){var r=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,e,i,t)},U.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},U.prototype._fulfill=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(e===this){var n=r();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!==(134217728&t)?this._settlePromises():f.settlePromises(this))}},U.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return f.fatalError(e,u.isNode);(65535&t)>0?f.settlePromises(this):this._ensurePossibleRejectionHandled()}},U.prototype._fulfillPromises=function(e,t){for(var n=1;n<e;n++){var r=this._fulfillmentHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,t)}},U.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var r=this._rejectionHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,t)}},U.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(t>0){if(0!==(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},U.prototype._settledValue=function(){var e=this._bitField;return 0!==(33554432&e)?this._rejectionHandler0:0!==(16777216&e)?this._fulfillmentHandler0:void 0},U.defer=U.pending=function(){D.deprecated("Promise.defer","new Promise");var e=new U(m);return{promise:e,resolve:O,reject:F}},u.notEnumerableProp(U,"_makeSelfResolutionError",r),e("./method")(U,m,y,o,D),e("./bind")(U,m,y,D),e("./cancel")(U,x,o,D),e("./direct_resolve")(U),e("./synchronous_inspection")(U),e("./join")(U,x,y,m,f,s),U.Promise=U,U.version="3.4.7",e("./map.js")(U,x,o,y,m,D),e("./call_get.js")(U),e("./using.js")(U,o,y,w,m,D),e("./timers.js")(U,m,D),e("./generators.js")(U,o,m,y,a,D),e("./nodeify.js")(U),e("./promisify.js")(U,m),e("./props.js")(U,x,y,o),e("./race.js")(U,m,y,o),e("./reduce.js")(U,x,o,y,m,D),e("./settle.js")(U,x,D),e("./some.js")(U,x,o),e("./filter.js")(U,m),e("./each.js")(U,m),e("./any.js")(U),u.toFastProperties(U),u.toFastProperties(U.prototype),P({a:1}),P({b:2}),P({c:3}),P(1),P((function(){})),P(void 0),P(!1),P(new U(m)),D.setBounds(d.firstLineError,u.lastLineError),U}}).call(this,e("_process"))},{"./any.js":48,"./async":49,"./bind":50,"./call_get.js":51,"./cancel":52,"./catch_filter":53,"./context":54,"./debuggability":55,"./direct_resolve":56,"./each.js":57,"./errors":58,"./es5":59,"./filter.js":60,"./finally":61,"./generators.js":62,"./join":63,"./map.js":64,"./method":65,"./nodeback":66,"./nodeify.js":67,"./promise_array":69,"./promisify.js":70,"./props.js":71,"./race.js":73,"./reduce.js":74,"./settle.js":76,"./some.js":77,"./synchronous_inspection":78,"./thenables":79,"./timers.js":80,"./using.js":81,"./util":82,_process:102}],69:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o){var a=e("./util");a.isArray;function s(e){switch(e){case-2:return[];case-3:return{}}}function c(e){var r=this._promise=new t(n);e instanceof t&&r._propagateFrom(e,3),r._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.inherits(c,o),c.prototype.length=function(){return this._length},c.prototype.promise=function(){return this._promise},c.prototype._init=function e(n,o){var c=r(this._values,this._promise);if(c instanceof t){c=c._target();var u=c._bitField;if(this._values=c,0===(50397184&u))return this._promise._setAsyncGuaranteed(),c._then(e,this._reject,void 0,this,o);if(0===(33554432&u))return 0!==(16777216&u)?this._reject(c._reason()):this._cancel();c=c._value()}if(c=a.asArray(c),null!==c)0!==c.length?this._iterate(c):-5===o?this._resolveEmptyArray():this._resolve(s(o));else{var l=i("expecting an array or an iterable object but got "+a.classString(c)).reason();this._promise._rejectCallback(l,!1)}},c.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,a=null,s=0;s<n;++s){var c=r(e[s],i);c instanceof t?(c=c._target(),a=c._bitField):a=null,o?null!==a&&c.suppressUnhandledRejections():null!==a?0===(50397184&a)?(c._proxy(this,s),this._values[s]=c):o=0!==(33554432&a)?this._promiseFulfilled(c._value(),s):0!==(16777216&a)?this._promiseRejected(c._reason(),s):this._promiseCancelled(s):o=this._promiseFulfilled(c,s)}o||i._setAsyncGuaranteed()},c.prototype._isResolved=function(){return null===this._values},c.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},c.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},c.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},c.prototype._promiseFulfilled=function(e,t){this._values[t]=e;var n=++this._totalResolved;return n>=this._length&&(this._resolve(this._values),!0)},c.prototype._promiseCancelled=function(){return this._cancel(),!0},c.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},c.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n<e.length;++n)e[n]instanceof t&&e[n].cancel()}},c.prototype.shouldCopyValues=function(){return!0},c.prototype.getActualLength=function(e){return e},c}},{"./util":82}],70:[function(e,t,n){"use strict";t.exports=function(t,n){var r={},i=e("./util"),o=e("./nodeback"),a=i.withAppended,s=i.maybeWrapAsError,c=i.canEvaluate,u=e("./errors").TypeError,l="Async",d={__isPromisified__:!0},f=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],h=new RegExp("^(?:"+f.join("|")+")$"),p=function(e){return i.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e};function g(e){return!h.test(e)}function m(e){try{return!0===e.__isPromisified__}catch(t){return!1}}function v(e,t,n){var r=i.getDataPropertyOrDefault(e,t+n,d);return!!r&&m(r)}function b(e,t,n){for(var r=0;r<e.length;r+=2){var i=e[r];if(n.test(i))for(var o=i.replace(n,""),a=0;a<e.length;a+=2)if(e[a]===o)throw new u("Cannot promisify an API that has normal methods with '%s'-suffix\n\n    See http://goo.gl/MqrFmX\n".replace("%s",t))}}function y(e,t,n,r){for(var o=i.inheritedDataKeys(e),a=[],s=0;s<o.length;++s){var c=o[s],u=e[c],l=r===p||p(c,u,e);"function"!==typeof u||m(u)||v(e,c,t)||!r(c,u,e,l)||a.push(c,u)}return b(a,t,n),a}var x,_=function(e){return e.replace(/([$])/,"\\$")},w=function(e){for(var t=[e],n=Math.max(0,e-1-3),r=e-1;r>=n;--r)t.push(r);for(r=e+1;r<=3;++r)t.push(r);return t},D=function(e){return i.filledRange(e,"_arg","")},C=function(e){return i.filledRange(Math.max(e,3),"_arg","")},k=function(e){return"number"===typeof e.length?Math.max(Math.min(e.length,1024),0):0};function T(e,c,u,l,d,f){var h=function(){return this}(),p=e;function g(){var i=c;c===r&&(i=this);var u=new t(n);u._captureStackTrace();var l="string"===typeof p&&this!==h?this[p]:e,d=o(u,f);try{l.apply(i,a(arguments,d))}catch(g){u._rejectCallback(s(g),!0,!0)}return u._isFateSealed()||u._setAsyncGuaranteed(),u}return"string"===typeof p&&(e=l),i.notEnumerableProp(g,"__isPromisified__",!0),g}x=function(e,c,u,l,d,f){var h=Math.max(0,k(l)-1),p=w(h),g="string"===typeof e||c===r;function m(e){var t,n=D(e).join(", "),r=e>0?", ":"";return t=g?"ret = callback.call(this, {{args}}, nodeback); break;\n":void 0===c?"ret = callback({{args}}, nodeback); break;\n":"ret = callback.call(receiver, {{args}}, nodeback); break;\n",t.replace("{{args}}",n).replace(", ",r)}function v(){for(var e="",t=0;t<p.length;++t)e+="case "+p[t]+":"+m(p[t]);return e+="                                                             \n        default:                                                             \n            var args = new Array(len + 1);                                   \n            var i = 0;                                                       \n            for (var i = 0; i < len; ++i) {                                  \n               args[i] = arguments[i];                                       \n            }                                                                \n            args[i] = nodeback;                                              \n            [CodeForCall]                                                    \n            break;                                                           \n        ".replace("[CodeForCall]",g?"ret = callback.apply(this, args);\n":"ret = callback.apply(receiver, args);\n"),e}var b="string"===typeof e?"this != null ? this['"+e+"'] : fn":"fn",y="'use strict';                                                \n        var ret = function (Parameters) {                                    \n            'use strict';                                                    \n            var len = arguments.length;                                      \n            var promise = new Promise(INTERNAL);                             \n            promise._captureStackTrace();                                    \n            var nodeback = nodebackForPromise(promise, "+f+");   \n            var ret;                                                         \n            var callback = tryCatch([GetFunctionCode]);                      \n            switch(len) {                                                    \n                [CodeForSwitchCase]                                          \n            }                                                                \n            if (ret === errorObj) {                                          \n                promise._rejectCallback(maybeWrapAsError(ret.e), true, true);\n            }                                                                \n            if (!promise._isFateSealed()) promise._setAsyncGuaranteed();     \n            return promise;                                                  \n        };                                                                   \n        notEnumerableProp(ret, '__isPromisified__', true);                   \n        return ret;                                                          \n    ".replace("[CodeForSwitchCase]",v()).replace("[GetFunctionCode]",b);return y=y.replace("Parameters",C(h)),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",y)(t,l,c,a,s,o,i.tryCatch,i.errorObj,i.notEnumerableProp,n)};var S=c?x:T;function A(e,t,n,o,a){for(var s=new RegExp(_(t)+"$"),c=y(e,t,s,n),u=0,l=c.length;u<l;u+=2){var d=c[u],f=c[u+1],h=d+t;if(o===S)e[h]=S(d,r,d,f,t,a);else{var p=o(f,(function(){return S(d,r,d,f,t,a)}));i.notEnumerableProp(p,"__isPromisified__",!0),e[h]=p}}return i.toFastProperties(e),e}function E(e,t,n){return S(e,t,void 0,e,null,n)}t.promisify=function(e,t){if("function"!==typeof e)throw new u("expecting a function but got "+i.classString(e));if(m(e))return e;t=Object(t);var n=void 0===t.context?r:t.context,o=!!t.multiArgs,a=E(e,n,o);return i.copyDescriptors(e,a,g),a},t.promisifyAll=function(e,t){if("function"!==typeof e&&"object"!==typeof e)throw new u("the target of promisifyAll must be an object or a function\n\n    See http://goo.gl/MqrFmX\n");t=Object(t);var n=!!t.multiArgs,r=t.suffix;"string"!==typeof r&&(r=l);var o=t.filter;"function"!==typeof o&&(o=p);var a=t.promisifier;if("function"!==typeof a&&(a=S),!i.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n    See http://goo.gl/MqrFmX\n");for(var s=i.inheritedDataKeys(e),c=0;c<s.length;++c){var d=e[s[c]];"constructor"!==s[c]&&i.isClass(d)&&(A(d.prototype,r,o,a,n),A(d,r,o,a,n))}return A(e,r,o,a,n)}}},{"./errors":58,"./nodeback":66,"./util":82}],71:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o,a=e("./util"),s=a.isObject,c=e("./es5");"function"===typeof Map&&(o=Map);var u=function(){var e=0,t=0;function n(n,r){this[e]=n,this[e+t]=r,e++}return function(r){t=r.size,e=0;var i=new Array(2*r.size);return r.forEach(n,i),i}}(),l=function(e){for(var t=new o,n=e.length/2|0,r=0;r<n;++r){var i=e[n+r],a=e[r];t.set(i,a)}return t};function d(e){var t,n=!1;if(void 0!==o&&e instanceof o)t=u(e),n=!0;else{var r=c.keys(e),i=r.length;t=new Array(2*i);for(var a=0;a<i;++a){var s=r[a];t[a]=e[s],t[a+i]=s}}this.constructor$(t),this._isMap=n,this._init$(void 0,-3)}function f(e){var n,o=r(e);return s(o)?(n=o instanceof t?o._then(t.props,void 0,void 0,void 0,void 0):new d(o).promise(),o instanceof t&&n._propagateFrom(o,2),n):i("cannot await properties of a non-object\n\n    See http://goo.gl/MqrFmX\n")}a.inherits(d,n),d.prototype._init=function(){},d.prototype._promiseFulfilled=function(e,t){this._values[t]=e;var n=++this._totalResolved;if(n>=this._length){var r;if(this._isMap)r=l(this._values);else{r={};for(var i=this.length(),o=0,a=this.length();o<a;++o)r[this._values[o+i]]=this._values[o]}return this._resolve(r),!0}return!1},d.prototype.shouldCopyValues=function(){return!1},d.prototype.getActualLength=function(e){return e>>1},t.prototype.props=function(){return f(this)},t.props=function(e){return f(e)}}},{"./es5":59,"./util":82}],72:[function(e,t,n){"use strict";function r(e,t,n,r,i){for(var o=0;o<i;++o)n[o+r]=e[o+t],e[o+t]=void 0}function i(e){this._capacity=e,this._length=0,this._front=0}i.prototype._willBeOverCapacity=function(e){return this._capacity<e},i.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1);var n=this._front+t&this._capacity-1;this[n]=e,this._length=t+1},i.prototype.push=function(e,t,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(e),this._pushOne(t),void this._pushOne(n);var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=e,this[i+1&o]=t,this[i+2&o]=n,this._length=r},i.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},i.prototype.length=function(){return this._length},i.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},i.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e;var n=this._front,i=this._length,o=n+i&t-1;r(this,0,this,t,o)},t.exports=i},{}],73:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o=e("./util"),a=function(e){return e.then((function(t){return s(t,e)}))};function s(e,s){var c=r(e);if(c instanceof t)return a(c);if(e=o.asArray(e),null===e)return i("expecting an array or an iterable object but got "+o.classString(e));var u=new t(n);void 0!==s&&u._propagateFrom(s,3);for(var l=u._fulfill,d=u._reject,f=0,h=e.length;f<h;++f){var p=e[f];(void 0!==p||f in e)&&t.cast(p)._then(l,d,void 0,u,null)}return u}t.race=function(e){return s(e,void 0)},t.prototype.race=function(){return s(this,void 0)}}},{"./util":82}],74:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=t._getDomain,c=e("./util"),u=c.tryCatch;function l(e,n,r,i){this.constructor$(e);var a=s();this._fn=null===a?n:c.domainBind(a,n),void 0!==r&&(r=t.resolve(r),r._attachCancellationCallback(this)),this._initialValue=r,this._currentCancellable=null,this._eachValues=i===o?Array(this._length):0===i?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function d(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function f(e,t,n,i){if("function"!==typeof t)return r("expecting a function but got "+c.classString(t));var o=new l(e,t,n,i);return o.promise()}function h(e){this.accum=e,this.array._gotAccum(e);var n=i(this.value,this.array._promise);return n instanceof t?(this.array._currentCancellable=n,n._then(p,void 0,void 0,this,void 0)):p.call(this,n)}function p(e){var n,r=this.array,i=r._promise,o=u(r._fn);i._pushContext(),n=void 0!==r._eachValues?o.call(i._boundValue(),e,this.index,this.length):o.call(i._boundValue(),this.accum,e,this.index,this.length),n instanceof t&&(r._currentCancellable=n);var s=i._popContext();return a.checkForgottenReturns(n,s,void 0!==r._eachValues?"Promise.each":"Promise.reduce",i),n}c.inherits(l,n),l.prototype._gotAccum=function(e){void 0!==this._eachValues&&null!==this._eachValues&&e!==o&&this._eachValues.push(e)},l.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},l.prototype._init=function(){},l.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},l.prototype.shouldCopyValues=function(){return!1},l.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},l.prototype._resultCancelled=function(e){if(e===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel())},l.prototype._iterate=function(e){var n,r;this._values=e;var i=e.length;if(void 0!==this._initialValue?(n=this._initialValue,r=0):(n=t.resolve(e[0]),r=1),this._currentCancellable=n,!n.isRejected())for(;r<i;++r){var o={accum:null,value:e[r],index:r,length:i,array:this};n=n._then(h,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(d,d,void 0,n,this)},t.prototype.reduce=function(e,t){return f(this,e,t,null)},t.reduce=function(e,t,n,r){return f(e,t,n,r)}}},{"./util":82}],75:[function(e,n,r){(function(t,r){"use strict";var i,o=e("./util"),a=function(){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")},s=o.getNativePromise();if(o.isNode&&"undefined"===typeof MutationObserver){var c=r.setImmediate,u=t.nextTick;i=o.isRecentNode?function(e){c.call(r,e)}:function(e){u.call(t,e)}}else if("function"===typeof s&&"function"===typeof s.resolve){var l=s.resolve();i=function(e){l.then(e)}}else i="undefined"===typeof MutationObserver||"undefined"!==typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?"undefined"!==typeof setImmediate?function(e){setImmediate(e)}:"undefined"!==typeof setTimeout?function(e){setTimeout(e,0)}:a:function(){var e=document.createElement("div"),t={attributes:!0},n=!1,r=document.createElement("div"),i=new MutationObserver((function(){e.classList.toggle("foo"),n=!1}));i.observe(r,t);var o=function(){n||(n=!0,r.classList.toggle("foo"))};return function(n){var r=new MutationObserver((function(){r.disconnect(),n()}));r.observe(e,t),o()}}();n.exports=i}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./util":82,_process:102}],76:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=t.PromiseInspection,o=e("./util");function a(e){this.constructor$(e)}o.inherits(a,n),a.prototype._promiseResolved=function(e,t){this._values[e]=t;var n=++this._totalResolved;return n>=this._length&&(this._resolve(this._values),!0)},a.prototype._promiseFulfilled=function(e,t){var n=new i;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},a.prototype._promiseRejected=function(e,t){var n=new i;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return r.deprecated(".settle()",".reflect()"),new a(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":82}],77:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=e("./errors").RangeError,a=e("./errors").AggregateError,s=i.isArray,c={};function u(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function l(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n    See http://goo.gl/MqrFmX\n");var n=new u(e),i=n.promise();return n.setHowMany(t),n.init(),i}i.inherits(u,n),u.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=s(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(e){this._howMany=e},u.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},u.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new a,t=this.length();t<this._values.length;++t)this._values[t]!==c&&e.push(this._values[t]);return e.length>0?this._reject(e):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(e){this._values.push(e)},u.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new o(t)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return l(e,t)},t.prototype.some=function(e){return l(this,e)},t._SomePromiseArray=u}},{"./errors":58,"./util":82}],78:[function(e,t,n){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.isFulfilled=function(){return 0!==(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!==(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0===(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!==(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!==(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536===(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!==(8454144&this._target()._bitField)},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],79:[function(e,t,n){"use strict";t.exports=function(t,n){var r=e("./util"),i=r.errorObj,o=r.isObject;function a(e,r){if(o(e)){if(e instanceof t)return e;var a=c(e);if(a===i){r&&r._pushContext();var s=t.reject(a.e);return r&&r._popContext(),s}if("function"===typeof a){if(l(e)){s=new t(n);return e._then(s._fulfill,s._reject,void 0,s,null),s}return d(e,a,r)}}return e}function s(e){return e.then}function c(e){try{return s(e)}catch(t){return i.e=t,i}}var u={}.hasOwnProperty;function l(e){try{return u.call(e,"_promise0")}catch(t){return!1}}function d(e,o,a){var s=new t(n),c=s;a&&a._pushContext(),s._captureStackTrace(),a&&a._popContext();var u=!0,l=r.tryCatch(o).call(e,d,f);function d(e){s&&(s._resolveCallback(e),s=null)}function f(e){s&&(s._rejectCallback(e,u,!0),s=null)}return u=!1,s&&l===i&&(s._rejectCallback(l.e,!0,!0),s=null),c}return a}},{"./util":82}],80:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=t.TimeoutError;function a(e){this.handle=e}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(e){return c(+this).thenReturn(e)},c=t.delay=function(e,i){var o,c;return void 0!==i?(o=t.resolve(i)._then(s,null,null,e,void 0),r.cancellation()&&i instanceof t&&o._setOnCancel(i)):(o=new t(n),c=setTimeout((function(){o._fulfill()}),+e),r.cancellation()&&o._setOnCancel(new a(c)),o._captureStackTrace()),o._setAsyncGuaranteed(),o};t.prototype.delay=function(e){return c(e,this)};var u=function(e,t,n){var r;r="string"!==typeof t?t instanceof Error?t:new o("operation timed out"):new o(t),i.markAsOriginatingFromRejection(r),e._attachExtraTrace(r),e._reject(r),null!=n&&n.cancel()};function l(e){return clearTimeout(this.handle),e}function d(e){throw clearTimeout(this.handle),e}t.prototype.timeout=function(e,t){var n,i;e=+e;var o=new a(setTimeout((function(){n.isPending()&&u(n,t,i)}),e));return r.cancellation()?(i=this.then(),n=i._then(l,d,void 0,o,void 0),n._setOnCancel(o)):n=this._then(l,d,void 0,o,void 0),n}}},{"./util":82}],81:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./util"),c=e("./errors").TypeError,u=e("./util").inherits,l=s.errorObj,d=s.tryCatch,f={};function h(e){setTimeout((function(){throw e}),0)}function p(e){var t=r(e);return t!==e&&"function"===typeof e._isDisposable&&"function"===typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}function g(e,n){var i=0,a=e.length,s=new t(o);function c(){if(i>=a)return s._fulfill();var o=p(e[i++]);if(o instanceof t&&o._isDisposable()){try{o=r(o._getDisposer().tryDispose(n),e.promise)}catch(u){return h(u)}if(o instanceof t)return o._then(c,h,null,null,null)}c()}return c(),s}function m(e,t,n){this._data=e,this._promise=t,this._context=n}function v(e,t,n){this.constructor$(e,t,n)}function b(e){return m.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function y(e){this.length=e,this.promise=null,this[e-1]=null}m.prototype.data=function(){return this._data},m.prototype.promise=function(){return this._promise},m.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():f},m.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=t!==f?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},m.isDisposer=function(e){return null!=e&&"function"===typeof e.resource&&"function"===typeof e.tryDispose},u(v,m),v.prototype.doDispose=function(e,t){var n=this.data();return n.call(e,e,t)},y.prototype._resultCancelled=function(){for(var e=this.length,n=0;n<e;++n){var r=this[n];r instanceof t&&r.cancel()}},t.using=function(){var e=arguments.length;if(e<2)return n("you must pass at least 2 arguments to Promise.using");var i,o=arguments[e-1];if("function"!==typeof o)return n("expecting a function but got "+s.classString(o));var c=!0;2===e&&Array.isArray(arguments[0])?(i=arguments[0],e=i.length,c=!1):(i=arguments,e--);for(var u=new y(e),f=0;f<e;++f){var h=i[f];if(m.isDisposer(h)){var p=h;h=h.promise(),h._setDisposable(p)}else{var v=r(h);v instanceof t&&(h=v._then(b,null,null,{resources:u,index:f},void 0))}u[f]=h}var x=new Array(u.length);for(f=0;f<x.length;++f)x[f]=t.resolve(u[f]).reflect();var _=t.all(x).then((function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected())return l.e=n.error(),l;if(!n.isFulfilled())return void _.cancel();e[t]=n.value()}w._pushContext(),o=d(o);var r=c?o.apply(void 0,e):o(e),i=w._popContext();return a.checkForgottenReturns(r,i,"Promise.using",w),r})),w=_.lastly((function(){var e=new t.PromiseInspection(_);return g(u,e)}));return u.promise=w,w._setOnCancel(u),w},t.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},t.prototype._isDisposable=function(){return(131072&this._bitField)>0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"===typeof e)return new v(e,this,i());throw new c}}},{"./errors":58,"./util":82}],82:[function(e,n,r){(function(t,r){"use strict";var i=e("./es5"),o="undefined"==typeof navigator,a={e:{}},s,c="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof r?r:void 0!==this?this:null;function u(){try{var e=s;return s=null,e.apply(this,arguments)}catch(t){return a.e=t,a}}function l(e){return s=e,u}var d=function(e,t){var n={}.hasOwnProperty;function r(){for(var r in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=t.prototype[r])}return r.prototype=t.prototype,e.prototype=new r,e.prototype};function f(e){return null==e||!0===e||!1===e||"string"===typeof e||"number"===typeof e}function h(e){return"function"===typeof e||"object"===typeof e&&null!==e}function p(e){return f(e)?new Error(T(e)):e}function g(e,t){var n,r=e.length,i=new Array(r+1);for(n=0;n<r;++n)i[n]=e[n];return i[n]=t,i}function m(e,t,n){if(!i.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var r=Object.getOwnPropertyDescriptor(e,t);return null!=r?null==r.get&&null==r.set?r.value:n:void 0}function v(e,t,n){if(f(e))return e;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return i.defineProperty(e,t,r),e}function b(e){throw e}var y=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1};if(i.isES5){var n=Object.getOwnPropertyNames;return function(e){var r=[],o=Object.create(null);while(null!=e&&!t(e)){var a;try{a=n(e)}catch(l){return r}for(var s=0;s<a.length;++s){var c=a[s];if(!o[c]){o[c]=!0;var u=Object.getOwnPropertyDescriptor(e,c);null!=u&&null==u.get&&null==u.set&&r.push(c)}}e=i.getPrototypeOf(e)}return r}}var r={}.hasOwnProperty;return function(n){if(t(n))return[];var i=[];e:for(var o in n)if(r.call(n,o))i.push(o);else{for(var a=0;a<e.length;++a)if(r.call(e[a],o))continue e;i.push(o)}return i}}(),x=/this\s*\.\s*\S+\s*=/;function _(e){try{if("function"===typeof e){var t=i.names(e.prototype),n=i.isES5&&t.length>1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),o=x.test(e+"")&&i.names(e).length>0;if(n||r||o)return!0}return!1}catch(a){return!1}}function w(e){function t(){}t.prototype=e;var n=8;while(n--)new t;return e}var D=/^[a-z$_][a-z$_0-9]*$/i;function C(e){return D.test(e)}function k(e,t,n){for(var r=new Array(e),i=0;i<e;++i)r[i]=t+i+n;return r}function T(e){try{return e+""}catch(t){return"[no string representation]"}}function S(e){return null!==e&&"object"===typeof e&&"string"===typeof e.message&&"string"===typeof e.name}function A(e){try{v(e,"isOperational",!0)}catch(t){}}function E(e){return null!=e&&(e instanceof Error["__BluebirdErrorTypes__"].OperationalError||!0===e["isOperational"])}function U(e){return S(e)&&i.propertyIsWritable(e,"stack")}var O=function(){return"stack"in new Error?function(e){return U(e)?e:new Error(T(e))}:function(e){if(U(e))return e;try{throw new Error(T(e))}catch(t){return t}}}();function F(e){return{}.toString.call(e)}function P(e,t,n){for(var r=i.names(e),o=0;o<r.length;++o){var a=r[o];if(n(a))try{i.defineProperty(t,a,i.getDescriptor(e,a))}catch(s){}}}var R=function(e){return i.isArray(e)?e:null};if("undefined"!==typeof Symbol&&Symbol.iterator){var N="function"===typeof Array.from?function(e){return Array.from(e)}:function(e){var t,n=[],r=e[Symbol.iterator]();while(!(t=r.next()).done)n.push(t.value);return n};R=function(e){return i.isArray(e)?e:null!=e&&"function"===typeof e[Symbol.iterator]?N(e):null}}var M="undefined"!==typeof t&&"[object process]"===F(t).toLowerCase(),I="undefined"!==typeof t&&"undefined"!==typeof t.env;function B(e){return I?t.env[e]:void 0}function L(){if("function"===typeof Promise)try{var e=new Promise((function(){}));if("[object Promise]"==={}.toString.call(e))return Promise}catch(t){}}function z(e,t){return e.bind(t)}var W={isClass:_,isIdentifier:C,inheritedDataKeys:y,getDataPropertyOrDefault:m,thrower:b,isArray:i.isArray,asArray:R,notEnumerableProp:v,isPrimitive:f,isObject:h,isError:S,canEvaluate:o,errorObj:a,tryCatch:l,inherits:d,withAppended:g,maybeWrapAsError:p,toFastProperties:w,filledRange:k,toString:T,canAttachTrace:U,ensureErrorObject:O,originatesFromRejection:E,markAsOriginatingFromRejection:A,classString:F,copyDescriptors:P,hasDevTools:"undefined"!==typeof chrome&&chrome&&"function"===typeof chrome.loadTimes,isNode:M,hasEnvVariables:I,env:B,global:c,getNativePromise:L,domainBind:z};W.isRecentNode=W.isNode&&function(){var e=t.versions.node.split(".").map(Number);return 0===e[0]&&e[1]>10||e[0]>0}(),W.isNode&&W.toFastProperties(t);try{throw new Error}catch(j){W.lastLineError=j}n.exports=W}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./es5":59,_process:102}],83:[function(e,n,r){(function(t){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
"use strict";var n=e("base64-js"),i=e("ieee754"),o=e("isarray");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=u.prototype):(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?m(e,t,n,r):"string"===typeof t?p(e,t,n):v(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t,n,r){return d(t),t<=0?c(e,t):void 0!==n?"string"===typeof r?c(e,t).fill(n,r):c(e,t).fill(n):c(e,t)}function h(e,t){if(d(t),e=c(e,t<0?0:0|b(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|x(t,n);e=c(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function g(e,t){var n=t.length<0?0:0|b(t.length);e=c(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function m(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=u.prototype):e=g(e,t),e}function v(e,t){if(u.isBuffer(t)){var n=0|b(t.length);return e=c(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?c(e,0):g(e,t);if("Buffer"===t.type&&o(t.data))return g(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),u.alloc(+e)}function x(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(r)return K(e).length;t=(""+t).toLowerCase(),r=!0}}function _(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return F(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function w(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function D(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:C(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function C(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var d=!0,f=0;f<c;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return-1}function k(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function T(e,t,n,r){return ee(K(t,e.length-n),e,n,r)}function S(e,t,n,r){return ee(Z(t),e,n,r)}function A(e,t,n,r){return S(e,t,n,r)}function E(e,t,n,r){return ee(Q(t),e,n,r)}function U(e,t,n,r){return ee(J(t,e.length-n),e,n,r)}function O(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function F(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var o,a,s,c,u=e[i],l=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:o=e[i+1],128===(192&o)&&(c=(31&u)<<6|63&o,c>127&&(l=c));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return R(r)}r.Buffer=u,r.SlowBuffer=y,r.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),r.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return f(null,e,t,n)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=x,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)w(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?F(this,0,e):_.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),d=0;d<s;++d)if(c[d]!==l[d]){o=c[d],a=l[d];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return D(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return D(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return k(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function R(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}function N(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function I(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=Y(e[o]);return i}function B(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function L(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function z(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function W(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function H(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,o){return o||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,o){return o||H(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;z(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a<n&&(o*=256))this[t+a]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;z(this,e,t,n,i,0)}var o=n-1,a=1;this[t+o]=255&e;while(--o>=0&&(a*=256))this[t+o]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):W(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):W(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);z(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o<n&&(a*=256))e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);z(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):W(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):W(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:K(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var $=/[^+\/0-9A-Za-z-_]/g;function G(e){if(e=X(e).replace($,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function X(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Z(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function J(e,t){for(var n,r,i,o=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function Q(e){return n.toByteArray(G(e))}function ee(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"base64-js":47,ieee754:86,isarray:87}],84:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}];n.default=r},{}],85:[function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.hex=n.dec=n.codePoint=void 0;for(var i=r(e("./dingbats")),o={},a=String.fromCodePoint?String.fromCodePoint:g,s=0,c=i.default;s<c.length;s++){var u=c[s],l=parseInt(u["Unicode dec"],10),d={codePoint:l,string:a(l)};o[u["Typeface name"].toUpperCase()+"_"+u["Dingbat dec"]]=d}function f(e,t){return o[e.toUpperCase()+"_"+t]}function h(e,t){return f(e,parseInt(t,10))}function p(e,t){return f(e,parseInt(t,16))}function g(e){if(e<=65535)return String.fromCharCode(e);var t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}n.codePoint=f,n.dec=h,n.hex=p},{"./dingbats":84}],86:[function(e,t,n){n.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,d=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+d>=1?f/c:f*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*g}},{}],87:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],88:[function(n,r,i){(function(t,o){
/*!

JSZip v3.7.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/master/LICENSE
*/
!function(n){"object"==typeof i&&"undefined"!=typeof r?r.exports=n():"function"==typeof e&&e.amd?e([],n):("undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:this).JSZip=n()}((function(){return function e(t,r,i){function o(s,c){if(!r[s]){if(!t[s]){var u="function"==typeof n&&n;if(!c&&u)return u(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var d=r[s]={exports:{}};t[s][0].call(d.exports,(function(e){var n=t[s][1][e];return o(n||e)}),d,d.exports,e,t,r,i)}return r[s].exports}for(var a="function"==typeof n&&n,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,a,s,c,u,l=[],d=0,f=e.length,h=f,p="string"!==r.getTypeOf(e);d<e.length;)h=f-d,i=p?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,c=1<h?(15&n)<<2|i>>6:64,u=2<h?63&i:64,l.push(o.charAt(a)+o.charAt(s)+o.charAt(c)+o.charAt(u));return l.join("")},n.decode=function(e){var t,n,r,a,s,c,u=0,l=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&h--,e.charAt(e.length-2)===o.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|h):new Array(0|h);u<e.length;)t=o.indexOf(e.charAt(u++))<<2|(a=o.indexOf(e.charAt(u++)))>>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(u++)))>>2,r=(3&s)<<6|(c=o.indexOf(e.charAt(u++))),f[l++]=t,64!==s&&(f[l++]=n),64!==c&&(f[l++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(e){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function c(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(c,a),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},c.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c("Deflate",e)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,a,l){var d,f,h=e.file,p=e.compression,g=l!==s.utf8encode,m=o.transformTo("string",l(h.name)),v=o.transformTo("string",s.utf8encode(h.name)),b=h.comment,y=o.transformTo("string",l(b)),x=o.transformTo("string",s.utf8encode(b)),_=v.length!==h.name.length,w=x.length!==b.length,D="",C="",k="",T=h.dir,S=h.date,A={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(A.crc32=e.crc32,A.compressedSize=e.compressedSize,A.uncompressedSize=e.uncompressedSize);var E=0;t&&(E|=8),g||!_&&!w||(E|=2048);var U=0,O=0;T&&(U|=16),"UNIX"===a?(O=798,U|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(h.unixPermissions,T)):(O=20,U|=function(e){return 63&(e||0)}(h.dosPermissions)),d=S.getUTCHours(),d<<=6,d|=S.getUTCMinutes(),d<<=5,d|=S.getUTCSeconds()/2,f=S.getUTCFullYear()-1980,f<<=4,f|=S.getUTCMonth()+1,f<<=5,f|=S.getUTCDate(),_&&(C=r(1,1)+r(c(m),4)+v,D+="up"+r(C.length,2)+C),w&&(k=r(1,1)+r(c(y),4)+x,D+="uc"+r(k.length,2)+k);var F="";return F+="\n\0",F+=r(E,2),F+=p.magic,F+=r(d,2),F+=r(f,2),F+=r(A.crc32,4),F+=r(A.compressedSize,4),F+=r(A.uncompressedSize,4),F+=r(m.length,2),F+=r(D.length,2),{fileRecord:u.LOCAL_FILE_HEADER+F+m+D,dirRecord:u.CENTRAL_FILE_HEADER+r(O,2)+F+r(y.length,2)+"\0\0\0\0"+r(U,4)+r(i,4)+m+D+y}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),c=e("../crc32"),u=e("../signature");function l(e,t,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(l,a),l.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},l.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return u.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,a){var s=o.transformTo("string",a(i));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},l.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},l.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=l},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new i(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:c,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.7.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function u(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new a(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var o=0;o<r.length;o++)n.push(u(r[o]));return i.Promise.all(n)})).then((function(e){for(var r=e.shift(),i=r.files,o=0;o<i.length;o++){var a=i[o];n.file(a.fileNameStr,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders})}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:"undefined"!=typeof o,newBufferFrom:function(e,t){if(o.from&&o.from!==Uint8Array.from)return o.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new o(e,t)},allocBuffer:function(e){if(o.alloc)return o.alloc(e);var t=new o(e);return t.fill(0),t},isBuffer:function(e){return o.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,i=o.getTypeOf(t),s=o.extend(n||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=g(e)),s.createFolders&&(r=p(e))&&m.call(this,r,!0);var d="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var v=null;v=t instanceof u||t instanceof a?t:f.isNode&&f.isStream(t)?new h(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var b=new l(e,v,s);this.files[e]=b}var i=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),c=e("./defaults"),u=e("./compressedObject"),l=e("./zipObject"),d=e("./generate"),f=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:c.createFolders,e=g(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(v(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=m.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=d.generateWorker(this,n,r)}catch(e){(t=new a("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new c(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function o(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,r),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./ConvertWorker"),a=e("./GenericWorker"),s=e("../base64"),c=e("../support"),u=e("../external"),l=null;if(c.nodestream)try{l=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,t){return new u.Promise((function(n,i){var a=[],c=e._internalType,u=e._outputType,l=e._mimeType;e.on("data",(function(e,n){a.push(e),t&&t(n)})).on("error",(function(e){a=[],i(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return s.encode(t);default:return r.transformTo(e,t)}}(u,function(e,t){var n,r=0,i=null,a=0;for(n=0;n<t.length;n++)a+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(a),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case"nodebuffer":return o.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(c,a),l);n(e)}catch(e){i(e)}a=[]})).resume()}))}function f(e,t,n){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=n,r.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}f.prototype={accumulate:function(e){return d(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){r.delay(t,arguments,n)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof o,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=0===i.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function l(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,r,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),o=a=0;a<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,o,a=e.length,c=new Array(2*a);for(t=n=0;t<a;)if((i=e[t++])<128)c[n++]=i;else if(4<(o=s[i]))c[n++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<a;)i=i<<6|63&e[t++],o--;1<o?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(u,a),u.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),c=t;a!==t.length&&(i.uint8array?(c=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(c=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(l,a),l.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),a=e("set-immediate-shim"),s=e("./external");function c(e){return e}function u(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}n.newBlob=function(t,r){n.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(e,t,n){var r=[],i=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,o)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function d(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=l.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return l.stringifyByChar(e)}function f(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=d;var h={};h.string={string:c,array:function(e){return u(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return u(e,new Uint8Array(e.length))},nodebuffer:function(e){return u(e,o.allocBuffer(e.length))}},h.array={string:d,array:c,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},h.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return f(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:c,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:c,nodebuffer:function(e){return o.newBufferFrom(e)}},h.nodebuffer={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return f(e,new Uint8Array(e.length))},nodebuffer:c},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return h[r][e](t)},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&o.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){a((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,a,c){return s.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var l=n.getTypeOf(t);return l?("arraybuffer"===l?t=n.transformTo("uint8array",t):"string"===l&&(c?t=i.decode(t):o&&!0!==a&&(t=function(e){return u(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=(e("./utf8"),e("./support"));function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),c=e("./compressions"),u=e("./support");function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(c.hasOwnProperty(t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=l},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),c=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&r&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new c("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)r.prototype[u[d]]=l;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,n,r){(function(e){"use strict";var t,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(l),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),t=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var c=new e.MessageChannel;c.port1.onmessage=l,t=function(){c.port2.postMessage(0)}}var u=[];function l(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}n.exports=function(e){1!==u.push(e)||r||t()}}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var r=e("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function l(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(r){return o.reject(e,r)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=p((function(){t(i,r)}));"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==c?d(n,this.state===s?e:t,this.outcome):this.queue.push(new l(n,e,t)),n},l.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){o.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(f,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,c=-1,u=new this(i);++c<n;)l(e[c],c);return u;function l(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(u,a))}),(function(e){r||(r=!0,o.reject(u,e))}))}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a,s=-1,c=new this(i);++s<n;)a=e[s],t.resolve(a).then((function(e){r||(r=!0,o.resolve(c,e))}),(function(e){r||(r=!0,o.reject(c,e))}));return c}},{immediate:36}],38:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString,u=0,l=-1,d=0,f=8;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({level:l,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==u)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==u)throw new Error(a[n]);this._dict_set=!0}}function p(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(e,t){var n,a,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=r.deflate(s,a))&&n!==u)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==a||(this.onEnd(u),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=h,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),l=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,c,u,d,f,h=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=o.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(f="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===l.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,f)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(h.output,h.next_out),u=h.next_out-c,d=o.buf2string(h.output,c),h.next_out=u,h.avail_out=p-u,u&&i.arraySet(h.output,h.output,c,u,0),this.onData(d)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((0<h.avail_in||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,i,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),o=a=0;a<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,o,s=t||e.length,u=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)u[r++]=i;else if(4<(o=a[i]))u[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<s;)i=i<<6|63&e[n++],o--;1<o?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return c(u,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],44:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),c=e("./messages"),u=0,l=4,d=0,f=-2,h=-1,p=4,g=2,m=8,v=9,b=286,y=30,x=19,_=2*b+1,w=15,D=3,C=258,k=C+D+1,T=42,S=113,A=1,E=2,U=3,O=4;function F(e,t){return e.msg=c[t],t}function P(e){return(e<<1)-(4<e?9:0)}function R(e){for(var t=e.length;0<=--t;)e[t]=0}function N(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function M(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,N(e.strm)}function I(e,t){e.pending_buf[e.pending++]=t}function B(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function L(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-k?e.strstart-(e.w_size-k):0,u=e.window,l=e.w_mask,d=e.prev,f=e.strstart+C,h=u[o+a-1],p=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===p&&u[n+a-1]===h&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<f);if(r=C-(f-o),o=f-C,a<r){if(e.match_start=t,s<=(a=r))break;h=u[o+a-1],p=u[o+a]}}}while((t=d[t&l])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function z(e){var t,n,r,o,c,u,l,d,f,h,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-k)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);o+=p}if(0===e.strm.avail_in)break;if(u=e.strm,l=e.window,d=e.strstart+e.lookahead,f=o,h=void 0,h=u.avail_in,f<h&&(h=f),n=0===h?0:(u.avail_in-=h,i.arraySet(l,u.input,u.next_in,h,d),1===u.state.wrap?u.adler=a(u.adler,l,h,d):2===u.state.wrap&&(u.adler=s(u.adler,l,h,d)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=D)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+D-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<D)););}while(e.lookahead<k&&0!==e.strm.avail_in)}function W(e,t){for(var n,r;;){if(e.lookahead<k){if(z(e),e.lookahead<k&&t===u)return A;if(0===e.lookahead)break}if(n=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-k&&(e.match_length=L(e,n)),e.match_length>=D)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-D),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=D){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(M(e,!1),0===e.strm.avail_out))return A}return e.insert=e.strstart<D-1?e.strstart:D-1,t===l?(M(e,!0),0===e.strm.avail_out?U:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?A:E}function j(e,t){for(var n,r,i;;){if(e.lookahead<k){if(z(e),e.lookahead<k&&t===u)return A;if(0===e.lookahead)break}if(n=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=D-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-k&&(e.match_length=L(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===D&&4096<e.strstart-e.match_start)&&(e.match_length=D-1)),e.prev_length>=D&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-D,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-D),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=D-1,e.strstart++,r&&(M(e,!1),0===e.strm.avail_out))return A}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&M(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return A}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<D-1?e.strstart:D-1,t===l?(M(e,!0),0===e.strm.avail_out?U:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?A:E}function H(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function V(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*y+1)),this.bl_tree=new i.Buf16(2*(2*x+1)),R(this.dyn_ltree),R(this.dyn_dtree),R(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(w+1),this.heap=new i.Buf16(2*b+1),R(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*b+1),R(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function q(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=g,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?T:S,e.adler=2===t.wrap?0:1,t.last_flush=u,o._tr_init(t),d):F(e,f)}function $(e){var t=q(e);return t===d&&function(e){e.window_size=2*e.w_size,R(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=D-1,e.match_available=0,e.ins_h=0}(e.state),t}function G(e,t,n,r,o,a){if(!e)return f;var s=1;if(t===h&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),o<1||v<o||n!==m||r<8||15<r||t<0||9<t||a<0||p<a)return F(e,f);8===r&&(r=9);var c=new V;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+D-1)/D),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=n,$(e)}r=[new H(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),0===e.lookahead&&t===u)return A;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,M(e,!1),0===e.strm.avail_out))return A;if(e.strstart-e.block_start>=e.w_size-k&&(M(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===l?(M(e,!0),0===e.strm.avail_out?U:O):(e.strstart>e.block_start&&(M(e,!1),e.strm.avail_out),A)})),new H(4,4,8,4,W),new H(4,5,16,8,W),new H(4,6,32,32,W),new H(4,4,16,16,j),new H(8,16,32,32,j),new H(8,16,128,128,j),new H(8,32,128,256,j),new H(32,128,258,1024,j),new H(32,258,258,4096,j)],n.deflateInit=function(e,t){return G(e,t,m,15,8,0)},n.deflateInit2=G,n.deflateReset=$,n.deflateResetKeep=q,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,i,a,c;if(!e||!e.state||5<t||t<0)return e?F(e,f):f;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==l)return F(e,0===e.avail_out?-5:f);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===T)if(2===i.wrap)e.adler=0,I(i,31),I(i,139),I(i,8),i.gzhead?(I(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),I(i,255&i.gzhead.time),I(i,i.gzhead.time>>8&255),I(i,i.gzhead.time>>16&255),I(i,i.gzhead.time>>24&255),I(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),I(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(I(i,255&i.gzhead.extra.length),I(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(I(i,0),I(i,0),I(i,0),I(i,0),I(i,0),I(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),I(i,3),i.status=S);else{var h=m+(i.w_bits-8<<4)<<8;h|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=S,B(i,h),0!==i.strstart&&(B(i,e.adler>>>16),B(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),N(e),a=i.pending,i.pending!==i.pending_buf_size));)I(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),N(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,I(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),N(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,I(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&N(e),i.pending+2<=i.pending_buf_size&&(I(i,255&e.adler),I(i,e.adler>>8&255),e.adler=0,i.status=S)):i.status=S),0!==i.pending){if(N(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&P(t)<=P(n)&&t!==l)return F(e,-5);if(666===i.status&&0!==e.avail_in)return F(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==u&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(z(e),0===e.lookahead)){if(t===u)return A;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(M(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===l?(M(e,!0),0===e.strm.avail_out?U:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?A:E}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=C){if(z(e),e.lookahead<=C&&t===u)return A;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=D&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+C;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=C-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=D?(n=o._tr_tally(e,1,e.match_length-D),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(M(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===l?(M(e,!0),0===e.strm.avail_out?U:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?A:E}(i,t):r[i.level].func(i,t);if(p!==U&&p!==O||(i.status=666),p===A||p===U)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===E&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(R(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),N(e),0===e.avail_out))return i.last_flush=-1,d}return t!==l?d:i.wrap<=0?1:(2===i.wrap?(I(i,255&e.adler),I(i,e.adler>>8&255),I(i,e.adler>>16&255),I(i,e.adler>>24&255),I(i,255&e.total_in),I(i,e.total_in>>8&255),I(i,e.total_in>>16&255),I(i,e.total_in>>24&255)):(B(i,e.adler>>>16),B(i,65535&e.adler)),N(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==T&&69!==t&&73!==t&&91!==t&&103!==t&&t!==S&&666!==t?F(e,f):(e.state=null,t===S?F(e,-3):d):f},n.deflateSetDictionary=function(e,t){var n,r,o,s,c,u,l,h,p=t.length;if(!e||!e.state)return f;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==T||n.lookahead)return f;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(R(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,t,p-n.w_size,n.w_size,0),t=h,p=n.w_size),c=e.avail_in,u=e.next_in,l=e.input,e.avail_in=p,e.next_in=0,e.input=t,z(n);n.lookahead>=D;){for(r=n.strstart,o=n.lookahead-(D-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+D-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=D-1,z(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=D-1,n.match_available=0,e.next_in=u,e.input=l,e.avail_in=c,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,o,a,s,c,u,l,d,f,h,p,g,m,v,b,y,x,_,w,D,C,k,T;n=e.state,r=e.next_in,k=e.input,i=r+(e.avail_in-5),o=e.next_out,T=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=n.dmax,u=n.wsize,l=n.whave,d=n.wnext,f=n.window,h=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{p<15&&(h+=k[r++]<<p,p+=8,h+=k[r++]<<p,p+=8),y=g[h&v];t:for(;;){if(h>>>=x=y>>>24,p-=x,0===(x=y>>>16&255))T[o++]=65535&y;else{if(!(16&x)){if(0==(64&x)){y=g[(65535&y)+(h&(1<<x)-1)];continue t}if(32&x){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}_=65535&y,(x&=15)&&(p<x&&(h+=k[r++]<<p,p+=8),_+=h&(1<<x)-1,h>>>=x,p-=x),p<15&&(h+=k[r++]<<p,p+=8,h+=k[r++]<<p,p+=8),y=m[h&b];n:for(;;){if(h>>>=x=y>>>24,p-=x,!(16&(x=y>>>16&255))){if(0==(64&x)){y=m[(65535&y)+(h&(1<<x)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(w=65535&y,p<(x&=15)&&(h+=k[r++]<<p,(p+=8)<x&&(h+=k[r++]<<p,p+=8)),c<(w+=h&(1<<x)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=x,p-=x,(x=o-a)<w){if(l<(x=w-x)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(C=f,(D=0)===d){if(D+=u-x,x<_){for(_-=x;T[o++]=f[D++],--x;);D=o-w,C=T}}else if(d<x){if(D+=u+d-x,(x-=d)<_){for(_-=x;T[o++]=f[D++],--x;);if(D=0,d<_){for(_-=x=d;T[o++]=f[D++],--x;);D=o-w,C=T}}}else if(D+=d-x,x<_){for(_-=x;T[o++]=f[D++],--x;);D=o-w,C=T}for(;2<_;)T[o++]=C[D++],T[o++]=C[D++],T[o++]=C[D++],_-=3;_&&(T[o++]=C[D++],1<_&&(T[o++]=C[D++]))}else{for(D=o-w;T[o++]=T[D++],T[o++]=T[D++],T[o++]=T[D++],2<(_-=3););_&&(T[o++]=T[D++],1<_&&(T[o++]=T[D++]))}break}}break}}while(r<i&&o<s);r-=_=p>>3,h&=(1<<(p-=_<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=h,n.bits=p}},{}],49:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),c=1,u=2,l=0,d=-2,f=1,h=852,p=592;function g(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(h),t.distcode=t.distdyn=new r.Buf32(p),t.sane=1,t.back=-1,l):d}function b(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function y(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,b(e))):d}function x(e,t){var n,r;return e?(r=new m,(e.state=r).window=null,(n=y(e,t))!==l&&(e.state=null),n):d}var _,w,D=!0;function C(e){if(D){var t;for(_=new r.Buf32(512),w=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,w,0,e.work,{bits:5}),D=!1}e.lencode=_,e.lenbits=9,e.distcode=w,e.distbits=5}function k(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=b,n.inflateReset2=y,n.inflateResetKeep=v,n.inflateInit=function(e){return x(e,15)},n.inflateInit2=x,n.inflate=function(e,t){var n,h,p,m,v,b,y,x,_,w,D,T,S,A,E,U,O,F,P,R,N,M,I,B,L=0,z=new r.Buf8(4),W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(n=e.state).mode&&(n.mode=13),v=e.next_out,p=e.output,y=e.avail_out,m=e.next_in,h=e.input,b=e.avail_in,x=n.hold,_=n.bits,w=b,D=y,M=l;e:for(;;)switch(n.mode){case f:if(0===n.wrap){n.mode=13;break}for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(2&n.wrap&&35615===x){z[n.check=0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0),_=x=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&x)<<8)+(x>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&x)){e.msg="unknown compression method",n.mode=30;break}if(_-=4,N=8+(15&(x>>>=4)),0===n.wbits)n.wbits=N;else if(N>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<N,e.adler=n.check=1,n.mode=512&x?10:12,_=x=0;break;case 2:for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(n.flags=x,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=x>>8&1),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),_=x=0,n.mode=3;case 3:for(;_<32;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.head&&(n.head.time=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,z[2]=x>>>16&255,z[3]=x>>>24&255,n.check=o(n.check,z,4,0)),_=x=0,n.mode=4;case 4:for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.head&&(n.head.xflags=255&x,n.head.os=x>>8),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),_=x=0,n.mode=5;case 5:if(1024&n.flags){for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.length=x,n.head&&(n.head.extra_len=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),_=x=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(b<(T=n.length)&&(T=b),T&&(n.head&&(N=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,h,m,T,N)),512&n.flags&&(n.check=o(n.check,h,T,m)),b-=T,m+=T,n.length-=T),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===b)break e;for(T=0;N=h[m+T++],n.head&&N&&n.length<65536&&(n.head.name+=String.fromCharCode(N)),N&&T<b;);if(512&n.flags&&(n.check=o(n.check,h,T,m)),b-=T,m+=T,N)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===b)break e;for(T=0;N=h[m+T++],n.head&&N&&n.length<65536&&(n.head.comment+=String.fromCharCode(N)),N&&T<b;);if(512&n.flags&&(n.check=o(n.check,h,T,m)),b-=T,m+=T,N)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(x!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}_=x=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;_<32;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}e.adler=n.check=g(x),_=x=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=v,e.avail_out=y,e.next_in=m,e.avail_in=b,n.hold=x,n.bits=_,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){x>>>=7&_,_-=7&_,n.mode=27;break}for(;_<3;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}switch(n.last=1&x,_-=1,3&(x>>>=1)){case 0:n.mode=14;break;case 1:if(C(n),n.mode=20,6!==t)break;x>>>=2,_-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}x>>>=2,_-=2;break;case 14:for(x>>>=7&_,_-=7&_;_<32;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if((65535&x)!=(x>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&x,_=x=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(T=n.length){if(b<T&&(T=b),y<T&&(T=y),0===T)break e;r.arraySet(p,h,m,T,v),b-=T,m+=T,y-=T,v+=T,n.length-=T;break}n.mode=12;break;case 17:for(;_<14;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(n.nlen=257+(31&x),x>>>=5,_-=5,n.ndist=1+(31&x),x>>>=5,_-=5,n.ncode=4+(15&x),x>>>=4,_-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;_<3;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.lens[W[n.have++]]=7&x,x>>>=3,_-=3}for(;n.have<19;)n.lens[W[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},M=s(0,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,M){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;U=(L=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,O=65535&L,!((E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(O<16)x>>>=E,_-=E,n.lens[n.have++]=O;else{if(16===O){for(B=E+2;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(x>>>=E,_-=E,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}N=n.lens[n.have-1],T=3+(3&x),x>>>=2,_-=2}else if(17===O){for(B=E+3;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}_-=E,N=0,T=3+(7&(x>>>=E)),x>>>=3,_-=3}else{for(B=E+7;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}_-=E,N=0,T=11+(127&(x>>>=E)),x>>>=7,_-=7}if(n.have+T>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;T--;)n.lens[n.have++]=N}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,I={bits:n.lenbits},M=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,M){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},M=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,M){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=b&&258<=y){e.next_out=v,e.avail_out=y,e.next_in=m,e.avail_in=b,n.hold=x,n.bits=_,a(e,D),v=e.next_out,p=e.output,y=e.avail_out,m=e.next_in,h=e.input,b=e.avail_in,x=n.hold,_=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;U=(L=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,O=65535&L,!((E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(U&&0==(240&U)){for(F=E,P=U,R=O;U=(L=n.lencode[R+((x&(1<<F+P)-1)>>F)])>>>16&255,O=65535&L,!(F+(E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}x>>>=F,_-=F,n.back+=F}if(x>>>=E,_-=E,n.back+=E,n.length=O,0===U){n.mode=26;break}if(32&U){n.back=-1,n.mode=12;break}if(64&U){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&U,n.mode=22;case 22:if(n.extra){for(B=n.extra;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.length+=x&(1<<n.extra)-1,x>>>=n.extra,_-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;U=(L=n.distcode[x&(1<<n.distbits)-1])>>>16&255,O=65535&L,!((E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(0==(240&U)){for(F=E,P=U,R=O;U=(L=n.distcode[R+((x&(1<<F+P)-1)>>F)])>>>16&255,O=65535&L,!(F+(E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}x>>>=F,_-=F,n.back+=F}if(x>>>=E,_-=E,n.back+=E,64&U){e.msg="invalid distance code",n.mode=30;break}n.offset=O,n.extra=15&U,n.mode=24;case 24:if(n.extra){for(B=n.extra;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.offset+=x&(1<<n.extra)-1,x>>>=n.extra,_-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===y)break e;if(T=D-y,n.offset>T){if((T=n.offset-T)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}S=T>n.wnext?(T-=n.wnext,n.wsize-T):n.wnext-T,T>n.length&&(T=n.length),A=n.window}else A=p,S=v-n.offset,T=n.length;for(y<T&&(T=y),y-=T,n.length-=T;p[v++]=A[S++],--T;);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[v++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;_<32;){if(0===b)break e;b--,x|=h[m++]<<_,_+=8}if(D-=y,e.total_out+=D,n.total+=D,D&&(e.adler=n.check=n.flags?o(n.check,p,D,v-D):i(n.check,p,D,v-D)),D=y,(n.flags?x:g(x))!==n.check){e.msg="incorrect data check",n.mode=30;break}_=x=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;_<32;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(x!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}_=x=0}n.mode=29;case 29:M=1;break e;case 30:M=-3;break e;case 31:return-4;case 32:default:return d}return e.next_out=v,e.avail_out=y,e.next_in=m,e.avail_in=b,n.hold=x,n.bits=_,(n.wsize||D!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&k(e,e.output,e.next_out,D-e.avail_out)?(n.mode=31,-4):(w-=e.avail_in,D-=e.avail_out,e.total_in+=w,e.total_out+=D,n.total+=D,n.wrap&&D&&(e.adler=n.check=n.flags?o(n.check,p,D,e.next_out-D):i(n.check,p,D,e.next_out-D)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===D||4===t)&&M===l&&(M=-5),M)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,l},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?d:((n.head=t).done=!1,l):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?d:11===n.mode&&i(1,t,r,0)!==n.check?-3:k(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,l):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,u,l,d,f){var h,p,g,m,v,b,y,x,_,w=f.bits,D=0,C=0,k=0,T=0,S=0,A=0,E=0,U=0,O=0,F=0,P=null,R=0,N=new r.Buf16(16),M=new r.Buf16(16),I=null,B=0;for(D=0;D<=15;D++)N[D]=0;for(C=0;C<c;C++)N[t[n+C]]++;for(S=w,T=15;1<=T&&0===N[T];T--);if(T<S&&(S=T),0===T)return u[l++]=20971520,u[l++]=20971520,f.bits=1,0;for(k=1;k<T&&0===N[k];k++);for(S<k&&(S=k),D=U=1;D<=15;D++)if(U<<=1,(U-=N[D])<0)return-1;if(0<U&&(0===e||1!==T))return-1;for(M[1]=0,D=1;D<15;D++)M[D+1]=M[D]+N[D];for(C=0;C<c;C++)0!==t[n+C]&&(d[M[t[n+C]]++]=C);if(b=0===e?(P=I=d,19):1===e?(P=i,R-=257,I=o,B-=257,256):(P=a,I=s,-1),D=k,v=l,E=C=F=0,g=-1,m=(O=1<<(A=S))-1,1===e&&852<O||2===e&&592<O)return 1;for(;;){for(y=D-E,_=d[C]<b?(x=0,d[C]):d[C]>b?(x=I[B+d[C]],P[R+d[C]]):(x=96,0),h=1<<D-E,k=p=1<<A;u[v+(F>>E)+(p-=h)]=y<<24|x<<16|_|0,0!==p;);for(h=1<<D-1;F&h;)h>>=1;if(0!==h?(F&=h-1,F+=h):F=0,C++,0==--N[D]){if(D===T)break;D=t[n+d[C]]}if(S<D&&(F&m)!==g){for(0===E&&(E=S),v+=k,U=1<<(A=D-E);A+E<T&&!((U-=N[A+E])<=0);)A++,U<<=1;if(O+=1<<A,1===e&&852<O||2===e&&592<O)return 1;u[g=F&m]=S<<24|A<<16|v-l|0}}return 0!==F&&(u[v+F]=D-E<<24|64<<16|0),f.bits=S,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){"use strict";var r=e("../utils/common"),i=0,o=1;function a(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,u=256,l=u+1+c,d=30,f=19,h=2*l+1,p=15,g=16,m=7,v=256,b=16,y=17,x=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(l+2));a(k);var T=new Array(2*d);a(T);var S=new Array(512);a(S);var A=new Array(256);a(A);var E=new Array(c);a(E);var U,O,F,P=new Array(d);function R(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function N(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function M(e){return e<256?S[e]:S[256+(e>>>7)]}function I(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function B(e,t,n){e.bi_valid>g-n?(e.bi_buf|=t<<e.bi_valid&65535,I(e,e.bi_buf),e.bi_buf=t>>g-e.bi_valid,e.bi_valid+=n-g):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function L(e,t,n){B(e,n[2*t],n[2*t+1])}function z(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function W(e,t,n){var r,i,o=new Array(p+1),a=0;for(r=1;r<=p;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=z(o[s]++,s))}}function j(e){var t;for(t=0;t<l;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function H(e){8<e.bi_valid?I(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function V(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function q(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&V(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!V(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function $(e,t,n){var r,i,o,a,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?L(e,i,t):(L(e,(o=A[i])+u+1,t),0!==(a=_[o])&&B(e,i-=E[o],a),L(e,o=M(--r),n),0!==(a=w[o])&&B(e,r-=P[o],a)),s<e.last_lit;);L(e,v,t)}function G(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=h,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)q(e,o,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],q(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,q(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,c=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,g=t.stat_desc.extra_base,m=t.stat_desc.max_length,v=0;for(o=0;o<=p;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<h;n++)m<(o=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(o=m,v++),c[2*r+1]=o,u<r||(e.bl_count[o]++,a=0,g<=r&&(a=f[r-g]),s=c[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(l[2*r+1]+a)));if(0!==v){do{for(o=m-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[m]--,v-=2}while(0<v);for(o=m;0!==o;o--)for(r=e.bl_count[o];0!==r;)u<(i=e.heap[--n])||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(e,t),W(o,u,e.bl_count)}function X(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<c&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*b]++):s<=10?e.bl_tree[2*y]++:e.bl_tree[2*x]++,o=i,u=(s=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4))}function Y(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<c&&i===a)){if(s<u)for(;L(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(L(e,i,e.bl_tree),s--),L(e,b,e.bl_tree),B(e,s-3,2)):s<=10?(L(e,y,e.bl_tree),B(e,s-3,3)):(L(e,x,e.bl_tree),B(e,s-11,7));o=i,u=(s=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4)}}a(P);var K=!1;function Z(e,t,n,i){B(e,(s<<1)+(i?1:0),3),function(e,t,n,i){H(e),i&&(I(e,n),I(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){K||(function(){var e,t,n,r,i,o=new Array(p+1);for(r=n=0;r<c-1;r++)for(E[r]=n,e=0;e<1<<_[r];e++)A[n++]=r;for(A[n-1]=r,r=i=0;r<16;r++)for(P[r]=i,e=0;e<1<<w[r];e++)S[i++]=r;for(i>>=7;r<d;r++)for(P[r]=i<<7,e=0;e<1<<w[r]-7;e++)S[256+i++]=r;for(t=0;t<=p;t++)o[t]=0;for(e=0;e<=143;)k[2*e+1]=8,e++,o[8]++;for(;e<=255;)k[2*e+1]=9,e++,o[9]++;for(;e<=279;)k[2*e+1]=7,e++,o[7]++;for(;e<=287;)k[2*e+1]=8,e++,o[8]++;for(W(k,l+1,o),e=0;e<d;e++)T[2*e+1]=5,T[2*e]=z(e,5);U=new R(k,_,u+1,l,p),O=new R(T,w,0,d,p),F=new R(new Array(0),D,0,f,m)}(),K=!0),e.l_desc=new N(e.dyn_ltree,U),e.d_desc=new N(e.dyn_dtree,O),e.bl_desc=new N(e.bl_tree,F),e.bi_buf=0,e.bi_valid=0,j(e)},n._tr_stored_block=Z,n._tr_flush_block=function(e,t,n,r){var a,s,c=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t<u;t++)if(0!==e.dyn_ltree[2*t])return o;return i}(e)),G(e,e.l_desc),G(e,e.d_desc),c=function(e){var t;for(X(e,e.dyn_ltree,e.l_desc.max_code),X(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=f-1;3<=t&&0===e.bl_tree[2*C[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==t?Z(e,t,n,r):4===e.strategy||s===a?(B(e,2+(r?1:0),3),$(e,k,T)):(B(e,4+(r?1:0),3),function(e,t,n,r){var i;for(B(e,t-257,5),B(e,n-1,5),B(e,r-4,4),i=0;i<r;i++)B(e,e.bl_tree[2*C[i]+1],3);Y(e,e.dyn_ltree,t-1),Y(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),$(e,e.dyn_ltree,e.dyn_dtree)),j(e),r&&H(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(A[n]+u+1)]++,e.dyn_dtree[2*M(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){B(e,2,3),L(e,v,k),function(e){16===e.bi_valid?(I(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)}))}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},n("buffer").Buffer)},{buffer:83}],89:[function(e,t,n){n.Parser=e("./lib/parser").Parser,n.rules=e("./lib/rules"),n.errors=e("./lib/errors"),n.results=e("./lib/parsing-results"),n.StringSource=e("./lib/StringSource"),n.Token=e("./lib/Token"),n.bottomUp=e("./lib/bottom-up"),n.RegexTokeniser=e("./lib/regex-tokeniser").RegexTokeniser,n.rule=function(e){var t;return function(n){return t||(t=e()),t(n)}}},{"./lib/StringSource":90,"./lib/Token":91,"./lib/bottom-up":93,"./lib/errors":94,"./lib/parser":96,"./lib/parsing-results":97,"./lib/regex-tokeniser":98,"./lib/rules":99}],90:[function(e,t,n){var r=e("util"),i=(t.exports=function(e,t){var n={asString:function(){return e},range:function(n,r){return new i(e,t,n,r)}};return n},function(e,t,n,r){this._string=e,this._description=t,this._startIndex=n,this._endIndex=r});i.prototype.to=function(e){return new i(this._string,this._description,this._startIndex,e._endIndex)},i.prototype.describe=function(){var e=this._position(),t=this._description?this._description+"\n":"";return r.format("%sLine number: %s\nCharacter number: %s",t,e.lineNumber,e.characterNumber)},i.prototype.lineNumber=function(){return this._position().lineNumber},i.prototype.characterNumber=function(){return this._position().characterNumber},i.prototype._position=function(){var e=this,t=0,n=function(){return e._string.indexOf("\n",t)},r=1;while(-1!==n()&&n()<this._startIndex)t=n()+1,r+=1;var i=this._startIndex-t+1;return{lineNumber:r,characterNumber:i}}},{util:106}],91:[function(e,t,n){t.exports=function(e,t,n){this.name=e,this.value=t,n&&(this.source=n)}},{}],92:[function(e,t,n){var r=t.exports=function(e,t){this._tokens=e,this._startIndex=t||0};r.prototype.head=function(){return this._tokens[this._startIndex]},r.prototype.tail=function(e){return new r(this._tokens,this._startIndex+1)},r.prototype.toArray=function(){return this._tokens.slice(this._startIndex)},r.prototype.end=function(){return this._tokens[this._tokens.length-1]},r.prototype.to=function(e){var t=this.head().source,n=e.head()||e.end();return t.to(n.source)}},{}],93:[function(e,t,n){var r=e("./rules"),i=e("./parsing-results");function o(e){function t(t){return new o(e.slice(0,a().indexOf(t)))}function n(t){return new o(e.slice(0,a().indexOf(t)+1))}function a(){return e.map((function(e){return e.name}))}function s(e){var t,n;while(1){if(t=c(e.remaining()),!t.isSuccess())return t.isFailure()?e:t;n=e.source().to(t.source()),e=i.success(t.value()(e.value(),n),t.remaining(),n)}}function c(t){return r.firstOf("infix",e.map((function(e){return e.rule})))(t)}return{apply:s,untilExclusive:t,untilInclusive:n}}n.parser=function(e,t,n){var i={rule:l,leftAssociative:d,rightAssociative:f},s=new o(n.map(u)),c=r.firstOf(e,t);function u(e){return{name:e.name,rule:a(e.ruleBuilder.bind(null,i))}}function l(){return h(s)}function d(e){return h(s.untilExclusive(e))}function f(e){return h(s.untilInclusive(e))}function h(e){return p.bind(null,e)}function p(e,t){var n=c(t);return n.isSuccess()?e.apply(n):n}return i},n.infix=function(e,t){function r(r){return n.infix(e,(function(e){var n=t(e);return function(e){var t=n(e);return t.map((function(e){return function(t,n){return r(t,e,n)}}))}}))}return{name:e,ruleBuilder:t,map:r}};var a=function(e){var t;return function(n){return t||(t=e()),t(n)}}},{"./parsing-results":97,"./rules":99}],94:[function(e,t,n){n.error=function(e){return new r(e)};var r=function(e){this.expected=e.expected,this.actual=e.actual,this._location=e.location};r.prototype.describe=function(){var e=this._location?this._location.describe()+":\n":"";return e+"Expected "+this.expected+"\nbut got "+this.actual},r.prototype.lineNumber=function(){return this._location.lineNumber()},r.prototype.characterNumber=function(){return this._location.characterNumber()}},{}],95:[function(e,t,n){n.fromArray=function(e){var t=0,n=function(){return t<e.length};return new r({hasNext:n,next:function(){if(n())return e[t++];throw new Error("No more elements")}})};var r=function(e){this._iterator=e};r.prototype.map=function(e){var t=this._iterator;return new r({hasNext:function(){return t.hasNext()},next:function(){return e(t.next())}})},r.prototype.filter=function(e){var t,n=this._iterator,i=!1,o=!1,a=function(){if(!i){i=!0,o=!1;while(n.hasNext()&&!o)t=n.next(),o=e(t)}};return new r({hasNext:function(){return a(),o},next:function(){a();var e=t;return i=!1,e}})},r.prototype.first=function(){var e=this._iterator;return this._iterator.hasNext()?e.next():null},r.prototype.toArray=function(){var e=[];while(this._iterator.hasNext())e.push(this._iterator.next());return e}},{}],96:[function(e,t,n){var r=e("./TokenIterator");n.Parser=function(e){var t=function(e,t){return e(new r(t))};return{parseTokens:t}}},{"./TokenIterator":92}],97:[function(e,t,n){t.exports={failure:function(e,t){if(e.length<1)throw new Error("Failure must have errors");return new r({status:"failure",remaining:t,errors:e})},error:function(e,t){if(e.length<1)throw new Error("Failure must have errors");return new r({status:"error",remaining:t,errors:e})},success:function(e,t,n){return new r({status:"success",value:e,source:n,remaining:t,errors:[]})},cut:function(e){return new r({status:"cut",remaining:e,errors:[]})}};var r=function(e){this._value=e.value,this._status=e.status,this._hasValue=void 0!==e.value,this._remaining=e.remaining,this._source=e.source,this._errors=e.errors};r.prototype.map=function(e){return this._hasValue?new r({value:e(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this},r.prototype.changeRemaining=function(e){return new r({value:this._value,status:this._status,remaining:e,source:this._source,errors:this._errors})},r.prototype.isSuccess=function(){return"success"===this._status||"cut"===this._status},r.prototype.isFailure=function(){return"failure"===this._status},r.prototype.isError=function(){return"error"===this._status},r.prototype.isCut=function(){return"cut"===this._status},r.prototype.value=function(){return this._value},r.prototype.remaining=function(){return this._remaining},r.prototype.source=function(){return this._source},r.prototype.errors=function(){return this._errors}},{}],98:[function(e,t,n){var r=e("./Token"),i=e("./StringSource");function o(e){function t(e,t){var r=new i(e,t),a=0,s=[];while(a<e.length){var c=n(e,a,r);a=c.endIndex,s.push(c.token)}return s.push(o(e,r)),s}function n(t,n,i){for(var o=0;o<e.length;o++){var a=e[o].regex;a.lastIndex=n;var s=a.exec(t);if(s){var c=n+s[0].length;if(s.index===n&&c>n){var u=s[1],l=new r(e[o].name,u,i.range(n,c));return{token:l,endIndex:c}}}}c=n+1,l=new r("unrecognisedCharacter",t.substring(n,c),i.range(n,c));return{token:l,endIndex:c}}function o(e,t){return new r("end",null,t.range(e.length,e.length))}return e=e.map((function(e){return{name:e.name,regex:new RegExp(e.regex.source,"g")}})),{tokenise:t}}n.RegexTokeniser=o},{"./StringSource":90,"./Token":91}],99:[function(e,t,n){var r=e("underscore"),i=e("option"),o=e("./parsing-results"),a=e("./errors"),s=e("./lazy-iterators");n.token=function(e,t){var n=void 0!==t;return function(r){var i=r.head();if(!i||i.name!==e||n&&i.value!==t){var a=f({name:e,value:t});return h(r,a)}return o.success(i.value,r.tail(),i.source)}},n.tokenOfType=function(e){return n.token(e)},n.firstOf=function(e,t){return r.isArray(t)||(t=Array.prototype.slice.call(arguments,1)),function(n){return s.fromArray(t).map((function(e){return e(n)})).filter((function(e){return e.isSuccess()||e.isError()})).first()||h(n,e)}},n.then=function(e,t){return function(n){var r=e(n);return r.map||console.log(r),r.map(t)}},n.sequence=function(){var e=Array.prototype.slice.call(arguments,0),t=function(t){var i=r.foldl(e,(function(e,n){var r=e.result,i=e.hasCut;if(!r.isSuccess())return{result:r,hasCut:i};var a=n(r.remaining());if(a.isCut())return{result:r,hasCut:!0};if(a.isSuccess()){var s;s=n.isCaptured?r.value().withValue(n,a.value()):r.value();var c=a.remaining(),u=t.to(c);return{result:o.success(s,c,u),hasCut:i}}return i?{result:o.error(a.errors(),a.remaining()),hasCut:i}:{result:a,hasCut:i}}),{result:o.success(new c,t),hasCut:!1}).result,a=t.to(i.remaining());return i.map((function(e){return e.withValue(n.sequence.source,a)}))};function i(e){return e.isCaptured}return t.head=function(){var o=r.find(e,i);return n.then(t,n.sequence.extract(o))},t.map=function(e){return n.then(t,(function(t){return e.apply(this,t.toArray())}))},t};var c=function(e,t){this._values=e||{},this._valuesArray=t||[]};c.prototype.withValue=function(e,t){if(e.captureName&&e.captureName in this._values)throw new Error('Cannot add second value for capture "'+e.captureName+'"');var n=r.clone(this._values);n[e.captureName]=t;var i=this._valuesArray.concat([t]);return new c(n,i)},c.prototype.get=function(e){if(e.captureName in this._values)return this._values[e.captureName];throw new Error('No value for capture "'+e.captureName+'"')},c.prototype.toArray=function(){return this._valuesArray},n.sequence.capture=function(e,t){var n=function(){return e.apply(this,arguments)};return n.captureName=t,n.isCaptured=!0,n},n.sequence.extract=function(e){return function(t){return t.get(e)}},n.sequence.applyValues=function(e){var t=Array.prototype.slice.call(arguments,1);return function(n){var r=t.map((function(e){return n.get(e)}));return e.apply(this,r)}},n.sequence.source={captureName:"☃source☃"},n.sequence.cut=function(){return function(e){return o.cut(e)}},n.optional=function(e){return function(t){var n=e(t);return n.isSuccess()?n.map(i.some):n.isFailure()?o.success(i.none,t):n}},n.zeroOrMoreWithSeparator=function(e,t){return d(e,t,!1)},n.oneOrMoreWithSeparator=function(e,t){return d(e,t,!0)};var u=n.zeroOrMore=function(e){return function(t){var n,r=[];while((n=e(t))&&n.isSuccess())t=n.remaining(),r.push(n.value());return n.isError()?n:o.success(r,t)}};function l(e){return o.success(null,e)}n.oneOrMore=function(e){return n.oneOrMoreWithSeparator(e,l)};var d=function(e,t,r){return function(i){var a=e(i);if(a.isSuccess()){var s=n.sequence.capture(e,"main"),c=u(n.then(n.sequence(t,s),n.sequence.extract(s))),l=c(a.remaining());return o.success([a.value()].concat(l.value()),l.remaining())}return r||a.isError()?a:o.success([],i)}};n.leftAssociative=function(e,t,r){var i;i=r?[{func:r,rule:t}]:t,i=i.map((function(e){return n.then(e.rule,(function(t){return function(n,r){return e.func(n,t,r)}}))}));var a=n.firstOf.apply(null,["rules"].concat(i));return function(t){var n=t,r=e(t);if(!r.isSuccess())return r;var i=a(r.remaining());while(i.isSuccess()){var s=i.remaining(),c=n.to(i.remaining()),u=i.value();r=o.success(u(r.value(),c),s,c),i=a(r.remaining())}return i.isError()?i:r}},n.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},n.nonConsuming=function(e){return function(t){return e(t).changeRemaining(t)}};var f=function(e){return e.value?e.name+' "'+e.value+'"':e.name};function h(e,t){var n,r=e.head();return n=r?a.error({expected:t,actual:f(r),location:r.source}):a.error({expected:t,actual:"end of tokens"}),o.failure([n],e)}},{"./errors":94,"./lazy-iterators":95,"./parsing-results":97,option:100,underscore:103}],100:[function(e,t,n){function r(e){return"function"==typeof e?e():e}n.none=Object.create({value:function(){throw new Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return n.none},flatMap:function(){return n.none},filter:function(){return n.none},toArray:function(){return[]},orElse:r,valueOrElse:r}),n.some=function(e){return new i(e)};var i=function(e){this._value=e};i.prototype.value=function(){return this._value},i.prototype.isNone=function(){return!1},i.prototype.isSome=function(){return!0},i.prototype.map=function(e){return new i(e(this._value))},i.prototype.flatMap=function(e){return e(this._value)},i.prototype.filter=function(e){return e(this._value)?this:n.none},i.prototype.toArray=function(){return[this._value]},i.prototype.orElse=function(e){return this},i.prototype.valueOrElse=function(e){return this._value},n.isOption=function(e){return e===n.none||e instanceof i},n.fromNullable=function(e){return null==e?n.none:new i(e)}},{}],101:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n.resolve=function(){for(var n="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,r="/"===a.charAt(0))}return n=t(o(n.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+n||"."},n.normalize=function(e){var r=n.isAbsolute(e),i="/"===a(e,-1);return e=t(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),o=r(t.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c<a;c++)if(i[c]!==o[c]){s=c;break}var u=[];for(c=s;c<i.length;c++)u.push("..");return u=u.concat(o.slice(s)),u.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=i(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=i(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return i(e)[3]};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:102}],102:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function u(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(e){i=s}})();var l,d=[],f=!1,h=-1;function p(){f&&l&&(f=!1,l.length?d=l.concat(d):h=-1,d.length&&g())}function g(){if(!f){var e=c(p);f=!0;var t=d.length;while(t){l=d,d=[];while(++h<t)l&&l[h].run();h=-1,t=d.length}l=null,f=!1,u(e)}}function m(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new m(e,t)),1!==d.length||f||c(g)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],103:[function(n,r,i){(function(t){(function(t,n){"object"===typeof i&&"undefined"!==typeof r?r.exports=n():"function"===typeof e&&e.amd?e("underscore",n):(t="undefined"!==typeof globalThis?globalThis:t||self,function(){var e=t._,r=t._=n();r.noConflict=function(){return t._=e,r}}())})(this,(function(){var e="1.13.1",n="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||Function("return this")()||{},r=Array.prototype,i=Object.prototype,o="undefined"!==typeof Symbol?Symbol.prototype:null,a=r.push,s=r.slice,c=i.toString,u=i.hasOwnProperty,l="undefined"!==typeof ArrayBuffer,d="undefined"!==typeof DataView,f=Array.isArray,h=Object.keys,p=Object.create,g=l&&ArrayBuffer.isView,m=isNaN,v=isFinite,b=!{toString:null}.propertyIsEnumerable("toString"),y=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function _(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function w(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function D(e){return null===e}function C(e){return void 0===e}function k(e){return!0===e||!1===e||"[object Boolean]"===c.call(e)}function T(e){return!(!e||1!==e.nodeType)}function S(e){var t="[object "+e+"]";return function(e){return c.call(e)===t}}var A=S("String"),E=S("Number"),U=S("Date"),O=S("RegExp"),F=S("Error"),P=S("Symbol"),R=S("ArrayBuffer"),N=S("Function"),M=n.document&&n.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof M&&(N=function(e){return"function"==typeof e||!1});var I=N,B=S("Object"),L=d&&B(new DataView(new ArrayBuffer(8))),z="undefined"!==typeof Map&&B(new Map),W=S("DataView");function j(e){return null!=e&&I(e.getInt8)&&R(e.buffer)}var H=L?j:W,V=f||S("Array");function q(e,t){return null!=e&&u.call(e,t)}var $=S("Arguments");(function(){$(arguments)||($=function(e){return q(e,"callee")})})();var G=$;function X(e){return!P(e)&&v(e)&&!isNaN(parseFloat(e))}function Y(e){return E(e)&&m(e)}function K(e){return function(){return e}}function Z(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=x}}function J(e){return function(t){return null==t?void 0:t[e]}}var Q=J("byteLength"),ee=Z(Q),te=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function ne(e){return g?g(e)&&!H(e):ee(e)&&te.test(c.call(e))}var re=l?ne:K(!1),ie=J("length");function oe(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}function ae(e,t){t=oe(t);var n=y.length,r=e.constructor,o=I(r)&&r.prototype||i,a="constructor";q(e,a)&&!t.contains(a)&&t.push(a);while(n--)a=y[n],a in e&&e[a]!==o[a]&&!t.contains(a)&&t.push(a)}function se(e){if(!w(e))return[];if(h)return h(e);var t=[];for(var n in e)q(e,n)&&t.push(n);return b&&ae(e,t),t}function ce(e){if(null==e)return!0;var t=ie(e);return"number"==typeof t&&(V(e)||A(e)||G(e))?0===t:0===ie(se(e))}function ue(e,t){var n=se(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0}function le(e){return e instanceof le?e:this instanceof le?void(this._wrapped=e):new le(e)}function de(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Q(e))}le.VERSION=e,le.prototype.value=function(){return this._wrapped},le.prototype.valueOf=le.prototype.toJSON=le.prototype.value,le.prototype.toString=function(){return String(this._wrapped)};var fe="[object DataView]";function he(e,t,n,r){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&pe(e,t,n,r)}function pe(e,t,n,r){e instanceof le&&(e=e._wrapped),t instanceof le&&(t=t._wrapped);var i=c.call(e);if(i!==c.call(t))return!1;if(L&&"[object Object]"==i&&H(e)){if(!H(t))return!1;i=fe}switch(i){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return o.valueOf.call(e)===o.valueOf.call(t);case"[object ArrayBuffer]":case fe:return pe(de(e),de(t),n,r)}var a="[object Array]"===i;if(!a&&re(e)){var s=Q(e);if(s!==Q(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;a=!0}if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(I(u)&&u instanceof u&&I(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];var d=n.length;while(d--)if(n[d]===e)return r[d]===t;if(n.push(e),r.push(t),a){if(d=e.length,d!==t.length)return!1;while(d--)if(!he(e[d],t[d],n,r))return!1}else{var f,h=se(e);if(d=h.length,se(t).length!==d)return!1;while(d--)if(f=h[d],!q(t,f)||!he(e[f],t[f],n,r))return!1}return n.pop(),r.pop(),!0}function ge(e,t){return he(e,t)}function me(e){if(!w(e))return[];var t=[];for(var n in e)t.push(n);return b&&ae(e,t),t}function ve(e){var t=ie(e);return function(n){if(null==n)return!1;var r=me(n);if(ie(r))return!1;for(var i=0;i<t;i++)if(!I(n[e[i]]))return!1;return e!==De||!I(n[be])}}var be="forEach",ye="has",xe=["clear","delete"],_e=["get",ye,"set"],we=xe.concat(be,_e),De=xe.concat(_e),Ce=["add"].concat(xe,be,ye),ke=z?ve(we):S("Map"),Te=z?ve(De):S("WeakMap"),Se=z?ve(Ce):S("Set"),Ae=S("WeakSet");function Ee(e){for(var t=se(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function Ue(e){for(var t=se(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function Oe(e){for(var t={},n=se(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function Fe(e){var t=[];for(var n in e)I(e[n])&&t.push(n);return t.sort()}function Pe(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,c=0;c<s;c++){var u=a[c];t&&void 0!==n[u]||(n[u]=o[u])}return n}}var Re=Pe(me),Ne=Pe(se),Me=Pe(me,!0);function Ie(){return function(){}}function Be(e){if(!w(e))return{};if(p)return p(e);var t=Ie();t.prototype=e;var n=new t;return t.prototype=null,n}function Le(e,t){var n=Be(e);return t&&Ne(n,t),n}function ze(e){return w(e)?V(e)?e.slice():Re({},e):e}function We(e,t){return t(e),e}function je(e){return V(e)?e:[e]}function He(e){return le.toPath(e)}function Ve(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function qe(e,t,n){var r=Ve(e,He(t));return C(r)?n:r}function $e(e,t){t=He(t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(!q(e,i))return!1;e=e[i]}return!!n}function Ge(e){return e}function Xe(e){return e=Ne({},e),function(t){return ue(t,e)}}function Ye(e){return e=He(e),function(t){return Ve(t,e)}}function Ke(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Ze(e,t,n){return null==e?Ge:I(e)?Ke(e,t,n):w(e)&&!V(e)?Xe(e):Ye(e)}function Je(e,t){return Ze(e,t,1/0)}function Qe(e,t,n){return le.iteratee!==Je?le.iteratee(e,t):Ze(e,t,n)}function et(e,t,n){t=Qe(t,n);for(var r=se(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o}function tt(){}function nt(e){return null==e?tt:function(t){return qe(e,t)}}function rt(e,t,n){var r=Array(Math.max(0,e));t=Ke(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function it(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}le.toPath=je,le.iteratee=Je;var ot=Date.now||function(){return(new Date).getTime()};function at(e){var t=function(t){return e[t]},n="(?:"+se(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}var st={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},ct=at(st),ut=Oe(st),lt=at(ut),dt=le.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ft=/(.)^/,ht={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},pt=/\\|'|\r|\n|\u2028|\u2029/g;function gt(e){return"\\"+ht[e]}var mt=/^\s*(\w|\$)+\s*$/;function vt(e,t,n){!t&&n&&(t=n),t=Me({},t,le.templateSettings);var r=RegExp([(t.escape||ft).source,(t.interpolate||ft).source,(t.evaluate||ft).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,a,s){return o+=e.slice(i,s).replace(pt,gt),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a,s=t.variable;if(s){if(!mt.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(s,"_",o)}catch(u){throw u.source=o,u}var c=function(e){return a.call(this,e,le)};return c.source="function("+s+"){\n"+o+"}",c}function bt(e,t,n){t=He(t);var r=t.length;if(!r)return I(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=I(o)?o.call(e):o}return e}var yt=0;function xt(e){var t=++yt+"";return e?e+t:t}function _t(e){var t=le(e);return t._chain=!0,t}function wt(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=Be(e.prototype),a=e.apply(o,i);return w(a)?a:o}var Dt=_((function(e,t){var n=Dt.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];while(i<arguments.length)a.push(arguments[i++]);return wt(e,r,this,this,a)};return r}));Dt.placeholder=le;var Ct=_((function(e,t,n){if(!I(e))throw new TypeError("Bind must be called on a function");var r=_((function(i){return wt(e,r,t,this,n.concat(i))}));return r})),kt=Z(ie);function Tt(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,a=ie(e);o<a;o++){var s=e[o];if(kt(s)&&(V(s)||G(s)))if(t>1)Tt(s,t-1,n,r),i=r.length;else{var c=0,u=s.length;while(c<u)r[i++]=s[c++]}else n||(r[i++]=s)}return r}var St=_((function(e,t){t=Tt(t,!1,!1);var n=t.length;if(n<1)throw new Error("bindAll must be passed function names");while(n--){var r=t[n];e[r]=Ct(e[r],e)}return e}));function At(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return q(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}var Et=_((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Ut=Dt(Et,le,1);function Ot(e,t,n){var r,i,o,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:ot(),r=null,a=e.apply(i,o),r||(i=o=null)},u=function(){var u=ot();s||!1!==n.leading||(s=u);var l=t-(u-s);return i=this,o=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),s=u,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,l)),a};return u.cancel=function(){clearTimeout(r),s=0,r=i=o=null},u}function Ft(e,t,n){var r,i,o,a,s,c=function(){var u=ot()-i;t>u?r=setTimeout(c,t-u):(r=null,n||(a=e.apply(s,o)),r||(o=s=null))},u=_((function(u){return s=this,o=u,i=ot(),r||(r=setTimeout(c,t),n&&(a=e.apply(s,o))),a}));return u.cancel=function(){clearTimeout(r),r=o=s=null},u}function Pt(e,t){return Dt(t,e)}function Rt(e){return function(){return!e.apply(this,arguments)}}function Nt(){var e=arguments,t=e.length-1;return function(){var n=t,r=e[t].apply(this,arguments);while(n--)r=e[n].call(this,r);return r}}function Mt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function It(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Bt=Dt(It,2);function Lt(e,t,n){t=Qe(t,n);for(var r,i=se(e),o=0,a=i.length;o<a;o++)if(r=i[o],t(e[r],r,e))return r}function zt(e){return function(t,n,r){n=Qe(n,r);for(var i=ie(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}var Wt=zt(1),jt=zt(-1);function Ht(e,t,n,r){n=Qe(n,r,1);var i=n(t),o=0,a=ie(e);while(o<a){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o}function Vt(e,t,n){return function(r,i,o){var a=0,c=ie(r);if("number"==typeof o)e>0?a=o>=0?o:Math.max(o+c,a):c=o>=0?Math.min(o+1,c):o+c+1;else if(n&&o&&c)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=t(s.call(r,a,c),Y),o>=0?o+a:-1;for(o=e>0?a:c-1;o>=0&&o<c;o+=e)if(r[o]===i)return o;return-1}}var qt=Vt(1,Wt,Ht),$t=Vt(-1,jt);function Gt(e,t,n){var r=kt(e)?Wt:Lt,i=r(e,t,n);if(void 0!==i&&-1!==i)return e[i]}function Xt(e,t){return Gt(e,Xe(t))}function Yt(e,t,n){var r,i;if(t=Ke(t,n),kt(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=se(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function Kt(e,t,n){t=Qe(t,n);for(var r=!kt(e)&&se(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o}function Zt(e){var t=function(t,n,r,i){var o=!kt(t)&&se(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var c=o?o[s]:s;r=n(r,t[c],c,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,Ke(n,i,4),r,o)}}var Jt=Zt(1),Qt=Zt(-1);function en(e,t,n){var r=[];return t=Qe(t,n),Yt(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function tn(e,t,n){return en(e,Rt(Qe(t)),n)}function nn(e,t,n){t=Qe(t,n);for(var r=!kt(e)&&se(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0}function rn(e,t,n){t=Qe(t,n);for(var r=!kt(e)&&se(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1}function on(e,t,n,r){return kt(e)||(e=Ee(e)),("number"!=typeof n||r)&&(n=0),qt(e,t,n)>=0}var an=_((function(e,t,n){var r,i;return I(t)?i=t:(t=He(t),r=t.slice(0,-1),t=t[t.length-1]),Kt(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=Ve(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function sn(e,t){return Kt(e,Ye(t))}function cn(e,t){return en(e,Xe(t))}function un(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=kt(e)?e:Ee(e);for(var s=0,c=e.length;s<c;s++)r=e[s],null!=r&&r>o&&(o=r)}else t=Qe(t,n),Yt(e,(function(e,n,r){i=t(e,n,r),(i>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o}function ln(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=kt(e)?e:Ee(e);for(var s=0,c=e.length;s<c;s++)r=e[s],null!=r&&r<o&&(o=r)}else t=Qe(t,n),Yt(e,(function(e,n,r){i=t(e,n,r),(i<a||i===1/0&&o===1/0)&&(o=e,a=i)}));return o}function dn(e,t,n){if(null==t||n)return kt(e)||(e=Ee(e)),e[it(e.length-1)];var r=kt(e)?ze(e):Ee(e),i=ie(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=it(a,o),c=r[a];r[a]=r[s],r[s]=c}return r.slice(0,t)}function fn(e){return dn(e,1/0)}function hn(e,t,n){var r=0;return t=Qe(t,n),sn(Kt(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function pn(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=Qe(r,i),Yt(n,(function(t,i){var a=r(t,i,n);e(o,t,a)})),o}}var gn=pn((function(e,t,n){q(e,n)?e[n].push(t):e[n]=[t]})),mn=pn((function(e,t,n){e[n]=t})),vn=pn((function(e,t,n){q(e,n)?e[n]++:e[n]=1})),bn=pn((function(e,t,n){e[n?0:1].push(t)}),!0),yn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function xn(e){return e?V(e)?s.call(e):A(e)?e.match(yn):kt(e)?Kt(e,Ge):Ee(e):[]}function _n(e){return null==e?0:kt(e)?e.length:se(e).length}function wn(e,t,n){return t in n}var Dn=_((function(e,t){var n={},r=t[0];if(null==e)return n;I(r)?(t.length>1&&(r=Ke(r,t[1])),t=me(e)):(r=wn,t=Tt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n})),Cn=_((function(e,t){var n,r=t[0];return I(r)?(r=Rt(r),t.length>1&&(n=t[1])):(t=Kt(Tt(t,!1,!1),String),r=function(e,n){return!on(t,n)}),Dn(e,r,n)}));function kn(e,t,n){return s.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Tn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:kn(e,e.length-t)}function Sn(e,t,n){return s.call(e,null==t||n?1:t)}function An(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:Sn(e,Math.max(0,e.length-t))}function En(e){return en(e,Boolean)}function Un(e,t){return Tt(e,t,!1)}var On=_((function(e,t){return t=Tt(t,!0,!0),en(e,(function(e){return!on(t,e)}))})),Fn=_((function(e,t){return On(e,t)}));function Pn(e,t,n,r){k(t)||(r=n,n=t,t=!1),null!=n&&(n=Qe(n,r));for(var i=[],o=[],a=0,s=ie(e);a<s;a++){var c=e[a],u=n?n(c,a,e):c;t&&!n?(a&&o===u||i.push(c),o=u):n?on(o,u)||(o.push(u),i.push(c)):on(i,c)||i.push(c)}return i}var Rn=_((function(e){return Pn(Tt(e,!0,!0))}));function Nn(e){for(var t=[],n=arguments.length,r=0,i=ie(e);r<i;r++){var o=e[r];if(!on(t,o)){var a;for(a=1;a<n;a++)if(!on(arguments[a],o))break;a===n&&t.push(o)}}return t}function Mn(e){for(var t=e&&un(e,ie).length||0,n=Array(t),r=0;r<t;r++)n[r]=sn(e,r);return n}var In=_(Mn);function Bn(e,t){for(var n={},r=0,i=ie(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Ln(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function zn(e,t){if(null==t||t<1)return[];var n=[],r=0,i=e.length;while(r<i)n.push(s.call(e,r,r+=t));return n}function Wn(e,t){return e._chain?le(t).chain():t}function jn(e){return Yt(Fe(e),(function(t){var n=le[t]=e[t];le.prototype[t]=function(){var e=[this._wrapped];return a.apply(e,arguments),Wn(this,n.apply(le,e))}})),le}Yt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=r[e];le.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Wn(this,n)}})),Yt(["concat","join","slice"],(function(e){var t=r[e];le.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Wn(this,e)}}));var Hn={__proto__:null,VERSION:e,restArguments:_,isObject:w,isNull:D,isUndefined:C,isBoolean:k,isElement:T,isString:A,isNumber:E,isDate:U,isRegExp:O,isError:F,isSymbol:P,isArrayBuffer:R,isDataView:H,isArray:V,isFunction:I,isArguments:G,isFinite:X,isNaN:Y,isTypedArray:re,isEmpty:ce,isMatch:ue,isEqual:ge,isMap:ke,isWeakMap:Te,isSet:Se,isWeakSet:Ae,keys:se,allKeys:me,values:Ee,pairs:Ue,invert:Oe,functions:Fe,methods:Fe,extend:Re,extendOwn:Ne,assign:Ne,defaults:Me,create:Le,clone:ze,tap:We,get:qe,has:$e,mapObject:et,identity:Ge,constant:K,noop:tt,toPath:je,property:Ye,propertyOf:nt,matcher:Xe,matches:Xe,times:rt,random:it,now:ot,escape:ct,unescape:lt,templateSettings:dt,template:vt,result:bt,uniqueId:xt,chain:_t,iteratee:Je,partial:Dt,bind:Ct,bindAll:St,memoize:At,delay:Et,defer:Ut,throttle:Ot,debounce:Ft,wrap:Pt,negate:Rt,compose:Nt,after:Mt,before:It,once:Bt,findKey:Lt,findIndex:Wt,findLastIndex:jt,sortedIndex:Ht,indexOf:qt,lastIndexOf:$t,find:Gt,detect:Gt,findWhere:Xt,each:Yt,forEach:Yt,map:Kt,collect:Kt,reduce:Jt,foldl:Jt,inject:Jt,reduceRight:Qt,foldr:Qt,filter:en,select:en,reject:tn,every:nn,all:nn,some:rn,any:rn,contains:on,includes:on,include:on,invoke:an,pluck:sn,where:cn,max:un,min:ln,shuffle:fn,sample:dn,sortBy:hn,groupBy:gn,indexBy:mn,countBy:vn,partition:bn,toArray:xn,size:_n,pick:Dn,omit:Cn,first:Tn,head:Tn,take:Tn,initial:kn,last:An,rest:Sn,tail:Sn,drop:Sn,compact:En,flatten:Un,without:Fn,uniq:Pn,unique:Pn,union:Rn,intersection:Nn,difference:On,unzip:Mn,transpose:Mn,zip:In,object:Bn,range:Ln,chunk:zn,mixin:jn,default:le},Vn=jn(Hn);return Vn._=Vn,Vn}))}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],104:[function(e,t,n){"function"===typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],105:[function(e,t,n){t.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},{}],106:[function(e,n,r){(function(t,n){var i=/%[sdj%]/g;r.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),c=r[n];n<o;c=r[++n])y(c)||!T(c)?a+=" "+c:a+=" "+s(c);return a},r.deprecate=function(e,i){if(C(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;function a(){if(!o){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),o=!0}return e.apply(this,arguments)}return a};var o,a={};function s(e,t){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),b(t)?n.showHidden=t:t&&r._extend(n,t),C(n.showHidden)&&(n.showHidden=!1),C(n.depth)&&(n.depth=2),C(n.colors)&&(n.colors=!1),C(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),d(n,e,n.depth)}function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function u(e,t){return e}function l(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function d(e,t,n){if(e.customInspect&&t&&E(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return w(i)||(i=d(e,i,n)),i}var o=f(e,t);if(o)return o;var a=Object.keys(t),s=l(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),A(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(t);if(0===a.length){if(E(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(k(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(S(t))return e.stylize(Date.prototype.toString.call(t),"date");if(A(t))return h(t)}var u,b="",y=!1,x=["{","}"];if(v(t)&&(y=!0,x=["[","]"]),E(t)){var _=t.name?": "+t.name:"";b=" [Function"+_+"]"}return k(t)&&(b=" "+RegExp.prototype.toString.call(t)),S(t)&&(b=" "+Date.prototype.toUTCString.call(t)),A(t)&&(b=" "+h(t)),0!==a.length||y&&0!=t.length?n<0?k(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=y?p(e,t,n,s,a):a.map((function(r){return g(e,t,n,s,r,y)})),e.seen.pop(),m(u,b,x)):x[0]+b+x[1]}function f(e,t){if(C(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return _(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)N(t,String(a))?o.push(g(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(g(e,t,n,r,i,!0))})),o}function g(e,t,n,r,i,o){var a,s,c;if(c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},c.get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),N(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=y(n)?d(e,c.value,null):d(e,c.value,n-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n"))):s=e.stylize("[Circular]","special")),C(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function v(e){return Array.isArray(e)}function b(e){return"boolean"===typeof e}function y(e){return null===e}function x(e){return null==e}function _(e){return"number"===typeof e}function w(e){return"string"===typeof e}function D(e){return"symbol"===typeof e}function C(e){return void 0===e}function k(e){return T(e)&&"[object RegExp]"===O(e)}function T(e){return"object"===typeof e&&null!==e}function S(e){return T(e)&&"[object Date]"===O(e)}function A(e){return T(e)&&("[object Error]"===O(e)||e instanceof Error)}function E(e){return"function"===typeof e}function U(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function O(e){return Object.prototype.toString.call(e)}function F(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(C(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=t.pid;a[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else a[e]=function(){};return a[e]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=v,r.isBoolean=b,r.isNull=y,r.isNullOrUndefined=x,r.isNumber=_,r.isString=w,r.isSymbol=D,r.isUndefined=C,r.isRegExp=k,r.isObject=T,r.isDate=S,r.isError=A,r.isFunction=E,r.isPrimitive=U,r.isBuffer=e("./support/isBuffer");var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var e=new Date,t=[F(e.getHours()),F(e.getMinutes()),F(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){console.log("%s - %s",R(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!T(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":105,_process:102,inherits:104}],107:[function(e,t,n){(function(){var e,n,r,i,o,a,s,c=[].slice,u={}.hasOwnProperty;e=function(){var e,t,n,r,i,a;if(a=arguments[0],i=2<=arguments.length?c.call(arguments,1):[],o(Object.assign))Object.assign.apply(null,arguments);else for(e=0,n=i.length;e<n;e++)if(r=i[e],null!=r)for(t in r)u.call(r,t)&&(a[t]=r[t]);return a},o=function(e){return!!e&&"[object Function]"===Object.prototype.toString.call(e)},a=function(e){var t;return!!e&&("function"===(t=typeof e)||"object"===t)},r=function(e){return o(Array.isArray)?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},i=function(e){var t;if(r(e))return!e.length;for(t in e)if(u.call(e,t))return!1;return!0},s=function(e){var t,n;return a(e)&&(n=Object.getPrototypeOf(e))&&(t=n.constructor)&&"function"===typeof t&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},n=function(e){return o(e.valueOf)?e.valueOf():e},t.exports.assign=e,t.exports.isFunction=o,t.exports.isObject=a,t.exports.isArray=r,t.exports.isEmpty=i,t.exports.isPlainObject=s,t.exports.getValue=n}).call(this)},{}],108:[function(e,t,n){(function(){t.exports=function(){function e(e,t,n){if(this.options=e.options,this.stringify=e.stringify,this.parent=e,null==t)throw new Error("Missing attribute name. "+this.debugInfo(t));if(null==n)throw new Error("Missing attribute value. "+this.debugInfo(t));this.name=this.stringify.attName(t),this.value=this.stringify.attValue(n)}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(e){return this.options.writer.set(e).attribute(this)},e.prototype.debugInfo=function(e){var t,n;return e=e||this.name,null!=e||(null!=(t=this.parent)?t.name:void 0)?null==e?"parent: <"+this.parent.name+">":(null!=(n=this.parent)?n.name:void 0)?"attribute: {"+e+"}, parent: <"+this.parent.name+">":"attribute: {"+e+"}":""},e}()}).call(this)},{}],109:[function(e,t,n){(function(){var n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(n)}return r(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).cdata(this)},t}(n)}).call(this)},{"./XMLNode":120}],110:[function(e,t,n){(function(){var n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(n)}return r(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).comment(this)},t}(n)}).call(this)},{"./XMLNode":120}],111:[function(e,t,n){(function(){var n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n,r,i,o,a){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==r)throw new Error("Missing DTD attribute name. "+this.debugInfo(n));if(!i)throw new Error("Missing DTD attribute type. "+this.debugInfo(n));if(!o)throw new Error("Missing DTD attribute default. "+this.debugInfo(n));if(0!==o.indexOf("#")&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n));if(a&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n));this.elementName=this.stringify.eleName(n),this.attributeName=this.stringify.attName(r),this.attributeType=this.stringify.dtdAttType(i),this.defaultValue=this.stringify.dtdAttDefault(a),this.defaultValueType=o}return r(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)},t}(n)}).call(this)},{"./XMLNode":120}],112:[function(e,t,n){(function(){var n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n,r){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());r||(r="(#PCDATA)"),Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.eleName(n),this.value=this.stringify.dtdElementValue(r)}return r(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdElement(this)},t}(n)}).call(this)},{"./XMLNode":120}],113:[function(e,t,n){(function(){var n,r,i=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=e("./Utility").isObject,n=e("./XMLNode"),t.exports=function(e){function t(e,n,i,o){if(t.__super__.constructor.call(this,e),null==i)throw new Error("Missing DTD entity name. "+this.debugInfo(i));if(null==o)throw new Error("Missing DTD entity value. "+this.debugInfo(i));if(this.pe=!!n,this.name=this.stringify.eleName(i),r(o)){if(!o.pubID&&!o.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(i));if(o.pubID&&!o.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(i));if(null!=o.pubID&&(this.pubID=this.stringify.dtdPubID(o.pubID)),null!=o.sysID&&(this.sysID=this.stringify.dtdSysID(o.sysID)),null!=o.nData&&(this.nData=this.stringify.dtdNData(o.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(i))}else this.value=this.stringify.dtdEntityValue(o)}return i(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},t}(n)}).call(this)},{"./Utility":107,"./XMLNode":120}],114:[function(e,t,n){(function(){var n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n,r){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD notation name. "+this.debugInfo(n));if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n));this.name=this.stringify.eleName(n),null!=r.pubID&&(this.pubID=this.stringify.dtdPubID(r.pubID)),null!=r.sysID&&(this.sysID=this.stringify.dtdSysID(r.sysID))}return r(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdNotation(this)},t}(n)}).call(this)},{"./XMLNode":120}],115:[function(e,t,n){(function(){var n,r,i=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=e("./Utility").isObject,n=e("./XMLNode"),t.exports=function(e){function t(e,n,i,o){var a;t.__super__.constructor.call(this,e),r(n)&&(a=n,n=a.version,i=a.encoding,o=a.standalone),n||(n="1.0"),this.version=this.stringify.xmlVersion(n),null!=i&&(this.encoding=this.stringify.xmlEncoding(i)),null!=o&&(this.standalone=this.stringify.xmlStandalone(o))}return i(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},t}(n)}).call(this)},{"./Utility":107,"./XMLNode":120}],116:[function(e,t,n){(function(){var n,r,i,o,a,s,c=function(e,t){for(var n in t)u.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;s=e("./Utility").isObject,a=e("./XMLNode"),n=e("./XMLDTDAttList"),i=e("./XMLDTDEntity"),r=e("./XMLDTDElement"),o=e("./XMLDTDNotation"),t.exports=function(e){function t(e,n,r){var i,o;t.__super__.constructor.call(this,e),this.name="!DOCTYPE",this.documentObject=e,s(n)&&(i=n,n=i.pubID,r=i.sysID),null==r&&(o=[n,r],r=o[0],n=o[1]),null!=n&&(this.pubID=this.stringify.dtdPubID(n)),null!=r&&(this.sysID=this.stringify.dtdSysID(r))}return c(t,e),t.prototype.element=function(e,t){var n;return n=new r(this,e,t),this.children.push(n),this},t.prototype.attList=function(e,t,r,i,o){var a;return a=new n(this,e,t,r,i,o),this.children.push(a),this},t.prototype.entity=function(e,t){var n;return n=new i(this,!1,e,t),this.children.push(n),this},t.prototype.pEntity=function(e,t){var n;return n=new i(this,!0,e,t),this.children.push(n),this},t.prototype.notation=function(e,t){var n;return n=new o(this,e,t),this.children.push(n),this},t.prototype.toString=function(e){return this.options.writer.set(e).docType(this)},t.prototype.ele=function(e,t){return this.element(e,t)},t.prototype.att=function(e,t,n,r,i){return this.attList(e,t,n,r,i)},t.prototype.ent=function(e,t){return this.entity(e,t)},t.prototype.pent=function(e,t){return this.pEntity(e,t)},t.prototype.not=function(e,t){return this.notation(e,t)},t.prototype.up=function(){return this.root()||this.documentObject},t}(a)}).call(this)},{"./Utility":107,"./XMLDTDAttList":111,"./XMLDTDElement":112,"./XMLDTDEntity":113,"./XMLDTDNotation":114,"./XMLNode":120}],117:[function(e,t,n){(function(){var n,r,i,o,a=function(e,t){for(var n in t)s.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},s={}.hasOwnProperty;o=e("./Utility").isPlainObject,n=e("./XMLNode"),i=e("./XMLStringifier"),r=e("./XMLStringWriter"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,null),this.name="?xml",e||(e={}),e.writer||(e.writer=new r),this.options=e,this.stringify=new i(e),this.isDocument=!0}return a(t,e),t.prototype.end=function(e){var t;return e?o(e)&&(t=e,e=this.options.writer.set(t)):e=this.options.writer,e.document(this)},t.prototype.toString=function(e){return this.options.writer.set(e).document(this)},t}(n)}).call(this)},{"./Utility":107,"./XMLNode":120,"./XMLStringWriter":124,"./XMLStringifier":125}],118:[function(e,t,n){(function(){var n,r,i,o,a,s,c,u,l,d,f,h,p,g,m,v,b,y,x,_,w={}.hasOwnProperty;_=e("./Utility"),y=_.isObject,b=_.isFunction,x=_.isPlainObject,v=_.getValue,d=e("./XMLElement"),r=e("./XMLCData"),i=e("./XMLComment"),h=e("./XMLRaw"),m=e("./XMLText"),f=e("./XMLProcessingInstruction"),u=e("./XMLDeclaration"),l=e("./XMLDocType"),o=e("./XMLDTDAttList"),s=e("./XMLDTDEntity"),a=e("./XMLDTDElement"),c=e("./XMLDTDNotation"),n=e("./XMLAttribute"),g=e("./XMLStringifier"),p=e("./XMLStringWriter"),t.exports=function(){function e(e,t,n){var r;this.name="?xml",e||(e={}),e.writer?x(e.writer)&&(r=e.writer,e.writer=new p(r)):e.writer=new p(e),this.options=e,this.writer=e.writer,this.stringify=new g(e),this.onDataCallback=t||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return e.prototype.node=function(e,t,n){var r;if(null==e)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(e));return this.openCurrent(),e=v(e),null==t&&(t={}),t=v(t),y(t)||(r=[t,n],n=r[0],t=r[1]),this.currentNode=new d(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=n&&this.text(n),this},e.prototype.element=function(e,t,n){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(e,t,n)},e.prototype.attribute=function(e,t){var r,i;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(e));if(null!=e&&(e=v(e)),y(e))for(r in e)w.call(e,r)&&(i=e[r],this.attribute(r,i));else b(t)&&(t=t.apply()),this.options.skipNullAttributes&&null==t||(this.currentNode.attributes[e]=new n(this,e,t));return this},e.prototype.text=function(e){var t;return this.openCurrent(),t=new m(this,e),this.onData(this.writer.text(t,this.currentLevel+1),this.currentLevel+1),this},e.prototype.cdata=function(e){var t;return this.openCurrent(),t=new r(this,e),this.onData(this.writer.cdata(t,this.currentLevel+1),this.currentLevel+1),this},e.prototype.comment=function(e){var t;return this.openCurrent(),t=new i(this,e),this.onData(this.writer.comment(t,this.currentLevel+1),this.currentLevel+1),this},e.prototype.raw=function(e){var t;return this.openCurrent(),t=new h(this,e),this.onData(this.writer.raw(t,this.currentLevel+1),this.currentLevel+1),this},e.prototype.instruction=function(e,t){var n,r,i,o,a;if(this.openCurrent(),null!=e&&(e=v(e)),null!=t&&(t=v(t)),Array.isArray(e))for(n=0,o=e.length;n<o;n++)r=e[n],this.instruction(r);else if(y(e))for(r in e)w.call(e,r)&&(i=e[r],this.instruction(r,i));else b(t)&&(t=t.apply()),a=new f(this,e,t),this.onData(this.writer.processingInstruction(a,this.currentLevel+1),this.currentLevel+1);return this},e.prototype.declaration=function(e,t,n){var r;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return r=new u(this,e,t,n),this.onData(this.writer.declaration(r,this.currentLevel+1),this.currentLevel+1),this},e.prototype.doctype=function(e,t,n){if(this.openCurrent(),null==e)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new l(this,t,n),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},e.prototype.dtdElement=function(e,t){var n;return this.openCurrent(),n=new a(this,e,t),this.onData(this.writer.dtdElement(n,this.currentLevel+1),this.currentLevel+1),this},e.prototype.attList=function(e,t,n,r,i){var a;return this.openCurrent(),a=new o(this,e,t,n,r,i),this.onData(this.writer.dtdAttList(a,this.currentLevel+1),this.currentLevel+1),this},e.prototype.entity=function(e,t){var n;return this.openCurrent(),n=new s(this,!1,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1),this.currentLevel+1),this},e.prototype.pEntity=function(e,t){var n;return this.openCurrent(),n=new s(this,!0,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1),this.currentLevel+1),this},e.prototype.notation=function(e,t){var n;return this.openCurrent(),n=new c(this,e,t),this.onData(this.writer.dtdNotation(n,this.currentLevel+1),this.currentLevel+1),this},e.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},e.prototype.end=function(){while(this.currentLevel>=0)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(e){if(!e.isOpen)return!this.root&&0===this.currentLevel&&e instanceof d&&(this.root=e),this.onData(this.writer.openNode(e,this.currentLevel),this.currentLevel),e.isOpen=!0},e.prototype.closeNode=function(e){if(!e.isClosed)return this.onData(this.writer.closeNode(e,this.currentLevel),this.currentLevel),e.isClosed=!0},e.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(e,t,n){return this.node(e,t,n)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},e.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)},e.prototype.e=function(e,t,n){return this.element(e,t,n)},e.prototype.n=function(e,t,n){return this.node(e,t,n)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.att=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e}()}).call(this)},{"./Utility":107,"./XMLAttribute":108,"./XMLCData":109,"./XMLComment":110,"./XMLDTDAttList":111,"./XMLDTDElement":112,"./XMLDTDEntity":113,"./XMLDTDNotation":114,"./XMLDeclaration":115,"./XMLDocType":116,"./XMLElement":119,"./XMLProcessingInstruction":121,"./XMLRaw":122,"./XMLStringWriter":124,"./XMLStringifier":125,"./XMLText":126}],119:[function(e,t,n){(function(){var n,r,i,o,a,s,c=function(e,t){for(var n in t)u.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;s=e("./Utility"),a=s.isObject,o=s.isFunction,i=s.getValue,r=e("./XMLNode"),n=e("./XMLAttribute"),t.exports=function(e){function t(e,n,r){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(n),this.attributes={},null!=r&&this.attribute(r),e.isDocument&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this)}return c(t,e),t.prototype.clone=function(){var e,t,n,r;for(t in n=Object.create(this),n.isRoot&&(n.documentObject=null),n.attributes={},r=this.attributes,r)u.call(r,t)&&(e=r[t],n.attributes[t]=e.clone());return n.children=[],this.children.forEach((function(e){var t;return t=e.clone(),t.parent=n,n.children.push(t)})),n},t.prototype.attribute=function(e,t){var r,s;if(null!=e&&(e=i(e)),a(e))for(r in e)u.call(e,r)&&(s=e[r],this.attribute(r,s));else o(t)&&(t=t.apply()),this.options.skipNullAttributes&&null==t||(this.attributes[e]=new n(this,e,t));return this},t.prototype.removeAttribute=function(e){var t,n,r;if(null==e)throw new Error("Missing attribute name. "+this.debugInfo());if(e=i(e),Array.isArray(e))for(n=0,r=e.length;n<r;n++)t=e[n],delete this.attributes[t];else delete this.attributes[e];return this},t.prototype.toString=function(e){return this.options.writer.set(e).element(this)},t.prototype.att=function(e,t){return this.attribute(e,t)},t.prototype.a=function(e,t){return this.attribute(e,t)},t}(r)}).call(this)},{"./Utility":107,"./XMLAttribute":108,"./XMLNode":120}],120:[function(e,t,n){(function(){var n,r,i,o,a,s,c,u,l,d,f,h,p,g={}.hasOwnProperty;p=e("./Utility"),h=p.isObject,f=p.isFunction,d=p.isEmpty,l=p.getValue,a=null,n=null,r=null,i=null,o=null,c=null,u=null,s=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],a||(a=e("./XMLElement"),n=e("./XMLCData"),r=e("./XMLComment"),i=e("./XMLDeclaration"),o=e("./XMLDocType"),c=e("./XMLRaw"),u=e("./XMLText"),s=e("./XMLProcessingInstruction"))}return t.prototype.element=function(e,t,n){var r,i,o,a,s,c,u,p,m,v;if(c=null,null==t&&(t={}),t=l(t),h(t)||(m=[t,n],n=m[0],t=m[1]),null!=e&&(e=l(e)),Array.isArray(e))for(o=0,u=e.length;o<u;o++)i=e[o],c=this.element(i);else if(f(e))c=this.element(e.apply());else if(h(e)){for(s in e)if(g.call(e,s))if(v=e[s],f(v)&&(v=v.apply()),h(v)&&d(v)&&(v=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===s.indexOf(this.stringify.convertAttKey))c=this.attribute(s.substr(this.stringify.convertAttKey.length),v);else if(!this.options.separateArrayItems&&Array.isArray(v))for(a=0,p=v.length;a<p;a++)i=v[a],r={},r[s]=i,c=this.element(r);else h(v)?(c=this.element(s),c.element(v)):c=this.element(s,v)}else c=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===e.indexOf(this.stringify.convertTextKey)?this.text(n):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===e.indexOf(this.stringify.convertCDataKey)?this.cdata(n):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===e.indexOf(this.stringify.convertCommentKey)?this.comment(n):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===e.indexOf(this.stringify.convertRawKey)?this.raw(n):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===e.indexOf(this.stringify.convertPIKey)?this.instruction(e.substr(this.stringify.convertPIKey.length),n):this.node(e,t,n);if(null==c)throw new Error("Could not create any elements with: "+e+". "+this.debugInfo());return c},t.prototype.insertBefore=function(e,t,n){var r,i,o;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return i=this.parent.children.indexOf(this),o=this.parent.children.splice(i),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,o),r},t.prototype.insertAfter=function(e,t,n){var r,i,o;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return i=this.parent.children.indexOf(this),o=this.parent.children.splice(i+1),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,o),r},t.prototype.remove=function(){var e;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat([])),this.parent},t.prototype.node=function(e,t,n){var r,i;return null!=e&&(e=l(e)),t||(t={}),t=l(t),h(t)||(i=[t,n],n=i[0],t=i[1]),r=new a(this,e,t),null!=n&&r.text(n),this.children.push(r),r},t.prototype.text=function(e){var t;return t=new u(this,e),this.children.push(t),this},t.prototype.cdata=function(e){var t;return t=new n(this,e),this.children.push(t),this},t.prototype.comment=function(e){var t;return t=new r(this,e),this.children.push(t),this},t.prototype.commentBefore=function(e){var t,n;return t=this.parent.children.indexOf(this),n=this.parent.children.splice(t),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.commentAfter=function(e){var t,n;return t=this.parent.children.indexOf(this),n=this.parent.children.splice(t+1),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.raw=function(e){var t;return t=new c(this,e),this.children.push(t),this},t.prototype.instruction=function(e,t){var n,r,i,o,a;if(null!=e&&(e=l(e)),null!=t&&(t=l(t)),Array.isArray(e))for(o=0,a=e.length;o<a;o++)n=e[o],this.instruction(n);else if(h(e))for(n in e)g.call(e,n)&&(r=e[n],this.instruction(n,r));else f(t)&&(t=t.apply()),i=new s(this,e,t),this.children.push(i);return this},t.prototype.instructionBefore=function(e,t){var n,r;return n=this.parent.children.indexOf(this),r=this.parent.children.splice(n),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.instructionAfter=function(e,t){var n,r;return n=this.parent.children.indexOf(this),r=this.parent.children.splice(n+1),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.declaration=function(e,t,n){var r,o;return r=this.document(),o=new i(r,e,t,n),r.children[0]instanceof i?r.children[0]=o:r.children.unshift(o),r.root()||r},t.prototype.doctype=function(e,t){var n,r,i,a,s,c,u,l,d,f;for(r=this.document(),i=new o(r,e,t),d=r.children,a=s=0,u=d.length;s<u;a=++s)if(n=d[a],n instanceof o)return r.children[a]=i,i;for(f=r.children,a=c=0,l=f.length;c<l;a=++c)if(n=f[a],n.isRoot)return r.children.splice(a,0,i),i;return r.children.push(i),i},t.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},t.prototype.root=function(){var e;e=this;while(e){if(e.isDocument)return e.rootObject;if(e.isRoot)return e;e=e.parent}},t.prototype.document=function(){var e;e=this;while(e){if(e.isDocument)return e;e=e.parent}},t.prototype.end=function(e){return this.document().end(e)},t.prototype.prev=function(){var e;if(e=this.parent.children.indexOf(this),e<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[e-1]},t.prototype.next=function(){var e;if(e=this.parent.children.indexOf(this),-1===e||e===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[e+1]},t.prototype.importDocument=function(e){var t;return t=e.root().clone(),t.parent=this,t.isRoot=!1,this.children.push(t),this},t.prototype.debugInfo=function(e){var t,n;return e=e||this.name,null!=e||(null!=(t=this.parent)?t.name:void 0)?null==e?"parent: <"+this.parent.name+">":(null!=(n=this.parent)?n.name:void 0)?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},t.prototype.ele=function(e,t,n){return this.element(e,t,n)},t.prototype.nod=function(e,t,n){return this.node(e,t,n)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},t.prototype.dtd=function(e,t){return this.doctype(e,t)},t.prototype.e=function(e,t,n){return this.element(e,t,n)},t.prototype.n=function(e,t,n){return this.node(e,t,n)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(e){return this.importDocument(e)},t}()}).call(this)},{"./Utility":107,"./XMLCData":109,"./XMLComment":110,"./XMLDeclaration":115,"./XMLDocType":116,"./XMLElement":119,"./XMLProcessingInstruction":121,"./XMLRaw":122,"./XMLText":126}],121:[function(e,t,n){(function(){var n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n,r){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(n),r&&(this.value=this.stringify.insValue(r))}return r(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).processingInstruction(this)},t}(n)}).call(this)},{"./XMLNode":120}],122:[function(e,t,n){(function(){var n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(n)}return r(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).raw(this)},t}(n)}).call(this)},{"./XMLNode":120}],123:[function(e,t,n){(function(){var n,r,i,o,a,s,c,u,l,d,f,h,p,g=function(e,t){for(var n in t)m.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},m={}.hasOwnProperty;c=e("./XMLDeclaration"),u=e("./XMLDocType"),n=e("./XMLCData"),r=e("./XMLComment"),l=e("./XMLElement"),f=e("./XMLRaw"),h=e("./XMLText"),d=e("./XMLProcessingInstruction"),i=e("./XMLDTDAttList"),o=e("./XMLDTDElement"),a=e("./XMLDTDEntity"),s=e("./XMLDTDNotation"),p=e("./XMLWriterBase"),t.exports=function(e){function t(e,n){t.__super__.constructor.call(this,n),this.stream=e}return g(t,e),t.prototype.document=function(e){var t,n,i,o,a,s,l,f;for(s=e.children,n=0,o=s.length;n<o;n++)t=s[n],t.isLastRootNode=!1;for(e.children[e.children.length-1].isLastRootNode=!0,l=e.children,f=[],i=0,a=l.length;i<a;i++)switch(t=l[i],!1){case!(t instanceof c):f.push(this.declaration(t));break;case!(t instanceof u):f.push(this.docType(t));break;case!(t instanceof r):f.push(this.comment(t));break;case!(t instanceof d):f.push(this.processingInstruction(t));break;default:f.push(this.element(t))}return f},t.prototype.attribute=function(e){return this.stream.write(" "+e.name+'="'+e.value+'"')},t.prototype.cdata=function(e,t){return this.stream.write(this.space(t)+"<![CDATA["+e.text+"]]>"+this.endline(e))},t.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))},t.prototype.declaration=function(e,t){return this.stream.write(this.space(t)),this.stream.write('<?xml version="'+e.version+'"'),null!=e.encoding&&this.stream.write(' encoding="'+e.encoding+'"'),null!=e.standalone&&this.stream.write(' standalone="'+e.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(e))},t.prototype.docType=function(e,t){var c,u,l,f;if(t||(t=0),this.stream.write(this.space(t)),this.stream.write("<!DOCTYPE "+e.root().name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(e)),f=e.children,u=0,l=f.length;u<l;u++)switch(c=f[u],!1){case!(c instanceof i):this.dtdAttList(c,t+1);break;case!(c instanceof o):this.dtdElement(c,t+1);break;case!(c instanceof a):this.dtdEntity(c,t+1);break;case!(c instanceof s):this.dtdNotation(c,t+1);break;case!(c instanceof n):this.cdata(c,t+1);break;case!(c instanceof r):this.comment(c,t+1);break;case!(c instanceof d):this.processingInstruction(c,t+1);break;default:throw new Error("Unknown DTD node type: "+c.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(e))},t.prototype.element=function(e,t){var i,o,a,s,c,u,p,g;for(c in t||(t=0),g=this.space(t),this.stream.write(g+"<"+e.name),u=e.attributes,u)m.call(u,c)&&(i=u[c],this.attribute(i));if(0===e.children.length||e.children.every((function(e){return""===e.value})))this.allowEmpty?this.stream.write("></"+e.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===e.children.length&&null!=e.children[0].value)this.stream.write(">"),this.stream.write(e.children[0].value),this.stream.write("</"+e.name+">");else{for(this.stream.write(">"+this.newline),p=e.children,a=0,s=p.length;a<s;a++)switch(o=p[a],!1){case!(o instanceof n):this.cdata(o,t+1);break;case!(o instanceof r):this.comment(o,t+1);break;case!(o instanceof l):this.element(o,t+1);break;case!(o instanceof f):this.raw(o,t+1);break;case!(o instanceof h):this.text(o,t+1);break;case!(o instanceof d):this.processingInstruction(o,t+1);break;default:throw new Error("Unknown XML node type: "+o.constructor.name)}this.stream.write(g+"</"+e.name+">")}return this.stream.write(this.endline(e))},t.prototype.processingInstruction=function(e,t){return this.stream.write(this.space(t)+"<?"+e.target),e.value&&this.stream.write(" "+e.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(e))},t.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},t.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},t.prototype.dtdAttList=function(e,t){return this.stream.write(this.space(t)+"<!ATTLIST "+e.elementName+" "+e.attributeName+" "+e.attributeType),"#DEFAULT"!==e.defaultValueType&&this.stream.write(" "+e.defaultValueType),e.defaultValue&&this.stream.write(' "'+e.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},t.prototype.dtdElement=function(e,t){return this.stream.write(this.space(t)+"<!ELEMENT "+e.name+" "+e.value),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},t.prototype.dtdEntity=function(e,t){return this.stream.write(this.space(t)+"<!ENTITY"),e.pe&&this.stream.write(" %"),this.stream.write(" "+e.name),e.value?this.stream.write(' "'+e.value+'"'):(e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.nData&&this.stream.write(" NDATA "+e.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},t.prototype.dtdNotation=function(e,t){return this.stream.write(this.space(t)+"<!NOTATION "+e.name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.pubID?this.stream.write(' PUBLIC "'+e.pubID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},t.prototype.endline=function(e){return e.isLastRootNode?"":this.newline},t}(p)}).call(this)},{"./XMLCData":109,"./XMLComment":110,"./XMLDTDAttList":111,"./XMLDTDElement":112,"./XMLDTDEntity":113,"./XMLDTDNotation":114,"./XMLDeclaration":115,"./XMLDocType":116,"./XMLElement":119,"./XMLProcessingInstruction":121,"./XMLRaw":122,"./XMLText":126,"./XMLWriterBase":127}],124:[function(e,t,n){(function(){var n,r,i,o,a,s,c,u,l,d,f,h,p,g=function(e,t){for(var n in t)m.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},m={}.hasOwnProperty;c=e("./XMLDeclaration"),u=e("./XMLDocType"),n=e("./XMLCData"),r=e("./XMLComment"),l=e("./XMLElement"),f=e("./XMLRaw"),h=e("./XMLText"),d=e("./XMLProcessingInstruction"),i=e("./XMLDTDAttList"),o=e("./XMLDTDElement"),a=e("./XMLDTDEntity"),s=e("./XMLDTDNotation"),p=e("./XMLWriterBase"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e)}return g(t,e),t.prototype.document=function(e){var t,n,i,o,a;for(this.textispresent=!1,o="",a=e.children,n=0,i=a.length;n<i;n++)t=a[n],o+=function(){switch(!1){case!(t instanceof c):return this.declaration(t);case!(t instanceof u):return this.docType(t);case!(t instanceof r):return this.comment(t);case!(t instanceof d):return this.processingInstruction(t);default:return this.element(t,0)}}.call(this);return this.pretty&&o.slice(-this.newline.length)===this.newline&&(o=o.slice(0,-this.newline.length)),o},t.prototype.attribute=function(e){return" "+e.name+'="'+e.value+'"'},t.prototype.cdata=function(e,t){return this.space(t)+"<![CDATA["+e.text+"]]>"+this.newline},t.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline},t.prototype.declaration=function(e,t){var n;return n=this.space(t),n+='<?xml version="'+e.version+'"',null!=e.encoding&&(n+=' encoding="'+e.encoding+'"'),null!=e.standalone&&(n+=' standalone="'+e.standalone+'"'),n+=this.spacebeforeslash+"?>",n+=this.newline,n},t.prototype.docType=function(e,t){var c,u,l,f,h;if(t||(t=0),f=this.space(t),f+="<!DOCTYPE "+e.root().name,e.pubID&&e.sysID?f+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(f+=' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(f+=" [",f+=this.newline,h=e.children,u=0,l=h.length;u<l;u++)c=h[u],f+=function(){switch(!1){case!(c instanceof i):return this.dtdAttList(c,t+1);case!(c instanceof o):return this.dtdElement(c,t+1);case!(c instanceof a):return this.dtdEntity(c,t+1);case!(c instanceof s):return this.dtdNotation(c,t+1);case!(c instanceof n):return this.cdata(c,t+1);case!(c instanceof r):return this.comment(c,t+1);case!(c instanceof d):return this.processingInstruction(c,t+1);default:throw new Error("Unknown DTD node type: "+c.constructor.name)}}.call(this);f+="]"}return f+=this.spacebeforeslash+">",f+=this.newline,f},t.prototype.element=function(e,t){var i,o,a,s,c,u,p,g,v,b,y,x,_;for(p in t||(t=0),_=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),x=this.space(t),g="",g+=x+"<"+e.name,v=e.attributes,v)m.call(v,p)&&(i=v[p],g+=this.attribute(i));if(0===e.children.length||e.children.every((function(e){return""===e.value})))this.allowEmpty?g+="></"+e.name+">"+this.newline:g+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===e.children.length&&null!=e.children[0].value)g+=">",g+=e.children[0].value,g+="</"+e.name+">"+this.newline;else{if(this.dontprettytextnodes)for(b=e.children,a=0,c=b.length;a<c;a++)if(o=b[a],null!=o.value){this.textispresent++,_=!0;break}for(this.textispresent&&(this.newline="",this.pretty=!1,x=this.space(t)),g+=">"+this.newline,y=e.children,s=0,u=y.length;s<u;s++)o=y[s],g+=function(){switch(!1){case!(o instanceof n):return this.cdata(o,t+1);case!(o instanceof r):return this.comment(o,t+1);case!(o instanceof l):return this.element(o,t+1);case!(o instanceof f):return this.raw(o,t+1);case!(o instanceof h):return this.text(o,t+1);case!(o instanceof d):return this.processingInstruction(o,t+1);default:throw new Error("Unknown XML node type: "+o.constructor.name)}}.call(this);_&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),g+=x+"</"+e.name+">"+this.newline}return g},t.prototype.processingInstruction=function(e,t){var n;return n=this.space(t)+"<?"+e.target,e.value&&(n+=" "+e.value),n+=this.spacebeforeslash+"?>"+this.newline,n},t.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline},t.prototype.text=function(e,t){return this.space(t)+e.value+this.newline},t.prototype.dtdAttList=function(e,t){var n;return n=this.space(t)+"<!ATTLIST "+e.elementName+" "+e.attributeName+" "+e.attributeType,"#DEFAULT"!==e.defaultValueType&&(n+=" "+e.defaultValueType),e.defaultValue&&(n+=' "'+e.defaultValue+'"'),n+=this.spacebeforeslash+">"+this.newline,n},t.prototype.dtdElement=function(e,t){return this.space(t)+"<!ELEMENT "+e.name+" "+e.value+this.spacebeforeslash+">"+this.newline},t.prototype.dtdEntity=function(e,t){var n;return n=this.space(t)+"<!ENTITY",e.pe&&(n+=" %"),n+=" "+e.name,e.value?n+=' "'+e.value+'"':(e.pubID&&e.sysID?n+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(n+=' SYSTEM "'+e.sysID+'"'),e.nData&&(n+=" NDATA "+e.nData)),n+=this.spacebeforeslash+">"+this.newline,n},t.prototype.dtdNotation=function(e,t){var n;return n=this.space(t)+"<!NOTATION "+e.name,e.pubID&&e.sysID?n+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.pubID?n+=' PUBLIC "'+e.pubID+'"':e.sysID&&(n+=' SYSTEM "'+e.sysID+'"'),n+=this.spacebeforeslash+">"+this.newline,n},t.prototype.openNode=function(e,t){var n,r,i,o;if(t||(t=0),e instanceof l){for(r in i=this.space(t)+"<"+e.name,o=e.attributes,o)m.call(o,r)&&(n=o[r],i+=this.attribute(n));return i+=(e.children?">":"/>")+this.newline,i}return i=this.space(t)+"<!DOCTYPE "+e.rootNodeName,e.pubID&&e.sysID?i+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(i+=' SYSTEM "'+e.sysID+'"'),i+=(e.children?" [":">")+this.newline,i},t.prototype.closeNode=function(e,t){switch(t||(t=0),!1){case!(e instanceof l):return this.space(t)+"</"+e.name+">"+this.newline;case!(e instanceof u):return this.space(t)+"]>"+this.newline}},t}(p)}).call(this)},{"./XMLCData":109,"./XMLComment":110,"./XMLDTDAttList":111,"./XMLDTDElement":112,"./XMLDTDEntity":113,"./XMLDTDNotation":114,"./XMLDeclaration":115,"./XMLDocType":116,"./XMLElement":119,"./XMLProcessingInstruction":121,"./XMLRaw":122,"./XMLText":126,"./XMLWriterBase":127}],125:[function(e,t,n){(function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n={}.hasOwnProperty;t.exports=function(){function t(t){var r,i,o;for(r in this.assertLegalChar=e(this.assertLegalChar,this),t||(t={}),this.noDoubleEncoding=t.noDoubleEncoding,i=t.stringify||{},i)n.call(i,r)&&(o=i[r],this[r]=o)}return t.prototype.eleName=function(e){return e=""+e||"",this.assertLegalChar(e)},t.prototype.eleText=function(e){return e=""+e||"",this.assertLegalChar(this.elEscape(e))},t.prototype.cdata=function(e){return e=""+e||"",e=e.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(e)},t.prototype.comment=function(e){if(e=""+e||"",e.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},t.prototype.raw=function(e){return""+e||""},t.prototype.attName=function(e){return""+e||""},t.prototype.attValue=function(e){return e=""+e||"",this.attEscape(e)},t.prototype.insTarget=function(e){return""+e||""},t.prototype.insValue=function(e){if(e=""+e||"",e.match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return e},t.prototype.xmlVersion=function(e){if(e=""+e||"",!e.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},t.prototype.xmlEncoding=function(e){if(e=""+e||"",!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return e},t.prototype.xmlStandalone=function(e){return e?"yes":"no"},t.prototype.dtdPubID=function(e){return""+e||""},t.prototype.dtdSysID=function(e){return""+e||""},t.prototype.dtdElementValue=function(e){return""+e||""},t.prototype.dtdAttType=function(e){return""+e||""},t.prototype.dtdAttDefault=function(e){return null!=e?""+e||"":e},t.prototype.dtdEntityValue=function(e){return""+e||""},t.prototype.dtdNData=function(e){return""+e||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(e){var t;if(t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),t)throw new Error("Invalid character in string: "+e+" at index "+t.index);return e},t.prototype.elEscape=function(e){var t;return t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},t.prototype.attEscape=function(e){var t;return t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},t}()}).call(this)},{}],126:[function(e,t,n){(function(){var n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(n)}return r(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).text(this)},t}(n)}).call(this)},{"./XMLNode":120}],127:[function(e,t,n){(function(){var e={}.hasOwnProperty;t.exports=function(){function t(t){var n,r,i,o,a,s,c,u,l;for(n in t||(t={}),this.pretty=t.pretty||!1,this.allowEmpty=null!=(r=t.allowEmpty)&&r,this.pretty?(this.indent=null!=(i=t.indent)?i:"  ",this.newline=null!=(o=t.newline)?o:"\n",this.offset=null!=(a=t.offset)?a:0,this.dontprettytextnodes=null!=(s=t.dontprettytextnodes)?s:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=null!=(c=t.spacebeforeslash)?c:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,u=t.writer||{},u)e.call(u,n)&&(l=u[n],this[n]=l)}return t.prototype.set=function(t){var n,r,i;for(n in t||(t={}),"pretty"in t&&(this.pretty=t.pretty),"allowEmpty"in t&&(this.allowEmpty=t.allowEmpty),this.pretty?(this.indent="indent"in t?t.indent:"  ",this.newline="newline"in t?t.newline:"\n",this.offset="offset"in t?t.offset:0,this.dontprettytextnodes="dontprettytextnodes"in t?t.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in t?t.spacebeforeslash:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,r=t.writer||{},r)e.call(r,n)&&(i=r[n],this[n]=i);return this},t.prototype.space=function(e){var t;return this.pretty?(t=(e||0)+this.offset+1,t>0?new Array(t).join(this.indent):""):""},t}()}).call(this)},{}],128:[function(e,t,n){(function(){var n,r,i,o,a,s,c;c=e("./Utility"),a=c.assign,s=c.isFunction,n=e("./XMLDocument"),r=e("./XMLDocumentCB"),o=e("./XMLStringWriter"),i=e("./XMLStreamWriter"),t.exports.create=function(e,t,r,i){var o,s;if(null==e)throw new Error("Root element needs a name.");return i=a({},t,r,i),o=new n(i),s=o.element(e),i.headless||(o.declaration(i),null==i.pubID&&null==i.sysID||o.doctype(i)),s},t.exports.begin=function(e,t,i){var o;return s(e)&&(o=[e,t],t=o[0],i=o[1],e={}),t?new r(e,t,i):new n(e)},t.exports.stringWriter=function(e){return new o(e)},t.exports.streamWriter=function(e,t){return new i(e,t)}}).call(this)},{"./Utility":107,"./XMLDocument":117,"./XMLDocumentCB":118,"./XMLStreamWriter":123,"./XMLStringWriter":124}]},{},[21])(21)}))}).call(this,n("c8ba"))},"46b5":function(e,t){t.error=function(e){return new n(e)};var n=function(e){this.expected=e.expected,this.actual=e.actual,this._location=e.location};n.prototype.describe=function(){var e=this._location?this._location.describe()+":\n":"";return e+"Expected "+this.expected+"\nbut got "+this.actual},n.prototype.lineNumber=function(){return this._location.lineNumber()},n.prototype.characterNumber=function(){return this._location.characterNumber()}},"4bd0":function(e,t,n){n("a376")},"4bdc":function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e,t){e.fire("VisualBlocks",{state:t})},r=function(e,t,r){var i=e.dom;i.toggleClass(e.getBody(),"mce-visualblocks"),r.set(!r.get()),n(e,r.get())},i=function(e,t,n){e.addCommand("mceVisualBlocks",(function(){r(e,t,n)}))},o=function(e){return e.getParam("visualblocks_default_state",!1,"boolean")},a=function(e,t,n){e.on("PreviewFormats AfterPreviewFormats",(function(t){n.get()&&e.dom.toggleClass(e.getBody(),"mce-visualblocks","afterpreviewformats"===t.type)})),e.on("init",(function(){o(e)&&r(e,t,n)}))},s=function(e,t){return function(n){n.setActive(t.get());var r=function(e){return n.setActive(e.state)};return e.on("VisualBlocks",r),function(){return e.off("VisualBlocks",r)}}},c=function(e,t){var n=function(){return e.execCommand("mceVisualBlocks")};e.ui.registry.addToggleButton("visualblocks",{icon:"visualblocks",tooltip:"Show blocks",onAction:n,onSetup:s(e,t)}),e.ui.registry.addToggleMenuItem("visualblocks",{text:"Show blocks",icon:"visualblocks",onAction:n,onSetup:s(e,t)})};function u(){t.add("visualblocks",(function(t,n){var r=e(!1);i(t,n,r),c(t,r),a(t,n,r)}))}u()})()},"4e02":function(e,t,n){var r=n("3022"),i=(e.exports=function(e,t){var n={asString:function(){return e},range:function(n,r){return new i(e,t,n,r)}};return n},function(e,t,n,r){this._string=e,this._description=t,this._startIndex=n,this._endIndex=r});i.prototype.to=function(e){return new i(this._string,this._description,this._startIndex,e._endIndex)},i.prototype.describe=function(){var e=this._position(),t=this._description?this._description+"\n":"";return r.format("%sLine number: %s\nCharacter number: %s",t,e.lineNumber,e.characterNumber)},i.prototype.lineNumber=function(){return this._position().lineNumber},i.prototype.characterNumber=function(){return this._position().characterNumber},i.prototype._position=function(){var e=this,t=0,n=function(){return e._string.indexOf("\n",t)},r=1;while(-1!==n()&&n()<this._startIndex)t=n()+1,r+=1;var i=this._startIndex-t+1;return{lineNumber:r,characterNumber:i}}},"4ea8":function(e,t,n){n("cdd9")},5:function(e,t){},5076:function(e,t,n){e.exports=n.p+"img/base.a7c5bf48.png"},"50d7":function(e,t,n){(function(){var t,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=n("92e7"),e.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(n)}return r(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).raw(this)},t}(t)}).call(this)},51202:function(e,t,n){t.Parser=n("b36c").Parser,t.rules=n("ad74"),t.errors=n("46b5"),t.results=n("85d1"),t.StringSource=n("4e02"),t.Token=n("83da"),t.bottomUp=n("a88e"),t.RegexTokeniser=n("a6fb").RegexTokeniser,t.rule=function(e){var t;return function(n){return t||(t=e()),t(n)}}},5132:function(e,t,n){},"528d":function(e,t,n){(function(){var t,r,i=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=n("45f3").isObject,t=n("92e7"),e.exports=function(e){function t(e,n,i,o){var a;t.__super__.constructor.call(this,e),r(n)&&(a=n,n=a.version,i=a.encoding,o=a.standalone),n||(n="1.0"),this.version=this.stringify.xmlVersion(n),null!=i&&(this.encoding=this.stringify.xmlEncoding(i)),null!=o&&(this.standalone=this.stringify.xmlStandalone(o))}return i(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},t}(t)}).call(this)},"536e":function(e,t,n){(function(){var t,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=n("92e7"),e.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(n)}return r(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).cdata(this)},t}(t)}).call(this)},"54ad":function(e,t,n){var r=n("c46f");function i(e){return a("paragraph",e)}function o(e){return a("run",e)}function a(e,t){return s((function(n){return n.type===e?t(n):n}))}function s(e){return function t(n){if(n.children){var i=r.map(n.children,t);n=r.extend(n,{children:i})}return e(n)}}function c(e,t){return u(e).filter((function(e){return e.type===t}))}function u(e){var t=[];return l(e,(function(e){t.push(e)})),t}function l(e,t){e.children&&e.children.forEach((function(e){l(e,t),t(e)}))}t.paragraph=i,t.run=o,t._elements=s,t.getDescendantsOfType=c,t.getDescendants=u},"54dd":function(e,t,n){(function(){var t,r,i,o,a,s,c,u,l,d,f,h,p,g,m,v,b,y,x,_,w={}.hasOwnProperty;_=n("45f3"),y=_.isObject,b=_.isFunction,x=_.isPlainObject,v=_.getValue,d=n("b8ee"),r=n("536e"),i=n("8930"),h=n("50d7"),m=n("9d2f"),f=n("f016"),u=n("528d"),l=n("d7e3"),o=n("188f"),s=n("1585"),a=n("3b32"),c=n("b6e1"),t=n("2280"),g=n("5a61"),p=n("1f08"),e.exports=function(){function e(e,t,n){var r;this.name="?xml",e||(e={}),e.writer?x(e.writer)&&(r=e.writer,e.writer=new p(r)):e.writer=new p(e),this.options=e,this.writer=e.writer,this.stringify=new g(e),this.onDataCallback=t||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return e.prototype.node=function(e,t,n){var r,i;if(null==e)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(e));return this.openCurrent(),e=v(e),null===t&&null==n&&(r=[{},null],t=r[0],n=r[1]),null==t&&(t={}),t=v(t),y(t)||(i=[t,n],n=i[0],t=i[1]),this.currentNode=new d(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=n&&this.text(n),this},e.prototype.element=function(e,t,n){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(e,t,n)},e.prototype.attribute=function(e,n){var r,i;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(e));if(null!=e&&(e=v(e)),y(e))for(r in e)w.call(e,r)&&(i=e[r],this.attribute(r,i));else b(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.currentNode.attributes[e]=new t(this,e,n));return this},e.prototype.text=function(e){var t;return this.openCurrent(),t=new m(this,e),this.onData(this.writer.text(t,this.currentLevel+1),this.currentLevel+1),this},e.prototype.cdata=function(e){var t;return this.openCurrent(),t=new r(this,e),this.onData(this.writer.cdata(t,this.currentLevel+1),this.currentLevel+1),this},e.prototype.comment=function(e){var t;return this.openCurrent(),t=new i(this,e),this.onData(this.writer.comment(t,this.currentLevel+1),this.currentLevel+1),this},e.prototype.raw=function(e){var t;return this.openCurrent(),t=new h(this,e),this.onData(this.writer.raw(t,this.currentLevel+1),this.currentLevel+1),this},e.prototype.instruction=function(e,t){var n,r,i,o,a;if(this.openCurrent(),null!=e&&(e=v(e)),null!=t&&(t=v(t)),Array.isArray(e))for(n=0,o=e.length;n<o;n++)r=e[n],this.instruction(r);else if(y(e))for(r in e)w.call(e,r)&&(i=e[r],this.instruction(r,i));else b(t)&&(t=t.apply()),a=new f(this,e,t),this.onData(this.writer.processingInstruction(a,this.currentLevel+1),this.currentLevel+1);return this},e.prototype.declaration=function(e,t,n){var r;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return r=new u(this,e,t,n),this.onData(this.writer.declaration(r,this.currentLevel+1),this.currentLevel+1),this},e.prototype.doctype=function(e,t,n){if(this.openCurrent(),null==e)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new l(this,t,n),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},e.prototype.dtdElement=function(e,t){var n;return this.openCurrent(),n=new a(this,e,t),this.onData(this.writer.dtdElement(n,this.currentLevel+1),this.currentLevel+1),this},e.prototype.attList=function(e,t,n,r,i){var a;return this.openCurrent(),a=new o(this,e,t,n,r,i),this.onData(this.writer.dtdAttList(a,this.currentLevel+1),this.currentLevel+1),this},e.prototype.entity=function(e,t){var n;return this.openCurrent(),n=new s(this,!1,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1),this.currentLevel+1),this},e.prototype.pEntity=function(e,t){var n;return this.openCurrent(),n=new s(this,!0,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1),this.currentLevel+1),this},e.prototype.notation=function(e,t){var n;return this.openCurrent(),n=new c(this,e,t),this.onData(this.writer.dtdNotation(n,this.currentLevel+1),this.currentLevel+1),this},e.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},e.prototype.end=function(){while(this.currentLevel>=0)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(e){if(!e.isOpen)return!this.root&&0===this.currentLevel&&e instanceof d&&(this.root=e),this.onData(this.writer.openNode(e,this.currentLevel),this.currentLevel),e.isOpen=!0},e.prototype.closeNode=function(e){if(!e.isClosed)return this.onData(this.writer.closeNode(e,this.currentLevel),this.currentLevel),e.isClosed=!0},e.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(e,t,n){return this.node(e,t,n)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},e.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)},e.prototype.e=function(e,t,n){return this.element(e,t,n)},e.prototype.n=function(e,t,n){return this.node(e,t,n)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.att=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e}()}).call(this)},5580:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}];t.default=r},"57b1":function(e,t,n){var r=n("c46f"),i=n("ebf8"),o=n("a80f");t.read=s,t.readXmlFromZipFile=c;var a={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","urn:schemas-microsoft-com:vml":"v","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:office:word":"office-word"};function s(e){return o.readString(e,a).then((function(e){return l(e)[0]}))}function c(e,t){return e.exists(t)?e.read(t,"utf-8").then(u).then(s):i.resolve(null)}function u(e){return e.replace(/^\uFEFF/g,"")}function l(e){return"element"===e.type?"mc:AlternateContent"===e.name?e.first("mc:Fallback").children:(e.children=r.flatten(e.children.map(l,!0)),[e]):[e]}},"57c9":function(e,t,n){"use strict";e.exports=function(e,t,r,i,o){var a=n("6df9");a.isArray;function s(e){switch(e){case-2:return[];case-3:return{}}}function c(n){var r=this._promise=new e(t);n instanceof e&&r._propagateFrom(n,3),r._setOnCancel(this),this._values=n,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.inherits(c,o),c.prototype.length=function(){return this._length},c.prototype.promise=function(){return this._promise},c.prototype._init=function t(n,o){var c=r(this._values,this._promise);if(c instanceof e){c=c._target();var u=c._bitField;if(this._values=c,0===(50397184&u))return this._promise._setAsyncGuaranteed(),c._then(t,this._reject,void 0,this,o);if(0===(33554432&u))return 0!==(16777216&u)?this._reject(c._reason()):this._cancel();c=c._value()}if(c=a.asArray(c),null!==c)0!==c.length?this._iterate(c):-5===o?this._resolveEmptyArray():this._resolve(s(o));else{var l=i("expecting an array or an iterable object but got "+a.classString(c)).reason();this._promise._rejectCallback(l,!1)}},c.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,a=null,s=0;s<n;++s){var c=r(t[s],i);c instanceof e?(c=c._target(),a=c._bitField):a=null,o?null!==a&&c.suppressUnhandledRejections():null!==a?0===(50397184&a)?(c._proxy(this,s),this._values[s]=c):o=0!==(33554432&a)?this._promiseFulfilled(c._value(),s):0!==(16777216&a)?this._promiseRejected(c._reason(),s):this._promiseCancelled(s):o=this._promiseFulfilled(c,s)}o||i._setAsyncGuaranteed()},c.prototype._isResolved=function(){return null===this._values},c.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},c.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},c.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},c.prototype._promiseFulfilled=function(e,t){this._values[t]=e;var n=++this._totalResolved;return n>=this._length&&(this._resolve(this._values),!0)},c.prototype._promiseCancelled=function(){return this._cancel(),!0},c.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},c.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n<t.length;++n)t[n]instanceof e&&t[n].cancel()}},c.prototype.shouldCopyValues=function(){return!0},c.prototype.getActualLength=function(e){return e},c}},"5a61":function(e,t){(function(){var t=function(e,t){return function(){return e.apply(t,arguments)}},n={}.hasOwnProperty;e.exports=function(){function e(e){var r,i,o;for(r in this.assertLegalChar=t(this.assertLegalChar,this),e||(e={}),this.noDoubleEncoding=e.noDoubleEncoding,i=e.stringify||{},i)n.call(i,r)&&(o=i[r],this[r]=o)}return e.prototype.eleName=function(e){return e=""+e||"",this.assertLegalChar(e)},e.prototype.eleText=function(e){return e=""+e||"",this.assertLegalChar(this.elEscape(e))},e.prototype.cdata=function(e){return e=""+e||"",e=e.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(e)},e.prototype.comment=function(e){if(e=""+e||"",e.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},e.prototype.raw=function(e){return""+e||""},e.prototype.attName=function(e){return""+e||""},e.prototype.attValue=function(e){return e=""+e||"",this.attEscape(e)},e.prototype.insTarget=function(e){return""+e||""},e.prototype.insValue=function(e){if(e=""+e||"",e.match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return e},e.prototype.xmlVersion=function(e){if(e=""+e||"",!e.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},e.prototype.xmlEncoding=function(e){if(e=""+e||"",!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return e},e.prototype.xmlStandalone=function(e){return e?"yes":"no"},e.prototype.dtdPubID=function(e){return""+e||""},e.prototype.dtdSysID=function(e){return""+e||""},e.prototype.dtdElementValue=function(e){return""+e||""},e.prototype.dtdAttType=function(e){return""+e||""},e.prototype.dtdAttDefault=function(e){return null!=e?""+e||"":e},e.prototype.dtdEntityValue=function(e){return""+e||""},e.prototype.dtdNData=function(e){return""+e||""},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.assertLegalChar=function(e){var t;if(t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),t)throw new Error("Invalid character in string: "+e+" at index "+t.index);return e},e.prototype.elEscape=function(e){var t;return t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},e.prototype.attEscape=function(e){var t;return t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},e}()}).call(this)},"5b66":function(e,t,n){(function(t,n,r){var i;!function(t){e.exports=t()}((function(){return function e(t,n,r){function o(s,c){if(!n[s]){if(!t[s]){var u="function"==typeof i&&i;if(!c&&u)return i(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var d=n[s]={exports:{}};t[s][0].call(d.exports,(function(e){var n=t[s][1][e];return o(n||e)}),d,d.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,a,s,c,u,l=[],d=0,f=e.length,h=f,p="string"!==r.getTypeOf(e);d<e.length;)h=f-d,i=p?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,c=1<h?(15&n)<<2|i>>6:64,u=2<h?63&i:64,l.push(o.charAt(a)+o.charAt(s)+o.charAt(c)+o.charAt(u));return l.join("")},n.decode=function(e){var t,n,r,a,s,c,u=0,l=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&h--,e.charAt(e.length-2)===o.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|h):new Array(0|h);u<e.length;)t=o.indexOf(e.charAt(u++))<<2|(a=o.indexOf(e.charAt(u++)))>>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(u++)))>>2,r=(3&s)<<6|(c=o.indexOf(e.charAt(u++))),f[l++]=t,64!==s&&(f[l++]=n),64!==c&&(f[l++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function c(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(c,a),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},c.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c("Deflate",e)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,a,l){var d,f,h=e.file,p=e.compression,g=l!==s.utf8encode,m=o.transformTo("string",l(h.name)),v=o.transformTo("string",s.utf8encode(h.name)),b=h.comment,y=o.transformTo("string",l(b)),x=o.transformTo("string",s.utf8encode(b)),_=v.length!==h.name.length,w=x.length!==b.length,D="",C="",k="",T=h.dir,S=h.date,A={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(A.crc32=e.crc32,A.compressedSize=e.compressedSize,A.uncompressedSize=e.uncompressedSize);var E=0;t&&(E|=8),g||!_&&!w||(E|=2048);var U=0,O=0;T&&(U|=16),"UNIX"===a?(O=798,U|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(h.unixPermissions,T)):(O=20,U|=function(e){return 63&(e||0)}(h.dosPermissions)),d=S.getUTCHours(),d<<=6,d|=S.getUTCMinutes(),d<<=5,d|=S.getUTCSeconds()/2,f=S.getUTCFullYear()-1980,f<<=4,f|=S.getUTCMonth()+1,f<<=5,f|=S.getUTCDate(),_&&(C=r(1,1)+r(c(m),4)+v,D+="up"+r(C.length,2)+C),w&&(k=r(1,1)+r(c(y),4)+x,D+="uc"+r(k.length,2)+k);var F="";return F+="\n\0",F+=r(E,2),F+=p.magic,F+=r(d,2),F+=r(f,2),F+=r(A.crc32,4),F+=r(A.compressedSize,4),F+=r(A.uncompressedSize,4),F+=r(m.length,2),F+=r(D.length,2),{fileRecord:u.LOCAL_FILE_HEADER+F+m+D,dirRecord:u.CENTRAL_FILE_HEADER+r(O,2)+F+r(y.length,2)+"\0\0\0\0"+r(U,4)+r(i,4)+m+D+y}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),c=e("../crc32"),u=e("../signature");function l(e,t,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(l,a),l.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},l.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return u.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,a){var s=o.transformTo("string",a(i));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},l.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},l.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=l},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new i(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:c,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function u(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new a(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var o=0;o<r.length;o++)n.push(u(r[o]));return i.Promise.all(n)})).then((function(e){for(var i=e.shift(),o=i.files,a=0;a<o.length;a++){var s=o[a],c=s.fileNameStr,u=r.resolve(s.fileNameStr);n.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(u).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,n,r){"use strict";n.exports={isNode:"undefined"!=typeof t,newBufferFrom:function(e,n){if(t.from&&t.from!==Uint8Array.from)return t.from(e,n);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new t(e,n)},allocBuffer:function(e){if(t.alloc)return t.alloc(e);var n=new t(e);return n.fill(0),n},isBuffer:function(e){return t.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,i=o.getTypeOf(t),s=o.extend(n||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=g(e)),s.createFolders&&(r=p(e))&&m.call(this,r,!0);var d="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var v=null;v=t instanceof u||t instanceof a?t:f.isNode&&f.isStream(t)?new h(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var b=new l(e,v,s);this.files[e]=b}var i=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),c=e("./defaults"),u=e("./compressedObject"),l=e("./zipObject"),d=e("./generate"),f=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:c.createFolders,e=g(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(v(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=m.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=d.generateWorker(this,n,r)}catch(e){(t=new a("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new c(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function o(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,r),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,n,r){"use strict";var i=e("../utils"),o=e("./ConvertWorker"),a=e("./GenericWorker"),s=e("../base64"),c=e("../support"),u=e("../external"),l=null;if(c.nodestream)try{l=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,n){return new u.Promise((function(r,o){var a=[],c=e._internalType,u=e._outputType,l=e._mimeType;e.on("data",(function(e,t){a.push(e),n&&n(t)})).on("error",(function(e){a=[],o(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return s.encode(t);default:return i.transformTo(e,t)}}(u,function(e,n){var r,i=0,o=null,a=0;for(r=0;r<n.length;r++)a+=n[r].length;switch(e){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(o=new Uint8Array(a),r=0;r<n.length;r++)o.set(n[r],i),i+=n[r].length;return o;case"nodebuffer":return t.concat(n);default:throw new Error("concat : unsupported type '"+e+"'")}}(c,a),l);r(e)}catch(e){o(e)}a=[]})).resume()}))}function f(e,t,n){var r=t;switch(t){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=t,this._mimeType=n,i.checkSupport(r),this._worker=e.pipe(new o(r)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}f.prototype={accumulate:function(e){return d(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:"nodebuffer"!==this._outputType},e)}},n.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,n,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof t,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(i),r.blob=0===o.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function l(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,r,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),o=a=0;a<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,o,a=e.length,c=new Array(2*a);for(t=n=0;t<a;)if((i=e[t++])<128)c[n++]=i;else if(4<(o=s[i]))c[n++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<a;)i=i<<6|63&e[t++],o--;1<o?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(u,a),u.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),c=t;a!==t.length&&(i.uint8array?(c=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(c=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(l,a),l.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),a=e("./external");function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(t,r){n.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,n){var r=[],i=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,o)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function l(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return u.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=l;var f={};f.string={string:s,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,o.allocBuffer(e.length))}},f.array={string:l,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},f.arraybuffer={string:function(e){return l(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:l,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return o.newBufferFrom(e)}},f.nodebuffer={string:l,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return f[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var i=t[r];"."===i||""===i&&0!==r&&r!==t.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&o.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,s,u){return a.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var l=n.getTypeOf(t);return l?("arraybuffer"===l?t=n.transformTo("uint8array",t):"string"===l&&(u?t=i.decode(t):o&&!0!==s&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),c=e("./compressions"),u=e("./support");function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=l},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),c=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&r&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new c("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)r.prototype[u[d]]=l;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(l),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var c=new e.MessageChannel;c.port1.onmessage=l,n=function(){c.port2.postMessage(0)}}var u=[];function l(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var r=e("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function l(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(r){return o.reject(e,r)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=p((function(){t(i,r)}));"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==c?d(n,this.state===s?e:t,this.outcome):this.queue.push(new l(n,e,t)),n},l.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){o.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(f,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,c=-1,u=new this(i);++c<n;)l(e[c],c);return u;function l(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(u,a))}),(function(e){r||(r=!0,o.reject(u,e))}))}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a,s=-1,c=new this(i);++s<n;)a=e[s],t.resolve(a).then((function(e){r||(r=!0,o.resolve(c,e))}),(function(e){r||(r=!0,o.reject(c,e))}));return c}},{immediate:36}],38:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString,u=0,l=-1,d=0,f=8;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({level:l,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==u)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==u)throw new Error(a[n]);this._dict_set=!0}}function p(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(e,t){var n,a,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=r.deflate(s,a))&&n!==u)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==a||(this.onEnd(u),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=h,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),l=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,c,u,d,f,h=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=o.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(f="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===l.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,f)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(h.output,h.next_out),u=h.next_out-c,d=o.buf2string(h.output,c),h.next_out=u,h.avail_out=p-u,u&&i.arraySet(h.output,h.output,c,u,0),this.onData(d)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((0<h.avail_in||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,i,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),o=a=0;a<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,o,s=t||e.length,u=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)u[r++]=i;else if(4<(o=a[i]))u[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<s;)i=i<<6|63&e[n++],o--;1<o?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return c(u,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],44:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),c=e("./messages"),u=0,l=4,d=0,f=-2,h=-1,p=4,g=2,m=8,v=9,b=286,y=30,x=19,_=2*b+1,w=15,D=3,C=258,k=C+D+1,T=42,S=113,A=1,E=2,U=3,O=4;function F(e,t){return e.msg=c[t],t}function P(e){return(e<<1)-(4<e?9:0)}function R(e){for(var t=e.length;0<=--t;)e[t]=0}function N(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function M(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,N(e.strm)}function I(e,t){e.pending_buf[e.pending++]=t}function B(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function L(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-k?e.strstart-(e.w_size-k):0,u=e.window,l=e.w_mask,d=e.prev,f=e.strstart+C,h=u[o+a-1],p=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===p&&u[n+a-1]===h&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<f);if(r=C-(f-o),o=f-C,a<r){if(e.match_start=t,s<=(a=r))break;h=u[o+a-1],p=u[o+a]}}}while((t=d[t&l])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function z(e){var t,n,r,o,c,u,l,d,f,h,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-k)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);o+=p}if(0===e.strm.avail_in)break;if(u=e.strm,l=e.window,d=e.strstart+e.lookahead,f=o,h=void 0,h=u.avail_in,f<h&&(h=f),n=0===h?0:(u.avail_in-=h,i.arraySet(l,u.input,u.next_in,h,d),1===u.state.wrap?u.adler=a(u.adler,l,h,d):2===u.state.wrap&&(u.adler=s(u.adler,l,h,d)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=D)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+D-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<D)););}while(e.lookahead<k&&0!==e.strm.avail_in)}function W(e,t){for(var n,r;;){if(e.lookahead<k){if(z(e),e.lookahead<k&&t===u)return A;if(0===e.lookahead)break}if(n=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-k&&(e.match_length=L(e,n)),e.match_length>=D)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-D),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=D){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(M(e,!1),0===e.strm.avail_out))return A}return e.insert=e.strstart<D-1?e.strstart:D-1,t===l?(M(e,!0),0===e.strm.avail_out?U:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?A:E}function j(e,t){for(var n,r,i;;){if(e.lookahead<k){if(z(e),e.lookahead<k&&t===u)return A;if(0===e.lookahead)break}if(n=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=D-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-k&&(e.match_length=L(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===D&&4096<e.strstart-e.match_start)&&(e.match_length=D-1)),e.prev_length>=D&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-D,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-D),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=D-1,e.strstart++,r&&(M(e,!1),0===e.strm.avail_out))return A}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&M(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return A}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<D-1?e.strstart:D-1,t===l?(M(e,!0),0===e.strm.avail_out?U:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?A:E}function H(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function V(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*y+1)),this.bl_tree=new i.Buf16(2*(2*x+1)),R(this.dyn_ltree),R(this.dyn_dtree),R(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(w+1),this.heap=new i.Buf16(2*b+1),R(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*b+1),R(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function q(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=g,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?T:S,e.adler=2===t.wrap?0:1,t.last_flush=u,o._tr_init(t),d):F(e,f)}function $(e){var t=q(e);return t===d&&function(e){e.window_size=2*e.w_size,R(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=D-1,e.match_available=0,e.ins_h=0}(e.state),t}function G(e,t,n,r,o,a){if(!e)return f;var s=1;if(t===h&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),o<1||v<o||n!==m||r<8||15<r||t<0||9<t||a<0||p<a)return F(e,f);8===r&&(r=9);var c=new V;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+D-1)/D),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=n,$(e)}r=[new H(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),0===e.lookahead&&t===u)return A;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,M(e,!1),0===e.strm.avail_out))return A;if(e.strstart-e.block_start>=e.w_size-k&&(M(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===l?(M(e,!0),0===e.strm.avail_out?U:O):(e.strstart>e.block_start&&(M(e,!1),e.strm.avail_out),A)})),new H(4,4,8,4,W),new H(4,5,16,8,W),new H(4,6,32,32,W),new H(4,4,16,16,j),new H(8,16,32,32,j),new H(8,16,128,128,j),new H(8,32,128,256,j),new H(32,128,258,1024,j),new H(32,258,258,4096,j)],n.deflateInit=function(e,t){return G(e,t,m,15,8,0)},n.deflateInit2=G,n.deflateReset=$,n.deflateResetKeep=q,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,i,a,c;if(!e||!e.state||5<t||t<0)return e?F(e,f):f;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==l)return F(e,0===e.avail_out?-5:f);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===T)if(2===i.wrap)e.adler=0,I(i,31),I(i,139),I(i,8),i.gzhead?(I(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),I(i,255&i.gzhead.time),I(i,i.gzhead.time>>8&255),I(i,i.gzhead.time>>16&255),I(i,i.gzhead.time>>24&255),I(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),I(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(I(i,255&i.gzhead.extra.length),I(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(I(i,0),I(i,0),I(i,0),I(i,0),I(i,0),I(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),I(i,3),i.status=S);else{var h=m+(i.w_bits-8<<4)<<8;h|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=S,B(i,h),0!==i.strstart&&(B(i,e.adler>>>16),B(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),N(e),a=i.pending,i.pending!==i.pending_buf_size));)I(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),N(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,I(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),N(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,I(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&N(e),i.pending+2<=i.pending_buf_size&&(I(i,255&e.adler),I(i,e.adler>>8&255),e.adler=0,i.status=S)):i.status=S),0!==i.pending){if(N(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&P(t)<=P(n)&&t!==l)return F(e,-5);if(666===i.status&&0!==e.avail_in)return F(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==u&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(z(e),0===e.lookahead)){if(t===u)return A;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(M(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===l?(M(e,!0),0===e.strm.avail_out?U:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?A:E}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=C){if(z(e),e.lookahead<=C&&t===u)return A;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=D&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+C;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=C-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=D?(n=o._tr_tally(e,1,e.match_length-D),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(M(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===l?(M(e,!0),0===e.strm.avail_out?U:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?A:E}(i,t):r[i.level].func(i,t);if(p!==U&&p!==O||(i.status=666),p===A||p===U)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===E&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(R(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),N(e),0===e.avail_out))return i.last_flush=-1,d}return t!==l?d:i.wrap<=0?1:(2===i.wrap?(I(i,255&e.adler),I(i,e.adler>>8&255),I(i,e.adler>>16&255),I(i,e.adler>>24&255),I(i,255&e.total_in),I(i,e.total_in>>8&255),I(i,e.total_in>>16&255),I(i,e.total_in>>24&255)):(B(i,e.adler>>>16),B(i,65535&e.adler)),N(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==T&&69!==t&&73!==t&&91!==t&&103!==t&&t!==S&&666!==t?F(e,f):(e.state=null,t===S?F(e,-3):d):f},n.deflateSetDictionary=function(e,t){var n,r,o,s,c,u,l,h,p=t.length;if(!e||!e.state)return f;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==T||n.lookahead)return f;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(R(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,t,p-n.w_size,n.w_size,0),t=h,p=n.w_size),c=e.avail_in,u=e.next_in,l=e.input,e.avail_in=p,e.next_in=0,e.input=t,z(n);n.lookahead>=D;){for(r=n.strstart,o=n.lookahead-(D-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+D-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=D-1,z(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=D-1,n.match_available=0,e.next_in=u,e.input=l,e.avail_in=c,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,o,a,s,c,u,l,d,f,h,p,g,m,v,b,y,x,_,w,D,C,k,T;n=e.state,r=e.next_in,k=e.input,i=r+(e.avail_in-5),o=e.next_out,T=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=n.dmax,u=n.wsize,l=n.whave,d=n.wnext,f=n.window,h=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{p<15&&(h+=k[r++]<<p,p+=8,h+=k[r++]<<p,p+=8),y=g[h&v];t:for(;;){if(h>>>=x=y>>>24,p-=x,0===(x=y>>>16&255))T[o++]=65535&y;else{if(!(16&x)){if(0==(64&x)){y=g[(65535&y)+(h&(1<<x)-1)];continue t}if(32&x){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}_=65535&y,(x&=15)&&(p<x&&(h+=k[r++]<<p,p+=8),_+=h&(1<<x)-1,h>>>=x,p-=x),p<15&&(h+=k[r++]<<p,p+=8,h+=k[r++]<<p,p+=8),y=m[h&b];n:for(;;){if(h>>>=x=y>>>24,p-=x,!(16&(x=y>>>16&255))){if(0==(64&x)){y=m[(65535&y)+(h&(1<<x)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(w=65535&y,p<(x&=15)&&(h+=k[r++]<<p,(p+=8)<x&&(h+=k[r++]<<p,p+=8)),c<(w+=h&(1<<x)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=x,p-=x,(x=o-a)<w){if(l<(x=w-x)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(C=f,(D=0)===d){if(D+=u-x,x<_){for(_-=x;T[o++]=f[D++],--x;);D=o-w,C=T}}else if(d<x){if(D+=u+d-x,(x-=d)<_){for(_-=x;T[o++]=f[D++],--x;);if(D=0,d<_){for(_-=x=d;T[o++]=f[D++],--x;);D=o-w,C=T}}}else if(D+=d-x,x<_){for(_-=x;T[o++]=f[D++],--x;);D=o-w,C=T}for(;2<_;)T[o++]=C[D++],T[o++]=C[D++],T[o++]=C[D++],_-=3;_&&(T[o++]=C[D++],1<_&&(T[o++]=C[D++]))}else{for(D=o-w;T[o++]=T[D++],T[o++]=T[D++],T[o++]=T[D++],2<(_-=3););_&&(T[o++]=T[D++],1<_&&(T[o++]=T[D++]))}break}}break}}while(r<i&&o<s);r-=_=p>>3,h&=(1<<(p-=_<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=h,n.bits=p}},{}],49:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),c=1,u=2,l=0,d=-2,f=1,h=852,p=592;function g(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(h),t.distcode=t.distdyn=new r.Buf32(p),t.sane=1,t.back=-1,l):d}function b(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function y(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,b(e))):d}function x(e,t){var n,r;return e?(r=new m,(e.state=r).window=null,(n=y(e,t))!==l&&(e.state=null),n):d}var _,w,D=!0;function C(e){if(D){var t;for(_=new r.Buf32(512),w=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,w,0,e.work,{bits:5}),D=!1}e.lencode=_,e.lenbits=9,e.distcode=w,e.distbits=5}function k(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=b,n.inflateReset2=y,n.inflateResetKeep=v,n.inflateInit=function(e){return x(e,15)},n.inflateInit2=x,n.inflate=function(e,t){var n,h,p,m,v,b,y,x,_,w,D,T,S,A,E,U,O,F,P,R,N,M,I,B,L=0,z=new r.Buf8(4),W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(n=e.state).mode&&(n.mode=13),v=e.next_out,p=e.output,y=e.avail_out,m=e.next_in,h=e.input,b=e.avail_in,x=n.hold,_=n.bits,w=b,D=y,M=l;e:for(;;)switch(n.mode){case f:if(0===n.wrap){n.mode=13;break}for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(2&n.wrap&&35615===x){z[n.check=0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0),_=x=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&x)<<8)+(x>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&x)){e.msg="unknown compression method",n.mode=30;break}if(_-=4,N=8+(15&(x>>>=4)),0===n.wbits)n.wbits=N;else if(N>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<N,e.adler=n.check=1,n.mode=512&x?10:12,_=x=0;break;case 2:for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(n.flags=x,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=x>>8&1),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),_=x=0,n.mode=3;case 3:for(;_<32;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.head&&(n.head.time=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,z[2]=x>>>16&255,z[3]=x>>>24&255,n.check=o(n.check,z,4,0)),_=x=0,n.mode=4;case 4:for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.head&&(n.head.xflags=255&x,n.head.os=x>>8),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),_=x=0,n.mode=5;case 5:if(1024&n.flags){for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.length=x,n.head&&(n.head.extra_len=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),_=x=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(b<(T=n.length)&&(T=b),T&&(n.head&&(N=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,h,m,T,N)),512&n.flags&&(n.check=o(n.check,h,T,m)),b-=T,m+=T,n.length-=T),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===b)break e;for(T=0;N=h[m+T++],n.head&&N&&n.length<65536&&(n.head.name+=String.fromCharCode(N)),N&&T<b;);if(512&n.flags&&(n.check=o(n.check,h,T,m)),b-=T,m+=T,N)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===b)break e;for(T=0;N=h[m+T++],n.head&&N&&n.length<65536&&(n.head.comment+=String.fromCharCode(N)),N&&T<b;);if(512&n.flags&&(n.check=o(n.check,h,T,m)),b-=T,m+=T,N)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(x!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}_=x=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;_<32;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}e.adler=n.check=g(x),_=x=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=v,e.avail_out=y,e.next_in=m,e.avail_in=b,n.hold=x,n.bits=_,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){x>>>=7&_,_-=7&_,n.mode=27;break}for(;_<3;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}switch(n.last=1&x,_-=1,3&(x>>>=1)){case 0:n.mode=14;break;case 1:if(C(n),n.mode=20,6!==t)break;x>>>=2,_-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}x>>>=2,_-=2;break;case 14:for(x>>>=7&_,_-=7&_;_<32;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if((65535&x)!=(x>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&x,_=x=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(T=n.length){if(b<T&&(T=b),y<T&&(T=y),0===T)break e;r.arraySet(p,h,m,T,v),b-=T,m+=T,y-=T,v+=T,n.length-=T;break}n.mode=12;break;case 17:for(;_<14;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(n.nlen=257+(31&x),x>>>=5,_-=5,n.ndist=1+(31&x),x>>>=5,_-=5,n.ncode=4+(15&x),x>>>=4,_-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;_<3;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.lens[W[n.have++]]=7&x,x>>>=3,_-=3}for(;n.have<19;)n.lens[W[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},M=s(0,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,M){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;U=(L=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,O=65535&L,!((E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(O<16)x>>>=E,_-=E,n.lens[n.have++]=O;else{if(16===O){for(B=E+2;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(x>>>=E,_-=E,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}N=n.lens[n.have-1],T=3+(3&x),x>>>=2,_-=2}else if(17===O){for(B=E+3;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}_-=E,N=0,T=3+(7&(x>>>=E)),x>>>=3,_-=3}else{for(B=E+7;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}_-=E,N=0,T=11+(127&(x>>>=E)),x>>>=7,_-=7}if(n.have+T>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;T--;)n.lens[n.have++]=N}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,I={bits:n.lenbits},M=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,M){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},M=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,M){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=b&&258<=y){e.next_out=v,e.avail_out=y,e.next_in=m,e.avail_in=b,n.hold=x,n.bits=_,a(e,D),v=e.next_out,p=e.output,y=e.avail_out,m=e.next_in,h=e.input,b=e.avail_in,x=n.hold,_=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;U=(L=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,O=65535&L,!((E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(U&&0==(240&U)){for(F=E,P=U,R=O;U=(L=n.lencode[R+((x&(1<<F+P)-1)>>F)])>>>16&255,O=65535&L,!(F+(E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}x>>>=F,_-=F,n.back+=F}if(x>>>=E,_-=E,n.back+=E,n.length=O,0===U){n.mode=26;break}if(32&U){n.back=-1,n.mode=12;break}if(64&U){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&U,n.mode=22;case 22:if(n.extra){for(B=n.extra;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.length+=x&(1<<n.extra)-1,x>>>=n.extra,_-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;U=(L=n.distcode[x&(1<<n.distbits)-1])>>>16&255,O=65535&L,!((E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(0==(240&U)){for(F=E,P=U,R=O;U=(L=n.distcode[R+((x&(1<<F+P)-1)>>F)])>>>16&255,O=65535&L,!(F+(E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}x>>>=F,_-=F,n.back+=F}if(x>>>=E,_-=E,n.back+=E,64&U){e.msg="invalid distance code",n.mode=30;break}n.offset=O,n.extra=15&U,n.mode=24;case 24:if(n.extra){for(B=n.extra;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.offset+=x&(1<<n.extra)-1,x>>>=n.extra,_-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===y)break e;if(T=D-y,n.offset>T){if((T=n.offset-T)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}S=T>n.wnext?(T-=n.wnext,n.wsize-T):n.wnext-T,T>n.length&&(T=n.length),A=n.window}else A=p,S=v-n.offset,T=n.length;for(y<T&&(T=y),y-=T,n.length-=T;p[v++]=A[S++],--T;);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[v++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;_<32;){if(0===b)break e;b--,x|=h[m++]<<_,_+=8}if(D-=y,e.total_out+=D,n.total+=D,D&&(e.adler=n.check=n.flags?o(n.check,p,D,v-D):i(n.check,p,D,v-D)),D=y,(n.flags?x:g(x))!==n.check){e.msg="incorrect data check",n.mode=30;break}_=x=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;_<32;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(x!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}_=x=0}n.mode=29;case 29:M=1;break e;case 30:M=-3;break e;case 31:return-4;case 32:default:return d}return e.next_out=v,e.avail_out=y,e.next_in=m,e.avail_in=b,n.hold=x,n.bits=_,(n.wsize||D!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&k(e,e.output,e.next_out,D-e.avail_out)?(n.mode=31,-4):(w-=e.avail_in,D-=e.avail_out,e.total_in+=w,e.total_out+=D,n.total+=D,n.wrap&&D&&(e.adler=n.check=n.flags?o(n.check,p,D,e.next_out-D):i(n.check,p,D,e.next_out-D)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===D||4===t)&&M===l&&(M=-5),M)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,l},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?d:((n.head=t).done=!1,l):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?d:11===n.mode&&i(1,t,r,0)!==n.check?-3:k(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,l):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,u,l,d,f){var h,p,g,m,v,b,y,x,_,w=f.bits,D=0,C=0,k=0,T=0,S=0,A=0,E=0,U=0,O=0,F=0,P=null,R=0,N=new r.Buf16(16),M=new r.Buf16(16),I=null,B=0;for(D=0;D<=15;D++)N[D]=0;for(C=0;C<c;C++)N[t[n+C]]++;for(S=w,T=15;1<=T&&0===N[T];T--);if(T<S&&(S=T),0===T)return u[l++]=20971520,u[l++]=20971520,f.bits=1,0;for(k=1;k<T&&0===N[k];k++);for(S<k&&(S=k),D=U=1;D<=15;D++)if(U<<=1,(U-=N[D])<0)return-1;if(0<U&&(0===e||1!==T))return-1;for(M[1]=0,D=1;D<15;D++)M[D+1]=M[D]+N[D];for(C=0;C<c;C++)0!==t[n+C]&&(d[M[t[n+C]]++]=C);if(b=0===e?(P=I=d,19):1===e?(P=i,R-=257,I=o,B-=257,256):(P=a,I=s,-1),D=k,v=l,E=C=F=0,g=-1,m=(O=1<<(A=S))-1,1===e&&852<O||2===e&&592<O)return 1;for(;;){for(y=D-E,_=d[C]<b?(x=0,d[C]):d[C]>b?(x=I[B+d[C]],P[R+d[C]]):(x=96,0),h=1<<D-E,k=p=1<<A;u[v+(F>>E)+(p-=h)]=y<<24|x<<16|_|0,0!==p;);for(h=1<<D-1;F&h;)h>>=1;if(0!==h?(F&=h-1,F+=h):F=0,C++,0==--N[D]){if(D===T)break;D=t[n+d[C]]}if(S<D&&(F&m)!==g){for(0===E&&(E=S),v+=k,U=1<<(A=D-E);A+E<T&&!((U-=N[A+E])<=0);)A++,U<<=1;if(O+=1<<A,1===e&&852<O||2===e&&592<O)return 1;u[g=F&m]=S<<24|A<<16|v-l|0}}return 0!==F&&(u[v+F]=D-E<<24|64<<16|0),f.bits=S,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){"use strict";var r=e("../utils/common"),i=0,o=1;function a(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,u=256,l=u+1+c,d=30,f=19,h=2*l+1,p=15,g=16,m=7,v=256,b=16,y=17,x=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(l+2));a(k);var T=new Array(2*d);a(T);var S=new Array(512);a(S);var A=new Array(256);a(A);var E=new Array(c);a(E);var U,O,F,P=new Array(d);function R(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function N(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function M(e){return e<256?S[e]:S[256+(e>>>7)]}function I(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function B(e,t,n){e.bi_valid>g-n?(e.bi_buf|=t<<e.bi_valid&65535,I(e,e.bi_buf),e.bi_buf=t>>g-e.bi_valid,e.bi_valid+=n-g):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function L(e,t,n){B(e,n[2*t],n[2*t+1])}function z(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function W(e,t,n){var r,i,o=new Array(p+1),a=0;for(r=1;r<=p;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=z(o[s]++,s))}}function j(e){var t;for(t=0;t<l;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function H(e){8<e.bi_valid?I(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function V(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function q(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&V(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!V(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function $(e,t,n){var r,i,o,a,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?L(e,i,t):(L(e,(o=A[i])+u+1,t),0!==(a=_[o])&&B(e,i-=E[o],a),L(e,o=M(--r),n),0!==(a=w[o])&&B(e,r-=P[o],a)),s<e.last_lit;);L(e,v,t)}function G(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=h,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)q(e,o,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],q(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,q(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,c=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,g=t.stat_desc.extra_base,m=t.stat_desc.max_length,v=0;for(o=0;o<=p;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<h;n++)m<(o=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(o=m,v++),c[2*r+1]=o,u<r||(e.bl_count[o]++,a=0,g<=r&&(a=f[r-g]),s=c[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(l[2*r+1]+a)));if(0!==v){do{for(o=m-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[m]--,v-=2}while(0<v);for(o=m;0!==o;o--)for(r=e.bl_count[o];0!==r;)u<(i=e.heap[--n])||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(e,t),W(o,u,e.bl_count)}function X(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<c&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*b]++):s<=10?e.bl_tree[2*y]++:e.bl_tree[2*x]++,o=i,u=(s=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4))}function Y(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<c&&i===a)){if(s<u)for(;L(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(L(e,i,e.bl_tree),s--),L(e,b,e.bl_tree),B(e,s-3,2)):s<=10?(L(e,y,e.bl_tree),B(e,s-3,3)):(L(e,x,e.bl_tree),B(e,s-11,7));o=i,u=(s=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4)}}a(P);var K=!1;function Z(e,t,n,i){B(e,(s<<1)+(i?1:0),3),function(e,t,n,i){H(e),i&&(I(e,n),I(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){K||(function(){var e,t,n,r,i,o=new Array(p+1);for(r=n=0;r<c-1;r++)for(E[r]=n,e=0;e<1<<_[r];e++)A[n++]=r;for(A[n-1]=r,r=i=0;r<16;r++)for(P[r]=i,e=0;e<1<<w[r];e++)S[i++]=r;for(i>>=7;r<d;r++)for(P[r]=i<<7,e=0;e<1<<w[r]-7;e++)S[256+i++]=r;for(t=0;t<=p;t++)o[t]=0;for(e=0;e<=143;)k[2*e+1]=8,e++,o[8]++;for(;e<=255;)k[2*e+1]=9,e++,o[9]++;for(;e<=279;)k[2*e+1]=7,e++,o[7]++;for(;e<=287;)k[2*e+1]=8,e++,o[8]++;for(W(k,l+1,o),e=0;e<d;e++)T[2*e+1]=5,T[2*e]=z(e,5);U=new R(k,_,u+1,l,p),O=new R(T,w,0,d,p),F=new R(new Array(0),D,0,f,m)}(),K=!0),e.l_desc=new N(e.dyn_ltree,U),e.d_desc=new N(e.dyn_dtree,O),e.bl_desc=new N(e.bl_tree,F),e.bi_buf=0,e.bi_valid=0,j(e)},n._tr_stored_block=Z,n._tr_flush_block=function(e,t,n,r){var a,s,c=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t<u;t++)if(0!==e.dyn_ltree[2*t])return o;return i}(e)),G(e,e.l_desc),G(e,e.d_desc),c=function(e){var t;for(X(e,e.dyn_ltree,e.l_desc.max_code),X(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=f-1;3<=t&&0===e.bl_tree[2*C[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==t?Z(e,t,n,r):4===e.strategy||s===a?(B(e,2+(r?1:0),3),$(e,k,T)):(B(e,4+(r?1:0),3),function(e,t,n,r){var i;for(B(e,t-257,5),B(e,n-1,5),B(e,r-4,4),i=0;i<r;i++)B(e,e.bl_tree[2*C[i]+1],3);Y(e,e.dyn_ltree,t-1),Y(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),$(e,e.dyn_ltree,e.dyn_dtree)),j(e),r&&H(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(A[n]+u+1)]++,e.dyn_dtree[2*M(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){B(e,2,3),L(e,v,k),function(e){16===e.bi_valid?(I(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,i){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,i,o,a,s=1,c={},u=!1,l=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,n="[object process]"==={}.toString.call(e.process)?function(e){r.nextTick((function(){h(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,function(e){var t=l.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(h,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return c[s]=i,n(s),s++},d.clearImmediate=f}function f(e){delete c[e]}function h(e){if(u)setTimeout(h,0,e);else{var n=c[e];if(n){u=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{f(e),u=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))}).call(this,n("b639").Buffer,n("c8ba"),n("4362"))},"5b6e":function(e,t,n){e.exports=n.p+"img/send.61e12a51.svg"},"5c59":function(e,t,n){t.readOptions=a;var r=n("c46f"),i=t._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh"],o=t._standardOptions={transformDocument:c,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function a(e){return e=e||{},r.extend({},o,e,{customStyleMap:s(e.styleMap),readStyleMap:function(){var e=this.customStyleMap;return this.includeEmbeddedStyleMap&&(e=e.concat(s(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(e=e.concat(i)),e}})}function s(e){return e?r.isString(e)?e.split("\n").map((function(e){return e.trim()})).filter((function(e){return""!==e&&"#"!==e.charAt(0)})):e:[]}function c(e){return e}},"5ddd":function(e,t,n){var r=n("803c");function i(e,t){t.forEach((function(t){o(e,t)}))}function o(e,t){a[t.type](e,t)}t.freshElement=r.freshElement,t.nonFreshElement=r.nonFreshElement,t.elementWithTag=r.elementWithTag,t.text=r.text,t.forceWrite=r.forceWrite,t.simplify=n("3a5a");var a={element:s,text:c,forceWrite:function(){}};function s(e,t){r.isVoidElement(t)?e.selfClosing(t.tag.tagName,t.tag.attributes):(e.open(t.tag.tagName,t.tag.attributes),i(e,t.children),e.close(t.tag.tagName))}function c(e,t){e.text(t.value)}t.write=i},"5f39":function(e,t,n){},6:function(e,t){},"60c4":function(e,t,n){var r=n("51202"),i=r.RegexTokeniser;t.tokenise=a;var o="'((?:\\\\.|[^'])*)";function a(e){var t="(?:[a-zA-Z\\-_]|\\\\.)",n=new i([{name:"identifier",regex:new RegExp("("+t+"(?:"+t+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(o+"'")},{name:"unterminated-string",regex:new RegExp(o)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return n.tokenise(e)}},"62e5":function(e,t,n){n("2519")},6390:function(e,t,n){var r=n("ebf8"),i=n("c46f"),o=n("e7f5"),a=n("d688"),s=a.Element;t.readString=u;var c=o.Node;function u(e,t){t=t||{};try{var n=o.parseFromString(e,"text/xml")}catch(f){return r.reject(f)}if("parsererror"===n.documentElement.tagName)return r.resolve(new Error(n.documentElement.textContent));function u(e){switch(e.nodeType){case c.ELEMENT_NODE:return l(e);case c.TEXT_NODE:return a.text(e.nodeValue)}}function l(e){var t=d(e),n=[];i.forEach(e.childNodes,(function(e){var t=u(e);t&&n.push(t)}));var r={};return i.forEach(e.attributes,(function(e){r[d(e)]=e.value})),new s(t,r,n)}function d(e){if(e.namespaceURI){var n,r=t[e.namespaceURI];return n=r?r+":":"{"+e.namespaceURI+"}",n+e.localName}return e.localName}return r.resolve(u(n.documentElement))}},"63b6":function(e,t,n){"use strict";n("5132")},"64bd":function(e,t,n){var r=n("9d83"),i=n("03e1").Result;function o(e,t){function n(t){return i.combine(t.getElementsByTagName("w:"+e).filter(o).map(a))}function o(e){var t=e.attributes["w:type"];return"continuationSeparator"!==t&&"separator"!==t}function a(n){var i=n.attributes["w:id"];return t.readXmlElements(n.children).map((function(t){return r.Note({noteType:e,noteId:i,body:t})}))}return n}t.createFootnotesReader=o.bind(this,"footnote"),t.createEndnotesReader=o.bind(this,"endnote")},"64d8":function(e,t,n){n("ef1f")},6602:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrap"},[n("div",{staticClass:"main"},[n("div",{staticClass:"title"},[e._v("我的知识库")]),n("div",{staticClass:"content"},[n("div",{staticClass:"mian_box create_base",on:{click:function(t){return t.stopPropagation(),e.showModal.apply(null,arguments)}}},[e._m(0),e._m(1)]),e._l(e.base_list,(function(t,r){return n("div",{staticClass:"mian_box",on:{click:function(n){return e.goDetail(t.id)}}},[e._m(2,!0),n("div",{staticClass:"main_box_content"},[n("div",[n("span",{staticStyle:{"font-size":"15px","font-weight":"600"}},[e._v(e._s(t.name))])]),n("div",[e._v("文件数:"+e._s(t.file_num))]),n("div",[n("span",{staticStyle:{"font-size":"12px",color:"#ccc"}},[e._v(e._s(t.created_at))])])]),n("div",{staticClass:"delete_base"},[n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link",on:{click:function(n){return e.goDetail(t.id)}}},[e._v(" 管理 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{on:{click:function(n){return e.send_edit(t.know_uid)}}},[e._v("修改")])]),n("a-menu-item",[n("a",{on:{click:function(n){return n.stopPropagation(),e.auth_user(t.id)}}},[e._v("授权用户")])]),n("a-menu-item",[n("a",{on:{click:function(n){return n.stopPropagation(),e.is_delete(t.id)}}},[e._v("删除")])])],1)],1)],1),n("a-modal",{attrs:{title:"授权给用户使用",okText:"确认",cancelText:"取消"},on:{ok:e.handleOk2,cancel:e.handleCancel2},model:{value:e.del_base_box,callback:function(t){e.del_base_box=t},expression:"del_base_box"}},[n("p",{staticStyle:{color:"#1890ff"}},[e._v("确认后该用户将被允许使用这个知识库")]),n("a-input",{attrs:{placeholder:"请输入用户手机号"},model:{value:e.auth_phone,callback:function(t){e.auth_phone=t},expression:"auth_phone"}}),n("p",{staticStyle:{"margin-top":"20px",color:"#1890ff"}},[e._v("历史授权记录")]),n("div",{staticStyle:{display:"flex","justify-content":"left","flex-wrap":"wrap"}},e._l(e.shouquanlist,(function(t,r){return n("div",{staticClass:"sqcss"},[e._v(e._s(t.phone)),n("a",{staticStyle:{color:"red","margin-left":"10px"},attrs:{href:"#"},on:{click:function(n){return e.listdeletes(t.id)}}},[e._v("删除")])])})),0)],1)],1)}))],2),n("a-modal",{attrs:{title:"上传文件",visible:e.visible,"confirm-loading":e.confirmLoading,okText:"确认",cancelText:"取消"},on:{ok:function(t){return e.handleOk()},cancel:e.handleCancel}},[n("div",{staticClass:"knowledge_form"},[n("div",[n("div",{staticClass:"form_box"},[n("a-upload-dragger",{attrs:{name:"file",multiple:!1,action:"/addons/chatgpt/xfmlb/basefile_upload2",headers:e.headers,accept:".pdf,.docx,.txt",beforeUpload:e.beforeUpload},on:{change:e.handleChange2}},[n("p",{staticClass:"ant-upload-drag-icon"},[n("a-icon",{attrs:{type:"inbox"}})],1),n("p",{staticClass:"ant-upload-text"},[e._v(" 请先上传单个文档构建知识库 ")]),n("p",{staticClass:"ant-upload-hint"},[e._v(" 支持pdf,docx,txt等格式的文档，单文件不超过20MB/100万字 ")])])],1),n("div",{staticClass:"form_box"},[n("div",[e._v("知识库名称")]),n("a-input",{attrs:{placeholder:"请输入知识库名称"},model:{value:e.k_name,callback:function(t){e.k_name=t},expression:"k_name"}})],1),n("span",{staticStyle:{color:"red"}},[e._v("*提示：使用AI知识库功能需"),n("a",{attrs:{href:"/#/recharge?tabsId=2",target:"_blank"}},[e._v("开通企业会员")])])])])]),n("div",{staticClass:"title"},[e._v("我被授权的知识库")]),n("div",{staticClass:"content"},e._l(e.auth_base_list,(function(t,r){return n("div",{staticClass:"mian_box auth_box",on:{click:function(n){return e.goDetail(t.id)}}},[e._m(3,!0),n("div",{staticClass:"main_box_content"},[n("div",[n("span",{staticStyle:{"font-size":"15px","font-weight":"600"}},[e._v(e._s(t.name))])]),n("div",[e._v("文件数:"+e._s(t.file_num)),n("span",{staticStyle:{"background-color":"azure","border-radius":"25px",padding:"5px 15px",color:"#1890ff","margin-left":"60px"}},[e._v("使用")])]),n("div",[n("span",{staticStyle:{"font-size":"12px",color:"#ccc"}},[e._v(e._s(t.created_at))])])])])})),0),e.auth_base_list.length<1?n("div",[n("a-empty",{attrs:{description:"暂无数据"}})],1):e._e()],1)])},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"main_box_icon"},[r("img",{attrs:{src:n("055e")}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"main_box_content"},[n("div",{staticStyle:{color:"#1890ff"}},[e._v("创建知识库")]),n("div",[e._v("新建空白知识库，上传数据")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"main_box_icon"},[r("img",{attrs:{src:n("5076")}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"main_box_icon"},[r("img",{attrs:{src:n("5076")}})])}],o=n("2f62"),a={data(){return{headers:{authorization:"authorization-text",Token:""},shouquanlist:[],visible:!1,confirmLoading:!1,del_base_box:!1,k_name:"",base_id:0,base_list:[],auth_base_list:[],auth_phone:"",auth_base_id:""}},created(){this.getBase(),this.getuserBase()},computed:{...Object(o["c"])("user",["token","userInfo"]),...Object(o["e"])("app",["sign"])},methods:{...Object(o["b"])("user",["getUserInfo","getStatisticInfo"]),goDetail(e){this.$router.push({name:"KnowledgeDetail",params:{id:e}})},listdeletes(e){this.$http("role.listdeletes",{id:e}).then(e=>{1==e.code&&(this.$message.success("删除授权成功"),this.shouquanlist=e.data)})},handleChange2(e){e.file.status,"done"===e.file.status?(this.base_id=this.base_id+","+e.file.response.data,1==e.file.response.code?this.$message.success(e.file.name+" 文件上传成功"):this.$message.error(e.file.response.msg)):"error"===e.file.status&&this.$message.error(e.file.name+" 文件上传失败")},beforeUpload(e,t){this.headers.Token=this.token;const n=e.size/1024/1024<20;if(!n)return this.$message.error(e.name+"文件大小不能超过20M"),!1},showModal(){this.visible=!0},is_delete(e){console.log(this);const t=this;this.$confirm({title:"删除知识库",content:"是否确认删除",okText:"确认",cancelText:"取消",onOk(){t.$http("role.del_base",{id:e}).then(e=>{1==e.code&&(t.base_list=e.data,this.$message.success("知识库删除成功"))})},onCancel(){}})},auth_user(e){this.del_base_box=!0,this.auth_base_id=e,this.getshouquanlist(e)},handleOk(){this.confirmLoading=!0,this.$http("role.create_base",{name:this.k_name,file_id:this.base_id}).then(e=>{1==e.code&&(this.visible=!1,this.confirmLoading=!1,location.reload())})},handleCancel(e){this.visible=!1},handleOk2(){this.del_base_box=!1,this.$http("role.auth_user",{id:this.auth_base_id,phone:this.auth_phone}).then(e=>{1==e.code&&(this.getshouquanlist(this.auth_base_id),this.$message.success(e.msg))})},handleCancel2(e){this.visible=!1},getBase(){this.$http("role.get_base").then(e=>{1==e.code&&(this.base_list=e.data)})},getshouquanlist(e){this.$http("role.get_shouquanlist",{id:e}).then(e=>{1==e.code&&(this.shouquanlist=e.data)})},getuserBase(){this.$http("role.get_base_user").then(e=>{1==e.code&&(this.auth_base_list=e.data)})}}},s=a,c=(n("9899"),n("2877")),u=Object(c["a"])(s,r,i,!1,null,"32ed95b4",null);t["default"]=u.exports},"667d":function(e,t,n){"use strict";e.exports=function(e,t){var r={},i=n("6df9"),o=n("33cb"),a=i.withAppended,s=i.maybeWrapAsError,c=i.canEvaluate,u=n("8d16").TypeError,l="Async",d={__isPromisified__:!0},f=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],h=new RegExp("^(?:"+f.join("|")+")$"),p=function(e){return i.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e};function g(e){return!h.test(e)}function m(e){try{return!0===e.__isPromisified__}catch(t){return!1}}function v(e,t,n){var r=i.getDataPropertyOrDefault(e,t+n,d);return!!r&&m(r)}function b(e,t,n){for(var r=0;r<e.length;r+=2){var i=e[r];if(n.test(i))for(var o=i.replace(n,""),a=0;a<e.length;a+=2)if(e[a]===o)throw new u("Cannot promisify an API that has normal methods with '%s'-suffix\n\n    See http://goo.gl/MqrFmX\n".replace("%s",t))}}function y(e,t,n,r){for(var o=i.inheritedDataKeys(e),a=[],s=0;s<o.length;++s){var c=o[s],u=e[c],l=r===p||p(c,u,e);"function"!==typeof u||m(u)||v(e,c,t)||!r(c,u,e,l)||a.push(c,u)}return b(a,t,n),a}var x,_=function(e){return e.replace(/([$])/,"\\$")},w=function(e){for(var t=[e],n=Math.max(0,e-1-3),r=e-1;r>=n;--r)t.push(r);for(r=e+1;r<=3;++r)t.push(r);return t},D=function(e){return i.filledRange(e,"_arg","")},C=function(e){return i.filledRange(Math.max(e,3),"_arg","")},k=function(e){return"number"===typeof e.length?Math.max(Math.min(e.length,1024),0):0};function T(n,c,u,l,d,f){var h=function(){return this}(),p=n;function g(){var i=c;c===r&&(i=this);var u=new e(t);u._captureStackTrace();var l="string"===typeof p&&this!==h?this[p]:n,d=o(u,f);try{l.apply(i,a(arguments,d))}catch(g){u._rejectCallback(s(g),!0,!0)}return u._isFateSealed()||u._setAsyncGuaranteed(),u}return"string"===typeof p&&(n=l),i.notEnumerableProp(g,"__isPromisified__",!0),g}x=function(n,c,u,l,d,f){var h=Math.max(0,k(l)-1),p=w(h),g="string"===typeof n||c===r;function m(e){var t,n=D(e).join(", "),r=e>0?", ":"";return t=g?"ret = callback.call(this, {{args}}, nodeback); break;\n":void 0===c?"ret = callback({{args}}, nodeback); break;\n":"ret = callback.call(receiver, {{args}}, nodeback); break;\n",t.replace("{{args}}",n).replace(", ",r)}function v(){for(var e="",t=0;t<p.length;++t)e+="case "+p[t]+":"+m(p[t]);return e+="                                                             \n        default:                                                             \n            var args = new Array(len + 1);                                   \n            var i = 0;                                                       \n            for (var i = 0; i < len; ++i) {                                  \n               args[i] = arguments[i];                                       \n            }                                                                \n            args[i] = nodeback;                                              \n            [CodeForCall]                                                    \n            break;                                                           \n        ".replace("[CodeForCall]",g?"ret = callback.apply(this, args);\n":"ret = callback.apply(receiver, args);\n"),e}var b="string"===typeof n?"this != null ? this['"+n+"'] : fn":"fn",y="'use strict';                                                \n        var ret = function (Parameters) {                                    \n            'use strict';                                                    \n            var len = arguments.length;                                      \n            var promise = new Promise(INTERNAL);                             \n            promise._captureStackTrace();                                    \n            var nodeback = nodebackForPromise(promise, "+f+");   \n            var ret;                                                         \n            var callback = tryCatch([GetFunctionCode]);                      \n            switch(len) {                                                    \n                [CodeForSwitchCase]                                          \n            }                                                                \n            if (ret === errorObj) {                                          \n                promise._rejectCallback(maybeWrapAsError(ret.e), true, true);\n            }                                                                \n            if (!promise._isFateSealed()) promise._setAsyncGuaranteed();     \n            return promise;                                                  \n        };                                                                   \n        notEnumerableProp(ret, '__isPromisified__', true);                   \n        return ret;                                                          \n    ".replace("[CodeForSwitchCase]",v()).replace("[GetFunctionCode]",b);return y=y.replace("Parameters",C(h)),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",y)(e,l,c,a,s,o,i.tryCatch,i.errorObj,i.notEnumerableProp,t)};var S=c?x:T;function A(e,t,n,o,a){for(var s=new RegExp(_(t)+"$"),c=y(e,t,s,n),u=0,l=c.length;u<l;u+=2){var d=c[u],f=c[u+1],h=d+t;if(o===S)e[h]=S(d,r,d,f,t,a);else{var p=o(f,(function(){return S(d,r,d,f,t,a)}));i.notEnumerableProp(p,"__isPromisified__",!0),e[h]=p}}return i.toFastProperties(e),e}function E(e,t,n){return S(e,t,void 0,e,null,n)}e.promisify=function(e,t){if("function"!==typeof e)throw new u("expecting a function but got "+i.classString(e));if(m(e))return e;t=Object(t);var n=void 0===t.context?r:t.context,o=!!t.multiArgs,a=E(e,n,o);return i.copyDescriptors(e,a,g),a},e.promisifyAll=function(e,t){if("function"!==typeof e&&"object"!==typeof e)throw new u("the target of promisifyAll must be an object or a function\n\n    See http://goo.gl/MqrFmX\n");t=Object(t);var n=!!t.multiArgs,r=t.suffix;"string"!==typeof r&&(r=l);var o=t.filter;"function"!==typeof o&&(o=p);var a=t.promisifier;if("function"!==typeof a&&(a=S),!i.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n    See http://goo.gl/MqrFmX\n");for(var s=i.inheritedDataKeys(e),c=0;c<s.length;++c){var d=e[s[c]];"constructor"!==s[c]&&i.isClass(d)&&(A(d.prototype,r,o,a,n),A(d,r,o,a,n))}return A(e,r,o,a,n)}}},"687f":function(e,t,n){t.DocumentXmlReader=o;var r=n("9d83"),i=n("03e1").Result;function o(e){var t=e.bodyReader;function n(n){var o=n.first("w:body"),a=t.readXmlElements(o.children).map((function(t){return new r.Document(t,{notes:e.notes,comments:e.comments})}));return new i(a.value,a.messages)}return{convertXmlToDocument:n}}},"68b5":function(e,t){function n(e,t,n,r){return{findParagraphStyleById:function(t){return e[t]},findCharacterStyleById:function(e){return t[e]},findTableStyleById:function(e){return n[e]},findNumberingStyleById:function(e){return r[e]}}}function r(e){var t={},r={},o={},s={},c={paragraph:t,character:r,table:o};return e.getElementsByTagName("w:style").forEach((function(e){var t=i(e);if("numbering"===t.type)s[t.styleId]=a(e);else{var n=c[t.type];n&&(n[t.styleId]=t)}})),new n(t,r,o,s)}function i(e){var t=e.attributes["w:type"],n=e.attributes["w:styleId"],r=o(e);return{type:t,styleId:n,name:r}}function o(e){var t=e.first("w:name");return t?t.attributes["w:val"]:null}function a(e){var t=e.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{numId:t}}t.readStylesXml=r,t.Styles=n,t.defaultStyles=new n({},{}),n.EMPTY=new n({},{},{},{})},"69a4":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(e){return e.getParam("content_style","","string")},i=function(e){return e.getParam("content_css_cors",!1,"boolean")},o=function(e){var t=e.getParam("body_class","","hash");return t[e.id]||""},a=function(e){var t=e.getParam("body_class","","string");return-1===t.indexOf("=")?t:o(e)},s=function(e){var t=e.getParam("body_id","","hash");return t[e.id]||t},c=function(e){var t=e.getParam("body_id","tinymce","string");return-1===t.indexOf("=")?t:s(e)},u=function(e){var o="",s=e.dom.encode,u=r(e);o+='<base href="'+s(e.documentBaseURI.getURI())+'">';var l=i(e)?' crossorigin="anonymous"':"";n.each(e.contentCSS,(function(t){o+='<link type="text/css" rel="stylesheet" href="'+s(e.documentBaseURI.toAbsolute(t))+'"'+l+">"})),u&&(o+='<style type="text/css">'+u+"</style>");var d=c(e),f=a(e),h=t.mac?"e.metaKey":"e.ctrlKey && !e.altKey",p='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+h+")) {e.preventDefault();}}}, false);<\/script> ",g=e.getBody().dir,m=g?' dir="'+s(g)+'"':"",v="<!DOCTYPE html><html><head>"+o+'</head><body id="'+s(d)+'" class="mce-content-body '+s(f)+'"'+m+">"+e.getContent()+p+"</body></html>";return v},l=function(e){var t=u(e),n=e.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:t}});n.focus("close")},d=function(e){e.addCommand("mcePreview",(function(){l(e)}))},f=function(e){var t=function(){return e.execCommand("mcePreview")};e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:t}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:t})};function h(){e.add("preview",(function(e){d(e),f(e)}))}h()})()},"6a25":function(e,t,n){e.exports=n.p+"img/info-card-2.668c3370.jpg"},"6b02":function(e,t){function n(e){return new o("paragraph",e)}function r(e){return new o("run",e)}function i(e){return new o("table",e)}function o(e,t){t=t||{},this._elementType=e,this._styleId=t.styleId,this._styleName=t.styleName,t.list&&(this._listIndex=t.list.levelIndex,this._listIsOrdered=t.list.isOrdered)}function a(e,t,n){return e.numbering&&e.numbering.level==t&&e.numbering.isOrdered==n}function s(e){return{operator:u,operand:e}}function c(e){return{operator:l,operand:e}}function u(e,t){return e.toUpperCase()===t.toUpperCase()}function l(e,t){return 0===t.toUpperCase().indexOf(e.toUpperCase())}t.paragraph=n,t.run=r,t.table=i,t.bold=new o("bold"),t.italic=new o("italic"),t.underline=new o("underline"),t.strikethrough=new o("strikethrough"),t.allCaps=new o("allCaps"),t.smallCaps=new o("smallCaps"),t.commentReference=new o("commentReference"),t.lineBreak=new o("break",{breakType:"line"}),t.pageBreak=new o("break",{breakType:"page"}),t.columnBreak=new o("break",{breakType:"column"}),t.equalTo=s,t.startsWith=c,o.prototype.matches=function(e){return e.type===this._elementType&&(void 0===this._styleId||e.styleId===this._styleId)&&(void 0===this._styleName||e.styleName&&this._styleName.operator(this._styleName.operand,e.styleName))&&(void 0===this._listIndex||a(e,this._listIndex,this._listIsOrdered))&&(void 0===this._breakType||this._breakType===e.breakType)}},"6b7d":function(e,t,n){"use strict";n("5f39")},"6dbd":function(e,t,n){var r=n("9d83");function i(e){if("text"===e.type)return e.value;if(e.type===r.types.tab)return"\t";var t="paragraph"===e.type?"\n\n":"";return(e.children||[]).map(i).join("")+t}t.convertElementToRawText=i},"6de1":function(e,t,n){"use strict";e.exports=function(e,t,r,i,o,a){var s=e._getDomain,c=n("6df9"),u=c.tryCatch,l=c.errorObj,d=e._async;function f(e,t,n,r){this.constructor$(e),this._promise._captureStackTrace();var i=s();this._callback=null===i?t:c.domainBind(i,t),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}function h(t,n,i,o){if("function"!==typeof n)return r("expecting a function but got "+c.classString(n));var a=0;if(void 0!==i){if("object"!==typeof i||null===i)return e.reject(new TypeError("options argument must be an object but it is "+c.classString(i)));if("number"!==typeof i.concurrency)return e.reject(new TypeError("'concurrency' must be a number but it is "+c.classString(i.concurrency)));a=i.concurrency}return a="number"===typeof a&&isFinite(a)&&a>=1?a:0,new f(t,n,a,o).promise()}c.inherits(f,t),f.prototype._asyncInit=function(){this._init$(void 0,-2)},f.prototype._init=function(){},f.prototype._promiseFulfilled=function(t,n){var r=this._values,o=this.length(),s=this._preservedValues,c=this._limit;if(n<0){if(n=-1*n-1,r[n]=t,c>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(c>=1&&this._inFlight>=c)return r[n]=t,this._queue.push(n),!1;null!==s&&(s[n]=t);var d=this._promise,f=this._callback,h=d._boundValue();d._pushContext();var p=u(f).call(h,t,n,o),g=d._popContext();if(a.checkForgottenReturns(p,g,null!==s?"Promise.filter":"Promise.map",d),p===l)return this._reject(p.e),!0;var m=i(p,this._promise);if(m instanceof e){m=m._target();var v=m._bitField;if(0===(50397184&v))return c>=1&&this._inFlight++,r[n]=m,m._proxy(this,-1*(n+1)),!1;if(0===(33554432&v))return 0!==(16777216&v)?(this._reject(m._reason()),!0):(this._cancel(),!0);p=m._value()}r[n]=p}var b=++this._totalResolved;return b>=o&&(null!==s?this._filter(r,s):this._resolve(r),!0)},f.prototype._drainQueue=function(){var e=this._queue,t=this._limit,n=this._values;while(e.length>0&&this._inFlight<t){if(this._isResolved())return;var r=e.pop();this._promiseFulfilled(n[r],r)}},f.prototype._filter=function(e,t){for(var n=t.length,r=new Array(n),i=0,o=0;o<n;++o)e[o]&&(r[i++]=t[o]);r.length=i,this._resolve(r)},f.prototype.preservedValues=function(){return this._preservedValues},e.prototype.map=function(e,t){return h(this,e,t,null)},e.map=function(e,t,n,r){return h(e,t,n,r)}}},"6df9":function(e,t,n){"use strict";(function(t,r){var i=n("0341"),o="undefined"==typeof navigator,a={e:{}},s,c="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof t?t:void 0!==this?this:null;function u(){try{var e=s;return s=null,e.apply(this,arguments)}catch(t){return a.e=t,a}}function l(e){return s=e,u}var d=function(e,t){var n={}.hasOwnProperty;function r(){for(var r in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=t.prototype[r])}return r.prototype=t.prototype,e.prototype=new r,e.prototype};function f(e){return null==e||!0===e||!1===e||"string"===typeof e||"number"===typeof e}function h(e){return"function"===typeof e||"object"===typeof e&&null!==e}function p(e){return f(e)?new Error(T(e)):e}function g(e,t){var n,r=e.length,i=new Array(r+1);for(n=0;n<r;++n)i[n]=e[n];return i[n]=t,i}function m(e,t,n){if(!i.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var r=Object.getOwnPropertyDescriptor(e,t);return null!=r?null==r.get&&null==r.set?r.value:n:void 0}function v(e,t,n){if(f(e))return e;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return i.defineProperty(e,t,r),e}function b(e){throw e}var y=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1};if(i.isES5){var n=Object.getOwnPropertyNames;return function(e){var r=[],o=Object.create(null);while(null!=e&&!t(e)){var a;try{a=n(e)}catch(l){return r}for(var s=0;s<a.length;++s){var c=a[s];if(!o[c]){o[c]=!0;var u=Object.getOwnPropertyDescriptor(e,c);null!=u&&null==u.get&&null==u.set&&r.push(c)}}e=i.getPrototypeOf(e)}return r}}var r={}.hasOwnProperty;return function(n){if(t(n))return[];var i=[];e:for(var o in n)if(r.call(n,o))i.push(o);else{for(var a=0;a<e.length;++a)if(r.call(e[a],o))continue e;i.push(o)}return i}}(),x=/this\s*\.\s*\S+\s*=/;function _(e){try{if("function"===typeof e){var t=i.names(e.prototype),n=i.isES5&&t.length>1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),o=x.test(e+"")&&i.names(e).length>0;if(n||r||o)return!0}return!1}catch(a){return!1}}function w(e){function t(){}t.prototype=e;var n=8;while(n--)new t;return e}var D=/^[a-z$_][a-z$_0-9]*$/i;function C(e){return D.test(e)}function k(e,t,n){for(var r=new Array(e),i=0;i<e;++i)r[i]=t+i+n;return r}function T(e){try{return e+""}catch(t){return"[no string representation]"}}function S(e){return null!==e&&"object"===typeof e&&"string"===typeof e.message&&"string"===typeof e.name}function A(e){try{v(e,"isOperational",!0)}catch(t){}}function E(e){return null!=e&&(e instanceof Error["__BluebirdErrorTypes__"].OperationalError||!0===e["isOperational"])}function U(e){return S(e)&&i.propertyIsWritable(e,"stack")}var O=function(){return"stack"in new Error?function(e){return U(e)?e:new Error(T(e))}:function(e){if(U(e))return e;try{throw new Error(T(e))}catch(t){return t}}}();function F(e){return{}.toString.call(e)}function P(e,t,n){for(var r=i.names(e),o=0;o<r.length;++o){var a=r[o];if(n(a))try{i.defineProperty(t,a,i.getDescriptor(e,a))}catch(s){}}}var R=function(e){return i.isArray(e)?e:null};if("undefined"!==typeof Symbol&&Symbol.iterator){var N="function"===typeof Array.from?function(e){return Array.from(e)}:function(e){var t,n=[],r=e[Symbol.iterator]();while(!(t=r.next()).done)n.push(t.value);return n};R=function(e){return i.isArray(e)?e:null!=e&&"function"===typeof e[Symbol.iterator]?N(e):null}}var M="undefined"!==typeof r&&"[object process]"===F(r).toLowerCase(),I="undefined"!==typeof r&&!0;function B(e){return I?Object({NODE_ENV:"production",VUE_APP_BASE_API:"",BASE_URL:""})[e]:void 0}function L(){if("function"===typeof Promise)try{var e=new Promise((function(){}));if("[object Promise]"==={}.toString.call(e))return Promise}catch(t){}}function z(e,t){return e.bind(t)}var W={isClass:_,isIdentifier:C,inheritedDataKeys:y,getDataPropertyOrDefault:m,thrower:b,isArray:i.isArray,asArray:R,notEnumerableProp:v,isPrimitive:f,isObject:h,isError:S,canEvaluate:o,errorObj:a,tryCatch:l,inherits:d,withAppended:g,maybeWrapAsError:p,toFastProperties:w,filledRange:k,toString:T,canAttachTrace:U,ensureErrorObject:O,originatesFromRejection:E,markAsOriginatingFromRejection:A,classString:F,copyDescriptors:P,hasDevTools:"undefined"!==typeof chrome&&chrome&&"function"===typeof chrome.loadTimes,isNode:M,hasEnvVariables:I,env:B,global:c,getNativePromise:L,domainBind:z};W.isRecentNode=W.isNode&&function(){var e=r.versions.node.split(".").map(Number);return 0===e[0]&&e[1]>10||e[0]>0}(),W.isNode&&W.toFastProperties(r);try{throw new Error}catch(j){W.lastLineError=j}e.exports=W}).call(this,n("c8ba"),n("4362"))},"6f4a":function(e,t,n){"use strict";n("b126")},7009:function(e,t,n){"use strict";e.exports=function(e,t,r){var i=e.PromiseInspection,o=n("6df9");function a(e){this.constructor$(e)}o.inherits(a,t),a.prototype._promiseResolved=function(e,t){this._values[e]=t;var n=++this._totalResolved;return n>=this._length&&(this._resolve(this._values),!0)},a.prototype._promiseFulfilled=function(e,t){var n=new i;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},a.prototype._promiseRejected=function(e,t){var n=new i;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},e.settle=function(e){return r.deprecated(".settle()",".reflect()"),new a(e).promise()},e.prototype.settle=function(){return e.settle(this)}}},7162:function(e,t){function n(e,t){return"/"===t.charAt(0)?t.substr(1):e+"/"+t}function r(e,t){var n=e.indexOf("#");return-1!==n&&(e=e.substring(0,n)),e+"#"+t}t.uriToZipEntryName=n,t.replaceFragment=r},7193:function(e,t,n){n("ae68")},7277:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-row",{attrs:{gutter:24,type:"flex",align:"stretch"}},[n("a-col",{staticClass:"mb-24",attrs:{span:24}},[n("IndexCase")],1)],1)],1)},i=[],o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticClass:"widget-1",attrs:{bordered:!1}},[n("a-statistic",{staticClass:"text-success",class:"text-"+e.status,attrs:{title:e.title,value:e.value,precision:2,prefix:e.prefix,suffix:e.suffix}}),n("div",{staticClass:"icon",domProps:{innerHTML:e._s(e.icon)}})],1)},a=[],s={props:{title:{type:String,default:""},value:{type:Number,default:0},prefix:{type:String,default:""},suffix:{type:String,default:""},icon:{type:String,default:""},status:{type:String,default:"success"}},data(){return{}}},c=s,u=n("2877"),l=Object(u["a"])(c,o,a,!1,null,null,null),d=l.exports,f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticClass:"dashboard-bar-chart",attrs:{bordered:!1}},[n("chart-bar",{attrs:{height:220,data:e.barChartData}}),n("div",{staticClass:"card-title"},[n("h6",[e._v("推广获取收益")]),n("p",[e._v(" 您当前是"),n("span",{staticClass:"text-danger"},[e._v(e._s(e.dealerData.levelName))])])]),n("div",{staticClass:"card-content"},[n("p",[e._v("现在您有机会通过邀请更多的用户来赚取佣金,这是您获得额外收入的绝佳方式。只需花费一点时间和精力来推广您的链接或分享给朋友,就可以轻松获得更多的佣金。快来参与吧!")])]),n("a-row",{staticClass:"card-footer",attrs:{type:"flex",justify:"center",align:"top"}},[n("a-col",{attrs:{span:6}},[n("h4",[e._v(e._s(e.dealerData.direct))]),n("span",[e._v("直推用户")])]),n("a-col",{attrs:{span:6}},[n("h4",[e._v(e._s(e.dealerData.indirect))]),n("span",[e._v("间推用户")])]),n("a-col",{attrs:{span:6}},[n("h4",[e._v("$"+e._s(e.dealerData.money.toFixed(2)))]),n("span",[e._v("总佣金")])]),n("a-col",{attrs:{span:6}},[n("h4",[e._v(e._s(e.dealerData.levelText))])])],1)],1)},h=[],p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("canvas",{ref:"chart",style:{height:e.height+"px"}})])},g=[];const m=function(){return"undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame}();function v(e,t,n){const r=n||(e=>Array.prototype.slice.call(e));let i=!1,o=[];return function(...n){o=r(n),i||(i=!0,m.call(window,()=>{i=!1,e.apply(t,o)}))}}function b(e,t){let n;return function(){return t?(clearTimeout(n),n=setTimeout(e,t)):e(),t}}const y=e=>"start"===e?"left":"end"===e?"right":"center",x=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,_=(e,t,n,r)=>{const i=r?"left":"right";return e===i?n:"center"===e?(t+n)/2:t};function w(){}const D=function(){let e=0;return function(){return e++}}();function C(e){return null===e||"undefined"===typeof e}function k(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function T(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}const S=e=>("number"===typeof e||e instanceof Number)&&isFinite(+e);function A(e,t){return S(e)?e:t}function E(e,t){return"undefined"===typeof e?t:e}const U=(e,t)=>"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100:e/t,O=(e,t)=>"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function F(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function P(e,t,n,r){let i,o,a;if(k(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(T(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function R(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function N(e){if(k(e))return e.map(N);if(T(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=N(e[n[i]]);return t}return e}function M(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function I(e,t,n,r){if(!M(e))return;const i=t[e],o=n[e];T(i)&&T(o)?B(i,o,r):t[e]=N(o)}function B(e,t,n){const r=k(t)?t:[t],i=r.length;if(!T(e))return e;n=n||{};const o=n.merger||I;for(let a=0;a<i;++a){if(t=r[a],!T(t))continue;const i=Object.keys(t);for(let r=0,a=i.length;r<a;++r)o(i[r],e,t,n)}return e}function L(e,t){return B(e,t,{merger:z})}function z(e,t,n){if(!M(e))return;const r=t[e],i=n[e];T(r)&&T(i)?L(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=N(i))}const W="",j=".";function H(e,t){const n=e.indexOf(j,t);return-1===n?e.length:n}function V(e,t){if(t===W)return e;let n=0,r=H(t,n);while(e&&r>n)e=e[t.substr(n,r-n)],n=r+1,r=H(t,n);return e}function q(e){return e.charAt(0).toUpperCase()+e.slice(1)}const $=e=>"undefined"!==typeof e,G=e=>"function"===typeof e,X=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},Y=Math.PI,K=2*Y,Z=K+Y,J=Number.POSITIVE_INFINITY,Q=Y/180,ee=Y/2,te=Y/4,ne=2*Y/3,re=Math.log10,ie=Math.sign;function oe(e){const t=Math.round(e);e=ce(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(re(e))),r=e/n,i=r<=1?1:r<=2?2:r<=5?5:10;return i*n}function ae(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(0|n)&&t.push(n),t.sort((e,t)=>e-t).pop(),t}function se(e){return!isNaN(parseFloat(e))&&isFinite(e)}function ce(e,t,n){return Math.abs(e-t)<n}function ue(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function le(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function de(e){return e*(Y/180)}function fe(e){return e*(180/Y)}function he(e){if(!S(e))return;let t=1,n=0;while(Math.round(e*t)/t!==e)t*=10,n++;return n}function pe(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*Y&&(o+=K),{angle:o,distance:i}}function ge(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function me(e,t){return(e-t+Z)%K-Y}function ve(e){return(e%K+K)%K}function be(e,t,n,r){const i=ve(e),o=ve(t),a=ve(n),s=ve(o-i),c=ve(a-i),u=ve(i-o),l=ve(i-a);return i===o||i===a||r&&o===a||s>c&&u<l}function ye(e,t,n){return Math.max(t,Math.min(n,e))}function xe(e){return ye(e,-32768,32767)}const _e=e=>0===e||1===e,we=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*K/n),De=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*K/n)+1,Ce={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*ee),easeOutSine:e=>Math.sin(e*ee),easeInOutSine:e=>-.5*(Math.cos(Y*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>_e(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>_e(e)?e:we(e,.075,.3),easeOutElastic:e=>_e(e)?e:De(e,.075,.3),easeInOutElastic(e){const t=.1125,n=.45;return _e(e)?e:e<.5?.5*we(2*e,t,n):.5+.5*De(2*e-1,t,n)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-Ce.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*Ce.easeInBounce(2*e):.5*Ce.easeOutBounce(2*e-1)+.5},ke={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Te="0123456789ABCDEF",Se=e=>Te[15&e],Ae=e=>Te[(240&e)>>4]+Te[15&e],Ee=e=>(240&e)>>4===(15&e);function Ue(e){return Ee(e.r)&&Ee(e.g)&&Ee(e.b)&&Ee(e.a)}function Oe(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*ke[e[1]],g:255&17*ke[e[2]],b:255&17*ke[e[3]],a:5===n?17*ke[e[4]]:255}:7!==n&&9!==n||(t={r:ke[e[1]]<<4|ke[e[2]],g:ke[e[3]]<<4|ke[e[4]],b:ke[e[5]]<<4|ke[e[6]],a:9===n?ke[e[7]]<<4|ke[e[8]]:255})),t}function Fe(e){var t=Ue(e)?Se:Ae;return e?"#"+t(e.r)+t(e.g)+t(e.b)+(e.a<255?t(e.a):""):e}function Pe(e){return e+.5|0}const Re=(e,t,n)=>Math.max(Math.min(e,n),t);function Ne(e){return Re(Pe(2.55*e),0,255)}function Me(e){return Re(Pe(255*e),0,255)}function Ie(e){return Re(Pe(e/2.55)/100,0,1)}function Be(e){return Re(Pe(100*e),0,100)}const Le=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function ze(e){const t=Le.exec(e);let n,r,i,o=255;if(t){if(t[7]!==n){const e=+t[7];o=255&(t[8]?Ne(e):255*e)}return n=+t[1],r=+t[3],i=+t[5],n=255&(t[2]?Ne(n):n),r=255&(t[4]?Ne(r):r),i=255&(t[6]?Ne(i):i),{r:n,g:r,b:i,a:o}}}function We(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Ie(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const je=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function He(e,t,n){const r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function Ve(e,t,n){const r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function qe(e,t,n){const r=He(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function $e(e){const t=255,n=e.r/t,r=e.g/t,i=e.b/t,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;let c,u,l;return o!==a&&(l=o-a,u=s>.5?l/(2-o-a):l/(o+a),c=o===n?(r-i)/l+(r<i?6:0):o===r?(i-n)/l+2:(n-r)/l+4,c=60*c+.5),[0|c,u||0,s]}function Ge(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Me)}function Xe(e,t,n){return Ge(He,e,t,n)}function Ye(e,t,n){return Ge(qe,e,t,n)}function Ke(e,t,n){return Ge(Ve,e,t,n)}function Ze(e){return(e%360+360)%360}function Je(e){const t=je.exec(e);let n,r=255;if(!t)return;t[5]!==n&&(r=t[6]?Ne(+t[5]):Me(+t[5]));const i=Ze(+t[2]),o=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?Ye(i,o,a):"hsv"===t[1]?Ke(i,o,a):Xe(i,o,a),{r:n[0],g:n[1],b:n[2],a:r}}function Qe(e,t){var n=$e(e);n[0]=Ze(n[0]+t),n=Xe(n),e.r=n[0],e.g=n[1],e.b=n[2]}function et(e){if(!e)return;const t=$e(e),n=t[0],r=Be(t[1]),i=Be(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Ie(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const tt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},nt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function rt(){const e={},t=Object.keys(nt),n=Object.keys(tt);let r,i,o,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,tt[o]);o=parseInt(nt[a],16),e[s]=[o>>16&255,o>>8&255,255&o]}return e}let it;function ot(e){it||(it=rt(),it.transparent=[0,0,0,0]);const t=it[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}function at(e,t,n){if(e){let r=$e(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=Xe(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function st(e,t){return e?Object.assign(t||{},e):e}function ct(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Me(e[3]))):(t=st(e,{r:0,g:0,b:0,a:1}),t.a=Me(t.a)),t}function ut(e){return"r"===e.charAt(0)?ze(e):Je(e)}class lt{constructor(e){if(e instanceof lt)return e;const t=typeof e;let n;"object"===t?n=ct(e):"string"===t&&(n=Oe(e)||ot(e)||ut(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=st(this._rgb);return e&&(e.a=Ie(e.a)),e}set rgb(e){this._rgb=ct(e)}rgbString(){return this._valid?We(this._rgb):this._rgb}hexString(){return this._valid?Fe(this._rgb):this._rgb}hslString(){return this._valid?et(this._rgb):this._rgb}mix(e,t){const n=this;if(e){const r=n.rgb,i=e.rgb;let o;const a=t===o?.5:t,s=2*a-1,c=r.a-i.a,u=((s*c===-1?s:(s+c)/(1+s*c))+1)/2;o=1-u,r.r=255&u*r.r+o*i.r+.5,r.g=255&u*r.g+o*i.g+.5,r.b=255&u*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,n.rgb=r}return n}clone(){return new lt(this.rgb)}alpha(e){return this._rgb.a=Me(e),this}clearer(e){const t=this._rgb;return t.a*=1-e,this}greyscale(){const e=this._rgb,t=Pe(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){const t=this._rgb;return t.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return at(this._rgb,2,e),this}darken(e){return at(this._rgb,2,-e),this}saturate(e){return at(this._rgb,1,e),this}desaturate(e){return at(this._rgb,1,-e),this}rotate(e){return Qe(this._rgb,e),this}}function dt(e){return new lt(e)}const ft=e=>e instanceof CanvasGradient||e instanceof CanvasPattern;function ht(e){return ft(e)?e:dt(e)}function pt(e){return ft(e)?e:dt(e).saturate(.5).darken(.1).hexString()}const gt=Object.create(null),mt=Object.create(null);function vt(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const t=n[r];e=e[t]||(e[t]=Object.create(null))}return e}function bt(e,t,n){return"string"===typeof t?B(vt(e,t),n):B(vt(e,""),t)}class yt{constructor(e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>pt(t.backgroundColor),this.hoverBorderColor=(e,t)=>pt(t.borderColor),this.hoverColor=(e,t)=>pt(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.describe(e)}set(e,t){return bt(this,e,t)}get(e){return vt(this,e)}describe(e,t){return bt(mt,e,t)}override(e,t){return bt(gt,e,t)}route(e,t,n,r){const i=vt(this,e),o=vt(this,n),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=o[r];return T(e)?Object.assign({},t,e):E(e,t)},set(e){this[a]=e}}})}}var xt=new yt({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function _t(e){return!e||C(e.size)||C(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function wt(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function Dt(e,t,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const s=n.length;let c,u,l,d,f;for(c=0;c<s;c++)if(d=n[c],void 0!==d&&null!==d&&!0!==k(d))a=wt(e,i,o,a,d);else if(k(d))for(u=0,l=d.length;u<l;u++)f=d[u],void 0===f||null===f||k(f)||(a=wt(e,i,o,a,f));e.restore();const h=o.length/2;if(h>n.length){for(c=0;c<h;c++)delete i[o[c]];o.splice(0,h)}return a}function Ct(e,t,n){const r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function kt(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function Tt(e,t,n,r){let i,o,a,s,c;const u=t.pointStyle,l=t.rotation,d=t.radius;let f=(l||0)*Q;if(u&&"object"===typeof u&&(i=u.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,r),e.rotate(f),e.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),void e.restore();if(!(isNaN(d)||d<=0)){switch(e.beginPath(),u){default:e.arc(n,r,d,0,K),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(f)*d,r-Math.cos(f)*d),f+=ne,e.lineTo(n+Math.sin(f)*d,r-Math.cos(f)*d),f+=ne,e.lineTo(n+Math.sin(f)*d,r-Math.cos(f)*d),e.closePath();break;case"rectRounded":c=.516*d,s=d-c,o=Math.cos(f+te)*s,a=Math.sin(f+te)*s,e.arc(n-o,r-a,c,f-Y,f-ee),e.arc(n+a,r-o,c,f-ee,f),e.arc(n+o,r+a,c,f,f+ee),e.arc(n-a,r+o,c,f+ee,f+Y),e.closePath();break;case"rect":if(!l){s=Math.SQRT1_2*d,e.rect(n-s,r-s,2*s,2*s);break}f+=te;case"rectRot":o=Math.cos(f)*d,a=Math.sin(f)*d,e.moveTo(n-o,r-a),e.lineTo(n+a,r-o),e.lineTo(n+o,r+a),e.lineTo(n-a,r+o),e.closePath();break;case"crossRot":f+=te;case"cross":o=Math.cos(f)*d,a=Math.sin(f)*d,e.moveTo(n-o,r-a),e.lineTo(n+o,r+a),e.moveTo(n+a,r-o),e.lineTo(n-a,r+o);break;case"star":o=Math.cos(f)*d,a=Math.sin(f)*d,e.moveTo(n-o,r-a),e.lineTo(n+o,r+a),e.moveTo(n+a,r-o),e.lineTo(n-a,r+o),f+=te,o=Math.cos(f)*d,a=Math.sin(f)*d,e.moveTo(n-o,r-a),e.lineTo(n+o,r+a),e.moveTo(n+a,r-o),e.lineTo(n-a,r+o);break;case"line":o=Math.cos(f)*d,a=Math.sin(f)*d,e.moveTo(n-o,r-a),e.lineTo(n+o,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(f)*d,r+Math.sin(f)*d);break}e.fill(),t.borderWidth>0&&e.stroke()}}function St(e,t,n){return n=n||.5,e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function At(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Et(e){e.restore()}function Ut(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){const r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===i!==!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Ot(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function Ft(e,t,n,r,i,o={}){const a=k(t)?t:[t],s=o.strokeWidth>0&&""!==o.strokeColor;let c,u;for(e.save(),e.font=i.string,Pt(e,o),c=0;c<a.length;++c)u=a[c],s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),C(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(u,n,r,o.maxWidth)),e.fillText(u,n,r,o.maxWidth),Rt(e,n,r,u,o),r+=i.lineHeight;e.restore()}function Pt(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),C(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function Rt(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,c=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,l=i.strikethrough?(c+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,l),e.lineTo(s,l),e.stroke()}}function Nt(e,t){const{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,-ee,Y,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,Y,ee,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,ee,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-ee,!0),e.lineTo(n+a.topLeft,r)}const Mt=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),It=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function Bt(e,t){const n=(""+e).match(Mt);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const Lt=e=>+e||0;function zt(e,t){const n={},r=T(t),i=r?Object.keys(t):t,o=T(e)?r?n=>E(e[n],e[t[n]]):t=>e[t]:()=>e;for(const a of i)n[a]=Lt(o(a));return n}function Wt(e){return zt(e,{top:"y",right:"x",bottom:"y",left:"x"})}function jt(e){return zt(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ht(e){const t=Wt(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Vt(e,t){e=e||{},t=t||xt.font;let n=E(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));let r=E(e.style,t.style);r&&!(""+r).match(It)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const i={family:E(e.family,t.family),lineHeight:Bt(E(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:E(e.weight,t.weight),string:""};return i.string=_t(i),i}function qt(e,t,n,r){let i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(a=e[i],void 0!==a&&(void 0!==t&&"function"===typeof a&&(a=a(t),s=!1),void 0!==n&&k(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function $t(e,t){const{min:n,max:r}=e;return{min:n-Math.abs(O(t,n)),max:r+O(t,r)}}function Gt(e,t,n){n=n||(n=>e[n]<t);let r,i=e.length-1,o=0;while(i-o>1)r=o+i>>1,n(r)?o=r:i=r;return{lo:o,hi:i}}const Xt=(e,t,n)=>Gt(e,n,r=>e[r][t]<n),Yt=(e,t,n)=>Gt(e,n,r=>e[r][t]>=n);function Kt(e,t,n){let r=0,i=e.length;while(r<i&&e[r]<t)r++;while(i>r&&e[i-1]>n)i--;return r>0||i<e.length?e.slice(r,i):e}const Zt=["push","pop","shift","splice","unshift"];function Jt(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Zt.forEach(t=>{const n="_onData"+q(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){const i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"===typeof e[n]&&e[n](...t)}),i}})}))}function Qt(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(Zt.forEach(t=>{delete e[t]}),delete e._chartjs)}function en(e){const t=new Set;let n,r;for(n=0,r=e.length;n<r;++n)t.add(e[n]);return t.size===r?e:Array.from(t)}function tn(e,t=[""],n=e,r,i=(()=>e[0])){$(r)||(r=bn("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:i=>tn([i,...e],t,n,r)};return new Proxy(o,{deleteProperty(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get(n,r){return sn(n,r,()=>vn(r,t,e,n))},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(e,t){return yn(e).includes(t)},ownKeys(e){return yn(e)},set(e,t,n){const r=e._storage||(e._storage=i());return r[t]=n,delete e[t],delete e._keys,!0}})}function nn(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:rn(e,r),setContext:t=>nn(e,t,n,r),override:i=>nn(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty(t,n){return delete t[n],delete e[n],!0},get(e,t,n){return sn(e,t,()=>cn(e,t,n))},getOwnPropertyDescriptor(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(t,n){return Reflect.has(e,n)},ownKeys(){return Reflect.ownKeys(e)},set(t,n,r){return e[n]=r,delete t[n],!0}})}function rn(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:G(n)?n:()=>n,isIndexable:G(r)?r:()=>r}}const on=(e,t)=>e?e+q(t):t,an=(e,t)=>T(t)&&"adapters"!==e;function sn(e,t,n){let r=e[t];return $(r)||(r=n(),$(r)&&(e[t]=r)),r}function cn(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return G(s)&&a.isScriptable(t)&&(s=un(t,s,e,n)),k(s)&&s.length&&(s=ln(t,s,e,a.isIndexable)),an(t,s)&&(s=nn(s,i,o&&o[t],a)),s}function un(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);return s.add(e),t=t(o,a||r),s.delete(e),T(t)&&(t=pn(i._scopes,i,e,t)),t}function ln(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if($(o.index)&&r(e))t=t[o.index%t.length];else if(T(t[0])){const n=t,r=i._scopes.filter(e=>e!==n);t=[];for(const c of n){const n=pn(r,i,e,c);t.push(nn(n,o,a&&a[e],s))}}return t}function dn(e,t,n){return G(e)?e(t,n):e}const fn=(e,t)=>!0===e?t:"string"===typeof e?V(t,e):void 0;function hn(e,t,n,r){for(const i of t){const t=fn(n,i);if(t){e.add(t);const i=dn(t._fallback,n,t);if($(i)&&i!==n&&i!==r)return i}else if(!1===t&&$(r)&&n!==r)return null}return!1}function pn(e,t,n,r){const i=t._rootScopes,o=dn(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let c=gn(s,a,n,o||n);return null!==c&&((!$(o)||o===n||(c=gn(s,a,o,c),null!==c))&&tn(Array.from(s),[""],i,o,()=>mn(t,n,r)))}function gn(e,t,n,r){while(n)n=hn(e,t,n,r);return n}function mn(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return k(i)&&T(n)?n:i}function vn(e,t,n,r){let i;for(const o of t)if(i=bn(on(o,e),n),$(i))return an(e,i)?pn(n,r,e,i):i}function bn(e,t){for(const n of t){if(!n)continue;const t=n[e];if($(t))return t}}function yn(e){let t=e._keys;return t||(t=e._keys=xn(e._scopes)),t}function xn(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}const _n=Number.EPSILON||1e-14,wn=(e,t)=>t<e.length&&!e[t].skip&&e[t],Dn=e=>"x"===e?"y":"x";function Cn(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=ge(o,i),c=ge(a,o);let u=s/(s+c),l=c/(s+c);u=isNaN(u)?0:u,l=isNaN(l)?0:l;const d=r*u,f=r*l;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+f*(a.x-i.x),y:o.y+f*(a.y-i.y)}}}function kn(e,t,n){const r=e.length;let i,o,a,s,c,u=wn(e,0);for(let l=0;l<r-1;++l)c=u,u=wn(e,l+1),c&&u&&(ce(t[l],0,_n)?n[l]=n[l+1]=0:(i=n[l]/t[l],o=n[l+1]/t[l],s=Math.pow(i,2)+Math.pow(o,2),s<=9||(a=3/Math.sqrt(s),n[l]=i*a*t[l],n[l+1]=o*a*t[l])))}function Tn(e,t,n="x"){const r=Dn(n),i=e.length;let o,a,s,c=wn(e,0);for(let u=0;u<i;++u){if(a=s,s=c,c=wn(e,u+1),!s)continue;const i=s[n],l=s[r];a&&(o=(i-a[n])/3,s["cp1"+n]=i-o,s["cp1"+r]=l-o*t[u]),c&&(o=(c[n]-i)/3,s["cp2"+n]=i+o,s["cp2"+r]=l+o*t[u])}}function Sn(e,t="x"){const n=Dn(t),r=e.length,i=Array(r).fill(0),o=Array(r);let a,s,c,u=wn(e,0);for(a=0;a<r;++a)if(s=c,c=u,u=wn(e,a+1),c){if(u){const e=u[t]-c[t];i[a]=0!==e?(u[n]-c[n])/e:0}o[a]=s?u?ie(i[a-1])!==ie(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}kn(e,i,o),Tn(e,o,t)}function An(e,t,n){return Math.max(Math.min(e,n),t)}function En(e,t){let n,r,i,o,a,s=St(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&St(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=An(i.cp1x,t.left,t.right),i.cp1y=An(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=An(i.cp2x,t.left,t.right),i.cp2y=An(i.cp2y,t.top,t.bottom)))}function Un(e,t,n,r,i){let o,a,s,c;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)Sn(e,i);else{let n=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)s=e[o],c=Cn(n,s,e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=c.previous.x,s.cp1y=c.previous.y,s.cp2x=c.next.x,s.cp2y=c.next.y,n=s}t.capBezierPoints&&En(e,n)}function On(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function Fn(e,t,n){let r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}const Pn=e=>window.getComputedStyle(e,null);function Rn(e,t){return Pn(e).getPropertyValue(t)}const Nn=["top","right","bottom","left"];function Mn(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=Nn[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const In=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Bn(e,t){const n=e.native||e,r=n.touches,i=r&&r.length?r[0]:n,{offsetX:o,offsetY:a}=i;let s,c,u=!1;if(In(o,a,n.target))s=o,c=a;else{const e=t.getBoundingClientRect();s=i.clientX-e.left,c=i.clientY-e.top,u=!0}return{x:s,y:c,box:u}}function Ln(e,t){const{canvas:n,currentDevicePixelRatio:r}=t,i=Pn(n),o="border-box"===i.boxSizing,a=Mn(i,"padding"),s=Mn(i,"border","width"),{x:c,y:u,box:l}=Bn(e,n),d=a.left+(l&&s.left),f=a.top+(l&&s.top);let{width:h,height:p}=t;return o&&(h-=a.width+s.width,p-=a.height+s.height),{x:Math.round((c-d)/h*n.width/r),y:Math.round((u-f)/p*n.height/r)}}function zn(e,t,n){let r,i;if(void 0===t||void 0===n){const o=On(e);if(o){const e=o.getBoundingClientRect(),a=Pn(o),s=Mn(a,"border","width"),c=Mn(a,"padding");t=e.width-c.width-s.width,n=e.height-c.height-s.height,r=Fn(a.maxWidth,o,"clientWidth"),i=Fn(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||J,maxHeight:i||J}}const Wn=e=>Math.round(10*e)/10;function jn(e,t,n,r){const i=Pn(e),o=Mn(i,"margin"),a=Fn(i.maxWidth,e,"clientWidth")||J,s=Fn(i.maxHeight,e,"clientHeight")||J,c=zn(e,t,n);let{width:u,height:l}=c;if("content-box"===i.boxSizing){const e=Mn(i,"border","width"),t=Mn(i,"padding");u-=t.width+e.width,l-=t.height+e.height}return u=Math.max(0,u-o.width),l=Math.max(0,r?Math.floor(u/r):l-o.height),u=Wn(Math.min(u,a,c.maxWidth)),l=Wn(Math.min(l,s,c.maxHeight)),u&&!l&&(l=Wn(u/2)),{width:u,height:l}}function Hn(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=i/r,e.width=o/r;const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=e.height+"px",a.style.width=e.width+"px"),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}const Vn=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}return e}();function qn(e,t){const n=Rn(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function $n(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Gn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function Xn(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=$n(e,i,n),s=$n(i,o,n),c=$n(o,t,n),u=$n(a,s,n),l=$n(s,c,n);return $n(u,l,n)}const Yn=new Map;function Kn(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Yn.get(n);return r||(r=new Intl.NumberFormat(e,t),Yn.set(n,r)),r}function Zn(e,t,n){return Kn(t,n).format(e)}const Jn=function(e,t){return{x(n){return e+e+t-n},setWidth(e){t=e},textAlign(e){return"center"===e?e:"right"===e?"left":"right"},xPlus(e,t){return e-t},leftForLtr(e,t){return e-t}}},Qn=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function er(e,t,n){return e?Jn(t,n):Qn()}function tr(e,t){let n,r;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function nr(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function rr(e){return"angle"===e?{between:be,compare:me,normalize:ve}:{between:(e,t,n)=>e>=Math.min(t,n)&&e<=Math.max(n,t),compare:(e,t)=>e-t,normalize:e=>e}}function ir({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function or(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=rr(r),c=t.length;let u,l,{start:d,end:f,loop:h}=e;if(h){for(d+=c,f+=c,u=0,l=c;u<l;++u){if(!a(s(t[d%c][r]),i,o))break;d--,f--}d%=c,f%=c}return f<d&&(f+=c),{start:d,end:f,loop:h,style:e.style}}function ar(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,a=t.length,{compare:s,between:c,normalize:u}=rr(r),{start:l,end:d,loop:f,style:h}=or(e,t,n),p=[];let g,m,v,b=!1,y=null;const x=()=>c(i,v,g)&&0!==s(i,v),_=()=>0===s(o,g)||c(o,v,g),w=()=>b||x(),D=()=>!b||_();for(let C=l,k=l;C<=d;++C)m=t[C%a],m.skip||(g=u(m[r]),g!==v&&(b=c(g,i,o),null===y&&w()&&(y=0===s(g,i)?C:k),null!==y&&D()&&(p.push(ir({start:y,end:C,loop:f,count:a,style:h})),y=null),k=C,v=g));return null!==y&&p.push(ir({start:y,end:d,loop:f,count:a,style:h})),p}function sr(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=ar(r[i],e.points,t);o.length&&n.push(...o)}return n}function cr(e,t,n,r){let i=0,o=t-1;if(n&&!r)while(i<t&&!e[i].skip)i++;while(i<t&&e[i].skip)i++;i%=t,n&&(o+=i);while(o>i&&e[o%t].skip)o--;return o%=t,{start:i,end:o}}function ur(e,t,n,r){const i=e.length,o=[];let a,s=t,c=e[t];for(a=t+1;a<=n;++a){const n=e[a%i];n.skip||n.stop?c.skip||(r=!1,o.push({start:t%i,end:(a-1)%i,loop:r}),t=s=n.stop?a:null):(s=a,c.skip&&(t=a)),c=n}return null!==s&&o.push({start:t%i,end:s%i,loop:r}),o}function lr(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=cr(n,i,o,r);if(!0===r)return dr([{start:a,end:s,loop:o}],n,t);const c=s<a?s+i:s,u=!!e._fullLoop&&0===a&&s===i-1;return dr(ur(n,a,c,u),n,t)}function dr(e,t,n){return n&&n.setContext&&t?fr(e,t,n):e}function fr(e,t,n){const r=t.length,i=[];let o=e[0].start,a=o;for(const s of e){let e,c,u=t[o%r];for(a=o+1;a<=s.end;a++){const l=t[a%r];c=hr(n.setContext({type:"segment",p0:u,p1:l})),pr(c,e)&&(i.push({start:o,end:a-1,loop:s.loop,style:e}),e=c,o=a-1),u=l,e=c}o<a-1&&(i.push({start:o,end:a-1,loop:s.loop,style:c}),o=a-1)}return i}function hr(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function pr(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}
/*!
 * Chart.js v3.4.1
 * https://www.chartjs.org
 * (c) 2021 Chart.js Contributors
 * Released under the MIT License
 */class gr{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){const i=t.listeners[r],o=t.duration;i.forEach(r=>r({chart:e,initial:t.initial,numSteps:o,currentStep:Math.min(n-t.start,o)}))}_refresh(){const e=this;e._request||(e._running=!0,e._request=m.call(window,()=>{e._update(),e._request=null,e._running&&e._refresh()}))}_update(e=Date.now()){const t=this;let n=0;t._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a,s=o.length-1,c=!1;for(;s>=0;--s)a=o[s],a._active?(a._total>r.duration&&(r.duration=a._total),a.tick(e),c=!0):(o[s]=o[o.length-1],o.pop());c&&(i.draw(),t._notify(i,r,e,"progress")),o.length||(r.running=!1,t._notify(i,r,e,"complete"),r.initial=!1),n+=o.length}),t._lastDate=e,0===n&&(t._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var mr=new gr;const vr="transparent",br={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=ht(e||vr),i=r.valid&&ht(t||vr);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class yr{constructor(e,t,n,r){const i=t[n];r=qt([e.to,r,i,e.from]);const o=qt([e.from,i,r]);this._active=!0,this._fn=e.fn||br[e.type||typeof o],this._easing=Ce[e.easing]||Ce.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){const r=this;if(r._active){r._notify(!1);const i=r._target[r._prop],o=n-r._start,a=r._duration-o;r._start=n,r._duration=Math.floor(Math.max(a,e.duration)),r._total+=o,r._loop=!!e.loop,r._to=qt([e.to,t,i,e.from]),r._from=qt([e.from,i,t])}}cancel(){const e=this;e._active&&(e.tick(Date.now()),e._active=!1,e._notify(!1))}tick(e){const t=this,n=e-t._start,r=t._duration,i=t._prop,o=t._from,a=t._loop,s=t._to;let c;if(t._active=o!==s&&(a||n<r),!t._active)return t._target[i]=s,void t._notify(!0);n<0?t._target[i]=o:(c=n/r%2,c=a&&c>1?2-c:c,c=t._easing(Math.min(1,Math.max(0,c))),t._target[i]=t._fn(o,s,c))}wait(){const e=this._promises||(this._promises=[]);return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let r=0;r<n.length;r++)n[r][t]()}}const xr=["x","y","borderWidth","radius","tension"],_r=["color","borderColor","backgroundColor"];xt.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const wr=Object.keys(xt.animation);xt.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),xt.set("animations",{colors:{type:"color",properties:_r},numbers:{type:"number",properties:xr}}),xt.describe("animations",{_fallback:"animation"}),xt.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class Dr{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!T(e))return;const t=this._properties;Object.getOwnPropertyNames(e).forEach(n=>{const r=e[n];if(!T(r))return;const i={};for(const e of wr)i[e]=r[e];(k(r.properties)&&r.properties||[n]).forEach(e=>{e!==n&&t.has(e)||t.set(e,i)})})}_animateOptions(e,t){const n=t.options,r=kr(e,n);if(!r)return[];const i=this._createAnimations(r,n);return n.$shared&&Cr(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,t){const n=this._properties,r=[],i=e.$animations||(e.$animations={}),o=Object.keys(t),a=Date.now();let s;for(s=o.length-1;s>=0;--s){const c=o[s];if("$"===c.charAt(0))continue;if("options"===c){r.push(...this._animateOptions(e,t));continue}const u=t[c];let l=i[c];const d=n.get(c);if(l){if(d&&l.active()){l.update(d,u,a);continue}l.cancel()}d&&d.duration?(i[c]=l=new yr(d,e,c,u),r.push(l)):e[c]=u}return r}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(mr.add(this._chart,n),!0):void 0}}function Cr(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const t=e[r[i]];t&&t.active()&&n.push(t.wait())}return Promise.all(n)}function kr(e,t){if(!t)return;let n=e.options;if(n)return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;e.options=t}function Tr(e,t){const n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:r?o:i,end:r?i:o}}function Sr(e,t,n){if(!1===n)return!1;const r=Tr(e,n),i=Tr(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function Ar(e){let t,n,r,i;return T(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:!1===e}}function Er(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function Ur(e,t,n,r){const i=e.keys,o="single"===r.mode;let a,s,c,u;if(null!==t){for(a=0,s=i.length;a<s;++a){if(c=+i[a],c===n){if(r.all)continue;break}u=e.values[c],S(u)&&(o||0===t||ie(t)===ie(u))&&(t+=u)}return t}}function Or(e){const t=Object.keys(e),n=new Array(t.length);let r,i,o;for(r=0,i=t.length;r<i;++r)o=t[r],n[r]={x:o,y:e[o]};return n}function Fr(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function Pr(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function Rr(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function Nr(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Mr(e,t,n){for(const r of t.getMatchingVisibleMetas("bar").reverse()){const t=e[r.index];if(n&&t>0||!n&&t<0)return r.index}return null}function Ir(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,c=o.axis,u=a.axis,l=Pr(o,a,r),d=t.length;let f;for(let h=0;h<d;++h){const e=t[h],{[c]:n,[u]:r}=e,o=e._stacks||(e._stacks={});f=o[u]=Nr(i,l,n),f[s]=r,f._top=Mr(f,a,!0),f._bottom=Mr(f,a,!1)}}function Br(e,t){const n=e.scales;return Object.keys(n).filter(e=>n[e].axis===t).shift()}function Lr(e,t){return Object.assign(Object.create(e),{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function zr(e,t,n){return Object.assign(Object.create(e),{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Wr(e,t){const n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const r of t){const t=r._stacks;if(!t||void 0===t[n]||void 0===t[n][e.index])return;delete t[n][e.index]}}}const jr=e=>"reset"===e||"none"===e,Hr=(e,t)=>t?e:Object.assign({},e);class Vr{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this,t=e._cachedMeta;e.configure(),e.linkScales(),t._stacked=Fr(t.vScale,t),e.addElements()}updateIndex(e){this.index!==e&&Wr(this._cachedMeta),this.index=e}linkScales(){const e=this,t=e.chart,n=e._cachedMeta,r=e.getDataset(),i=(e,t,n,r)=>"x"===e?t:"r"===e?r:n,o=n.xAxisID=E(r.xAxisID,Br(t,"x")),a=n.yAxisID=E(r.yAxisID,Br(t,"y")),s=n.rAxisID=E(r.rAxisID,Br(t,"r")),c=n.indexAxis,u=n.iAxisID=i(c,o,a,s),l=n.vAxisID=i(c,a,o,s);n.xScale=e.getScaleForId(o),n.yScale=e.getScaleForId(a),n.rScale=e.getScaleForId(s),n.iScale=e.getScaleForId(u),n.vScale=e.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Qt(this._data,this),e._stacked&&Wr(e)}_dataCheck(){const e=this,t=e.getDataset(),n=t.data||(t.data=[]),r=e._data;if(T(n))e._data=Or(n);else if(r!==n){if(r){Qt(r,e);const t=e._cachedMeta;Wr(t),t._parsed=[]}n&&Object.isExtensible(n)&&Jt(n,e),e._syncList=[],e._data=n}}addElements(){const e=this,t=e._cachedMeta;e._dataCheck(),e.datasetElementType&&(t.dataset=new e.datasetElementType)}buildOrUpdateElements(e){const t=this,n=t._cachedMeta,r=t.getDataset();let i=!1;t._dataCheck();const o=n._stacked;n._stacked=Fr(n.vScale,n),n.stack!==r.stack&&(i=!0,Wr(n),n.stack=r.stack),t._resyncElements(e),(i||o!==n._stacked)&&Ir(t,n._parsed)}configure(){const e=this,t=e.chart.config,n=t.datasetScopeKeys(e._type),r=t.getOptionScopes(e.getDataset(),n,!0);e.options=t.createResolver(r,e.getContext()),e._parsing=e.options.parsing}parse(e,t){const n=this,{_cachedMeta:r,_data:i}=n,{iScale:o,_stacked:a}=r,s=o.axis;let c,u,l,d=0===e&&t===i.length||r._sorted,f=e>0&&r._parsed[e-1];if(!1===n._parsing)r._parsed=i,r._sorted=!0,l=i;else{l=k(i[e])?n.parseArrayData(r,i,e,t):T(i[e])?n.parseObjectData(r,i,e,t):n.parsePrimitiveData(r,i,e,t);const o=()=>null===u[s]||f&&u[s]<f[s];for(c=0;c<t;++c)r._parsed[c+e]=u=l[c],d&&(o()&&(d=!1),f=u);r._sorted=d}a&&Ir(n,l)}parsePrimitiveData(e,t,n,r){const{iScale:i,vScale:o}=e,a=i.axis,s=o.axis,c=i.getLabels(),u=i===o,l=new Array(r);let d,f,h;for(d=0,f=r;d<f;++d)h=d+n,l[d]={[a]:u||i.parse(c[h],h),[s]:o.parse(t[h],h)};return l}parseArrayData(e,t,n,r){const{xScale:i,yScale:o}=e,a=new Array(r);let s,c,u,l;for(s=0,c=r;s<c;++s)u=s+n,l=t[u],a[s]={x:i.parse(l[0],u),y:o.parse(l[1],u)};return a}parseObjectData(e,t,n,r){const{xScale:i,yScale:o}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,c=new Array(r);let u,l,d,f;for(u=0,l=r;u<l;++u)d=u+n,f=t[d],c[u]={x:i.parse(V(f,a),d),y:o.parse(V(f,s),d)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const r=this.chart,i=this._cachedMeta,o=t[e.axis],a={keys:Er(r,!0),values:t._stacks[e.axis]};return Ur(a,o,i.index,{mode:n})}updateRangeFromParsed(e,t,n,r){const i=n[t.axis];let o=null===i?NaN:i;const a=r&&n._stacks[t.axis];r&&a&&(r.values=a,e.min=Math.min(e.min,o),e.max=Math.max(e.max,o),o=Ur(r,i,this._cachedMeta.index,{all:!0})),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,t){const n=this,r=n._cachedMeta,i=r._parsed,o=r._sorted&&e===r.iScale,a=i.length,s=n._getOtherScale(e),c=t&&r._stacked&&{keys:Er(n.chart,!0),values:null},u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:l,max:d}=Rr(s);let f,h,p,g;function m(){return p=i[f],h=p[e.axis],g=p[s.axis],!S(h)||l>g||d<g}for(f=0;f<a;++f)if(!m()&&(n.updateRangeFromParsed(u,e,p,c),o))break;if(o)for(f=a-1;f>=0;--f)if(!m()){n.updateRangeFromParsed(u,e,p,c);break}return u}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let r,i,o;for(r=0,i=t.length;r<i;++r)o=t[r][e.axis],S(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this,n=t._cachedMeta,r=n.iScale,i=n.vScale,o=t.getParsed(e);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(e){const t=this,n=t._cachedMeta;t.configure(),t._cachedDataOpts={},t.update(e||"default"),n._clip=Ar(E(t.options.clip,Sr(n.xScale,n.yScale,t.getMaxOverflow())))}update(e){}draw(){const e=this,t=e._ctx,n=e.chart,r=e._cachedMeta,i=r.data||[],o=n.chartArea,a=[],s=e._drawStart||0,c=e._drawCount||i.length-s;let u;for(r.dataset&&r.dataset.draw(t,o,s,c),u=s;u<s+c;++u){const e=i[u];e.active?a.push(e):e.draw(t,o)}for(u=0;u<a.length;++u)a[u].draw(t,o)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const r=this,i=r.getDataset();let o;if(e>=0&&e<r._cachedMeta.data.length){const t=r._cachedMeta.data[e];o=t.$context||(t.$context=zr(r.getContext(),e,t)),o.parsed=r.getParsed(e),o.raw=i.data[e],o.index=o.dataIndex=e}else o=r.$context||(r.$context=Lr(r.chart.getContext(),r.index)),o.dataset=i,o.index=o.datasetIndex=r.index;return o.active=!!t,o.mode=n,o}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const r=this,i="active"===t,o=r._cachedDataOpts,a=e+"-"+t,s=o[a],c=r.enableOptionSharing&&$(n);if(s)return Hr(s,c);const u=r.chart.config,l=u.datasetElementScopeKeys(r._type,e),d=i?[e+"Hover","hover",e,""]:[e,""],f=u.getOptionScopes(r.getDataset(),l),h=Object.keys(xt.elements[e]),p=()=>r.getContext(n,i),g=u.resolveNamedOptions(f,h,p,d);return g.$shared&&(g.$shared=c,o[a]=Object.freeze(Hr(g,c))),g}_resolveAnimations(e,t,n){const r=this,i=r.chart,o=r._cachedDataOpts,a="animation-"+t,s=o[a];if(s)return s;let c;if(!1!==i.options.animation){const i=r.chart.config,o=i.datasetAnimationScopeKeys(r._type,t),a=i.getOptionScopes(r.getDataset(),o);c=i.createResolver(a,r.getContext(e,n,t))}const u=new Dr(i,c&&c.animations);return c&&c._cacheable&&(o[a]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||jr(e)||this.chart._animationsDisabled}updateElement(e,t,n,r){jr(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!jr(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;const i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this,n=t._data,r=t._cachedMeta.data;for(const[s,c,u]of t._syncList)t[s](c,u);t._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&t.parse(0,a),o>i?t._insertElements(i,o-i,e):o<i&&t._removeElements(o,i-o)}_insertElements(e,t,n=!0){const r=this,i=r._cachedMeta,o=i.data,a=e+t;let s;const c=e=>{for(e.length+=t,s=e.length-1;s>=a;s--)e[s]=e[s-t]};for(c(o),s=e;s<a;++s)o[s]=new r.dataElementType;r._parsing&&c(i._parsed),r.parse(e,t),n&&r.updateElements(o,e,t,"reset")}updateElements(e,t,n,r){}_removeElements(e,t){const n=this,r=n._cachedMeta;if(n._parsing){const n=r._parsed.splice(e,t);r._stacked&&Wr(r,n)}r.data.splice(e,t)}_onDataPush(){const e=arguments.length;this._syncList.push(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._syncList.push(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._syncList.push(["_removeElements",0,1])}_onDataSplice(e,t){this._syncList.push(["_removeElements",e,t]),this._syncList.push(["_insertElements",e,arguments.length-2])}_onDataUnshift(){this._syncList.push(["_insertElements",0,arguments.length])}}function qr(e){if(!e._cache.$bar){const t=e.getMatchingVisibleMetas("bar");let n=[];for(let r=0,i=t.length;r<i;r++)n=n.concat(t[r].controller.getAllParsedValues(e));e._cache.$bar=en(n.sort((e,t)=>e-t))}return e._cache.$bar}function $r(e){const t=qr(e);let n,r,i,o,a=e._length;const s=()=>{32767!==i&&-32768!==i&&($(o)&&(a=Math.min(a,Math.abs(i-o)||a)),o=i)};for(n=0,r=t.length;n<r;++n)i=e.getPixelForValue(t[n]),s();for(o=void 0,n=0,r=e.ticks.length;n<r;++n)i=e.getPixelForTick(n),s();return a}function Gr(e,t,n,r){const i=n.barThickness;let o,a;return C(i)?(o=t.min*n.categoryPercentage,a=n.barPercentage):(o=i*r,a=1),{chunk:o/r,ratio:a,start:t.pixels[e]-o/2}}function Xr(e,t,n,r){const i=t.pixels,o=i[e];let a=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const c=n.categoryPercentage;null===a&&(a=o-(null===s?t.end-t.start:s-o)),null===s&&(s=o+o-a);const u=o-(o-Math.min(a,s))/2*c,l=Math.abs(s-a)/2*c;return{chunk:l/r,ratio:n.barPercentage,start:u}}function Yr(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),a=Math.min(i,o),s=Math.max(i,o);let c=a,u=s;Math.abs(a)>Math.abs(s)&&(c=s,u=a),t[n.axis]=u,t._custom={barStart:c,barEnd:u,start:i,end:o,min:a,max:s}}function Kr(e,t,n,r){return k(e)?Yr(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Zr(e,t,n,r){const i=e.iScale,o=e.vScale,a=i.getLabels(),s=i===o,c=[];let u,l,d,f;for(u=n,l=n+r;u<l;++u)f=t[u],d={},d[i.axis]=s||i.parse(a[u],u),c.push(Kr(f,d,o,u));return c}function Jr(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}Vr.defaults={},Vr.prototype.datasetElementType=null,Vr.prototype.dataElementType=null;class Qr extends Vr{parsePrimitiveData(e,t,n,r){return Zr(e,t,n,r)}parseArrayData(e,t,n,r){return Zr(e,t,n,r)}parseObjectData(e,t,n,r){const{iScale:i,vScale:o}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,c="x"===i.axis?a:s,u="x"===o.axis?a:s,l=[];let d,f,h,p;for(d=n,f=n+r;d<f;++d)p=t[d],h={},h[i.axis]=i.parse(V(p,c),d),l.push(Kr(V(p,u),h,o,d));return l}updateRangeFromParsed(e,t,n,r){super.updateRangeFromParsed(e,t,n,r);const i=n._custom;i&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this,n=t._cachedMeta,{iScale:r,vScale:i}=n,o=t.getParsed(e),a=o._custom,s=Jr(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:s}}initialize(){const e=this;e.enableOptionSharing=!0,super.initialize();const t=e._cachedMeta;t.stack=e.getDataset().stack}update(e){const t=this,n=t._cachedMeta;t.updateElements(n.data,0,n.data.length,e)}updateElements(e,t,n,r){const i=this,o="reset"===r,a=i._cachedMeta.vScale,s=a.getBasePixel(),c=a.isHorizontal(),u=i._getRuler(),l=i.resolveDataElementOptions(t,r),d=i.getSharedOptions(l),f=i.includeOptions(r,d);i.updateSharedOptions(d,r,l);for(let h=t;h<t+n;h++){const t=i.getParsed(h),n=o||C(t[a.axis])?{base:s,head:s}:i._calculateBarValuePixels(h),l=i._calculateBarIndexPixels(h,u),p=(t._stacks||{})[a.axis],g={horizontal:c,base:n.base,enableBorderRadius:!p||Jr(t._custom)||i.index===p._top||i.index===p._bottom,x:c?n.head:l.center,y:c?l.center:n.head,height:c?l.size:Math.abs(n.size),width:c?Math.abs(n.size):l.size};f&&(g.options=d||i.resolveDataElementOptions(h,e[h].active?"active":r)),i.updateElement(e[h],h,g,r)}}_getStacks(e,t){const n=this,r=n._cachedMeta,i=r.iScale,o=i.getMatchingVisibleMetas(n._type),a=i.options.stacked,s=o.length,c=[];let u,l;for(u=0;u<s;++u)if(l=o[u],l.controller.options.grouped){if("undefined"!==typeof t){const e=l.controller.getParsed(t)[l.controller._cachedMeta.vScale.axis];if(C(e)||isNaN(e))continue}if((!1===a||-1===c.indexOf(l.stack)||void 0===a&&void 0===l.stack)&&c.push(l.stack),l.index===e)break}return c.length||c.push(void 0),c}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const r=this._getStacks(e,n),i=void 0!==t?r.indexOf(t):-1;return-1===i?r.length-1:i}_getRuler(){const e=this,t=e.options,n=e._cachedMeta,r=n.iScale,i=[];let o,a;for(o=0,a=n.data.length;o<a;++o)i.push(r.getPixelForValue(e.getParsed(o)[r.axis],o));const s=t.barThickness,c=s||$r(r);return{min:c,pixels:i,start:r._startPixel,end:r._endPixel,stackCount:e._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(e){const t=this,{vScale:n,_stacked:r}=t._cachedMeta,{base:i,minBarLength:o}=t.options,a=t.getParsed(e),s=a._custom,c=Jr(s);let u,l,d=a[n.axis],f=0,h=r?t.applyStack(n,a,r):d;h!==d&&(f=h-d,h=d),c&&(d=s.barStart,h=s.barEnd-s.barStart,0!==d&&ie(d)!==ie(s.barEnd)&&(f=0),f+=d);const p=C(i)||c?f:i;let g=n.getPixelForValue(p);u=this.chart.getDataVisibility(e)?n.getPixelForValue(f+h):g,l=u-g,void 0!==o&&Math.abs(l)<o&&(l=l<0?-o:o,0===d&&(g-=l/2),u=g+l);const m=i||0;if(g===n.getPixelForValue(m)){const e=n.getLineWidthForValue(m)/2;l>0?(g+=e,l-=e):l<0&&(g-=e,l+=e)}return{size:l,base:g,head:u,center:u+l/2}}_calculateBarIndexPixels(e,t){const n=this,r=t.scale,i=n.options,o=i.skipNull,a=E(i.maxBarThickness,1/0);let s,c;if(t.grouped){const r=o?n._getStackCount(e):t.stackCount,u="flex"===i.barThickness?Xr(e,t,i,r):Gr(e,t,i,r),l=n._getStackIndex(n.index,n._cachedMeta.stack,o?e:void 0);s=u.start+u.chunk*l+u.chunk/2,c=Math.min(a,u.chunk*u.ratio)}else s=r.getPixelForValue(n.getParsed(e)[r.axis],e),c=Math.min(a,t.min*t.ratio);return{base:s-c/2,head:s+c/2,center:s,size:c}}draw(){const e=this,t=e._cachedMeta,n=t.vScale,r=t.data,i=r.length;let o=0;for(;o<i;++o)null!==e.getParsed(o)[n.axis]&&r[o].draw(e._ctx)}}Qr.id="bar",Qr.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Qr.overrides={interaction:{mode:"index"},scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class ei extends Vr{initialize(){this.enableOptionSharing=!0,super.initialize()}parseObjectData(e,t,n,r){const{xScale:i,yScale:o}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,c=[];let u,l,d;for(u=n,l=n+r;u<l;++u)d=t[u],c.push({x:i.parse(V(d,a),u),y:o.parse(V(d,s),u),_custom:d&&d.r&&+d.r});return c}getMaxOverflow(){const{data:e,_parsed:t}=this._cachedMeta;let n=0;for(let r=e.length-1;r>=0;--r)n=Math.max(n,e[r].size()/2,t[r]._custom);return n>0&&n}getLabelAndValue(e){const t=this,n=t._cachedMeta,{xScale:r,yScale:i}=n,o=t.getParsed(e),a=r.getLabelForValue(o.x),s=i.getLabelForValue(o.y),c=o._custom;return{label:n.label,value:"("+a+", "+s+(c?", "+c:"")+")"}}update(e){const t=this,n=t._cachedMeta.data;t.updateElements(n,0,n.length,e)}updateElements(e,t,n,r){const i=this,o="reset"===r,{iScale:a,vScale:s}=i._cachedMeta,c=i.resolveDataElementOptions(t,r),u=i.getSharedOptions(c),l=i.includeOptions(r,u),d=a.axis,f=s.axis;for(let h=t;h<t+n;h++){const t=e[h],n=!o&&i.getParsed(h),c={},u=c[d]=o?a.getPixelForDecimal(.5):a.getPixelForValue(n[d]),p=c[f]=o?s.getBasePixel():s.getPixelForValue(n[f]);c.skip=isNaN(u)||isNaN(p),l&&(c.options=i.resolveDataElementOptions(h,t.active?"active":r),o&&(c.options.radius=0)),i.updateElement(t,h,c,r)}i.updateSharedOptions(u,r,c)}resolveDataElementOptions(e,t){const n=this.getParsed(e);let r=super.resolveDataElementOptions(e,t);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const i=r.radius;return"active"!==t&&(r.radius=0),r.radius+=E(n&&n._custom,i),r}}function ti(e,t,n){let r=1,i=1,o=0,a=0;if(t<K){const s=e,c=s+t,u=Math.cos(s),l=Math.sin(s),d=Math.cos(c),f=Math.sin(c),h=(e,t,r)=>be(e,s,c,!0)?1:Math.max(t,t*n,r,r*n),p=(e,t,r)=>be(e,s,c,!0)?-1:Math.min(t,t*n,r,r*n),g=h(0,u,d),m=h(ee,l,f),v=p(Y,u,d),b=p(Y+ee,l,f);r=(g-v)/2,i=(m-b)/2,o=-(g+v)/2,a=-(m+b)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:a}}ei.id="bubble",ei.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},ei.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};class ni extends Vr{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,r=this._cachedMeta;let i,o;for(i=e,o=e+t;i<o;++i)r._parsed[i]=+n[i]}_getRotation(){return de(this.options.rotation-90)}_getCircumference(){return de(this.options.circumference)}_getRotationExtents(){let e=K,t=-K;const n=this;for(let r=0;r<n.chart.data.datasets.length;++r)if(n.chart.isDatasetVisible(r)){const i=n.chart.getDatasetMeta(r).controller,o=i._getRotation(),a=i._getCircumference();e=Math.min(e,o),t=Math.max(t,o+a)}return{rotation:e,circumference:t-e}}update(e){const t=this,n=t.chart,{chartArea:r}=n,i=t._cachedMeta,o=i.data,a=t.getMaxBorderWidth()+t.getMaxOffset(o)+t.options.spacing,s=Math.max((Math.min(r.width,r.height)-a)/2,0),c=Math.min(U(t.options.cutout,s),1),u=t._getRingWeight(t.index),{circumference:l,rotation:d}=t._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:p,offsetY:g}=ti(d,l,c),m=(r.width-a)/f,v=(r.height-a)/h,b=Math.max(Math.min(m,v)/2,0),y=O(t.options.radius,b),x=Math.max(y*c,0),_=(y-x)/t._getVisibleDatasetWeightTotal();t.offsetX=p*y,t.offsetY=g*y,i.total=t.calculateTotal(),t.outerRadius=y-_*t._getRingWeightOffset(t.index),t.innerRadius=Math.max(t.outerRadius-_*u,0),t.updateElements(o,0,o.length,e)}_circumference(e,t){const n=this,r=n.options,i=n._cachedMeta,o=n._getCircumference();return t&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||null===i._parsed[e]?0:n.calculateCircumference(i._parsed[e]*o/K)}updateElements(e,t,n,r){const i=this,o="reset"===r,a=i.chart,s=a.chartArea,c=a.options,u=c.animation,l=(s.left+s.right)/2,d=(s.top+s.bottom)/2,f=o&&u.animateScale,h=f?0:i.innerRadius,p=f?0:i.outerRadius,g=i.resolveDataElementOptions(t,r),m=i.getSharedOptions(g),v=i.includeOptions(r,m);let b,y=i._getRotation();for(b=0;b<t;++b)y+=i._circumference(b,o);for(b=t;b<t+n;++b){const t=i._circumference(b,o),n=e[b],a={x:l+i.offsetX,y:d+i.offsetY,startAngle:y,endAngle:y+t,circumference:t,outerRadius:p,innerRadius:h};v&&(a.options=m||i.resolveDataElementOptions(b,n.active?"active":r)),y+=t,i.updateElement(n,b,a,r)}i.updateSharedOptions(m,r,g)}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,r=0;for(n=0;n<t.length;n++){const t=e._parsed[n];null!==t&&!isNaN(t)&&this.chart.getDataVisibility(n)&&(r+=Math.abs(t))}return r}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?K*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this,n=t._cachedMeta,r=t.chart,i=r.data.labels||[],o=Zn(n._parsed[e],r.options.locale);return{label:i[e]||"",value:o}}getMaxBorderWidth(e){const t=this;let n=0;const r=t.chart;let i,o,a,s,c;if(!e)for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){a=r.getDatasetMeta(i),e=a.data,s=a.controller,s!==t&&s.configure();break}if(!e)return 0;for(i=0,o=e.length;i<o;++i)c=s.resolveDataElementOptions(i),"inner"!==c.borderAlign&&(n=Math.max(n,c.borderWidth||0,c.hoverBorderWidth||0));return n}getMaxOffset(e){let t=0;for(let n=0,r=e.length;n<r;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(E(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ni.id="doughnut",ni.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},ni.descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e},ni.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((t,r)=>{const i=e.getDatasetMeta(0),o=i.controller.getStyle(r);return{text:t,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(e){let t=e.label;const n=": "+e.formattedValue;return k(t)?(t=t.slice(),t[0]+=n):t+=n,t}}}}};class ri extends Vr{initialize(){this.enableOptionSharing=!0,super.initialize()}update(e){const t=this,n=t._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,a=t.chart._animationsDisabled;let{start:s,count:c}=ii(n,i,a);t._drawStart=s,t._drawCount=c,oi(n)&&(s=0,c=i.length),r._decimated=!!o._decimated,r.points=i;const u=t.resolveDatasetElementOptions(e);t.options.showLine||(u.borderWidth=0),u.segment=t.options.segment,t.updateElement(r,void 0,{animated:!a,options:u},e),t.updateElements(i,s,c,e)}updateElements(e,t,n,r){const i=this,o="reset"===r,{iScale:a,vScale:s,_stacked:c}=i._cachedMeta,u=i.resolveDataElementOptions(t,r),l=i.getSharedOptions(u),d=i.includeOptions(r,l),f=a.axis,h=s.axis,p=i.options.spanGaps,g=se(p)?p:Number.POSITIVE_INFINITY,m=i.chart._animationsDisabled||o||"none"===r;let v=t>0&&i.getParsed(t-1);for(let b=t;b<t+n;++b){const t=e[b],n=i.getParsed(b),u=m?t:{},p=C(n[h]),y=u[f]=a.getPixelForValue(n[f],b),x=u[h]=o||p?s.getBasePixel():s.getPixelForValue(c?i.applyStack(s,n,c):n[h],b);u.skip=isNaN(y)||isNaN(x)||p,u.stop=b>0&&n[f]-v[f]>g,u.parsed=n,d&&(u.options=l||i.resolveDataElementOptions(b,t.active?"active":r)),m||i.updateElement(t,b,u,r),v=n}i.updateSharedOptions(l,r,u)}getMaxOverflow(){const e=this,t=e._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(e.resolveDataElementOptions(0)),a=i[i.length-1].size(e.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}function ii(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,c=a.axis,{min:u,max:l,minDefined:d,maxDefined:f}=a.getUserBounds();d&&(i=ye(Math.min(Xt(s,a.axis,u).lo,n?r:Xt(t,c,a.getPixelForValue(u)).lo),0,r-1)),o=f?ye(Math.max(Xt(s,a.axis,l).hi+1,n?0:Xt(t,c,a.getPixelForValue(l)).hi+1),i,r)-i:r-i}return{start:i,count:o}}function oi(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}ri.id="line",ri.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},ri.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class ai extends Vr{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this,n=t._cachedMeta,r=t.chart,i=r.data.labels||[],o=Zn(n._parsed[e].r,r.options.locale);return{label:i[e]||"",value:o}}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}_updateRadius(){const e=this,t=e.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),a=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),s=(o-a)/t.getVisibleDatasetCount();e.outerRadius=o-s*e.index,e.innerRadius=e.outerRadius-s}updateElements(e,t,n,r){const i=this,o="reset"===r,a=i.chart,s=i.getDataset(),c=a.options,u=c.animation,l=i._cachedMeta.rScale,d=l.xCenter,f=l.yCenter,h=l.getIndexAngle(0)-.5*Y;let p,g=h;const m=360/i.countVisibleElements();for(p=0;p<t;++p)g+=i._computeAngle(p,r,m);for(p=t;p<t+n;p++){const t=e[p];let n=g,c=g+i._computeAngle(p,r,m),v=a.getDataVisibility(p)?l.getDistanceFromCenterForValue(s.data[p]):0;g=c,o&&(u.animateScale&&(v=0),u.animateRotate&&(n=c=h));const b={x:d,y:f,innerRadius:0,outerRadius:v,startAngle:n,endAngle:c,options:i.resolveDataElementOptions(p,t.active?"active":r)};i.updateElement(t,p,b,r)}}countVisibleElements(){const e=this.getDataset(),t=this._cachedMeta;let n=0;return t.data.forEach((t,r)=>{!isNaN(e.data[r])&&this.chart.getDataVisibility(r)&&n++}),n}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?de(this.resolveDataElementOptions(e,t).angle||n):0}}ai.id="polarArea",ai.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},ai.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((t,r)=>{const i=e.getDatasetMeta(0),o=i.controller.getStyle(r);return{text:t,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(e){return e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class si extends ni{}si.id="pie",si.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class ci extends Vr{getLabelAndValue(e){const t=this,n=t._cachedMeta.vScale,r=t.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(r[n.axis])}}update(e){const t=this,n=t._cachedMeta,r=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(r.points=i,"resize"!==e){const n=t.resolveDatasetElementOptions(e);t.options.showLine||(n.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:n};t.updateElement(r,void 0,a,e)}t.updateElements(i,0,i.length,e)}updateElements(e,t,n,r){const i=this,o=i.getDataset(),a=i._cachedMeta.rScale,s="reset"===r;for(let c=t;c<t+n;c++){const t=e[c],n=i.resolveDataElementOptions(c,t.active?"active":r),u=a.getPointPositionForValue(c,o.data[c]),l=s?a.xCenter:u.x,d=s?a.yCenter:u.y,f={x:l,y:d,angle:u.angle,skip:isNaN(l)||isNaN(d),options:n};i.updateElement(t,c,f,r)}}}ci.id="radar",ci.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},ci.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class ui extends ri{}ui.id="scatter",ui.defaults={showLine:!1,fill:!1},ui.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(e){return"("+e.label+", "+e.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var li=Object.freeze({__proto__:null,BarController:Qr,BubbleController:ei,DoughnutController:ni,LineController:ri,PolarAreaController:ai,PieController:si,RadarController:ci,ScatterController:ui});function di(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class fi{constructor(e){this.options=e||{}}formats(){return di()}parse(e,t){return di()}format(e,t){return di()}add(e,t,n){return di()}diff(e,t,n){return di()}startOf(e,t,n){return di()}endOf(e,t){return di()}}fi.override=function(e){Object.assign(fi.prototype,e)};var hi={_date:fi};function pi(e,t){return"native"in e?{x:e.x,y:e.y}:Ln(e,t)}function gi(e,t){const n=e.getSortedVisibleDatasetMetas();let r,i,o;for(let a=0,s=n.length;a<s;++a){({index:r,data:i}=n[a]);for(let e=0,n=i.length;e<n;++e)o=i[e],o.skip||t(o,r,e)}}function mi(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&a&&o.length){const e=s._reversePixels?Yt:Xt;if(!r)return e(o,t,n);if(i._sharedOptions){const r=o[0],i="function"===typeof r.getRange&&r.getRange(t);if(i){const r=e(o,t,n-i),a=e(o,t,n+i);return{lo:r.lo,hi:a.hi}}}}return{lo:0,hi:o.length-1}}function vi(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,c=o.length;s<c;++s){const{index:e,data:n}=o[s],{lo:c,hi:u}=mi(o[s],t,a,i);for(let t=c;t<=u;++t){const i=n[t];i.skip||r(i,e,t)}}}function bi(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){const i=t?Math.abs(e.x-r.x):0,o=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}function yi(e,t,n,r){const i=[];if(!St(t,e.chartArea,e._minPadding))return i;const o=function(e,n,o){e.inRange(t.x,t.y,r)&&i.push({element:e,datasetIndex:n,index:o})};return vi(e,n,t,o,!0),i}function xi(e,t,n,r,i){const o=bi(n);let a=Number.POSITIVE_INFINITY,s=[];if(!St(t,e.chartArea,e._minPadding))return s;const c=function(n,c,u){if(r&&!n.inRange(t.x,t.y,i))return;const l=n.getCenterPoint(i);if(!St(l,e.chartArea,e._minPadding))return;const d=o(t,l);d<a?(s=[{element:n,datasetIndex:c,index:u}],a=d):d===a&&s.push({element:n,datasetIndex:c,index:u})};return vi(e,n,t,c),s}function _i(e,t,n,r){const i=pi(t,e),o=[],a=n.axis,s="x"===a?"inXRange":"inYRange";let c=!1;return gi(e,(e,t,n)=>{e[s](i[a],r)&&o.push({element:e,datasetIndex:t,index:n}),e.inRange(i.x,i.y,r)&&(c=!0)}),n.intersect&&!c?[]:o}var wi={modes:{index(e,t,n,r){const i=pi(t,e),o=n.axis||"x",a=n.intersect?yi(e,i,o,r):xi(e,i,o,!1,r),s=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{const t=a[0].index,n=e.data[t];n&&!n.skip&&s.push({element:n,datasetIndex:e.index,index:t})}),s):[]},dataset(e,t,n,r){const i=pi(t,e),o=n.axis||"xy";let a=n.intersect?yi(e,i,o,r):xi(e,i,o,!1,r);if(a.length>0){const t=a[0].datasetIndex,n=e.getDatasetMeta(t).data;a=[];for(let e=0;e<n.length;++e)a.push({element:n[e],datasetIndex:t,index:e})}return a},point(e,t,n,r){const i=pi(t,e),o=n.axis||"xy";return yi(e,i,o,r)},nearest(e,t,n,r){const i=pi(t,e),o=n.axis||"xy";return xi(e,i,o,n.intersect,r)},x(e,t,n,r){return n.axis="x",_i(e,t,n,r)},y(e,t,n,r){return n.axis="y",_i(e,t,n,r)}}};const Di=["left","top","right","bottom"];function Ci(e,t){return e.filter(e=>e.pos===t)}function ki(e,t){return e.filter(e=>-1===Di.indexOf(e.pos)&&e.box.axis===t)}function Ti(e,t){return e.sort((e,n)=>{const r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function Si(e){const t=[];let n,r,i;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],t.push({index:n,box:i,pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return t}function Ai(e,t){let n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],i.horizontal?(i.width=i.box.fullSize&&t.availableWidth,i.height=t.hBoxMaxHeight):(i.width=t.vBoxMaxWidth,i.height=i.box.fullSize&&t.availableHeight)}function Ei(e){const t=Si(e),n=Ti(t.filter(e=>e.box.fullSize),!0),r=Ti(Ci(t,"left"),!0),i=Ti(Ci(t,"right")),o=Ti(Ci(t,"top"),!0),a=Ti(Ci(t,"bottom")),s=ki(t,"x"),c=ki(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(c).concat(a).concat(s),chartArea:Ci(t,"chartArea"),vertical:r.concat(i).concat(c),horizontal:o.concat(a).concat(s)}}function Ui(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Oi(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Fi(e,t,n){const r=n.box,i=e.maxPadding;T(n.pos)||(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?r.height:r.width,e[n.pos]+=n.size),r.getPadding&&Oi(i,r.getPadding());const o=Math.max(0,t.outerWidth-Ui(i,e,"left","right")),a=Math.max(0,t.outerHeight-Ui(i,e,"top","bottom")),s=o!==e.w,c=a!==e.h;return e.w=o,e.h=a,n.horizontal?{same:s,other:c}:{same:c,other:s}}function Pi(e){const t=e.maxPadding;function n(n){const r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Ri(e,t){const n=t.maxPadding;function r(e){const r={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{r[e]=Math.max(t[e],n[e])}),r}return r(e?["left","right"]:["top","bottom"])}function Ni(e,t,n){const r=[];let i,o,a,s,c,u;for(i=0,o=e.length,c=0;i<o;++i){a=e[i],s=a.box,s.update(a.width||t.w,a.height||t.h,Ri(a.horizontal,t));const{same:o,other:l}=Fi(t,n,a);c|=o&&r.length,u=u||l,s.fullSize||r.push(a)}return c&&Ni(r,t,n)||u}function Mi(e,t,n){const r=n.padding;let i,o,a,s,c=t.x,u=t.y;for(i=0,o=e.length;i<o;++i)a=e[i],s=a.box,a.horizontal?(s.left=s.fullSize?r.left:t.left,s.right=s.fullSize?n.outerWidth-r.right:t.left+t.w,s.top=u,s.bottom=u+s.height,s.width=s.right-s.left,u=s.bottom):(s.left=c,s.right=c+s.width,s.top=s.fullSize?r.top:t.top,s.bottom=s.fullSize?n.outerHeight-r.bottom:t.top+t.h,s.height=s.bottom-s.top,c=s.right);t.x=c,t.y=u}xt.set("layout",{padding:{top:0,right:0,bottom:0,left:0}});var Ii={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=Ht(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),s=Ei(e.boxes),c=s.vertical,u=s.horizontal;P(e.boxes,e=>{"function"===typeof e.beforeLayout&&e.beforeLayout()});const l=c.reduce((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/l,hBoxMaxHeight:a/2}),f=Object.assign({},i);Oi(f,Ht(r));const h=Object.assign({maxPadding:f,w:o,h:a,x:i.left,y:i.top},i);Ai(c.concat(u),d),Ni(s.fullSize,h,d),Ni(c,h,d),Ni(u,h,d)&&Ni(c,h,d),Pi(h),Mi(s.leftAndTop,h,d),h.x+=h.w,h.y+=h.h,Mi(s.rightAndBottom,h,d),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},P(s.chartArea,t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h)})}};class Bi{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}}class Li extends Bi{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}}const zi="$chartjs",Wi={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ji=e=>null===e||""===e;function Hi(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[zi]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ji(i)){const t=qn(e,"width");void 0!==t&&(e.width=t)}if(ji(r))if(""===e.style.height)e.height=e.width/(t||2);else{const t=qn(e,"height");void 0!==t&&(e.height=t)}return e}const Vi=!!Vn&&{passive:!0};function qi(e,t,n){e.addEventListener(t,n,Vi)}function $i(e,t,n){e.canvas.removeEventListener(t,n,Vi)}function Gi(e,t){const n=Wi[e.type]||e.type,{x:r,y:i}=Ln(e,t);return{type:n,chart:t,native:e,x:void 0!==r?r:null,y:void 0!==i?i:null}}function Xi(e,t,n){const r=e.canvas,i=r&&On(r),o=i||r,a=new MutationObserver(e=>{const t=On(o);e.forEach(e=>{for(let r=0;r<e.addedNodes.length;r++){const i=e.addedNodes[r];i!==o&&i!==t||n(e.target)}})});return a.observe(document,{childList:!0,subtree:!0}),a}function Yi(e,t,n){const r=e.canvas,i=r&&On(r);if(!i)return;const o=new MutationObserver(e=>{e.forEach(e=>{for(let t=0;t<e.removedNodes.length;t++)if(e.removedNodes[t]===r){n();break}})});return o.observe(i,{childList:!0}),o}const Ki=new Map;let Zi=0;function Ji(){const e=window.devicePixelRatio;e!==Zi&&(Zi=e,Ki.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Qi(e,t){Ki.size||window.addEventListener("resize",Ji),Ki.set(e,t)}function eo(e){Ki.delete(e),Ki.size||window.removeEventListener("resize",Ji)}function to(e,t,n){const r=e.canvas,i=r&&On(r);if(!i)return;const o=v((e,t)=>{const r=i.clientWidth;n(e,t),r<i.clientWidth&&n()},window),a=new ResizeObserver(e=>{const t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||o(n,r)});return a.observe(i),Qi(e,o),a}function no(e,t,n){n&&n.disconnect(),"resize"===t&&eo(e)}function ro(e,t,n){const r=e.canvas,i=v(t=>{null!==e.ctx&&n(Gi(t,e))},e,e=>{const t=e[0];return[t,t.offsetX,t.offsetY]});return qi(r,t,i),i}class io extends Bi{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(Hi(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[zi])return!1;const n=t[zi].initial;["height","width"].forEach(e=>{const r=n[e];C(r)?t.removeAttribute(e):t.setAttribute(e,r)});const r=n.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t[zi],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const r=e.$proxies||(e.$proxies={}),i={attach:Xi,detach:Yi,resize:to},o=i[t]||ro;r[t]=o(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),r=n[t];if(!r)return;const i={attach:no,detach:no,resize:no},o=i[t]||$i;o(e,t,r),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return jn(e,t,n,r)}isAttached(e){const t=On(e);return!(!t||!On(t))}}class oo{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return se(this.x)&&se(this.y)}getProps(e,t){const n=this,r=this.$animations;if(!t||!r)return n;const i={};return e.forEach(e=>{i[e]=r[e]&&r[e].active()?r[e]._to:n[e]}),i}}oo.defaults={},oo.defaultRoutes=void 0;const ao={values(e){return k(e)?e:""+e},numeric(e,t,n){if(0===e)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(i="scientific"),o=so(e,n)}const a=re(Math.abs(o)),s=Math.max(Math.min(-1*Math.floor(a),20),0),c={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),Zn(e,r,c)},logarithmic(e,t,n){if(0===e)return"0";const r=e/Math.pow(10,Math.floor(re(e)));return 1===r||2===r||5===r?ao.numeric.call(this,e,t,n):""}};function so(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var co={formatters:ao};function uo(e,t){const n=e.options.ticks,r=n.maxTicksLimit||lo(e),i=n.major.enabled?ho(t):[],o=i.length,a=i[0],s=i[o-1],c=[];if(o>r)return po(t,c,i,o/r),c;const u=fo(i,t,r);if(o>0){let e,n;const r=o>1?Math.round((s-a)/(o-1)):null;for(go(t,c,u,C(r)?0:a-r,a),e=0,n=o-1;e<n;e++)go(t,c,u,i[e],i[e+1]);return go(t,c,u,s,C(r)?t.length:s+r),c}return go(t,c,u),c}function lo(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function fo(e,t,n){const r=mo(e),i=t.length/n;if(!r)return Math.max(i,1);const o=ae(r);for(let a=0,s=o.length-1;a<s;a++){const e=o[a];if(e>i)return e}return Math.max(i,1)}function ho(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function po(e,t,n,r){let i,o=0,a=n[0];for(r=Math.ceil(r),i=0;i<e.length;i++)i===a&&(t.push(e[i]),o++,a=n[o*r])}function go(e,t,n,r,i){const o=E(r,0),a=Math.min(E(i,e.length),e.length);let s,c,u,l=0;n=Math.ceil(n),i&&(s=i-r,n=s/Math.floor(s/n)),u=o;while(u<0)l++,u=Math.round(o+l*n);for(c=Math.max(o,0);c<a;c++)c===u&&(t.push(e[c]),l++,u=Math.round(o+l*n))}function mo(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}xt.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:co.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),xt.route("scale.ticks","color","","color"),xt.route("scale.grid","color","","borderColor"),xt.route("scale.grid","borderColor","","borderColor"),xt.route("scale.title","color","","color"),xt.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),xt.describe("scales",{_fallback:"scale"}),xt.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e});const vo=e=>"left"===e?"right":"right"===e?"left":e,bo=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n;function yo(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function xo(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,a=e._endPixel,s=1e-6;let c,u=e.getPixelForTick(i);if(!(n&&(c=1===r?Math.max(u-o,a-u):0===t?(e.getPixelForTick(1)-u)/2:(u-e.getPixelForTick(i-1))/2,u+=i<t?c:-c,u<o-s||u>a+s)))return u}function _o(e,t){P(e,e=>{const n=e.gc,r=n.length/2;let i;if(r>t){for(i=0;i<r;++i)delete e.data[n[i]];n.splice(0,r)}})}function wo(e){return e.drawTicks?e.tickLength:0}function Do(e,t){if(!e.display)return 0;const n=Vt(e.font,t),r=Ht(e.padding),i=k(e.text)?e.text.length:1;return i*n.lineHeight+r.height}function Co(e,t){return Object.assign(Object.create(e),{scale:t,type:"scale"})}function ko(e,t,n){return Object.assign(Object.create(e),{tick:n,index:t,type:"tick"})}function To(e,t,n){let r=y(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=vo(r)),r}function So(e,t,n,r){const{top:i,left:o,bottom:a,right:s}=e;let c,u,l,d=0;return e.isHorizontal()?(u=x(r,o,s),l=bo(e,n,t),c=s-o):(u=bo(e,n,t),l=x(r,a,i),d="left"===n?-ee:ee),{titleX:u,titleY:l,maxWidth:c,rotation:d}}class Ao extends oo{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){const t=this;t.options=e.setContext(t.getContext()),t.axis=e.axis,t._userMin=t.parse(e.min),t._userMax=t.parse(e.max),t._suggestedMin=t.parse(e.suggestedMin),t._suggestedMax=t.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=A(e,Number.POSITIVE_INFINITY),t=A(t,Number.NEGATIVE_INFINITY),n=A(n,Number.POSITIVE_INFINITY),r=A(r,Number.NEGATIVE_INFINITY),{min:A(e,n),max:A(t,r),minDefined:S(e),maxDefined:S(t)}}getMinMax(e){const t=this;let n,{min:r,max:i,minDefined:o,maxDefined:a}=t.getUserBounds();if(o&&a)return{min:r,max:i};const s=t.getMatchingVisibleMetas();for(let c=0,u=s.length;c<u;++c)n=s[c].controller.getMinMax(t,e),o||(r=Math.min(r,n.min)),a||(i=Math.max(i,n.max));return{min:A(r,A(i,r)),max:A(i,A(r,i))}}getPadding(){const e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){F(this.options.beforeUpdate,[this])}update(e,t,n){const r=this,i=r.options.ticks,o=i.sampleSize;r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),r.ticks=null,r._labelSizes=null,r._gridLineItems=null,r._labelItems=null,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r._maxLength=r.isHorizontal()?r.width+n.left+n.right:r.height+n.top+n.bottom,r._dataLimitsCached||(r.beforeDataLimits(),r.determineDataLimits(),r.afterDataLimits(),r._range=$t(r,r.options.grace),r._dataLimitsCached=!0),r.beforeBuildTicks(),r.ticks=r.buildTicks()||[],r.afterBuildTicks();const a=o<r.ticks.length;r._convertTicksToLabels(a?yo(r.ticks,o):r.ticks),r.configure(),r.beforeCalculateLabelRotation(),r.calculateLabelRotation(),r.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(r.ticks=uo(r,r.ticks),r._labelSizes=null),a&&r._convertTicksToLabels(r.ticks),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate()}configure(){const e=this;let t,n,r=e.options.reverse;e.isHorizontal()?(t=e.left,n=e.right):(t=e.top,n=e.bottom,r=!r),e._startPixel=t,e._endPixel=n,e._reversePixels=r,e._length=n-t,e._alignToPixels=e.options.alignToPixels}afterUpdate(){F(this.options.afterUpdate,[this])}beforeSetDimensions(){F(this.options.beforeSetDimensions,[this])}setDimensions(){const e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0}afterSetDimensions(){F(this.options.afterSetDimensions,[this])}_callHooks(e){const t=this;t.chart.notifyPlugins(e,t.getContext()),F(t.options[e],[t])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){F(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this,n=t.options.ticks;let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r],o.label=F(n.callback,[o.value,r,e],t)}afterTickToLabelConversion(){F(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){F(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this,t=e.options,n=t.ticks,r=e.ticks.length,i=n.minRotation||0,o=n.maxRotation;let a,s,c,u=i;if(!e._isVisible()||!n.display||i>=o||r<=1||!e.isHorizontal())return void(e.labelRotation=i);const l=e._getLabelSizes(),d=l.widest.width,f=l.highest.height,h=ye(e.chart.width-d,0,e.maxWidth);a=t.offset?e.maxWidth/r:h/(r-1),d+6>a&&(a=h/(r-(t.offset?.5:1)),s=e.maxHeight-wo(t.grid)-n.padding-Do(t.title,e.chart.options.font),c=Math.sqrt(d*d+f*f),u=fe(Math.min(Math.asin(Math.min((l.highest.height+6)/a,1)),Math.asin(Math.min(s/c,1))-Math.asin(f/c))),u=Math.max(i,Math.min(o,u))),e.labelRotation=u}afterCalculateLabelRotation(){F(this.options.afterCalculateLabelRotation,[this])}beforeFit(){F(this.options.beforeFit,[this])}fit(){const e=this,t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=e,a=e._isVisible(),s=e.isHorizontal();if(a){const a=Do(i,n.options.font);if(s?(t.width=e.maxWidth,t.height=wo(o)+a):(t.height=e.maxHeight,t.width=wo(o)+a),r.display&&e.ticks.length){const{first:n,last:i,widest:o,highest:a}=e._getLabelSizes(),c=2*r.padding,u=de(e.labelRotation),l=Math.cos(u),d=Math.sin(u);if(s){const n=r.mirror?0:d*o.width+l*a.height;t.height=Math.min(e.maxHeight,t.height+n+c)}else{const n=r.mirror?0:l*o.width+d*a.height;t.width=Math.min(e.maxWidth,t.width+n+c)}e._calculatePadding(n,i,d,l)}}e._handleMargins(),s?(e.width=e._length=n.width-e._margins.left-e._margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e._margins.top-e._margins.bottom)}_calculatePadding(e,t,n,r){const i=this,{ticks:{align:o,padding:a},position:s}=i.options,c=0!==i.labelRotation,u="top"!==s&&"x"===i.axis;if(i.isHorizontal()){const s=i.getPixelForTick(0)-i.left,l=i.right-i.getPixelForTick(i.ticks.length-1);let d=0,f=0;c?u?(d=r*e.width,f=n*t.height):(d=n*e.height,f=r*t.width):"start"===o?f=t.width:"end"===o?d=e.width:(d=e.width/2,f=t.width/2),i.paddingLeft=Math.max((d-s+a)*i.width/(i.width-s),0),i.paddingRight=Math.max((f-l+a)*i.width/(i.width-l),0)}else{let n=t.height/2,r=e.height/2;"start"===o?(n=0,r=e.height):"end"===o&&(n=t.height,r=0),i.paddingTop=n+a,i.paddingBottom=r+a}}_handleMargins(){const e=this;e._margins&&(e._margins.left=Math.max(e.paddingLeft,e._margins.left),e._margins.top=Math.max(e.paddingTop,e._margins.top),e._margins.right=Math.max(e.paddingRight,e._margins.right),e._margins.bottom=Math.max(e.paddingBottom,e._margins.bottom))}afterFit(){F(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){const t=this;let n,r;for(t.beforeTickToLabelConversion(),t.generateTickLabels(e),n=0,r=e.length;n<r;n++)C(e[n].label)&&(e.splice(n,1),r--,n--);t.afterTickToLabelConversion()}_getLabelSizes(){const e=this;let t=e._labelSizes;if(!t){const n=e.options.ticks.sampleSize;let r=e.ticks;n<r.length&&(r=yo(r,n)),e._labelSizes=t=e._computeLabelSizes(r,r.length)}return t}_computeLabelSizes(e,t){const{ctx:n,_longestTextCache:r}=this,i=[],o=[];let a,s,c,u,l,d,f,h,p,g,m,v=0,b=0;for(a=0;a<t;++a){if(u=e[a].label,l=this._resolveTickFontOptions(a),n.font=d=l.string,f=r[d]=r[d]||{data:{},gc:[]},h=l.lineHeight,p=g=0,C(u)||k(u)){if(k(u))for(s=0,c=u.length;s<c;++s)m=u[s],C(m)||k(m)||(p=wt(n,f.data,f.gc,p,m),g+=h)}else p=wt(n,f.data,f.gc,p,u),g=h;i.push(p),o.push(g),v=Math.max(p,v),b=Math.max(g,b)}_o(r,t);const y=i.indexOf(v),x=o.indexOf(b),_=e=>({width:i[e]||0,height:o[e]||0});return{first:_(0),last:_(t-1),widest:_(y),highest:_(x),widths:i,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){const t=this;t._reversePixels&&(e=1-e);const n=t._startPixel+e*t._length;return xe(t._alignToPixels?Ct(t.chart,n,0):n)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this,n=t.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=ko(t.getContext(),e,r))}return t.$context||(t.$context=Co(t.chart.getContext(),t))}_tickSize(){const e=this,t=e.options.ticks,n=de(e.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=e._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,c=o?o.highest.height+a:0;return e.isHorizontal()?c*r>s*i?s/r:c/i:c*i<s*r?c/r:s/i}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this,n=t.axis,r=t.chart,i=t.options,{grid:o,position:a}=i,s=o.offset,c=t.isHorizontal(),u=t.ticks,l=u.length+(s?1:0),d=wo(o),f=[],h=o.setContext(t.getContext()),p=h.drawBorder?h.borderWidth:0,g=p/2,m=function(e){return Ct(r,e,p)};let v,b,y,x,_,w,D,C,k,S,A,U;if("top"===a)v=m(t.bottom),w=t.bottom-d,C=v-g,S=m(e.top)+g,U=e.bottom;else if("bottom"===a)v=m(t.top),S=e.top,U=m(e.bottom)-g,w=v+g,C=t.top+d;else if("left"===a)v=m(t.right),_=t.right-d,D=v-g,k=m(e.left)+g,A=e.right;else if("right"===a)v=m(t.left),k=e.left,A=m(e.right)-g,_=v+g,D=t.left+d;else if("x"===n){if("center"===a)v=m((e.top+e.bottom)/2+.5);else if(T(a)){const e=Object.keys(a)[0],n=a[e];v=m(t.chart.scales[e].getPixelForValue(n))}S=e.top,U=e.bottom,w=v+g,C=w+d}else if("y"===n){if("center"===a)v=m((e.left+e.right)/2);else if(T(a)){const e=Object.keys(a)[0],n=a[e];v=m(t.chart.scales[e].getPixelForValue(n))}_=v-g,D=_-d,k=e.left,A=e.right}const O=E(i.ticks.maxTicksLimit,l),F=Math.max(1,Math.ceil(l/O));for(b=0;b<l;b+=F){const e=o.setContext(t.getContext(b)),n=e.lineWidth,i=e.color,a=o.borderDash||[],u=e.borderDashOffset,l=e.tickWidth,d=e.tickColor,h=e.tickBorderDash||[],p=e.tickBorderDashOffset;y=xo(t,b,s),void 0!==y&&(x=Ct(r,y,n),c?_=D=k=A=x:w=C=S=U=x,f.push({tx1:_,ty1:w,tx2:D,ty2:C,x1:k,y1:S,x2:A,y2:U,width:n,color:i,borderDash:a,borderDashOffset:u,tickWidth:l,tickColor:d,tickBorderDash:h,tickBorderDashOffset:p}))}return t._ticksLength=l,t._borderValue=v,f}_computeLabelItems(e){const t=this,n=t.axis,r=t.options,{position:i,ticks:o}=r,a=t.isHorizontal(),s=t.ticks,{align:c,crossAlign:u,padding:l,mirror:d}=o,f=wo(r.grid),h=f+l,p=d?-l:h,g=-de(t.labelRotation),m=[];let v,b,y,x,_,w,D,C,S,A,E,U,O="middle";if("top"===i)w=t.bottom-p,D=t._getXAxisLabelAlignment();else if("bottom"===i)w=t.top+p,D=t._getXAxisLabelAlignment();else if("left"===i){const e=t._getYAxisLabelAlignment(f);D=e.textAlign,_=e.x}else if("right"===i){const e=t._getYAxisLabelAlignment(f);D=e.textAlign,_=e.x}else if("x"===n){if("center"===i)w=(e.top+e.bottom)/2+h;else if(T(i)){const e=Object.keys(i)[0],n=i[e];w=t.chart.scales[e].getPixelForValue(n)+h}D=t._getXAxisLabelAlignment()}else if("y"===n){if("center"===i)_=(e.left+e.right)/2-h;else if(T(i)){const e=Object.keys(i)[0],n=i[e];_=t.chart.scales[e].getPixelForValue(n)}D=t._getYAxisLabelAlignment(f).textAlign}"y"===n&&("start"===c?O="top":"end"===c&&(O="bottom"));const F=t._getLabelSizes();for(v=0,b=s.length;v<b;++v){y=s[v],x=y.label;const e=o.setContext(t.getContext(v));C=t.getPixelForTick(v)+o.labelOffset,S=t._resolveTickFontOptions(v),A=S.lineHeight,E=k(x)?x.length:1;const n=E/2,r=e.color,c=e.textStrokeColor,l=e.textStrokeWidth;let f;if(a?(_=C,U="top"===i?"near"===u||0!==g?-E*A+A/2:"center"===u?-F.highest.height/2-n*A+A:-F.highest.height+A/2:"near"===u||0!==g?A/2:"center"===u?F.highest.height/2-n*A:F.highest.height-E*A,d&&(U*=-1)):(w=C,U=(1-E)*A/2),e.showLabelBackdrop){const t=Ht(e.backdropPadding),n=F.heights[v],r=F.widths[v];let i=w+U-t.top,o=_-t.left;switch(O){case"middle":i-=n/2;break;case"bottom":i-=n;break}switch(D){case"center":o-=r/2;break;case"right":o-=r;break}f={left:o,top:i,width:r+t.width,height:n+t.height,color:e.backdropColor}}m.push({rotation:g,label:x,font:S,color:r,strokeColor:c,strokeWidth:l,textOffset:U,textAlign:D,textBaseline:O,translation:[_,w],backdrop:f})}return m}_getXAxisLabelAlignment(){const e=this,{position:t,ticks:n}=e.options,r=-de(e.labelRotation);if(r)return"top"===t?"left":"right";let i="center";return"start"===n.align?i="left":"end"===n.align&&(i="right"),i}_getYAxisLabelAlignment(e){const t=this,{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=t.options,a=t._getLabelSizes(),s=e+o,c=a.widest.width;let u,l;return"left"===n?i?(u="left",l=t.right+o):(l=t.right-s,"near"===r?u="right":"center"===r?(u="center",l-=c/2):(u="left",l=t.left)):"right"===n?i?(u="right",l=t.left+o):(l=t.left+s,"near"===r?u="left":"center"===r?(u="center",l+=c/2):(u="right",l=t.right)):u="right",{textAlign:u,x:l}}_computeLabelArea(){const e=this;if(e.options.ticks.mirror)return;const t=e.chart,n=e.options.position;return"left"===n||"right"===n?{top:0,left:e.left,bottom:t.height,right:e.right}:"top"===n||"bottom"===n?{top:e.top,left:0,bottom:e.bottom,right:t.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:r,width:i,height:o}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,o),e.restore())}getLineWidthForValue(e){const t=this,n=t.options.grid;if(!t._isVisible()||!n.display)return 0;const r=t.ticks,i=r.findIndex(t=>t.value===e);if(i>=0){const e=n.setContext(t.getContext(i));return e.lineWidth}return 0}drawGrid(e){const t=this,n=t.options.grid,r=t.ctx,i=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));let o,a;const s=(e,t,n)=>{n.width&&n.color&&(r.save(),r.lineWidth=n.width,r.strokeStyle=n.color,r.setLineDash(n.borderDash||[]),r.lineDashOffset=n.borderDashOffset,r.beginPath(),r.moveTo(e.x,e.y),r.lineTo(t.x,t.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o<a;++o){const e=i[o];n.drawOnChartArea&&s({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),n.drawTicks&&s({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const e=this,{chart:t,ctx:n,options:{grid:r}}=e,i=r.setContext(e.getContext()),o=r.drawBorder?i.borderWidth:0;if(!o)return;const a=r.setContext(e.getContext(0)).lineWidth,s=e._borderValue;let c,u,l,d;e.isHorizontal()?(c=Ct(t,e.left,o)-o/2,u=Ct(t,e.right,a)+a/2,l=d=s):(l=Ct(t,e.top,o)-o/2,d=Ct(t,e.bottom,a)+a/2,c=u=s),n.save(),n.lineWidth=i.borderWidth,n.strokeStyle=i.borderColor,n.beginPath(),n.moveTo(c,l),n.lineTo(u,d),n.stroke(),n.restore()}drawLabels(e){const t=this,n=t.options.ticks;if(!n.display)return;const r=t.ctx,i=t._computeLabelArea();i&&At(r,i);const o=t._labelItems||(t._labelItems=t._computeLabelItems(e));let a,s;for(a=0,s=o.length;a<s;++a){const e=o[a],t=e.font,n=e.label;e.backdrop&&(r.fillStyle=e.backdrop.color,r.fillRect(e.backdrop.left,e.backdrop.top,e.backdrop.width,e.backdrop.height));let i=e.textOffset;Ft(r,n,0,i,t,e)}i&&Et(r)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;const i=Vt(n.font),o=Ht(n.padding),a=n.align;let s=i.lineHeight/2;"bottom"===t?(s+=o.bottom,k(n.text)&&(s+=i.lineHeight*(n.text.length-1))):s+=o.top;const{titleX:c,titleY:u,maxWidth:l,rotation:d}=So(this,s,t,a);Ft(e,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:d,textAlign:To(a,t,r),textBaseline:"middle",translation:[c,u]})}draw(e){const t=this;t._isVisible()&&(t.drawBackground(),t.drawGrid(e),t.drawBorder(),t.drawTitle(),t.drawLabels(e))}_layers(){const e=this,t=e.options,n=t.ticks&&t.ticks.z||0,r=t.grid&&t.grid.z||0;return e._isVisible()&&e.draw===Ao.prototype.draw?[{z:r,draw(t){e.drawBackground(),e.drawGrid(t),e.drawTitle()}},{z:r+1,draw(){e.drawBorder()}},{z:n,draw(t){e.drawLabels(t)}}]:[{z:n,draw(t){e.draw(t)}}]}getMatchingVisibleMetas(e){const t=this,n=t.chart.getSortedVisibleDatasetMetas(),r=t.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o<a;++o){const a=n[o];a[r]!==t.id||e&&a.type!==e||i.push(a)}return i}_resolveTickFontOptions(e){const t=this.options.ticks.setContext(this.getContext(e));return Vt(t.font)}_maxDigits(){const e=this,t=e._resolveTickFontOptions(0).lineHeight;return(e.isHorizontal()?e.width:e.height)/t}}class Eo{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=this,n=Object.getPrototypeOf(e);let r;Fo(n)&&(r=t.register(n));const i=t.items,o=e.id,a=t.scope+"."+o;if(!o)throw new Error("class does not have id: "+e);return o in i||(i[o]=e,Uo(e,a,r),t.override&&xt.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in xt[r]&&(delete xt[r][n],this.override&&delete gt[n])}}function Uo(e,t,n){const r=B(Object.create(null),[n?xt.get(n):{},xt.get(t),e.defaults]);xt.set(t,r),e.defaultRoutes&&Oo(t,e.defaultRoutes),e.descriptors&&xt.describe(t,e.descriptors)}function Oo(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),c=a.join(".");xt.route(o,i,c,s)})}function Fo(e){return"id"in e&&"defaults"in e}class Po{constructor(){this.controllers=new Eo(Vr,"datasets",!0),this.elements=new Eo(oo,"elements"),this.plugins=new Eo(Object,"plugins"),this.scales=new Eo(Ao,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){const r=this;[...t].forEach(t=>{const i=n||r._getRegistryForType(t);n||i.isForType(t)||i===r.plugins&&t.id?r._exec(e,i,t):P(t,t=>{const i=n||r._getRegistryForType(t);r._exec(e,i,t)})})}_exec(e,t,n){const r=q(e);F(n["before"+r],[],n),t[e](n),F(n["after"+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}var Ro=new Po;class No{constructor(){this._init=[]}notify(e,t,n,r){const i=this;"beforeInit"===t&&(i._init=i._createDescriptors(e,!0),i._notify(i._init,e,"install"));const o=r?i._descriptors(e).filter(r):i._descriptors(e),a=i._notify(o,e,t,n);return"destroy"===t&&(i._notify(o,e,"stop"),i._notify(i._init,e,"uninstall")),a}_notify(e,t,n,r){r=r||{};for(const i of e){const e=i.plugin,o=e[n],a=[t,r,i.options];if(!1===F(o,a,e)&&r.cancelable)return!1}return!0}invalidate(){C(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,r=E(n.options&&n.options.plugins,{}),i=Mo(n);return!1!==r||t?Bo(e,i,r,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}function Mo(e){const t=[],n=Object.keys(Ro.plugins.items);for(let i=0;i<n.length;i++)t.push(Ro.getPlugin(n[i]));const r=e.plugins||[];for(let i=0;i<r.length;i++){const e=r[i];-1===t.indexOf(e)&&t.push(e)}return t}function Io(e,t){return t||!1!==e?!0===e?{}:e:null}function Bo(e,t,n,r){const i=[],o=e.getContext();for(let a=0;a<t.length;a++){const s=t[a],c=s.id,u=Io(n[c],r);null!==u&&i.push({plugin:s,options:Lo(e.config,s,u,o)})}return i}function Lo(e,t,n,r){const i=e.pluginScopeKeys(t),o=e.getOptionScopes(n,i);return e.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function zo(e,t){const n=xt.datasets[e]||{},r=(t.datasets||{})[e]||{};return r.indexAxis||t.indexAxis||n.indexAxis||"x"}function Wo(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}function jo(e,t){return e===t?"_index_":"_value_"}function Ho(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function Vo(e,t){return"x"===e||"y"===e?e:t.axis||Ho(t.position)||e.charAt(0).toLowerCase()}function qo(e,t){const n=gt[e.type]||{scales:{}},r=t.scales||{},i=zo(e.type,t),o=Object.create(null),a=Object.create(null);return Object.keys(r).forEach(e=>{const t=r[e],s=Vo(e,t),c=jo(s,i),u=n.scales||{};o[s]=o[s]||e,a[e]=L(Object.create(null),[{axis:s},t,u[s],u[c]])}),e.data.datasets.forEach(n=>{const i=n.type||e.type,s=n.indexAxis||zo(i,t),c=gt[i]||{},u=c.scales||{};Object.keys(u).forEach(e=>{const t=Wo(e,s),i=n[t+"AxisID"]||o[t]||t;a[i]=a[i]||Object.create(null),L(a[i],[{axis:t},r[i],u[e]])})}),Object.keys(a).forEach(e=>{const t=a[e];L(t,[xt.scales[t.type],xt.scale])}),a}function $o(e){const t=e.options||(e.options={});t.plugins=E(t.plugins,{}),t.scales=qo(e,t)}function Go(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Xo(e){return e=e||{},e.data=Go(e.data),$o(e),e}const Yo=new Map,Ko=new Set;function Zo(e,t){let n=Yo.get(e);return n||(n=t(),Yo.set(e,n),Ko.add(n)),n}const Jo=(e,t,n)=>{const r=V(t,n);void 0!==r&&e.add(r)};class Qo{constructor(e){this._config=Xo(e),this._scopeCache=new Map,this._resolverCache=new Map}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Go(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),$o(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Zo(e,()=>[["datasets."+e,""]])}datasetAnimationScopeKeys(e,t){return Zo(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,"transitions."+t],["datasets."+e,""]])}datasetElementScopeKeys(e,t){return Zo(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,"datasets."+e,"elements."+t,""]])}pluginScopeKeys(e){const t=e.id,n=this.type;return Zo(`${n}-plugin-${t}`,()=>[["plugins."+t,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){const n=this._scopeCache;let r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){const{options:r,type:i}=this,o=this._cachedScopes(e,n),a=o.get(t);if(a)return a;const s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>Jo(s,e,t))),t.forEach(e=>Jo(s,r,e)),t.forEach(e=>Jo(s,gt[i]||{},e)),t.forEach(e=>Jo(s,xt,e)),t.forEach(e=>Jo(s,mt,e))});const c=Array.from(s);return Ko.has(t)&&o.set(t,c),c}chartOptionScopes(){const{options:e,type:t}=this;return[e,gt[t]||{},xt.datasets[t]||{},{type:t},xt,mt]}resolveNamedOptions(e,t,n,r=[""]){const i={$shared:!0},{resolver:o,subPrefixes:a}=ea(this._resolverCache,e,r);let s=o;if(ta(o,t)){i.$shared=!1,n=G(n)?n():n;const t=this.createResolver(e,n,a);s=nn(o,n,t)}for(const c of t)i[c]=s[c];return i}createResolver(e,t,n=[""],r){const{resolver:i}=ea(this._resolverCache,e,n);return T(t)?nn(i,t,void 0,r):i}}function ea(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);if(!o){const e=tn(t,n);o={resolver:e,subPrefixes:n.filter(e=>!e.toLowerCase().includes("hover"))},r.set(i,o)}return o}function ta(e,t){const{isScriptable:n,isIndexable:r}=rn(e);for(const i of t)if(n(i)&&G(e[i])||r(i)&&k(e[i]))return!0;return!1}var na="3.4.1";const ra=["top","bottom","left","right","chartArea"];function ia(e,t){return"top"===e||"bottom"===e||-1===ra.indexOf(e)&&"x"===t}function oa(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function aa(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),F(n&&n.onComplete,[e],t)}function sa(e){const t=e.chart,n=t.options.animation;F(n&&n.onProgress,[e],t)}function ca(){return"undefined"!==typeof window&&"undefined"!==typeof document}function ua(e){return ca()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const la={},da=e=>{const t=ua(e);return Object.values(la).filter(e=>e.canvas===t).pop()};class fa{constructor(e,t){const n=this;this.config=t=new Qo(t);const r=ua(e),i=da(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas can be reused.");const o=t.createResolver(t.chartOptionScopes(),n.getContext());this.platform=n._initializePlatform(r,t);const a=n.platform.acquireContext(r,o.aspectRatio),s=a&&a.canvas,c=s&&s.height,u=s&&s.width;this.id=D(),this.ctx=a,this.canvas=s,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this.scale=void 0,this._plugins=new No,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=b(()=>this.update("resize"),o.resizeDelay||0),la[n.id]=n,a&&s?(mr.listen(n,"complete",aa),mr.listen(n,"progress",sa),n._initialize(),n.attached&&n.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return C(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){const e=this;return e.notifyPlugins("beforeInit"),e.options.responsive?e.resize():Hn(e,e.options.devicePixelRatio),e.bindEvents(),e.notifyPlugins("afterInit"),e}_initializePlatform(e,t){return t.platform?new t.platform:!ca()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?new Li:new io}clear(){return kt(this.canvas,this.ctx),this}stop(){return mr.stop(this),this}resize(e,t){mr.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this,r=n.options,i=n.canvas,o=r.maintainAspectRatio&&n.aspectRatio,a=n.platform.getMaximumSize(i,e,t,o),s=r.devicePixelRatio||n.platform.getDevicePixelRatio();n.width=a.width,n.height=a.height,n._aspectRatio=n.aspectRatio,Hn(n,s,!0)&&(n.notifyPlugins("resize",{size:a}),F(r.onResize,[n,a],n),n.attached&&n._doResize()&&n.render())}ensureScalesHaveIDs(){const e=this.options,t=e.scales||{};P(t,(e,t)=>{e.id=t})}buildOrUpdateScales(){const e=this,t=e.options,n=t.scales,r=e.scales,i=Object.keys(r).reduce((e,t)=>(e[t]=!1,e),{});let o=[];n&&(o=o.concat(Object.keys(n).map(e=>{const t=n[e],r=Vo(e,t),i="r"===r,o="x"===r;return{options:t,dposition:i?"chartArea":o?"bottom":"left",dtype:i?"radialLinear":o?"category":"linear"}}))),P(o,n=>{const o=n.options,a=o.id,s=Vo(a,o),c=E(o.type,n.dtype);void 0!==o.position&&ia(o.position,s)===ia(n.dposition)||(o.position=n.dposition),i[a]=!0;let u=null;if(a in r&&r[a].type===c)u=r[a];else{const t=Ro.getScale(c);u=new t({id:a,type:c,ctx:e.ctx,chart:e}),r[u.id]=u}u.init(o,t)}),P(i,(e,t)=>{e||delete r[t]}),P(r,t=>{Ii.configure(e,t,t.options),Ii.addBox(e,t)})}_updateMetasets(){const e=this,t=e._metasets,n=e.data.datasets.length,r=t.length;if(t.sort((e,t)=>e.index-t.index),r>n){for(let t=n;t<r;++t)e._destroyDatasetMeta(t);t.splice(n,r-n)}e._sortedMetasets=t.slice(0).sort(oa("order","index"))}_removeUnreferencedMetasets(){const e=this,{_metasets:t,data:{datasets:n}}=e;t.length>n.length&&delete e._stacks,t.forEach((t,r)=>{0===n.filter(e=>e===t._dataset).length&&e._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=this,t=[],n=e.data.datasets;let r,i;for(e._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const i=n[r];let o=e.getDatasetMeta(r);const a=i.type||e.config.type;if(o.type&&o.type!==a&&(e._destroyDatasetMeta(r),o=e.getDatasetMeta(r)),o.type=a,o.indexAxis=i.indexAxis||zo(a,e.options),o.order=i.order||0,o.index=r,o.label=""+i.label,o.visible=e.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const n=Ro.getController(a),{datasetElementType:i,dataElementType:s}=xt.datasets[a];Object.assign(n.prototype,{dataElementType:Ro.getElement(s),datasetElementType:i&&Ro.getElement(i)}),o.controller=new n(e,r),t.push(o.controller)}}return e._updateMetasets(),t}_resetElements(){const e=this;P(e.data.datasets,(t,n)=>{e.getDatasetMeta(n).controller.reset()},e)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this,n=t.config;n.update(),t._options=n.createResolver(n.chartOptionScopes(),t.getContext()),P(t.scales,e=>{Ii.removeBox(t,e)});const r=t._animationsDisabled=!t.options.animation;t.ensureScalesHaveIDs(),t.buildOrUpdateScales();const i=new Set(Object.keys(t._listeners)),o=new Set(t.options.events);if(X(i,o)&&!!this._responsiveListeners===t.options.responsive||(t.unbindEvents(),t.bindEvents()),t._plugins.invalidate(),!1===t.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const a=t.buildOrUpdateControllers();t.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,u=t.data.datasets.length;c<u;c++){const{controller:e}=t.getDatasetMeta(c),n=!r&&-1===a.indexOf(e);e.buildOrUpdateElements(n),s=Math.max(+e.getMaxOverflow(),s)}t._minPadding=s,t._updateLayout(s),r||P(a,e=>{e.reset()}),t._updateDatasets(e),t.notifyPlugins("afterUpdate",{mode:e}),t._layers.sort(oa("z","_idx")),t._lastEvent&&t._eventHandler(t._lastEvent,!0),t.render()}_updateLayout(e){const t=this;if(!1===t.notifyPlugins("beforeLayout",{cancelable:!0}))return;Ii.update(t,t.width,t.height,e);const n=t.chartArea,r=n.width<=0||n.height<=0;t._layers=[],P(t.boxes,e=>{r&&"chartArea"===e.position||(e.configure&&e.configure(),t._layers.push(...e._layers()))},t),t._layers.forEach((e,t)=>{e._idx=t}),t.notifyPlugins("afterLayout")}_updateDatasets(e){const t=this,n="function"===typeof e;if(!1!==t.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let r=0,i=t.data.datasets.length;r<i;++r)t._updateDataset(r,n?e({datasetIndex:r}):e);t.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this,r=n.getDatasetMeta(e),i={meta:r,index:e,mode:t,cancelable:!0};!1!==n.notifyPlugins("beforeDatasetUpdate",i)&&(r.controller._update(t),i.cancelable=!1,n.notifyPlugins("afterDatasetUpdate",i))}render(){const e=this;!1!==e.notifyPlugins("beforeRender",{cancelable:!0})&&(mr.has(e)?e.attached&&!mr.running(e)&&mr.start(e):(e.draw(),aa({chart:e})))}draw(){const e=this;let t;if(e._resizeBeforeDraw){const{width:t,height:n}=e._resizeBeforeDraw;e._resize(t,n),e._resizeBeforeDraw=null}if(e.clear(),e.width<=0||e.height<=0)return;if(!1===e.notifyPlugins("beforeDraw",{cancelable:!0}))return;const n=e._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(e.chartArea);for(e._drawDatasets();t<n.length;++t)n[t].draw(e.chartArea);e.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this,n=t._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const t=n[i];e&&!t.visible||r.push(t)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){const e=this;if(!1===e.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=e.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)e._drawDataset(t[n]);e.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this,n=t.ctx,r=e._clip,i=!r.disabled,o=t.chartArea,a={meta:e,index:e.index,cancelable:!0};!1!==t.notifyPlugins("beforeDatasetDraw",a)&&(i&&At(n,{left:!1===r.left?0:o.left-r.left,right:!1===r.right?t.width:o.right+r.right,top:!1===r.top?0:o.top-r.top,bottom:!1===r.bottom?t.height:o.bottom+r.bottom}),e.controller.draw(),i&&Et(n),a.cancelable=!1,t.notifyPlugins("afterDatasetDraw",a))}getElementsAtEventForMode(e,t,n,r){const i=wi.modes[t];return"function"===typeof i?i(this,e,n,r):[]}getDatasetMeta(e){const t=this,n=t.data.datasets[e],r=t._metasets;let i=r.filter(e=>e&&e._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context={chart:this,type:"chart"})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){const n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateDatasetVisibility(e,t){const n=this,r=t?"show":"hide",i=n.getDatasetMeta(e),o=i.controller._resolveAnimations(void 0,r);n.setDatasetVisibility(e,t),o.update(i,{visible:t}),n.update(t=>t.datasetIndex===e?r:void 0)}hide(e){this._updateDatasetVisibility(e,!1)}show(e){this._updateDatasetVisibility(e,!0)}_destroyDatasetMeta(e){const t=this,n=t._metasets&&t._metasets[e];n&&n.controller&&(n.controller._destroy(),delete t._metasets[e])}destroy(){const e=this,{canvas:t,ctx:n}=e;let r,i;for(e.stop(),mr.remove(e),r=0,i=e.data.datasets.length;r<i;++r)e._destroyDatasetMeta(r);e.config.clearCache(),t&&(e.unbindEvents(),kt(t,n),e.platform.releaseContext(n),e.canvas=null,e.ctx=null),e.notifyPlugins("destroy"),delete la[e.id]}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this,t=e._listeners,n=e.platform,r=(r,i)=>{n.addEventListener(e,r,i),t[r]=i},i=function(t,n,r){t.offsetX=n,t.offsetY=r,e._eventHandler(t)};P(e.options.events,e=>r(e,i))}bindResponsiveEvents(){const e=this;e._responsiveListeners||(e._responsiveListeners={});const t=e._responsiveListeners,n=e.platform,r=(r,i)=>{n.addEventListener(e,r,i),t[r]=i},i=(r,i)=>{t[r]&&(n.removeEventListener(e,r,i),delete t[r])},o=(t,n)=>{e.canvas&&e.resize(t,n)};let a;const s=()=>{i("attach",s),e.attached=!0,e.resize(),r("resize",o),r("detach",a)};a=()=>{e.attached=!1,i("resize",o),r("attach",s)},n.isAttached(e.canvas)?s():a()}unbindEvents(){const e=this;P(e._listeners,(t,n)=>{e.platform.removeEventListener(e,n,t)}),e._listeners={},P(e._responsiveListeners,(t,n)=>{e.platform.removeEventListener(e,n,t)}),e._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let i,o,a,s;for("dataset"===t&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){o=e[a];const t=o&&this.getDatasetMeta(o.datasetIndex).controller;t&&t[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this,n=t._active||[],r=e.map(({datasetIndex:e,index:n})=>{const r=t.getDatasetMeta(e);if(!r)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:r.data[n],index:n}}),i=!R(r,n);i&&(t._active=r,t._updateHoverStyles(r,n))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}_updateHoverStyles(e,t,n){const r=this,i=r.options.hover,o=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),a=o(t,e),s=n?e:o(e,t);a.length&&r.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&r.updateHoverStyle(s,i.mode,!0)}_eventHandler(e,t){const n=this,r={event:e,replay:t,cancelable:!0},i=t=>(t.options.events||this.options.events).includes(e.type);if(!1===n.notifyPlugins("beforeEvent",r,i))return;const o=n._handleEvent(e,t);return r.cancelable=!1,n.notifyPlugins("afterEvent",r,i),(o||r.changed)&&n.render(),n}_handleEvent(e,t){const n=this,{_active:r=[],options:i}=n,o=i.hover,a=t;let s=[],c=!1,u=null;return"mouseout"!==e.type&&(s=n.getElementsAtEventForMode(e,o.mode,o,a),u="click"===e.type?n._lastEvent:e),n._lastEvent=null,St(e,n.chartArea,n._minPadding)&&(F(i.onHover,[e,s,n],n),"mouseup"!==e.type&&"click"!==e.type&&"contextmenu"!==e.type||F(i.onClick,[e,s,n],n)),c=!R(s,r),(c||t)&&(n._active=s,n._updateHoverStyles(s,r,t)),n._lastEvent=u,c}}const ha=()=>P(fa.instances,e=>e._plugins.invalidate()),pa=!0;function ga(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:a,outerRadius:s,innerRadius:c}=t;let u=i/s;e.beginPath(),e.arc(o,a,s,r-u,n+u),c>i?(u=i/c,e.arc(o,a,c,n+u,r-u,!0)):e.arc(o,a,i,n+ee,r-ee),e.closePath(),e.clip()}function ma(e){return zt(e,["outerStart","outerEnd","innerStart","innerEnd"])}function va(e,t,n,r){const i=ma(e.options.borderRadius),o=(n-t)/2,a=Math.min(o,r*t/2),s=e=>{const t=(n-Math.min(o,e))*r/2;return ye(e,0,Math.min(o,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:ye(i.innerStart,0,a),innerEnd:ye(i.innerEnd,0,a)}}function ba(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function ya(e,t,n,r,i){const{x:o,y:a,startAngle:s,pixelMargin:c,innerRadius:u}=t,l=Math.max(t.outerRadius+r+n-c,0),d=u>0?u+r+n+c:0;let f=0;const h=i-s;if(r){const e=u>0?u-r:0,t=l>0?l-r:0,n=(e+t)/2,i=0!==n?h*n/(n+r):h;f=(h-i)/2}const p=Math.max(.001,h*l-n/Y)/l,g=(h-p)/2,m=s+g+f,v=i-g-f,{outerStart:b,outerEnd:y,innerStart:x,innerEnd:_}=va(t,d,l,v-m),w=l-b,D=l-y,C=m+b/w,k=v-y/D,T=d+x,S=d+_,A=m+x/T,E=v-_/S;if(e.beginPath(),e.arc(o,a,l,C,k),y>0){const t=ba(D,k,o,a);e.arc(t.x,t.y,y,k,v+ee)}const U=ba(S,v,o,a);if(e.lineTo(U.x,U.y),_>0){const t=ba(S,E,o,a);e.arc(t.x,t.y,_,v+ee,E+Math.PI)}if(e.arc(o,a,d,v-_/d,m+x/d,!0),x>0){const t=ba(T,A,o,a);e.arc(t.x,t.y,x,A+Math.PI,m-ee)}const O=ba(w,m,o,a);if(e.lineTo(O.x,O.y),b>0){const t=ba(w,C,o,a);e.arc(t.x,t.y,b,m-ee,C)}e.closePath()}function xa(e,t,n,r){const{fullCircles:i,startAngle:o,circumference:a}=t;let s=t.endAngle;if(i){ya(e,t,n,r,o+K);for(let t=0;t<i;++t)e.fill();isNaN(a)||(s=o+a%K,a%K===0&&(s+=K))}return ya(e,t,n,r,s),e.fill(),s}function _a(e,t,n){const{x:r,y:i,startAngle:o,pixelMargin:a,fullCircles:s}=t,c=Math.max(t.outerRadius-a,0),u=t.innerRadius+a;let l;for(n&&ga(e,t,o+K),e.beginPath(),e.arc(r,i,u,o+K,o,!0),l=0;l<s;++l)e.stroke();for(e.beginPath(),e.arc(r,i,c,o,o+K),l=0;l<s;++l)e.stroke()}function wa(e,t,n,r,i){const{options:o}=t,a="inner"===o.borderAlign;o.borderWidth&&(a?(e.lineWidth=2*o.borderWidth,e.lineJoin="round"):(e.lineWidth=o.borderWidth,e.lineJoin="bevel"),t.fullCircles&&_a(e,t,a),a&&ga(e,t,i),ya(e,t,n,r,i),e.stroke())}Object.defineProperties(fa,{defaults:{enumerable:pa,value:xt},instances:{enumerable:pa,value:la},overrides:{enumerable:pa,value:gt},registry:{enumerable:pa,value:Ro},version:{enumerable:pa,value:na},getChart:{enumerable:pa,value:da},register:{enumerable:pa,value:(...e)=>{Ro.add(...e),ha()}},unregister:{enumerable:pa,value:(...e)=>{Ro.remove(...e),ha()}}});class Da extends oo{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.getProps(["x","y"],n),{angle:i,distance:o}=pe(r,{x:e,y:t}),{startAngle:a,endAngle:s,innerRadius:c,outerRadius:u,circumference:l}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=this.options.spacing/2,f=l>=K||be(i,a,s),h=o>=c+d&&o<=u+d;return f&&h}getCenterPoint(e){const{x:t,y:n,startAngle:r,endAngle:i,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:s,spacing:c}=this.options,u=(r+i)/2,l=(o+a+c+s)/2;return{x:t+Math.cos(u)*l,y:n+Math.sin(u)*l}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const t=this,{options:n,circumference:r}=t,i=(n.offset||0)/2,o=(n.spacing||0)/2;if(t.pixelMargin="inner"===n.borderAlign?.33:0,t.fullCircles=r>K?Math.floor(r/K):0,0===r||t.innerRadius<0||t.outerRadius<0)return;e.save();let a=0;if(i){a=i/2;const n=(t.startAngle+t.endAngle)/2;e.translate(Math.cos(n)*a,Math.sin(n)*a),t.circumference>=Y&&(a=i)}e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor;const s=xa(e,t,a,o);wa(e,t,a,o,s),e.restore()}}function Ca(e,t,n=t){e.lineCap=E(n.borderCapStyle,t.borderCapStyle),e.setLineDash(E(n.borderDash,t.borderDash)),e.lineDashOffset=E(n.borderDashOffset,t.borderDashOffset),e.lineJoin=E(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=E(n.borderWidth,t.borderWidth),e.strokeStyle=E(n.borderColor,t.borderColor)}function ka(e,t,n){e.lineTo(n.x,n.y)}function Ta(e){return e.stepped?Ut:e.tension||"monotone"===e.cubicInterpolationMode?Ot:ka}function Sa(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,c=Math.max(i,a),u=Math.min(o,s),l=i<a&&o<a||i>s&&o>s;return{count:r,start:c,loop:t.loop,ilen:u<c&&!l?r+u-c:u-c}}function Aa(e,t,n,r){const{points:i,options:o}=t,{count:a,start:s,loop:c,ilen:u}=Sa(i,n,r),l=Ta(o);let d,f,h,{move:p=!0,reverse:g}=r||{};for(d=0;d<=u;++d)f=i[(s+(g?u-d:d))%a],f.skip||(p?(e.moveTo(f.x,f.y),p=!1):l(e,h,f,g,o.stepped),h=f);return c&&(f=i[(s+(g?u:0))%a],l(e,h,f,g,o.stepped)),!!c}function Ea(e,t,n,r){const i=t.points,{count:o,start:a,ilen:s}=Sa(i,n,r),{move:c=!0,reverse:u}=r||{};let l,d,f,h,p,g,m=0,v=0;const b=e=>(a+(u?s-e:e))%o,y=()=>{h!==p&&(e.lineTo(m,p),e.lineTo(m,h),e.lineTo(m,g))};for(c&&(d=i[b(0)],e.moveTo(d.x,d.y)),l=0;l<=s;++l){if(d=i[b(l)],d.skip)continue;const t=d.x,n=d.y,r=0|t;r===f?(n<h?h=n:n>p&&(p=n),m=(v*m+t)/++v):(y(),e.lineTo(t,n),f=r,v=0,h=p=n),g=n}y()}function Ua(e){const t=e.options,n=t.borderDash&&t.borderDash.length,r=!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n;return r?Ea:Aa}function Oa(e){return e.stepped?Gn:e.tension||"monotone"===e.cubicInterpolationMode?Xn:$n}function Fa(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Ca(e,t.options),e.stroke(i)}function Pa(e,t,n,r){const{segments:i,options:o}=t,a=Ua(t);for(const s of i)Ca(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}Da.id="arc",Da.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},Da.defaultRoutes={backgroundColor:"backgroundColor"};const Ra="function"===typeof Path2D;function Na(e,t,n,r){Ra&&1===t.segments.length?Fa(e,t,n,r):Pa(e,t,n,r)}class Ma extends oo{constructor(e){super(),this.animated=!0,this.options=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this,r=n.options;if((r.tension||"monotone"===r.cubicInterpolationMode)&&!r.stepped&&!n._pointsUpdated){const i=r.spanGaps?n._loop:n._fullLoop;Un(n._points,r,e,i,t),n._pointsUpdated=!0}}set points(e){const t=this;t._points=e,delete t._segments,delete t._path,t._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=lr(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this,r=n.options,i=e[t],o=n.points,a=sr(n,{property:t,start:i,end:i});if(!a.length)return;const s=[],c=Oa(r);let u,l;for(u=0,l=a.length;u<l;++u){const{start:n,end:l}=a[u],d=o[n],f=o[l];if(d===f){s.push(d);continue}const h=Math.abs((i-d[t])/(f[t]-d[t])),p=c(d,f,h,r.stepped);p[t]=e[t],s.push(p)}return 1===s.length?s[0]:s}pathSegment(e,t,n){const r=Ua(this);return r(e,this,t,n)}path(e,t,n){const r=this,i=r.segments,o=Ua(r);let a=r._loop;t=t||0,n=n||r.points.length-t;for(const s of i)a&=o(e,r,s,{start:t,end:t+n-1});return!!a}draw(e,t,n,r){const i=this,o=i.options||{},a=i.points||[];a.length&&o.borderWidth&&(e.save(),Na(e,i,n,r),e.restore(),i.animated&&(i._pointsUpdated=!1,i._path=void 0))}}function Ia(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}Ma.id="line",Ma.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Ma.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Ma.descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};class Ba extends oo{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.options,{x:i,y:o}=this.getProps(["x","y"],n);return Math.pow(e-i,2)+Math.pow(t-o,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(e,t){return Ia(this,e,"x",t)}inYRange(e,t){return Ia(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){e=e||this.options||{};let t=e.radius||0;t=Math.max(t,t&&e.hoverRadius||0);const n=t&&e.borderWidth||0;return 2*(t+n)}draw(e){const t=this,n=t.options;t.skip||n.radius<.1||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,Tt(e,n,t.x,t.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function La(e,t){const{x:n,y:r,base:i,width:o,height:a}=e.getProps(["x","y","base","width","height"],t);let s,c,u,l,d;return e.horizontal?(d=a/2,s=Math.min(n,i),c=Math.max(n,i),u=r-d,l=r+d):(d=o/2,s=n-d,c=n+d,u=Math.min(r,i),l=Math.max(r,i)),{left:s,top:u,right:c,bottom:l}}function za(e){let t=e.options.borderSkipped;const n={};return t?(t=e.horizontal?Wa(t,"left","right",e.base>e.x):Wa(t,"bottom","top",e.base<e.y),n[t]=!0,n):n}function Wa(e,t,n,r){return r?(e=ja(e,t,n),e=Ha(e,n,t)):e=Ha(e,t,n),e}function ja(e,t,n){return e===t?n:e===n?t:e}function Ha(e,t,n){return"start"===e?t:"end"===e?n:e}function Va(e,t,n,r){return e?0:Math.max(Math.min(t,r),n)}function qa(e,t,n){const r=e.options.borderWidth,i=za(e),o=Wt(r);return{t:Va(i.top,o.top,0,n),r:Va(i.right,o.right,0,t),b:Va(i.bottom,o.bottom,0,n),l:Va(i.left,o.left,0,t)}}function $a(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=jt(i),a=Math.min(t,n),s=za(e),c=r||T(i);return{topLeft:Va(!c||s.top||s.left,o.topLeft,0,a),topRight:Va(!c||s.top||s.right,o.topRight,0,a),bottomLeft:Va(!c||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:Va(!c||s.bottom||s.right,o.bottomRight,0,a)}}function Ga(e){const t=La(e),n=t.right-t.left,r=t.bottom-t.top,i=qa(e,n/2,r/2),o=$a(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function Xa(e,t,n,r){const i=null===t,o=null===n,a=i&&o,s=e&&!a&&La(e,r);return s&&(i||t>=s.left&&t<=s.right)&&(o||n>=s.top&&n<=s.bottom)}function Ya(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Ka(e,t){e.rect(t.x,t.y,t.w,t.h)}Ba.id="point",Ba.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Ba.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Za extends oo{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,e&&Object.assign(this,e)}draw(e){const t=this.options,{inner:n,outer:r}=Ga(this),i=Ya(r.radius)?Nt:Ka;e.save(),r.w===n.w&&r.h===n.h||(e.beginPath(),i(e,r),e.clip(),i(e,n),e.fillStyle=t.borderColor,e.fill("evenodd")),e.beginPath(),i(e,n),e.fillStyle=t.backgroundColor,e.fill(),e.restore()}inRange(e,t,n){return Xa(this,e,t,n)}inXRange(e,t){return Xa(this,e,null,t)}inYRange(e,t){return Xa(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:r,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(t+r)/2:t,y:i?n:(n+r)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}Za.id="bar",Za.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,enableBorderRadius:!0,pointStyle:void 0},Za.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Ja=Object.freeze({__proto__:null,ArcElement:Da,LineElement:Ma,PointElement:Ba,BarElement:Za});function Qa(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const a=[],s=(n-2)/(o-2);let c=0;const u=t+n-1;let l,d,f,h,p,g=t;for(a[c++]=e[g],l=0;l<o-2;l++){let r,i=0,o=0;const u=Math.floor((l+1)*s)+1+t,m=Math.min(Math.floor((l+2)*s)+1,n)+t,v=m-u;for(r=u;r<m;r++)i+=e[r].x,o+=e[r].y;i/=v,o/=v;const b=Math.floor(l*s)+1+t,y=Math.floor((l+1)*s)+1+t,{x:x,y:_}=e[g];for(f=h=-1,r=b;r<y;r++)h=.5*Math.abs((x-i)*(e[r].y-_)-(x-e[r].x)*(o-_)),h>f&&(f=h,d=e[r],p=r);a[c++]=d,g=p}return a[c++]=e[u],a}function es(e,t,n,r){let i,o,a,s,c,u,l,d,f,h,p=0,g=0;const m=[],v=t+n-1,b=e[t].x,y=e[v].x,x=y-b;for(i=t;i<t+n;++i){o=e[i],a=(o.x-b)/x*r,s=o.y;const t=0|a;if(t===c)s<f?(f=s,u=i):s>h&&(h=s,l=i),p=(g*p+o.x)/++g;else{const n=i-1;if(!C(u)&&!C(l)){const t=Math.min(u,l),r=Math.max(u,l);t!==d&&t!==n&&m.push({...e[t],x:p}),r!==d&&r!==n&&m.push({...e[r],x:p})}i>0&&n!==d&&m.push(e[n]),m.push(o),c=t,g=0,f=h=s,u=l=d=i}}return m}function ts(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function ns(e){e.data.datasets.forEach(e=>{ts(e)})}function rs(e,t){const n=t.length;let r,i=0;const{iScale:o}=e,{min:a,max:s,minDefined:c,maxDefined:u}=o.getUserBounds();return c&&(i=ye(Xt(t,o.axis,a).lo,0,n-1)),r=u?ye(Xt(t,o.axis,s).hi+1,i,n)-i:n-i,{start:i,count:r}}var is={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled)return void ns(e);const r=e.width;e.data.datasets.forEach((t,i)=>{const{_data:o,indexAxis:a}=t,s=e.getDatasetMeta(i),c=o||t.data;if("y"===qt([a,e.options.indexAxis]))return;if("line"!==s.type)return;const u=e.scales[s.xAxisID];if("linear"!==u.type&&"time"!==u.type)return;if(e.options.parsing)return;let l,{start:d,count:f}=rs(s,c);if(f<=4*r)ts(t);else{switch(C(o)&&(t._data=c,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":l=Qa(c,d,f,r,n);break;case"min-max":l=es(c,d,f,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=l}})},destroy(e){ns(e)}};function os(e,t){const n=e.getDatasetMeta(t),r=n&&e.isDatasetVisible(t);return r?n.dataset:null}function as(e){const t=e.options,n=t.fill;let r=E(n&&n.target,n);return void 0===r&&(r=!!t.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}function ss(e,t,n){const r=as(e);if(T(r))return!isNaN(r.value)&&r;let i=parseFloat(r);return S(i)&&Math.floor(i)===i?("-"!==r[0]&&"+"!==r[0]||(i=t+i),!(i===t||i<0||i>=n)&&i):["origin","start","end","stack"].indexOf(r)>=0&&r}function cs(e){const{scale:t={},fill:n}=e;let r,i=null;return"start"===n?i=t.bottom:"end"===n?i=t.top:T(n)?i=t.getPixelForValue(n.value):t.getBasePixel&&(i=t.getBasePixel()),S(i)?(r=t.isHorizontal(),{x:r?i:null,y:r?null:i}):null}class us{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){const{x:r,y:i,radius:o}=this;return t=t||{start:0,end:K},e.arc(r,i,o,t.end,t.start,!0),!n.bounds}interpolate(e){const{x:t,y:n,radius:r}=this,i=e.angle;return{x:t+Math.cos(i)*r,y:n+Math.sin(i)*r,angle:i}}}function ls(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=[],a=r.reverse?t.max:t.min,s=r.reverse?t.min:t.max;let c,u,l;if(l="start"===n?a:"end"===n?s:T(n)?n.value:t.getBaseValue(),r.grid.circular)return u=t.getPointPositionForValue(0,a),new us({x:u.x,y:u.y,radius:t.getDistanceFromCenterForValue(l)});for(c=0;c<i;++c)o.push(t.getPointPositionForValue(c,l));return o}function ds(e){const t=e.scale||{};return t.getPointPositionForValue?ls(e):cs(e)}function fs(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function hs(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:e,end:t})=>{t=fs(e,t,i);const a=i[e],s=i[t];null!==r?(o.push({x:a.x,y:r}),o.push({x:s.x,y:r})):null!==n&&(o.push({x:n,y:a.y}),o.push({x:n,y:s.y}))}),o}function ps(e){const{chart:t,scale:n,index:r,line:i}=e,o=[],a=i.segments,s=i.points,c=ms(t,r);c.push(xs({x:null,y:n.bottom},i));for(let u=0;u<a.length;u++){const e=a[u];for(let t=e.start;t<=e.end;t++)vs(o,s[t],c)}return new Ma({points:o,options:{}})}const gs=e=>"line"===e.type&&!e.hidden;function ms(e,t){const n=[],r=e.getSortedVisibleDatasetMetas();for(let i=0;i<r.length;i++){const e=r[i];if(e.index===t)break;gs(e)&&n.unshift(e.dataset)}return n}function vs(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:a,last:s,point:c}=bs(o,t,"x");if(!(!c||a&&s))if(a)r.unshift(c);else if(e.push(c),!s)break}e.push(...r)}function bs(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],o=e.segments,a=e.points;let s=!1,c=!1;for(let u=0;u<o.length;u++){const e=o[u],t=a[e.start][n],r=a[e.end][n];if(i>=t&&i<=r){s=i===t,c=i===r;break}}return{first:s,last:c,point:r}}function ys(e){const{chart:t,fill:n,line:r}=e;if(S(n))return os(t,n);if("stack"===n)return ps(e);const i=ds(e);return i instanceof us?i:xs(i,r)}function xs(e,t){let n=[],r=!1;return k(e)?(r=!0,n=e):n=hs(e,t),n.length?new Ma({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function _s(e,t,n){const r=e[t];let i=r.fill;const o=[t];let a;if(!n)return i;while(!1!==i&&-1===o.indexOf(i)){if(!S(i))return i;if(a=e[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function ws(e,t,n){e.beginPath(),t.path(e),e.lineTo(t.last().x,n),e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Ds(e,t,n,r){if(r)return;let i=t[e],o=n[e];return"angle"===e&&(i=ve(i),o=ve(o)),{property:e,start:i,end:o}}function Cs(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function ks(e,t,n){const r=e.segments,i=e.points,o=t.points,a=[];for(const s of r){let{start:e,end:r}=s;r=fs(e,r,i);const c=Ds(n,i[e],i[r],s.loop);if(!t.segments){a.push({source:s,target:c,start:i[e],end:i[r]});continue}const u=sr(t,c);for(const t of u){const e=Ds(n,o[t.start],o[t.end],t.loop),r=ar(s,i,e);for(const i of r)a.push({source:i,target:t,start:{[n]:Cs(c,e,"start",Math.max)},end:{[n]:Cs(c,e,"end",Math.min)}})}}return a}function Ts(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:a,end:s}=n||{};"x"===o&&(e.beginPath(),e.rect(a,r,s-a,i-r),e.clip())}function Ss(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}function As(e,t){const{line:n,target:r,property:i,color:o,scale:a}=t,s=ks(n,r,i);for(const{source:c,target:u,start:l,end:d}of s){const{style:{backgroundColor:t=o}={}}=c;e.save(),e.fillStyle=t,Ts(e,a,Ds(i,l,d)),e.beginPath();const s=!!n.pathSegment(e,c);s?e.closePath():Ss(e,r,d,i);const f=!!r.pathSegment(e,u,{move:s,reverse:!0}),h=s&&f;h||Ss(e,r,l,i),e.closePath(),e.fill(h?"evenodd":"nonzero"),e.restore()}}function Es(e,t){const{line:n,target:r,above:i,below:o,area:a,scale:s}=t,c=n._loop?"angle":t.axis;e.save(),"x"===c&&o!==i&&(ws(e,r,a.top),As(e,{line:n,target:r,color:i,scale:s,property:c}),e.restore(),e.save(),ws(e,r,a.bottom)),As(e,{line:n,target:r,color:o,scale:s,property:c}),e.restore()}function Us(e,t,n){const r=ys(t),{line:i,scale:o,axis:a}=t,s=i.options,c=s.fill,u=s.backgroundColor,{above:l=u,below:d=u}=c||{};r&&i.points.length&&(At(e,n),Es(e,{line:i,target:r,above:l,below:d,area:n,scale:o,axis:a}),Et(e))}var Os={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,a,s,c;for(a=0;a<r;++a)o=e.getDatasetMeta(a),s=o.dataset,c=null,s&&s.options&&s instanceof Ma&&(c={visible:e.isDatasetVisible(a),index:a,fill:ss(s,a,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=c,i.push(c);for(a=0;a<r;++a)c=i[a],c&&!1!==c.fill&&(c.fill=_s(i,a,n.propagate))},beforeDraw(e,t,n){const r="beforeDraw"===n.drawTime,i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let a=i.length-1;a>=0;--a){const t=i[a].$filler;t&&(t.line.updateControlPoints(o,t.axis),r&&Us(e.ctx,t,o))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const t=r[i].$filler;t&&Us(e.ctx,t,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;r&&!1!==r.fill&&"beforeDatasetDraw"===n.drawTime&&Us(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Fs=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},Ps=(e,t)=>null!==e&&null!==t&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Rs extends oo{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){const r=this;r.maxWidth=e,r.maxHeight=t,r._margins=n,r.setDimensions(),r.buildLabels(),r.fit()}setDimensions(){const e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=e._margins.left,e.right=e.width):(e.height=e.maxHeight,e.top=e._margins.top,e.bottom=e.height)}buildLabels(){const e=this,t=e.options.labels||{};let n=F(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(n=>t.filter(n,e.chart.data))),t.sort&&(n=n.sort((n,r)=>t.sort(n,r,e.chart.data))),e.options.reverse&&n.reverse(),e.legendItems=n}fit(){const e=this,{options:t,ctx:n}=e;if(!t.display)return void(e.width=e.height=0);const r=t.labels,i=Vt(r.font),o=i.size,a=e._computeTitleHeight(),{boxWidth:s,itemHeight:c}=Fs(r,o);let u,l;n.font=i.string,e.isHorizontal()?(u=e.maxWidth,l=e._fitRows(a,o,s,c)+10):(l=e.maxHeight,u=e._fitCols(a,o,s,c)+10),e.width=Math.min(u,t.maxWidth||e.maxWidth),e.height=Math.min(l,t.maxHeight||e.maxHeight)}_fitRows(e,t,n,r){const i=this,{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=i,c=i.legendHitBoxes=[],u=i.lineWidths=[0],l=r+s;let d=e;o.textAlign="left",o.textBaseline="middle";let f=-1,h=-l;return i.legendItems.forEach((e,i)=>{const p=n+t/2+o.measureText(e.text).width;(0===i||u[u.length-1]+p+2*s>a)&&(d+=l,u[u.length-(i>0?0:1)]=0,h+=l,f++),c[i]={left:0,top:h,row:f,width:p,height:r},u[u.length-1]+=p+s}),d}_fitCols(e,t,n,r){const i=this,{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=i,c=i.legendHitBoxes=[],u=i.columnSizes=[],l=a-e;let d=s,f=0,h=0,p=0,g=0;return i.legendItems.forEach((e,i)=>{const a=n+t/2+o.measureText(e.text).width;i>0&&h+r+2*s>l&&(d+=f+s,u.push({width:f,height:h}),p+=f+s,g++,f=h=0),c[i]={left:p,top:h,col:g,width:a,height:r},f=Math.max(f,a),h+=r+s}),d+=f,u.push({width:f,height:h}),d}adjustHitBoxes(){const e=this;if(!e.options.display)return;const t=e._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=e;if(this.isHorizontal()){let a=0,s=x(r,e.left+i,e.right-e.lineWidths[a]);for(const o of n)a!==o.row&&(a=o.row,s=x(r,e.left+i,e.right-e.lineWidths[a])),o.top+=e.top+t+i,o.left=s,s+=o.width+i;if(o){const t=n.reduce((e,t)=>(e[t.row]=e[t.row]||[],e[t.row].push(t),e),{}),r=[];Object.keys(t).forEach(e=>{t[e].reverse(),r.push(...t[e])}),e.legendHitBoxes=r}}else{let o=0,a=x(r,e.top+t+i,e.bottom-e.columnSizes[o].height);for(const s of n)s.col!==o&&(o=s.col,a=x(r,e.top+t+i,e.bottom-e.columnSizes[o].height)),s.top=a,s.left+=e.left+i,a+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){const e=this;if(e.options.display){const t=e.ctx;At(t,e),e._draw(),Et(t)}}_draw(){const e=this,{options:t,columnSizes:n,lineWidths:r,ctx:i}=e,{align:o,labels:a}=t,s=xt.color,c=er(t.rtl,e.left,e.width),u=Vt(a.font),{color:l,padding:d}=a,f=u.size,h=f/2;let p;e.drawTitle(),i.textAlign=c.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:g,boxHeight:m,itemHeight:v}=Fs(a,f),b=function(e,t,n){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const r=E(n.lineWidth,1);if(i.fillStyle=E(n.fillStyle,s),i.lineCap=E(n.lineCap,"butt"),i.lineDashOffset=E(n.lineDashOffset,0),i.lineJoin=E(n.lineJoin,"miter"),i.lineWidth=r,i.strokeStyle=E(n.strokeStyle,s),i.setLineDash(E(n.lineDash,[])),a.usePointStyle){const o={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},a=c.xPlus(e,g/2),s=t+h;Tt(i,o,a,s)}else{const o=t+Math.max((f-m)/2,0),a=c.leftForLtr(e,g),s=jt(n.borderRadius);i.beginPath(),Object.values(s).some(e=>0!==e)?Nt(i,{x:a,y:o,w:g,h:m,radius:s}):i.rect(a,o,g,m),i.fill(),0!==r&&i.stroke()}i.restore()},y=function(e,t,n){Ft(i,n.text,e,t+v/2,u,{strikethrough:n.hidden,textAlign:c.textAlign(n.textAlign)})},w=e.isHorizontal(),D=this._computeTitleHeight();p=w?{x:x(o,e.left+d,e.right-r[0]),y:e.top+d+D,line:0}:{x:e.left+d,y:x(o,e.top+D+d,e.bottom-n[0].height),line:0},tr(e.ctx,t.textDirection);const C=v+d;e.legendItems.forEach((s,u)=>{i.strokeStyle=s.fontColor||l,i.fillStyle=s.fontColor||l;const f=i.measureText(s.text).width,m=c.textAlign(s.textAlign||(s.textAlign=a.textAlign)),v=g+h+f;let k=p.x,T=p.y;c.setWidth(e.width),w?u>0&&k+v+d>e.right&&(T=p.y+=C,p.line++,k=p.x=x(o,e.left+d,e.right-r[p.line])):u>0&&T+C>e.bottom&&(k=p.x=k+n[p.line].width+d,p.line++,T=p.y=x(o,e.top+D+d,e.bottom-n[p.line].height));const S=c.x(k);b(S,T,s),k=_(m,k+g+h,w?k+v:e.right,t.rtl),y(c.x(k),T,s),w?p.x+=v+d:p.y+=C}),nr(e.ctx,t.textDirection)}drawTitle(){const e=this,t=e.options,n=t.title,r=Vt(n.font),i=Ht(n.padding);if(!n.display)return;const o=er(t.rtl,e.left,e.width),a=e.ctx,s=n.position,c=r.size/2,u=i.top+c;let l,d=e.left,f=e.width;if(this.isHorizontal())f=Math.max(...e.lineWidths),l=e.top+u,d=x(t.align,d,e.right-f);else{const n=e.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);l=u+x(t.align,e.top,e.bottom-n-t.labels.padding-e._computeTitleHeight())}const h=x(s,d,d+f);a.textAlign=o.textAlign(y(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,Ft(a,n.text,h,l,r)}_computeTitleHeight(){const e=this.options.title,t=Vt(e.font),n=Ht(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){const n=this;let r,i,o;if(e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom)for(o=n.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height)return n.legendItems[r];return null}handleEvent(e){const t=this,n=t.options;if(!Ns(e.type,n))return;const r=t._getLegendItemAt(e.x,e.y);if("mousemove"===e.type){const i=t._hoveredItem,o=Ps(i,r);i&&!o&&F(n.onLeave,[e,i,t],t),t._hoveredItem=r,r&&!o&&F(n.onHover,[e,r,t],t)}else r&&F(n.onClick,[e,r,t],t)}}function Ns(e,t){return!("mousemove"!==e||!t.onHover&&!t.onLeave)||!(!t.onClick||"click"!==e&&"mouseup"!==e)}var Ms={id:"legend",_element:Rs,start(e,t,n){const r=e.legend=new Rs({ctx:e.ctx,options:n,chart:e});Ii.configure(e,r,n),Ii.addBox(e,r)},stop(e){Ii.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Ii.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{const a=e.controller.getStyle(n?0:void 0),s=Ht(a.borderWidth);return{text:t[e.index].label,fillStyle:a.backgroundColor,fontColor:o,hidden:!e.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:a.borderColor,pointStyle:r||a.pointStyle,rotation:a.rotation,textAlign:i||a.textAlign,borderRadius:0,datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Is extends oo{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this,r=n.options;if(n.left=0,n.top=0,!r.display)return void(n.width=n.height=n.right=n.bottom=0);n.width=n.right=e,n.height=n.bottom=t;const i=k(r.text)?r.text.length:1;n._padding=Ht(r.padding);const o=i*Vt(r.font).lineHeight+n._padding.height;n.isHorizontal()?n.height=o:n.width=o}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:r,right:i,options:o}=this,a=o.align;let s,c,u,l=0;return this.isHorizontal()?(c=x(a,n,i),u=t+e,s=i-n):("left"===o.position?(c=n+e,u=x(a,r,t),l=-.5*Y):(c=i-e,u=x(a,t,r),l=.5*Y),s=r-t),{titleX:c,titleY:u,maxWidth:s,rotation:l}}draw(){const e=this,t=e.ctx,n=e.options;if(!n.display)return;const r=Vt(n.font),i=r.lineHeight,o=i/2+e._padding.top,{titleX:a,titleY:s,maxWidth:c,rotation:u}=e._drawArgs(o);Ft(t,n.text,0,0,r,{color:n.color,maxWidth:c,rotation:u,textAlign:y(n.align),textBaseline:"middle",translation:[a,s]})}}function Bs(e,t){const n=new Is({ctx:e.ctx,options:t,chart:e});Ii.configure(e,n,t),Ii.addBox(e,n),e.titleBlock=n}var Ls={id:"title",_element:Is,start(e,t,n){Bs(e,n)},stop(e){const t=e.titleBlock;Ii.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Ii.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const zs=new WeakMap;var Ws={id:"subtitle",start(e,t,n){const r=new Is({ctx:e.ctx,options:n,chart:e});Ii.configure(e,r,n),Ii.addBox(e,r),zs.set(e,r)},stop(e){Ii.removeBox(e,zs.get(e)),zs.delete(e)},beforeUpdate(e,t,n){const r=zs.get(e);Ii.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const js={average(e){if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();r+=e.x,i+=e.y,++o}}return{x:r/o,y:i/o}},nearest(e,t){if(!e.length)return!1;let n,r,i,o=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){const r=e[n].element;if(r&&r.hasValue()){const e=r.getCenterPoint(),n=ge(t,e);n<s&&(s=n,i=r)}}if(i){const e=i.tooltipPosition();o=e.x,a=e.y}return{x:o,y:a}}};function Hs(e,t){return t&&(k(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Vs(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function qs(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function $s(e,t){const n=e._chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,c=Vt(t.bodyFont),u=Vt(t.titleFont),l=Vt(t.footerFont),d=o.length,f=i.length,h=r.length,p=Ht(t.padding);let g=p.height,m=0,v=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){const e=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;g+=h*e+(v-h)*c.lineHeight+(v-1)*t.bodySpacing}f&&(g+=t.footerMarginTop+f*l.lineHeight+(f-1)*t.footerSpacing);let b=0;const y=function(e){m=Math.max(m,n.measureText(e).width+b)};return n.save(),n.font=u.string,P(e.title,y),n.font=c.string,P(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?a+2:0,P(r,e=>{P(e.before,y),P(e.lines,y),P(e.after,y)}),b=0,n.font=l.string,P(e.footer,y),n.restore(),m+=p.width,{width:m,height:g}}function Gs(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function Xs(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;return"left"===e&&i+o+a>t.width||("right"===e&&i-o-a<0||void 0)}function Ys(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:c}}=e;let u="center";return"center"===r?u=i<=(s+c)/2?"left":"right":i<=o/2?u="left":i>=a-o/2&&(u="right"),Xs(u,e,t,n)&&(u="center"),u}function Ks(e,t,n){const r=t.yAlign||Gs(e,n);return{xAlign:t.xAlign||Ys(e,t,n,r),yAlign:r}}function Zs(e,t){let{x:n,width:r}=e;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}function Js(e,t,n){let{y:r,height:i}=e;return"top"===t?r+=n:r-="bottom"===t?i+n:i/2,r}function Qs(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:c}=n,u=i+o,l=a+o;let d=Zs(t,s);const f=Js(t,c,u);return"center"===c?"left"===s?d+=u:"right"===s&&(d-=u):"left"===s?d-=l:"right"===s&&(d+=l),{x:ye(d,0,r.width-t.width),y:ye(f,0,r.height-t.height)}}function ec(e,t,n){const r=Ht(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function tc(e){return Hs([],Vs(e))}function nc(e,t,n){return Object.assign(Object.create(e),{tooltip:t,tooltipItems:n,type:"tooltip"})}function rc(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}class ic extends oo{constructor(e){super(),this.opacity=0,this._active=[],this._chart=e._chart,this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this,t=e._cachedAnimations;if(t)return t;const n=e._chart,r=e.options.setContext(e.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new Dr(e._chart,i);return i._cacheable&&(e._cachedAnimations=Object.freeze(o)),o}getContext(){const e=this;return e.$context||(e.$context=nc(e._chart.getContext(),e,e._tooltipItems))}getTitle(e,t){const n=this,{callbacks:r}=t,i=r.beforeTitle.apply(n,[e]),o=r.title.apply(n,[e]),a=r.afterTitle.apply(n,[e]);let s=[];return s=Hs(s,Vs(i)),s=Hs(s,Vs(o)),s=Hs(s,Vs(a)),s}getBeforeBody(e,t){return tc(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const n=this,{callbacks:r}=t,i=[];return P(e,e=>{const t={before:[],lines:[],after:[]},o=rc(r,e);Hs(t.before,Vs(o.beforeLabel.call(n,e))),Hs(t.lines,o.label.call(n,e)),Hs(t.after,Vs(o.afterLabel.call(n,e))),i.push(t)}),i}getAfterBody(e,t){return tc(t.callbacks.afterBody.apply(this,[e]))}getFooter(e,t){const n=this,{callbacks:r}=t,i=r.beforeFooter.apply(n,[e]),o=r.footer.apply(n,[e]),a=r.afterFooter.apply(n,[e]);let s=[];return s=Hs(s,Vs(i)),s=Hs(s,Vs(o)),s=Hs(s,Vs(a)),s}_createItems(e){const t=this,n=t._active,r=t._chart.data,i=[],o=[],a=[];let s,c,u=[];for(s=0,c=n.length;s<c;++s)u.push(qs(t._chart,n[s]));return e.filter&&(u=u.filter((t,n,i)=>e.filter(t,n,i,r))),e.itemSort&&(u=u.sort((t,n)=>e.itemSort(t,n,r))),P(u,n=>{const r=rc(e.callbacks,n);i.push(r.labelColor.call(t,n)),o.push(r.labelPointStyle.call(t,n)),a.push(r.labelTextColor.call(t,n))}),t.labelColors=i,t.labelPointStyles=o,t.labelTextColors=a,t.dataPoints=u,u}update(e,t){const n=this,r=n.options.setContext(n.getContext()),i=n._active;let o,a=[];if(i.length){const e=js[r.position].call(n,i,n._eventPosition);a=n._createItems(r),n.title=n.getTitle(a,r),n.beforeBody=n.getBeforeBody(a,r),n.body=n.getBody(a,r),n.afterBody=n.getAfterBody(a,r),n.footer=n.getFooter(a,r);const t=n._size=$s(n,r),s=Object.assign({},e,t),c=Ks(n._chart,r,s),u=Qs(r,s,c,n._chart);n.xAlign=c.xAlign,n.yAlign=c.yAlign,o={opacity:1,x:u.x,y:u.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==n.opacity&&(o={opacity:0});n._tooltipItems=a,n.$context=void 0,o&&n._resolveAnimations().update(n,o),e&&r.external&&r.external.call(n,{chart:n._chart,tooltip:n,replay:t})}drawCaret(e,t,n,r){const i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){const{xAlign:r,yAlign:i}=this,{cornerRadius:o,caretSize:a}=n,{x:s,y:c}=e,{width:u,height:l}=t;let d,f,h,p,g,m;return"center"===i?(g=c+l/2,"left"===r?(d=s,f=d-a,p=g+a,m=g-a):(d=s+u,f=d+a,p=g-a,m=g+a),h=d):(f="left"===r?s+o+a:"right"===r?s+u-o-a:this.caretX,"top"===i?(p=c,g=p-a,d=f-a,h=f+a):(p=c+l,g=p+a,d=f+a,h=f-a),m=p),{x1:d,x2:f,x3:h,y1:p,y2:g,y3:m}}drawTitle(e,t,n){const r=this,i=r.title,o=i.length;let a,s,c;if(o){const u=er(n.rtl,r.x,r.width);for(e.x=ec(r,n.titleAlign,n),t.textAlign=u.textAlign(n.titleAlign),t.textBaseline="middle",a=Vt(n.titleFont),s=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,c=0;c<o;++c)t.fillText(i[c],u.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+s,c+1===o&&(e.y+=n.titleMarginBottom-s)}}_drawColorBox(e,t,n,r,i){const o=this,a=o.labelColors[n],s=o.labelPointStyles[n],{boxHeight:c,boxWidth:u}=i,l=Vt(i.bodyFont),d=ec(o,"left",i),f=r.x(d),h=c<l.lineHeight?(l.lineHeight-c)/2:0,p=t.y+h;if(i.usePointStyle){const t={radius:Math.min(u,c)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},n=r.leftForLtr(f,u)+u/2,o=p+c/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,Tt(e,t,n,o),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,Tt(e,t,n,o)}else{e.lineWidth=a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const t=r.leftForLtr(f,u),n=r.leftForLtr(r.xPlus(f,1),u-2),o=jt(a.borderRadius);Object.values(o).some(e=>0!==e)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Nt(e,{x:t,y:p,w:u,h:c,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Nt(e,{x:n,y:p+1,w:u-2,h:c-2,radius:o}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,p,u,c),e.strokeRect(t,p,u,c),e.fillStyle=a.backgroundColor,e.fillRect(n,p+1,u-2,c-2))}e.fillStyle=o.labelTextColors[n]}drawBody(e,t,n){const r=this,{body:i}=r,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:c,boxWidth:u}=n,l=Vt(n.bodyFont);let d=l.lineHeight,f=0;const h=er(n.rtl,r.x,r.width),p=function(n){t.fillText(n,h.x(e.x+f),e.y+d/2),e.y+=d+o},g=h.textAlign(a);let m,v,b,y,x,_,w;for(t.textAlign=a,t.textBaseline="middle",t.font=l.string,e.x=ec(r,g,n),t.fillStyle=n.bodyColor,P(r.beforeBody,p),f=s&&"right"!==g?"center"===a?u/2+1:u+2:0,y=0,_=i.length;y<_;++y){for(m=i[y],v=r.labelTextColors[y],t.fillStyle=v,P(m.before,p),b=m.lines,s&&b.length&&(r._drawColorBox(t,e,y,h,n),d=Math.max(l.lineHeight,c)),x=0,w=b.length;x<w;++x)p(b[x]),d=l.lineHeight;P(m.after,p)}f=0,d=l.lineHeight,P(r.afterBody,p),e.y-=o}drawFooter(e,t,n){const r=this,i=r.footer,o=i.length;let a,s;if(o){const c=er(n.rtl,r.x,r.width);for(e.x=ec(r,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=c.textAlign(n.footerAlign),t.textBaseline="middle",a=Vt(n.footerFont),t.fillStyle=n.footerColor,t.font=a.string,s=0;s<o;++s)t.fillText(i[s],c.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){const{xAlign:i,yAlign:o}=this,{x:a,y:s}=e,{width:c,height:u}=n,l=r.cornerRadius;t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(a+l,s),"top"===o&&this.drawCaret(e,t,n,r),t.lineTo(a+c-l,s),t.quadraticCurveTo(a+c,s,a+c,s+l),"center"===o&&"right"===i&&this.drawCaret(e,t,n,r),t.lineTo(a+c,s+u-l),t.quadraticCurveTo(a+c,s+u,a+c-l,s+u),"bottom"===o&&this.drawCaret(e,t,n,r),t.lineTo(a+l,s+u),t.quadraticCurveTo(a,s+u,a,s+u-l),"center"===o&&"left"===i&&this.drawCaret(e,t,n,r),t.lineTo(a,s+l),t.quadraticCurveTo(a,s,a+l,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this,n=t._chart,r=t.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const r=js[e.position].call(t,t._active,t._eventPosition);if(!r)return;const a=t._size=$s(t,e),s=Object.assign({},r,t._size),c=Ks(n,e,s),u=Qs(e,s,c,n);i._to===u.x&&o._to===u.y||(t.xAlign=c.xAlign,t.yAlign=c.yAlign,t.width=a.width,t.height=a.height,t.caretX=r.x,t.caretY=r.y,t._resolveAnimations().update(t,u))}}draw(e){const t=this,n=t.options.setContext(t.getContext());let r=t.opacity;if(!r)return;t._updateAnimationTarget(n);const i={width:t.width,height:t.height},o={x:t.x,y:t.y};r=Math.abs(r)<.001?0:r;const a=Ht(n.padding),s=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;n.enabled&&s&&(e.save(),e.globalAlpha=r,t.drawBackground(o,e,i,n),tr(e,n.textDirection),o.y+=a.top,t.drawTitle(o,e,n),t.drawBody(o,e,n),t.drawFooter(o,e,n),nr(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this,r=n._active,i=e.map(({datasetIndex:e,index:t})=>{const r=n._chart.getDatasetMeta(e);if(!r)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:r.data[t],index:t}}),o=!R(r,i),a=n._positionChanged(i,t);(o||a)&&(n._active=i,n._eventPosition=t,n.update(!0))}handleEvent(e,t){const n=this,r=n.options,i=n._active||[];let o=!1,a=[];"mouseout"!==e.type&&(a=n._chart.getElementsAtEventForMode(e,r.mode,r,t),r.reverse&&a.reverse());const s=n._positionChanged(a,e);return o=t||!R(a,i)||s,o&&(n._active=a,(r.enabled||r.external)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0,t))),o}_positionChanged(e,t){const{caretX:n,caretY:r,options:i}=this,o=js[i.position].call(this,e,t);return!1!==o&&(n!==o.x||r!==o.y)}}ic.positioners=js;var oc={id:"tooltip",_element:ic,positioners:js,afterInit(e,t,n){n&&(e.tooltip=new ic({_chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip,n={tooltip:t};!1!==e.notifyPlugins("beforeTooltipDraw",n)&&(t&&t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n))},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:w,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:w,beforeBody:w,beforeLabel:w,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return C(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex),n=t.controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex),n=t.controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:w,afterBody:w,beforeFooter:w,footer:w,afterFooter:w}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},ac=Object.freeze({__proto__:null,Decimation:is,Filler:Os,Legend:Ms,SubTitle:Ws,Title:Ls,Tooltip:oc});const sc=(e,t,n)=>"string"===typeof t?e.push(t)-1:isNaN(t)?null:n;function cc(e,t,n){const r=e.indexOf(t);if(-1===r)return sc(e,t,n);const i=e.lastIndexOf(t);return r!==i?n:r}const uc=(e,t)=>null===e?null:ye(Math.round(e),0,t);class lc extends Ao{constructor(e){super(e),this._startValue=void 0,this._valueRange=0}parse(e,t){if(C(e))return null;const n=this.getLabels();return t=isFinite(t)&&n[t]===e?t:cc(n,e,E(t,e)),uc(t,n.length-1)}determineDataLimits(){const e=this,{minDefined:t,maxDefined:n}=e.getUserBounds();let{min:r,max:i}=e.getMinMax(!0);"ticks"===e.options.bounds&&(t||(r=0),n||(i=e.getLabels().length-1)),e.min=r,e.max=i}buildTicks(){const e=this,t=e.min,n=e.max,r=e.options.offset,i=[];let o=e.getLabels();o=0===t&&n===o.length-1?o:o.slice(t,n+1),e._valueRange=Math.max(o.length-(r?0:1),1),e._startValue=e.min-(r?.5:0);for(let a=t;a<=n;a++)i.push({value:a});return i}getLabelForValue(e){const t=this,n=t.getLabels();return e>=0&&e<n.length?n[e]:e}configure(){const e=this;super.configure(),e.isHorizontal()||(e._reversePixels=!e._reversePixels)}getPixelForValue(e){const t=this;return"number"!==typeof e&&(e=t.parse(e)),null===e?NaN:t.getPixelForDecimal((e-t._startValue)/t._valueRange)}getPixelForTick(e){const t=this,n=t.ticks;return e<0||e>n.length-1?null:t.getPixelForValue(n[e].value)}getValueForPixel(e){const t=this;return Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange)}getBasePixel(){return this.bottom}}function dc(e,t){const n=[],r=1e-14,{bounds:i,step:o,min:a,max:s,precision:c,count:u,maxTicks:l,maxDigits:d,includeBounds:f}=e,h=o||1,p=l-1,{min:g,max:m}=t,v=!C(a),b=!C(s),y=!C(u),x=(m-g)/(d+1);let _,w,D,k,T=oe((m-g)/p/h)*h;if(T<r&&!v&&!b)return[{value:g},{value:m}];k=Math.ceil(m/T)-Math.floor(g/T),k>p&&(T=oe(k*T/p/h)*h),C(c)||(_=Math.pow(10,c),T=Math.ceil(T*_)/_),"ticks"===i?(w=Math.floor(g/T)*T,D=Math.ceil(m/T)*T):(w=g,D=m),v&&b&&o&&ue((s-a)/o,T/1e3)?(k=Math.round(Math.min((s-a)/T,l)),T=(s-a)/k,w=a,D=s):y?(w=v?a:w,D=b?s:D,k=u-1,T=(D-w)/k):(k=(D-w)/T,k=ce(k,Math.round(k),T/1e3)?Math.round(k):Math.ceil(k));const S=Math.max(he(T),he(w));_=Math.pow(10,C(c)?S:c),w=Math.round(w*_)/_,D=Math.round(D*_)/_;let A=0;for(v&&(f&&w!==a?(n.push({value:a}),w<a&&A++,ce(Math.round((w+A*T)*_)/_,a,fc(a,x,e))&&A++):w<a&&A++);A<k;++A)n.push({value:Math.round((w+A*T)*_)/_});return b&&f&&D!==s?ce(n[n.length-1].value,s,fc(s,x,e))?n[n.length-1].value=s:n.push({value:s}):b&&D!==s||n.push({value:D}),n}function fc(e,t,{horizontal:n,minRotation:r}){const i=de(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}lc.id="category",lc.defaults={ticks:{callback:lc.prototype.getLabelForValue}};class hc extends Ao{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return C(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const e=this,{beginAtZero:t}=e.options,{minDefined:n,maxDefined:r}=e.getUserBounds();let{min:i,max:o}=e;const a=e=>i=n?i:e,s=e=>o=r?o:e;if(t){const e=ie(i),t=ie(o);e<0&&t<0?s(0):e>0&&t>0&&a(0)}i===o&&(s(o+1),t||a(i-1)),e.min=i,e.max=o}getTickLimit(){const e=this,t=e.options.ticks;let n,{maxTicksLimit:r,stepSize:i}=t;return i?n=Math.ceil(e.max/i)-Math.floor(e.min/i)+1:(n=e.computeTickLimit(),r=r||11),r&&(n=Math.min(r,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this,t=e.options,n=t.ticks;let r=e.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:e._maxDigits(),horizontal:e.isHorizontal(),minRotation:n.minRotation||0,includeBounds:!1!==n.includeBounds},o=e._range||e,a=dc(i,o);return"ticks"===t.bounds&&le(a,e,"value"),t.reverse?(a.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),a}configure(){const e=this,t=e.ticks;let n=e.min,r=e.max;if(super.configure(),e.options.offset&&t.length){const e=(r-n)/Math.max(t.length-1,1)/2;n-=e,r+=e}e._startValue=n,e._endValue=r,e._valueRange=r-n}getLabelForValue(e){return Zn(e,this.chart.options.locale)}}class pc extends hc{determineDataLimits(){const e=this,{min:t,max:n}=e.getMinMax(!0);e.min=S(t)?t:0,e.max=S(n)?n:1,e.handleTickRangeOptions()}computeTickLimit(){const e=this,t=e.isHorizontal(),n=t?e.width:e.height,r=de(e.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=e._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}function gc(e){const t=e/Math.pow(10,Math.floor(re(e)));return 1===t}function mc(e,t){const n=Math.floor(re(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),i=[];let o=A(e.min,Math.pow(10,Math.floor(re(t.min)))),a=Math.floor(re(o)),s=Math.floor(o/Math.pow(10,a)),c=a<0?Math.pow(10,Math.abs(a)):1;do{i.push({value:o,major:gc(o)}),++s,10===s&&(s=1,++a,c=a>=0?1:c),o=Math.round(s*Math.pow(10,a)*c)/c}while(a<n||a===n&&s<r);const u=A(e.max,o);return i.push({value:u,major:gc(o)}),i}pc.id="linear",pc.defaults={ticks:{callback:co.formatters.numeric}};class vc extends Ao{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=hc.prototype.parse.apply(this,[e,t]);if(0!==n)return S(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const e=this,{min:t,max:n}=e.getMinMax(!0);e.min=S(t)?Math.max(0,t):null,e.max=S(n)?Math.max(0,n):null,e.options.beginAtZero&&(e._zero=!0),e.handleTickRangeOptions()}handleTickRangeOptions(){const e=this,{minDefined:t,maxDefined:n}=e.getUserBounds();let r=e.min,i=e.max;const o=e=>r=t?r:e,a=e=>i=n?i:e,s=(e,t)=>Math.pow(10,Math.floor(re(e))+t);r===i&&(r<=0?(o(1),a(10)):(o(s(r,-1)),a(s(i,1)))),r<=0&&o(s(i,-1)),i<=0&&a(s(r,1)),e._zero&&e.min!==e._suggestedMin&&r===s(e.min,0)&&o(s(r,-1)),e.min=r,e.max=i}buildTicks(){const e=this,t=e.options,n={min:e._userMin,max:e._userMax},r=mc(n,e);return"ticks"===t.bounds&&le(r,e,"value"),t.reverse?(r.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),r}getLabelForValue(e){return void 0===e?"0":Zn(e,this.chart.options.locale)}configure(){const e=this,t=e.min;super.configure(),e._startValue=re(t),e._valueRange=re(e.max)-re(t)}getPixelForValue(e){const t=this;return void 0!==e&&0!==e||(e=t.min),null===e||isNaN(e)?NaN:t.getPixelForDecimal(e===t.min?0:(re(e)-t._startValue)/t._valueRange)}getValueForPixel(e){const t=this,n=t.getDecimalForPixel(e);return Math.pow(10,t._startValue+n*t._valueRange)}}function bc(e){const t=e.ticks;if(t.display&&e.display){const e=Ht(t.backdropPadding);return E(t.font&&t.font.size,xt.font.size)+e.height}return 0}function yc(e,t,n){return n=k(n)?n:[n],{w:Dt(e,t.string,n),h:n.length*t.lineHeight}}function xc(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function _c(e){const t={l:0,r:e.width,t:0,b:e.height-e.paddingTop},n={},r=[],i=[],o=e.getLabels().length;for(let a=0;a<o;a++){const o=e.options.pointLabels.setContext(e.getContext(a));i[a]=o.padding;const s=e.getPointPosition(a,e.drawingArea+i[a]),c=Vt(o.font),u=yc(e.ctx,c,e._pointLabels[a]);r[a]=u;const l=e.getIndexAngle(a),d=fe(l),f=xc(d,s.x,u.w,0,180),h=xc(d,s.y,u.h,90,270);f.start<t.l&&(t.l=f.start,n.l=l),f.end>t.r&&(t.r=f.end,n.r=l),h.start<t.t&&(t.t=h.start,n.t=l),h.end>t.b&&(t.b=h.end,n.b=l)}e._setReductions(e.drawingArea,t,n),e._pointLabelItems=wc(e,r,i)}function wc(e,t,n){const r=[],i=e.getLabels().length,o=e.options,a=bc(o),s=e.getDistanceFromCenterForValue(o.ticks.reverse?e.min:e.max);for(let c=0;c<i;c++){const i=0===c?a/2:0,o=e.getPointPosition(c,s+i+n[c]),u=fe(e.getIndexAngle(c)),l=t[c],d=kc(o.y,l.h,u),f=Dc(u),h=Cc(o.x,l.w,f);r.push({x:o.x,y:d,textAlign:f,left:h,top:d,right:h+l.w,bottom:d+l.h})}return r}function Dc(e){return 0===e||180===e?"center":e<180?"left":"right"}function Cc(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function kc(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function Tc(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const t=r.setContext(e.getContext(i)),o=Vt(t.font),{x:a,y:s,textAlign:c,left:u,top:l,right:d,bottom:f}=e._pointLabelItems[i],{backdropColor:h}=t;if(!C(h)){const e=Ht(t.backdropPadding);n.fillStyle=h,n.fillRect(u-e.left,l-e.top,d-u+e.width,f-l+e.height)}Ft(n,e._pointLabels[i],a,s+o.lineHeight/2,o,{color:t.color,textAlign:c,textBaseline:"middle"})}}function Sc(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,K);else{let n=e.getPointPosition(0,t);i.moveTo(n.x,n.y);for(let o=1;o<r;o++)n=e.getPointPosition(o,t),i.lineTo(n.x,n.y)}}function Ac(e,t,n,r){const i=e.ctx,o=t.circular,{color:a,lineWidth:s}=t;!o&&!r||!a||!s||n<0||(i.save(),i.strokeStyle=a,i.lineWidth=s,i.setLineDash(t.borderDash),i.lineDashOffset=t.borderDashOffset,i.beginPath(),Sc(e,n,o,r),i.closePath(),i.stroke(),i.restore())}function Ec(e){return se(e)?e:0}vc.id="logarithmic",vc.defaults={ticks:{callback:co.formatters.logarithmic,major:{enabled:!0}}};class Uc extends hc{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=bc(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2}determineDataLimits(){const e=this,{min:t,max:n}=e.getMinMax(!1);e.min=S(t)&&!isNaN(t)?t:0,e.max=S(n)&&!isNaN(n)?n:0,e.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/bc(this.options))}generateTickLabels(e){const t=this;hc.prototype.generateTickLabels.call(t,e),t._pointLabels=t.getLabels().map((e,n)=>{const r=F(t.options.pointLabels.callback,[e,n],t);return r||0===r?r:""})}fit(){const e=this,t=e.options;t.display&&t.pointLabels.display?_c(e):e.setCenterPoint(0,0,0,0)}_setReductions(e,t,n){const r=this;let i=t.l/Math.sin(n.l),o=Math.max(t.r-r.width,0)/Math.sin(n.r),a=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);i=Ec(i),o=Ec(o),a=Ec(a),s=Ec(s),r.drawingArea=Math.max(e/2,Math.min(Math.floor(e-(i+o)/2),Math.floor(e-(a+s)/2))),r.setCenterPoint(i,o,a,s)}setCenterPoint(e,t,n,r){const i=this,o=i.width-t-i.drawingArea,a=e+i.drawingArea,s=n+i.drawingArea,c=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((a+o)/2+i.left),i.yCenter=Math.floor((s+c)/2+i.top+i.paddingTop)}getIndexAngle(e){const t=K/this.getLabels().length,n=this.options.startAngle||0;return ve(e*t+de(n))}getDistanceFromCenterForValue(e){const t=this;if(C(e))return NaN;const n=t.drawingArea/(t.max-t.min);return t.options.reverse?(t.max-e)*n:(e-t.min)*n}getValueForDistanceFromCenter(e){if(C(e))return NaN;const t=this,n=e/(t.drawingArea/(t.max-t.min));return t.options.reverse?t.max-n:t.min+n}getPointPosition(e,t){const n=this,r=n.getIndexAngle(e)-ee;return{x:Math.cos(r)*t+n.xCenter,y:Math.sin(r)*t+n.yCenter,angle:r}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:r,bottom:i}=this._pointLabelItems[e];return{left:t,top:n,right:r,bottom:i}}drawBackground(){const e=this,{backgroundColor:t,grid:{circular:n}}=e.options;if(t){const r=e.ctx;r.save(),r.beginPath(),Sc(e,e.getDistanceFromCenterForValue(e._endValue),n,e.getLabels().length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const e=this,t=e.ctx,n=e.options,{angleLines:r,grid:i}=n,o=e.getLabels().length;let a,s,c;if(n.pointLabels.display&&Tc(e,o),i.display&&e.ticks.forEach((t,n)=>{if(0!==n){s=e.getDistanceFromCenterForValue(t.value);const r=i.setContext(e.getContext(n-1));Ac(e,r,s,o)}}),r.display){for(t.save(),a=e.getLabels().length-1;a>=0;a--){const i=r.setContext(e.getContext(a)),{color:o,lineWidth:u}=i;u&&o&&(t.lineWidth=u,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,s=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),c=e.getPointPosition(a,s),t.beginPath(),t.moveTo(e.xCenter,e.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const e=this,t=e.ctx,n=e.options,r=n.ticks;if(!r.display)return;const i=e.getIndexAngle(0);let o,a;t.save(),t.translate(e.xCenter,e.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",e.ticks.forEach((i,s)=>{if(0===s&&!n.reverse)return;const c=r.setContext(e.getContext(s)),u=Vt(c.font);if(o=e.getDistanceFromCenterForValue(e.ticks[s].value),c.showLabelBackdrop){t.font=u.string,a=t.measureText(i.label).width,t.fillStyle=c.backdropColor;const e=Ht(c.backdropPadding);t.fillRect(-a/2-e.left,-o-u.size/2-e.top,a+e.width,u.size+e.height)}Ft(t,i.label,0,-o,u,{color:c.color})}),t.restore()}drawTitle(){}}Uc.id="radialLinear",Uc.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:co.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5}},Uc.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Uc.descriptors={angleLines:{_fallback:"grid"}};const Oc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Fc=Object.keys(Oc);function Pc(e,t){return e-t}function Rc(e,t){if(C(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return"function"===typeof r&&(a=r(a)),S(a)||(a="string"===typeof r?n.parse(a,r):n.parse(a)),null===a?null:(i&&(a="week"!==i||!se(o)&&!0!==o?n.startOf(a,i):n.startOf(a,"isoWeek",o)),+a)}function Nc(e,t,n,r){const i=Fc.length;for(let o=Fc.indexOf(e);o<i-1;++o){const e=Oc[Fc[o]],i=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(i*e.size))<=r)return Fc[o]}return Fc[i-1]}function Mc(e,t,n,r,i){for(let o=Fc.length-1;o>=Fc.indexOf(n);o--){const n=Fc[o];if(Oc[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return Fc[n?Fc.indexOf(n):0]}function Ic(e){for(let t=Fc.indexOf(e)+1,n=Fc.length;t<n;++t)if(Oc[Fc[t]].common)return Fc[t]}function Bc(e,t,n){if(n){if(n.length){const{lo:r,hi:i}=Gt(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}else e[t]=!0}function Lc(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,c;for(s=o;s<=a;s=+i.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function zc(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,r.push({value:s,major:!1});return 0!==o&&n?Lc(e,r,i,n):r}class Wc extends Ao{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t){const n=e.time||(e.time={}),r=this._adapter=new hi._date(e.adapters.date);L(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:Rc(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this,t=e.options,n=e._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=e.getUserBounds();function c(e){a||isNaN(e.min)||(i=Math.min(i,e.min)),s||isNaN(e.max)||(o=Math.max(o,e.max))}a&&s||(c(e._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||c(e.getMinMax(!1))),i=S(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=S(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,e.min=Math.min(i,o-1),e.max=Math.max(i+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this,t=e.options,n=t.time,r=t.ticks,i="labels"===r.source?e.getLabelTimestamps():e._generate();"ticks"===t.bounds&&i.length&&(e.min=e._userMin||i[0],e.max=e._userMax||i[i.length-1]);const o=e.min,a=e.max,s=Kt(i,o,a);return e._unit=n.unit||(r.autoSkip?Nc(n.minUnit,e.min,e.max,e._getLabelCapacity(o)):Mc(e,s.length,n.minUnit,e.min,e.max)),e._majorUnit=r.major.enabled&&"year"!==e._unit?Ic(e._unit):void 0,e.initOffsets(i),t.reverse&&s.reverse(),zc(e,s,e._majorUnit)}initOffsets(e){const t=this;let n,r,i=0,o=0;t.options.offset&&e.length&&(n=t.getDecimalForValue(e[0]),i=1===e.length?1-n:(t.getDecimalForValue(e[1])-n)/2,r=t.getDecimalForValue(e[e.length-1]),o=1===e.length?r:(r-t.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;i=ye(i,0,a),o=ye(o,0,a),t._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const e=this,t=e._adapter,n=e.min,r=e.max,i=e.options,o=i.time,a=o.unit||Nc(o.minUnit,n,r,e._getLabelCapacity(n)),s=E(o.stepSize,1),c="week"===a&&o.isoWeekday,u=se(c)||!0===c,l={};let d,f,h=n;if(u&&(h=+t.startOf(h,"isoWeek",c)),h=+t.startOf(h,u?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const p="data"===i.ticks.source&&e.getDataTimestamps();for(d=h,f=0;d<r;d=+t.add(d,s,a),f++)Bc(l,d,p);return d!==r&&"ticks"!==i.bounds&&1!==f||Bc(l,d,p),Object.keys(l).sort((e,t)=>e-t).map(e=>+e)}getLabelForValue(e){const t=this,n=t._adapter,r=t.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}_tickFormatFunction(e,t,n,r){const i=this,o=i.options,a=o.time.displayFormats,s=i._unit,c=i._majorUnit,u=s&&a[s],l=c&&a[c],d=n[t],f=c&&l&&d&&d.major,h=i._adapter.format(e,r||(f?l:u)),p=o.ticks.callback;return p?F(p,[h,t,n],i):h}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t<n;++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){const t=this;return null===e?NaN:(e-t.min)/(t.max-t.min)}getPixelForValue(e){const t=this,n=t._offsets,r=t.getDecimalForValue(e);return t.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const t=this,n=t._offsets,r=t.getDecimalForPixel(e)/n.factor-n.end;return t.min+r*(t.max-t.min)}_getLabelSize(e){const t=this,n=t.options.ticks,r=t.ctx.measureText(e).width,i=de(t.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),s=t._resolveTickFontOptions(0).size;return{w:r*o+s*a,h:r*a+s*o}}_getLabelCapacity(e){const t=this,n=t.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=t._tickFormatFunction(e,0,zc(t,[e],t._majorUnit),i),a=t._getLabelSize(o),s=Math.floor(t.isHorizontal()?t.width/a.w:t.height/a.h)-1;return s>0?s:1}getDataTimestamps(){const e=this;let t,n,r=e._cache.data||[];if(r.length)return r;const i=e.getMatchingVisibleMetas();if(e._normalized&&i.length)return e._cache.data=i[0].controller.getAllParsedValues(e);for(t=0,n=i.length;t<n;++t)r=r.concat(i[t].controller.getAllParsedValues(e));return e._cache.data=e.normalize(r)}getLabelTimestamps(){const e=this,t=e._cache.labels||[];let n,r;if(t.length)return t;const i=e.getLabels();for(n=0,r=i.length;n<r;++n)t.push(Rc(e,i[n]));return e._cache.labels=e._normalized?t:e.normalize(t)}normalize(e){return en(e.sort(Pc))}}function jc(e,t,n){let r,i,o,a,s=0,c=e.length-1;n?(t>=e[s].pos&&t<=e[c].pos&&({lo:s,hi:c}=Xt(e,"pos",t)),({pos:r,time:o}=e[s]),({pos:i,time:a}=e[c])):(t>=e[s].time&&t<=e[c].time&&({lo:s,hi:c}=Xt(e,"time",t)),({time:r,pos:o}=e[s]),({time:i,pos:a}=e[c]));const u=i-r;return u?o+(a-o)*(t-r)/u:o}Wc.id="time",Wc.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Hc extends Wc{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this,t=e._getTimestampsForTable(),n=e._table=e.buildLookupTable(t);e._minPos=jc(n,e.min),e._tableRange=jc(n,e.max)-e._minPos,super.initOffsets(t)}buildLookupTable(e){const{min:t,max:n}=this,r=[],i=[];let o,a,s,c,u;for(o=0,a=e.length;o<a;++o)c=e[o],c>=t&&c<=n&&r.push(c);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(o=0,a=r.length;o<a;++o)u=r[o+1],s=r[o-1],c=r[o],Math.round((u+s)/2)!==c&&i.push({time:c,pos:o/(a-1)});return i}_getTimestampsForTable(){const e=this;let t=e._cache.all||[];if(t.length)return t;const n=e.getDataTimestamps(),r=e.getLabelTimestamps();return t=n.length&&r.length?e.normalize(n.concat(r)):n.length?n:r,t=e._cache.all=t,t}getDecimalForValue(e){return(jc(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this,n=t._offsets,r=t.getDecimalForPixel(e)/n.factor-n.end;return jc(t._table,r*t._tableRange+t._minPos,!0)}}Hc.id="timeseries",Hc.defaults=Wc.defaults;var Vc=Object.freeze({__proto__:null,CategoryScale:lc,LinearScale:pc,LogarithmicScale:vc,RadialLinearScale:Uc,TimeScale:Wc,TimeSeriesScale:Hc});const qc=[li,Ja,ac,Vc];fa.register(...qc);var $c={props:["data","height"],data(){return{chart:null,chartData:{labels:[],datasets:[]}}},watch:{data:{deep:!0,handler(e,t){this.chart.update()}}},mounted(){this.chartInit()},beforeDestroy:function(){this.chart.destroy()},methods:{chartInit(){let e=this.$refs.chart.getContext("2d");this.chart=new fa(e,{type:"bar",data:this.data,options:{layout:{padding:{top:30,right:15,left:10,bottom:5}},responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},tooltips:{enabled:!0,mode:"index",intersect:!1},scales:{y:{grid:{display:!0,color:"rgba(255, 255, 255, .2)",zeroLineColor:"#ffffff",borderDash:[6],borderDashOffset:[6]},ticks:{suggestedMin:0,suggestedMax:1e3,display:!0,color:"#fff",font:{size:14,lineHeight:1.5,weight:"600",family:"Open Sans"}}},x:{grid:{display:!1},ticks:{display:!0,color:"#fff",font:{size:14,lineHeight:1.5,weight:"600",family:"Open Sans"}}}}}})}}},Gc=$c,Xc=(n("95c8"),Object(u["a"])(Gc,p,g,!1,null,"2fc6cbfa",null)),Yc=Xc.exports,Kc={components:{ChartBar:Yc},props:{dealerData:{type:Object,default:{}},userChart:{type:Object,default:()=>{}}},data(){return{barChartData:{labels:[],datasets:[{label:"数量",backgroundColor:"#fff",borderWidth:0,borderSkipped:!1,borderRadius:6,data:[],maxBarThickness:20}]}}},watch:{userChart:{deep:!0,handler(e,t){this.barChartData.labels=e.keys,this.barChartData.datasets[0].data=e.values}}},created(){},methods:{}},Zc=Kc,Jc=Object(u["a"])(Zc,f,h,!1,null,null,null),Qc=Jc.exports,eu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticClass:"dashboard-bar-line header-solid",attrs:{bordered:!1},scopedSlots:e._u([{key:"title",fn:function(){return[n("h6",[e._v("Token消耗量")])]},proxy:!0}])},[n("chart-line",{attrs:{height:310,data:e.lineChartData}})],1)},tu=[],nu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("canvas",{ref:"chart",style:{height:e.height+"px"}})])},ru=[];fa.register(...qc);var iu={props:["data","height"],data(){return{chart:null}},watch:{data:{deep:!0,handler(e,t){this.chart.update()}}},mounted(){this.chartInit()},beforeDestroy:function(){this.chart.destroy()},methods:{chartInit(){let e=this.$refs.chart.getContext("2d");this.chart=new fa(e,{type:"line",data:this.data,options:{layout:{padding:{top:30,right:15,left:10,bottom:5}},responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},tooltips:{enabled:!0,mode:"index",intersect:!1},scales:{y:{grid:{display:!0,color:"rgba(0, 0, 0, .2)",zeroLineColor:"#000000",borderDash:[6],borderDashOffset:[6]},ticks:{suggestedMin:0,suggestedMax:1e3,display:!0,color:"#8C8C8C",font:{size:14,lineHeight:1.8,weight:"600",family:"Open Sans"}}},x:{grid:{display:!1},ticks:{display:!0,color:"#8C8C8C",font:{size:14,lineHeight:1.5,weight:"600",family:"Open Sans"}}}}}})}}},ou=iu,au=Object(u["a"])(ou,nu,ru,!1,null,"3f4da53c",null),su=au.exports,cu={components:{ChartLine:su},props:{tokenChart:{type:Object,default:()=>{}}},data(){return{lineChartData:{labels:[],datasets:[{label:"数量",tension:.4,borderWidth:0,pointRadius:0,borderColor:"#1890FF",borderWidth:3,data:[],maxBarThickness:6}]}}},watch:{tokenChart:{deep:!0,handler(e,t){this.lineChartData.labels=e.keys,this.lineChartData.datasets[0].data=e.values}}}},uu=cu,lu=Object(u["a"])(uu,eu,tu,!1,null,null,null),du=lu.exports,fu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticClass:"header-solid h-full",attrs:{bordered:!1,bodyStyle:{padding:"24px"}},scopedSlots:e._u([{key:"title",fn:function(){return[n("a-row",{attrs:{type:"flex",align:"middle"}},[n("a-col",{attrs:{span:24,md:12}},[n("h6",[e._v("AIGC从入门到精通进阶教程")])]),n("a-col",{staticStyle:{display:"flex","align-items":"center","justify-content":"flex-end"},attrs:{span:24,md:12}},[n("a-radio-group",{attrs:{size:"small"},model:{value:e.projectHeaderBtns,callback:function(t){e.projectHeaderBtns=t},expression:"projectHeaderBtns"}},[n("a-radio-button",{attrs:{value:"all"}},[e._v("全部")]),n("a-radio-button",{attrs:{value:"other"}},[e._v("其他")])],1)],1)],1)]},proxy:!0}])},[n("div",{staticClass:"body_box"},[n("div",{staticClass:"list_box"},e._l(e.caseList,(function(t,r){return n("div",{key:"case_"+t.id,staticClass:"item"},[n("a",{attrs:{href:"/#/news?newsid="+t.id}},[n("img",{staticStyle:{width:"120px",height:"120px",float:"left",position:"relative","margin-right":"10px","border-radius":"50%"},attrs:{src:t.image}}),n("h6",{staticClass:"c-line-1"},[e._v(e._s(t.title))]),n("p",{staticClass:"c-line-1"},[e._v(e._s(t.description))]),n("div",{staticClass:"info"},[n("div",{staticClass:"left"},[n("a-avatar",{attrs:{size:"small",src:t.user_avatar}}),n("span",[e._v(e._s(t.user_name))])],1),n("div",{staticClass:"right"},[n("svg",{attrs:{viewBox:"64 64 896 896","data-icon":"like",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"}},[n("path",{attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 0 0 471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0 1 42.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}})]),n("span",{staticStyle:{"margin-left":"5px"}},[e._v(e._s(t.views))])])])])])})),0)])])},hu=[],pu={props:{},data(){return{projectHeaderBtns:"all",caseList:[],casefen:[]}},created(){this.getCaseList(),this.getCaseListfen()},methods:{getCaseList(){this.$http("case.list",{page:1,pagesize:40}).then(e=>{1===e.code&&(this.caseList=e.data)})},getCaseListfen(){this.$http("case.classify",{page:1,pagesize:40}).then(e=>{1===e.code&&(this.casefen=e.data)})}}},gu=pu,mu=(n("e4bb"),Object(u["a"])(gu,fu,hu,!1,null,"7d0828cd",null)),vu=mu.exports,bu=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a-card",{staticClass:"card-info",attrs:{bordered:!1}},[r("a-row",{attrs:{type:"flex"}},[r("a-col",{staticClass:"col-content",attrs:{span:24,xl:12}},[r("div",{staticClass:"card-content"},[r("h5",[e._v("AI智能创作平台")]),r("p",[e._v("AI智能艺术平台，拥有丰富多彩的创作功能，包括: Al绘画，语音对话等。我们也正在努力开放更多的平台和功能，让您可以尽情发挥创造力，创作出更加惊艳的作品!而且，我们还提供伪原创功能，让您的创作更加独具特色和个性化。所以，不要错过这个机会。")])])]),r("a-col",{staticClass:"col-img",attrs:{span:24,xl:12}},[r("div",{staticClass:"card-img-bg"},[r("img",{attrs:{src:n("89e8"),alt:""}})])])],1)],1)},yu=[],xu={data(){return{}}},_u=xu,wu=Object(u["a"])(_u,bu,yu,!1,null,null,null),Du=wu.exports,Cu=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a-card",{staticClass:"card-info-2 h-full",attrs:{bordered:!1}},[r("div",{staticClass:"col-content h-full",style:{backgroundImage:"url("+n("6a25")+")"}},[r("div",{staticClass:"card-content"},[r("h5",[e._v("你会推荐给你的朋友吗？")]),r("p",[e._v("我们是一款Al智能生产力工具，可以快速提高您的工作效率，让您更加轻松地完 成各种任务。同时，我们还是您的贴身工作助手，为您提供更多的便利和帮助。 更重要的是，我们还有丰厚的佣金奖励机制，只要您向好友推荐，并成功注册使用，即可获得相应佣金。所以，不仅可以提升您的工作效率，还可以赚钱，何乐而不为呢？赶快推荐给您的好朋友吧！")])])])])},ku=[],Tu={data(){return{}}},Su=Tu,Au=Object(u["a"])(Su,Cu,ku,!1,null,null,null),Eu=Au.exports,Uu=n("2f62");const Ou=[{title:"推广总收益",value:0,prefix:"$",icon:'\n\t\t\t<svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t<path d="M8.43338 7.41784C8.58818 7.31464 8.77939 7.2224 9 7.15101L9.00001 8.84899C8.77939 8.7776 8.58818 8.68536 8.43338 8.58216C8.06927 8.33942 8 8.1139 8 8C8 7.8861 8.06927 7.66058 8.43338 7.41784Z" fill="#111827"/>\n\t\t\t\t<path d="M11 12.849L11 11.151C11.2206 11.2224 11.4118 11.3146 11.5666 11.4178C11.9308 11.6606 12 11.8861 12 12C12 12.1139 11.9308 12.3394 11.5666 12.5822C11.4118 12.6854 11.2206 12.7776 11 12.849Z" fill="#111827"/>\n\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM11 5C11 4.44772 10.5523 4 10 4C9.44772 4 9 4.44772 9 5V5.09199C8.3784 5.20873 7.80348 5.43407 7.32398 5.75374C6.6023 6.23485 6 7.00933 6 8C6 8.99067 6.6023 9.76515 7.32398 10.2463C7.80348 10.5659 8.37841 10.7913 9.00001 10.908L9.00002 12.8492C8.60902 12.7223 8.31917 12.5319 8.15667 12.3446C7.79471 11.9275 7.16313 11.8827 6.74599 12.2447C6.32885 12.6067 6.28411 13.2382 6.64607 13.6554C7.20855 14.3036 8.05956 14.7308 9 14.9076L9 15C8.99999 15.5523 9.44769 16 9.99998 16C10.5523 16 11 15.5523 11 15L11 14.908C11.6216 14.7913 12.1965 14.5659 12.676 14.2463C13.3977 13.7651 14 12.9907 14 12C14 11.0093 13.3977 10.2348 12.676 9.75373C12.1965 9.43407 11.6216 9.20873 11 9.09199L11 7.15075C11.391 7.27771 11.6808 7.4681 11.8434 7.65538C12.2053 8.07252 12.8369 8.11726 13.254 7.7553C13.6712 7.39335 13.7159 6.76176 13.354 6.34462C12.7915 5.69637 11.9405 5.26915 11 5.09236V5Z" fill="#111827"/>\n\t\t\t</svg>\n\t\t'},{title:"推广人数",value:0,icon:'\n\t\t\t<svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t<path d="M9 6C9 7.65685 7.65685 9 6 9C4.34315 9 3 7.65685 3 6C3 4.34315 4.34315 3 6 3C7.65685 3 9 4.34315 9 6Z" fill="#111827"/>\n\t\t\t\t<path d="M17 6C17 7.65685 15.6569 9 14 9C12.3431 9 11 7.65685 11 6C11 4.34315 12.3431 3 14 3C15.6569 3 17 4.34315 17 6Z" fill="#111827"/>\n\t\t\t\t<path d="M12.9291 17C12.9758 16.6734 13 16.3395 13 16C13 14.3648 12.4393 12.8606 11.4998 11.6691C12.2352 11.2435 13.0892 11 14 11C16.7614 11 19 13.2386 19 16V17H12.9291Z" fill="#111827"/>\n\t\t\t\t<path d="M6 11C8.76142 11 11 13.2386 11 16V17H1V16C1 13.2386 3.23858 11 6 11Z" fill="#111827"/>\n\t\t\t</svg>\n\t\t'},{title:"总会话次数",value:0,prefix:"+",status:"danger",icon:'\n\t\t\t<svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M3.17157 5.17157C4.73367 3.60948 7.26633 3.60948 8.82843 5.17157L10 6.34315L11.1716 5.17157C12.7337 3.60948 15.2663 3.60948 16.8284 5.17157C18.3905 6.73367 18.3905 9.26633 16.8284 10.8284L10 17.6569L3.17157 10.8284C1.60948 9.26633 1.60948 6.73367 3.17157 5.17157Z" fill="#111827"/>\n\t\t\t</svg>\n\t\t'},{title:"其他",value:0,icon:'\n\t\t\t<svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M10 2C7.79086 2 6 3.79086 6 6V7H5C4.49046 7 4.06239 7.38314 4.00612 7.88957L3.00612 16.8896C2.97471 17.1723 3.06518 17.455 3.25488 17.6669C3.44458 17.8789 3.71556 18 4 18H16C16.2844 18 16.5554 17.8789 16.7451 17.6669C16.9348 17.455 17.0253 17.1723 16.9939 16.8896L15.9939 7.88957C15.9376 7.38314 15.5096 7 15 7H14V6C14 3.79086 12.2091 2 10 2ZM12 7V6C12 4.89543 11.1046 4 10 4C8.89543 4 8 4.89543 8 6V7H12ZM6 10C6 9.44772 6.44772 9 7 9C7.55228 9 8 9.44772 8 10C8 10.5523 7.55228 11 7 11C6.44772 11 6 10.5523 6 10ZM13 9C12.4477 9 12 9.44772 12 10C12 10.5523 12.4477 11 13 11C13.5523 11 14 10.5523 14 10C14 9.44772 13.5523 9 13 9Z" fill="#111827"/>\n\t\t\t</svg>\n\t\t'}];var Fu={components:{WidgetCounter:d,BarChart:Qc,LineChart:du,IndexCase:vu,IndexLeftInfo:Du,IndexRightInfo:Eu},data(){return{stats:Ou,userChart:{keys:[],values:[]},tokenChart:{keys:[],values:[]},dealerData:{direct:0,indirect:0,money:0,levelName:"平台用户",levelText:"用户"}}},computed:{...Object(Uu["c"])("user",["token","userInfo","statisticInfo"])},watch:{statisticInfo(e,t){this.stats[0].value=e.reseller_money,this.stats[1].value=e.reseller_user,this.stats[2].value=e.msg_total,this.userChart.keys=Object.keys(e.user_list),this.userChart.values=Object.values(e.user_list),this.tokenChart.keys=Object.keys(e.token_list),this.tokenChart.values=Object.values(e.token_list),e.reseller&&(this.dealerData={direct:e.direct_user,indirect:e.indirect_user,money:e.reseller_money,levelName:e.reseller.reseller_json.name,levelText:e.reseller.reseller_json.name.slice(0,2)})}},created(){this.getIndexData()},mounted(){console.log(this.token,"token")},methods:{...Object(Uu["b"])("user",["getUserInfo","getStatisticInfo"]),...Object(Uu["d"])("user",["setLoginPopup"]),getIndexData(){this.token&&this.getUserInfo(),this.getStatisticInfo()}}},Pu=Fu,Ru=Object(u["a"])(Pu,r,i,!1,null,"eb1dec76",null);t["default"]=Ru.exports},"744c":function(e,t,n){(function(){var t,r,i,o,a,s,c;c=n("45f3"),a=c.assign,s=c.isFunction,t=n("ae0a"),r=n("54dd"),o=n("1f08"),i=n("c376"),e.exports.create=function(e,n,r,i){var o,s;if(null==e)throw new Error("Root element needs a name.");return i=a({},n,r,i),o=new t(i),s=o.element(e),i.headless||(o.declaration(i),null==i.pubID&&null==i.sysID||o.doctype(i)),s},e.exports.begin=function(e,n,i){var o;return s(e)&&(o=[e,n],n=o[0],i=o[1],e={}),n?new r(e,n,i):new t(e)},e.exports.stringWriter=function(e){return new o(e)},e.exports.streamWriter=function(e,t){return new i(e,t)}}).call(this)},7866:function(e,t,n){"use strict";n("2eda")},"7a01":function(e,t,n){var r=n("c46f"),i=n("744c");function o(e,t){var n=r.invert(t),o={element:c,text:a};function s(e,t){return o[t.type](e,t)}function c(e,t){var n=e.element(u(t.name),t.attributes);t.children.forEach((function(e){s(n,e)}))}function u(e){var t=/^\{(.*)\}(.*)$/.exec(e);if(t){var r=n[t[1]];return r+(""===r?"":":")+t[2]}return e}function l(e){var n=i.create(u(e.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return r.forEach(t,(function(e,t){var r="xmlns"+(""===t?"":":"+t);n.attribute(r,e)})),e.children.forEach((function(e){s(n,e)})),n.end()}return l(e)}function a(e,t){e.text(t.value)}t.writeString=o},"7b67":function(e,t,n){"use strict";e.exports=function(e,t){var n=e.reduce,r=e.all;function i(){return r(this)}function o(e,r){return n(e,r,t,t)}e.prototype.each=function(e){return n(this,e,t,0)._then(i,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,r){return n(e,r,t,0)._then(i,void 0,void 0,e,void 0)},e.mapSeries=o}},"803c":function(e,t,n){var r=n("335c");function i(e,t,n){return a(r.element(e,t,{fresh:!1}),n)}function o(e,t,n){var i=r.element(e,t,{fresh:!0});return a(i,n)}function a(e,t){return{type:"element",tag:e,children:t||[]}}function s(e){return{type:"text",value:e}}var c={type:"forceWrite"};t.freshElement=o,t.nonFreshElement=i,t.elementWithTag=a,t.text=s,t.forceWrite=c;var u={br:!0,hr:!0,img:!0};function l(e){return 0===e.children.length&&u[e.tag.tagName]}t.isVoidElement=l},"83da":function(e,t){e.exports=function(e,t,n){this.name=e,this.value=t,n&&(this.source=n)}},"83f4":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"wrap",staticStyle:{width:"100%",padding:"20px",background:"radial-gradient(circle at 12% 55%,rgba(33,150,243,.15),hsla(0,0%,100%,0) 25%)"},attrs:{"element-loading-text":e.load_desc}},[n("div",{staticClass:"left"},[n("div",{staticStyle:{padding:"10px"}},[e._m(0),n("a-textarea",{attrs:{placeholder:"例如：人工智能产业结构及未来发展","allow-clear":"",rows:4},model:{value:e.desc,callback:function(t){e.desc=t},expression:"desc"}}),n("a-button",{staticClass:"w-100 mt-2 mb-2",staticStyle:{"margin-top":"10px",width:"100%"},on:{click:function(t){return t.stopPropagation(),e.showModal.apply(null,arguments)}}},[e._v(" 设置高级选项(主题及复杂度) ")]),n("a-modal",{attrs:{title:"高级选项",visible:e.visible,"confirm-loading":e.confirmLoading,okText:"确认",cancelText:"取消",width:"80%"},on:{ok:function(t){return e.handleOk()},cancel:e.handleCancel}},[n("h6",[e._v("选择主题模板")]),n("div",{staticClass:"theme"},e._l(e.theme_data,(function(t,r){return n("div",{staticClass:"theme_box",class:{active:e.isActive(r)},on:{click:function(n){return e.toggleClass(r,t.key)}}},[n("img",{attrs:{src:t.thumbnail}}),n("div",[e._v(e._s(t.name))])])})),0),n("h6",[e._v("复杂度")]),n("div",[n("a-radio-group",{on:{change:e.onChange},model:{value:e.fvalue,callback:function(t){e.fvalue=t},expression:"fvalue"}},[n("a-radio",{attrs:{value:1}},[e._v(" 标准版 ")]),n("a-radio",{attrs:{value:2}},[e._v(" 复杂版 ")])],1)],1)]),n("a-button",{staticClass:"w-100 mt-2 mb-2",staticStyle:{"margin-top":"10px","margin-bottom":"5px",width:"100%"},attrs:{type:"primary",loading:e.btn_loading},on:{click:function(t){return e.send()}}},[e._v(" 开始生成 (200积分/次 会员免费) ")]),n("br"),n("span",{staticStyle:{"font-size":"10px",color:"red"}},[e._v("*注意：点击生成后大概需要2-5分钟生成。")]),n("br")],1),0!=e.history_data.length?n("div",{staticClass:"history",staticStyle:{"margin-top":"10px"}},[e._m(1),e._l(e.history_data,(function(t,r){return n("div",{staticClass:"history_box"},[n("div",{on:{click:function(n){return e.bianji(t.pptx_url)}}},[t.img_first?n("img",{attrs:{src:t.img_first}}):e._e(),t.img_first?e._e():n("img",{attrs:{src:e.history_default}})]),n("div",{staticStyle:{"text-align":"center"}},[e._v(" "+e._s(t.ppt_text)+" ")]),3==t.status?n("div",{staticClass:"status_icon error"},[n("i",{staticClass:"el-icon-error"}),e._v("生成失败 ")]):e._e(),2==t.status?n("div",{staticClass:"status_icon success"},[n("i",{staticClass:"el-icon-success"}),e._v("生成成功 ")]):e._e(),1==t.status?n("div",{staticClass:"status_icon wait"},[n("i",{staticClass:"el-icon-info"}),e._v("生成中 ")]):e._e(),2==t.status?n("div",{staticClass:"download_icons"},[n("a",{on:{click:function(n){return e.bianji(t.pptx_url)}}},[n("i",{staticClass:"el-icon-edit"}),e._v("在线编辑")])]):e._e(),2==t.status?n("div",{staticClass:"download_icon"},[n("a",{attrs:{href:t.pptx_url,download:""}},[n("i",{staticClass:"el-icon-download"}),e._v("下载PPT")])]):e._e()])}))],2):e._e()]),n("div",{staticClass:"right"},[n("iframe",{staticStyle:{border:"1px solid #ccc","border-radius":"15px","margin-top":"-40px"},attrs:{src:e.baiduUrl,width:"100%",height:"100%"}})])])},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"left-panel-setting-block__header"},[n("div",{staticClass:"left-panel-setting-block__title fs-5"},[e._v("输入标题(题纲或主要内容)")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h5",[e._v("历史记录")])])}],o={data(){return{history_default:"https://osaigc-1307379943.cos.ap-nanjing.myqcloud.com/uploads/20231128/deebfac0dff30b446e39a841828aa45f.png",image:[{url:"https://osaigc-1307379943.cos.ap-nanjing.myqcloud.com/uploads/20231128/deebfac0dff30b446e39a841828aa45f.png"}],desc:"",baiduUrl:"https://www.osaigc.cn/mark_ppt_edit/?url=",editshow:!0,loading:!1,btn_loading:!1,load_desc:"拼命生成中,大概耗时2-5分钟，请您耐心等待",history_data:[],content_level:"standard",fvalue:1,theme_data:[],activeDivs:[],theme_key:"",visible:!1,text:"https://download.yoojober.com/chatppt_business/2023-11/4838d61116e05834f283a7454e104f55.pptx?e=1701145672&token=8_2qFlGEVQZPpFvHdGR6gg2t9A9QZfWT9wwTl92s:VMX2fbqE5TAcHQmKWiVomXC6lxE="}},created(){this.getUserPpt(),this.pptTheme()},methods:{handleOk(){this.visible=!1},handleCancel(e){this.visible=!1,this.theme_key=""},showModal(){this.visible=!0},toggleClass(e,t){this.activeDivs=[],this.activeDivs.push(e),this.theme_key=t},isActive(e){return this.activeDivs.includes(e)},pptTheme(){this.$http("role.get_ppt_theme").then(e=>{e.data.flag&&(this.theme_data=e.data.data)})},onChange(e){2==e.target.value?this.content_level="complex":this.content_level="standard"},bianji(e){this.editshow=!1,this.baiduUrl="https://www.osaigc.cn/mark_ppt_edit/?url="+e},guanbi(){this.editshow=!0},getImgUrl(e){return this.image[e].url},send(){if(this.loading=!0,this.btn_loading=!0,""==this.desc)return this.loading=!1,this.btn_loading=!1,this.$message.info("请输入标题"),!1;this.$http("role.chatppt",{desc:this.desc,theme:this.theme_key,content_level:this.content_level}).then(e=>{1==e.code&&(console.log(e.data.data.sid),this.getDrawingResult(e.data.data.sid))})},ppt_down(){},history_img(e){this.editshow=!0,this.image=e},getDrawingResult(e){this.$http("role.pptresult",{id:e}).then(t=>{if(2==t.data.data.status&&(this.btn_loading=!1,this.loading=!1,this.getUserPpt(),this.bianji(t.data.data.pptUrl),this.$message.success("生成成功")),3==t.data.data.status&&(this.loading=!1,this.btn_loading=!1,this.getUserPpt(),this.$message.error("生成失败")),1==t.data.data.status){const t=setTimeout(()=>{this.getDrawingResult(e),clearTimeout(t),this.$message.info(this.load_desc)},5e3)}})},getUserPpt(){this.$http("role.getppt").then(e=>{console.log(e),1==e.code&&(this.history_data=e.data)})}}},a=o,s=(n("63b6"),n("e15a"),n("2877")),c=Object(s["a"])(a,r,i,!1,null,"47df6c2e",null);t["default"]=c.exports},"84ec":function(e,t,n){n("2401")},"855b":function(e,t,n){n("e2d6")},"858e":function(e,t,n){"use strict";var r,i,o={props:{initial:{type:Boolean,default:!1}},data:function(){return{size:{width:-1,height:-1}}},methods:{reset:function(){var e=this.$el.firstChild,t=this.$el.lastChild;e.scrollLeft=1e5,e.scrollTop=1e5,t.scrollLeft=1e5,t.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight}},watch:{size:{deep:!0,handler:function(e){this.reset(),this.$emit("resize",{width:this.size.width,height:this.size.height})}}},render:function(e){var t="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",n="position: absolute; left: 0; top: 0;";return e("div",{style:t+"animation-name: resizeSensorVisibility;",on:{"~animationstart":this.update}},[e("div",{style:t,on:{scroll:this.update}},[e("div",{style:n+"width: 100000px; height: 100000px;"})]),e("div",{style:t,on:{scroll:this.update}},[e("div",{style:n+"width: 200%; height: 200%;"})])])},beforeDestroy:function(){this.$emit("resize",{width:0,height:0}),this.$emit("resizeSensorBeforeDestroy")},mounted:function(){if(!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"attachEvent"in this.$el&&!("AnimationEvent"in window)){var e=function(){this.update(),t()}.bind(this),t=function(){this.$el.detachEvent("onresize",e),this.$off("resizeSensorBeforeDestroy",t)}.bind(this);this.$el.attachEvent("onresize",e),this.$on("resizeSensorBeforeDestroy",t),this.reset()}}},a=o,s=(n("7866"),n("2877")),c=Object(s["a"])(a,r,i,!1,null,null,null),u=c.exports,l=function(e){var t=e.createLoadingTask,n=e.PDFJSWrapper;return{createLoadingTask:t,render:function(e){return e("span",{attrs:{style:"position: relative; display: block"}},[e("canvas",{attrs:{style:"display: inline-block; width: 100%; height: 100%; vertical-align: top"},ref:"canvas"}),e("span",{style:"display: inline-block; width: 100%; height: 100%",class:"annotationLayer",ref:"annotationLayer"}),e(u,{props:{initial:!0},on:{resize:this.resize}})])},props:{src:{type:[String,Object,Uint8Array],default:""},page:{type:Number,default:1},rotate:{type:Number}},watch:{src:function(){this.pdf.loadDocument(this.src)},page:function(){this.pdf.loadPage(this.page,this.rotate)},rotate:function(){this.pdf.renderPage(this.rotate)}},methods:{resize:function(e){if(null!==this.$el.parentNode&&(0!==e.width||0!==e.height)){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(this.$refs.canvas.height/this.$refs.canvas.width)+"px";var t=this.pdf.getResolutionScale();(t<.85||t>1.15)&&this.pdf.renderPage(this.rotate)}},print:function(e,t){this.pdf.printPage(e,t)}},mounted:function(){this.pdf=new n(this.$refs.canvas,this.$refs.annotationLayer,this.$emit.bind(this)),this.$on("loaded",(function(){this.pdf.loadPage(this.page,this.rotate)})),this.$on("page-size",(function(e,t){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(t/e)+"px"})),this.pdf.loadDocument(this.src)},destroyed:function(){this.pdf.destroy()}}};if("server"!==Object({NODE_ENV:"production",VUE_APP_BASE_API:"",BASE_URL:""}).VUE_ENV){var d=n("a068").default,f=n("4383");if("undefined"!==typeof window&&"Worker"in window&&-1===navigator.appVersion.indexOf("MSIE 10")){var h=n("2639");f.GlobalWorkerOptions.workerPort=new h}var p=l(d(f))}else p=l({});var g,m,v=p,b=v,y=(n("6f4a"),Object(s["a"])(b,g,m,!1,null,null,null));t["a"]=y.exports},"85d1":function(e,t){e.exports={failure:function(e,t){if(e.length<1)throw new Error("Failure must have errors");return new n({status:"failure",remaining:t,errors:e})},error:function(e,t){if(e.length<1)throw new Error("Failure must have errors");return new n({status:"error",remaining:t,errors:e})},success:function(e,t,r){return new n({status:"success",value:e,source:r,remaining:t,errors:[]})},cut:function(e){return new n({status:"cut",remaining:e,errors:[]})}};var n=function(e){this._value=e.value,this._status=e.status,this._hasValue=void 0!==e.value,this._remaining=e.remaining,this._source=e.source,this._errors=e.errors};n.prototype.map=function(e){return this._hasValue?new n({value:e(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this},n.prototype.changeRemaining=function(e){return new n({value:this._value,status:this._status,remaining:e,source:this._source,errors:this._errors})},n.prototype.isSuccess=function(){return"success"===this._status||"cut"===this._status},n.prototype.isFailure=function(){return"failure"===this._status},n.prototype.isError=function(){return"error"===this._status},n.prototype.isCut=function(){return"cut"===this._status},n.prototype.value=function(){return this._value},n.prototype.remaining=function(){return this._remaining},n.prototype.source=function(){return this._source},n.prototype.errors=function(){return this._errors}},8632:function(e,t,n){"use strict";n("a08f")},"887d":function(e,t,n){"use strict";n("e613")},"88b6":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t,n){var r="UL"===t?"InsertUnorderedList":"InsertOrderedList";e.execCommand(r,!1,!1===n?null:{"list-style-type":n})},n=function(e){e.addCommand("ApplyUnorderedListStyle",(function(n,r){t(e,"UL",r["list-style-type"])})),e.addCommand("ApplyOrderedListStyle",(function(n,r){t(e,"OL",r["list-style-type"])}))},r=tinymce.util.Tools.resolve("tinymce.util.Tools"),i=function(e){var t=e.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");return t?t.split(/[ ,]/):[]},o=function(e){var t=e.getParam("advlist_bullet_styles","default,circle,square");return t?t.split(/[ ,]/):[]},a=function(){},s=function(e){return function(){return e}},c=function(e){return e},u=s(!1),l=s(!0),d=function(){return f},f=function(){var e=function(e){return e()},t=c,n={fold:function(e,t){return e()},isSome:u,isNone:l,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:s(null),getOrUndefined:s(void 0),or:t,orThunk:e,map:d,each:a,bind:d,exists:u,forall:l,filter:function(){return d()},toArray:function(){return[]},toString:s("none()")};return n}(),h=function(e){var t=s(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:l,isNone:u,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return h(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:f},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},p=function(e){return null===e||void 0===e?f:h(e)},g={some:h,none:d,from:p},m=function(e,t){return e.$.contains(e.getBody(),t)},v=function(e){return e&&/^(TH|TD)$/.test(e.nodeName)},b=function(e){return function(t){return t&&/^(OL|UL|DL)$/.test(t.nodeName)&&m(e,t)}},y=function(e){var t=e.dom.getParent(e.selection.getNode(),"ol,ul"),n=e.dom.getStyle(t,"listStyleType");return g.from(n)},x=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return n}return-1},_=function(e){return e.replace(/\-/g," ").replace(/\b\w/g,(function(e){return e.toUpperCase()}))},w=function(e,t,n){var i=x(t.parents,v),o=-1!==i?t.parents.slice(0,i):t.parents,a=r.grep(o,b(e));return a.length>0&&a[0].nodeName===n},D=function(e,t){return function(n){var r=function(r){n.setActive(w(e,r,t))};return e.on("NodeChange",r),function(){return e.off("NodeChange",r)}}},C=function(e,n,i,o,a,s){e.ui.registry.addSplitButton(n,{tooltip:i,icon:"OL"===a?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:function(e){var t=r.map(s,(function(e){var t="OL"===a?"num":"bull",n="disc"===e||"decimal"===e?"default":e,r="default"===e?"":e,i=_(e);return{type:"choiceitem",value:r,icon:"list-"+t+"-"+n,text:i}}));e(t)},onAction:function(){return e.execCommand(o)},onItemAction:function(n,r){t(e,a,r)},select:function(t){var n=y(e);return n.map((function(e){return t===e})).getOr(!1)},onSetup:D(e,a)})},k=function(e,t,n,r,i,o){e.ui.registry.addToggleButton(t,{active:!1,tooltip:n,icon:"OL"===i?"ordered-list":"unordered-list",onSetup:D(e,i),onAction:function(){return e.execCommand(r)}})},T=function(e,t,n,r,i,o){o.length>1?C(e,t,n,r,i,o):k(e,t,n,r,i)},S=function(e){T(e,"numlist","Numbered list","InsertOrderedList","OL",i(e)),T(e,"bullist","Bullet list","InsertUnorderedList","UL",o(e))};function A(){e.add("advlist",(function(e){e.hasPlugin("lists")?(S(e),n(e)):console.error("Please use the Lists plugin together with the Advanced List plugin.")}))}A()})()},8930:function(e,t,n){(function(){var t,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=n("92e7"),e.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(n)}return r(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).comment(this)},t}(t)}).call(this)},"89a7":function(e,t,n){"use strict";function r(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"===typeof n.find)return n.find.call(e,t);for(var r=0;r<e.length;r++)if(Object.prototype.hasOwnProperty.call(e,r)){var i=e[r];if(t.call(void 0,i,r,e))return i}}function i(e,t){return void 0===t&&(t=Object),t&&"function"===typeof t.freeze?t.freeze(e):e}function o(e,t){if(null===e||"object"!==typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var a=i({HTML:"text/html",isHTML:function(e){return e===a.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),s=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===s.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=o,t.find=r,t.freeze=i,t.MIME_TYPE=a,t.NAMESPACE=s},"89e8":function(e,t,n){e.exports=n.p+"img/info-card-1.75bb8032.jpg"},"8cb0":function(e,t,n){var r=n("c46f");function i(e){return e=e||{},e.prettyPrint?a():s()}t.writer=i;var o={div:!0,p:!0,ul:!0,li:!0};function a(){var e=0,t="  ",n=[],i=!0,a=!1,c=s();function u(t,r){o[t]&&g(),n.push(t),c.open(t,r),o[t]&&e++,i=!1}function l(t){o[t]&&(e--,g()),n.pop(),c.close(t)}function d(e){p();var n=m()?e:e.replace("\n","\n"+t);c.text(n)}function f(e,t){g(),c.selfClosing(e,t)}function h(){return 0===n.length||o[n[n.length-1]]}function p(){a||(g(),a=!0)}function g(){if(a=!1,!i&&h()&&!m()){c._append("\n");for(var n=0;n<e;n++)c._append(t)}}function m(){return r.some(n,(function(e){return"pre"===e}))}return{asString:c.asString,open:u,close:l,text:d,selfClosing:f}}function s(){var e=[];function t(t,n){var r=o(n);e.push("<"+t+r+">")}function n(t){e.push("</"+t+">")}function i(t,n){var r=o(n);e.push("<"+t+r+" />")}function o(e){return r.map(e,(function(e,t){return" "+t+'="'+u(e)+'"'})).join("")}function a(t){e.push(c(t))}function s(t){e.push(t)}function l(){return e.join("")}return{asString:l,open:t,close:n,text:a,selfClosing:i,_append:s}}function c(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function u(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}},"8ce1":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return function(t){return e===t}},n=t(void 0),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),i=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),o=tinymce.util.Tools.resolve("tinymce.util.Tools"),a=function(e){return e.fire("RestoreDraft")},s=function(e){return e.fire("StoreDraft")},c=function(e){return e.fire("RemoveDraft")},u=function(e,t){var n={s:1e3,m:6e4},r=e||t,i=/^(\d+)([ms]?)$/.exec(""+r);return(i[2]?n[i[2]]:1)*parseInt(r,10)},l=function(e){return e.getParam("autosave_ask_before_unload",!0)},d=function(e){var t=document.location;return e.getParam("autosave_prefix","tinymce-autosave-{path}{query}{hash}-{id}-").replace(/{path}/g,t.pathname).replace(/{query}/g,t.search).replace(/{hash}/g,t.hash).replace(/{id}/g,e.id)},f=function(e){return e.getParam("autosave_restore_when_empty",!1)},h=function(e){return u(e.getParam("autosave_interval"),"30s")},p=function(e){return u(e.getParam("autosave_retention"),"20m")},g=function(e,t){if(n(t))return e.dom.isEmpty(e.getBody());var r=o.trim(t);if(""===r)return!0;var i=(new DOMParser).parseFromString(r,"text/html");return e.dom.isEmpty(i)},m=function(e){var t=parseInt(i.getItem(d(e)+"time"),10)||0;return!((new Date).getTime()-t>p(e))||(v(e,!1),!1)},v=function(e,t){var n=d(e);i.removeItem(n+"draft"),i.removeItem(n+"time"),!1!==t&&c(e)},b=function(e){var t=d(e);!g(e)&&e.isDirty()&&(i.setItem(t+"draft",e.getContent({format:"raw",no_events:!0})),i.setItem(t+"time",(new Date).getTime().toString()),s(e))},y=function(e){var t=d(e);m(e)&&(e.setContent(i.getItem(t+"draft"),{format:"raw"}),a(e))},x=function(e){var t=h(e);r.setEditorInterval(e,(function(){b(e)}),t)},_=function(e){e.undoManager.transact((function(){y(e),v(e)})),e.focus()},w=function(e){return{hasDraft:function(){return m(e)},storeDraft:function(){return b(e)},restoreDraft:function(){return y(e)},removeDraft:function(t){return v(e,t)},isEmpty:function(t){return g(e,t)}}},D=tinymce.util.Tools.resolve("tinymce.EditorManager"),C=function(e){e.editorManager.on("BeforeUnload",(function(e){var t;o.each(D.get(),(function(e){e.plugins.autosave&&e.plugins.autosave.storeDraft(),!t&&e.isDirty()&&l(e)&&(t=e.translate("You have unsaved changes are you sure you want to navigate away?"))})),t&&(e.preventDefault(),e.returnValue=t)}))},k=function(e){return function(t){t.setDisabled(!m(e));var n=function(){return t.setDisabled(!m(e))};return e.on("StoreDraft RestoreDraft RemoveDraft",n),function(){return e.off("StoreDraft RestoreDraft RemoveDraft",n)}}},T=function(e){x(e),e.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:function(){_(e)},onSetup:k(e)}),e.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:function(){_(e)},onSetup:k(e)})};function S(){e.add("autosave",(function(e){return C(e),T(e),e.on("init",(function(){f(e)&&e.dom.isEmpty(e.getBody())&&y(e)})),w(e)}))}S()})()},"8d16":function(e,t,n){"use strict";var r,i,o=n("0341"),a=o.freeze,s=n("6df9"),c=s.inherits,u=s.notEnumerableProp;function l(e,t){function n(r){if(!(this instanceof n))return new n(r);u(this,"message","string"===typeof r?r:t),u(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return c(n,Error),n}var d=l("Warning","warning"),f=l("CancellationError","cancellation error"),h=l("TimeoutError","timeout error"),p=l("AggregateError","aggregate error");try{r=TypeError,i=RangeError}catch(x){r=l("TypeError","type error"),i=l("RangeError","range error")}for(var g="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),m=0;m<g.length;++m)"function"===typeof Array.prototype[g[m]]&&(p.prototype[g[m]]=Array.prototype[g[m]]);o.defineProperty(p.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),p.prototype["isOperational"]=!0;var v=0;function b(e){if(!(this instanceof b))return new b(e);u(this,"name","OperationalError"),u(this,"message",e),this.cause=e,this["isOperational"]=!0,e instanceof Error?(u(this,"message",e.message),u(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}p.prototype.toString=function(){var e=Array(4*v+1).join(" "),t="\n"+e+"AggregateError of:\n";v++,e=Array(4*v+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",i=r.split("\n"),o=0;o<i.length;++o)i[o]=e+i[o];r=i.join("\n"),t+=r+"\n"}return v--,t},c(b,Error);var y=Error["__BluebirdErrorTypes__"];y||(y=a({CancellationError:f,TimeoutError:h,OperationalError:b,RejectionError:b,AggregateError:p}),o.defineProperty(Error,"__BluebirdErrorTypes__",{value:y,writable:!1,enumerable:!1,configurable:!1})),e.exports={Error:Error,TypeError:r,RangeError:i,CancellationError:y.CancellationError,OperationalError:y.OperationalError,TimeoutError:y.TimeoutError,AggregateError:y.AggregateError,Warning:d}},"8ebd":function(e,t,n){"use strict";n("98ae")},"8f08":function(e,t,n){var r=n("c46f");function i(e,t,n){var i=r.flatten(r.values(t).map((function(e){return r.values(e.levels)}))),o=r.indexBy(i.filter((function(e){return null!=e.paragraphStyleId})),"paragraphStyleId");function a(r,i){var o=e[r];if(o){var s=t[o.abstractNumId];if(s){if(null==s.numStyleLink)return t[o.abstractNumId].levels[i];var c=n.findNumberingStyleById(s.numStyleLink);return a(c.numId,i)}return null}return null}function s(e){return o[e]||null}return{findLevel:a,findLevelByParagraphStyleId:s}}function o(e,t){if(!t||!t.styles)throw new Error("styles is missing");var n=a(e),r=c(e,n);return new i(r,n,t.styles)}function a(e){var t={};return e.getElementsByTagName("w:abstractNum").forEach((function(e){var n=e.attributes["w:abstractNumId"];t[n]=s(e)})),t}function s(e){var t={};e.getElementsByTagName("w:lvl").forEach((function(e){var n=e.attributes["w:ilvl"],r=e.first("w:numFmt").attributes["w:val"],i=e.firstOrEmpty("w:pStyle").attributes["w:val"];t[n]={isOrdered:"bullet"!==r,level:n,paragraphStyleId:i}}));var n=e.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:t,numStyleLink:n}}function c(e){var t={};return e.getElementsByTagName("w:num").forEach((function(e){var n=e.attributes["w:numId"],r=e.first("w:abstractNumId").attributes["w:val"];t[n]={abstractNumId:r}})),t}t.readNumberingXml=o,t.Numbering=i,t.defaultNumbering=new i({},{})},9105:function(e,t,n){"use strict";e.exports=function(e){var t=n("6df9"),r=e._async,i=t.tryCatch,o=t.errorObj;function a(e,n){var a=this;if(!t.isArray(e))return s.call(a,e,n);var c=i(n).apply(a._boundValue(),[null].concat(e));c===o&&r.throwLater(c.e)}function s(e,t){var n=this,a=n._boundValue(),s=void 0===e?i(t).call(a,null):i(t).call(a,null,e);s===o&&r.throwLater(s.e)}function c(e,t){var n=this;if(!e){var a=new Error(e+"");a.cause=e,e=a}var s=i(t).call(n._boundValue(),e);s===o&&r.throwLater(s.e)}e.prototype.asCallback=e.prototype.nodeify=function(e,t){if("function"==typeof e){var n=s;void 0!==t&&Object(t).spread&&(n=a),this._then(n,c,void 0,this,e)}return this}}},"92e7":function(e,t,n){(function(){var t,r,i,o,a,s,c,u,l,d,f,h,p,g,m={}.hasOwnProperty;g=n("45f3"),p=g.isObject,h=g.isFunction,f=g.isEmpty,d=g.getValue,s=null,t=null,r=null,i=null,o=null,u=null,l=null,c=null,a=null,e.exports=function(){function e(e){this.parent=e,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],s||(s=n("b8ee"),t=n("536e"),r=n("8930"),i=n("528d"),o=n("d7e3"),u=n("50d7"),l=n("9d2f"),c=n("f016"),a=n("0e1e"))}return e.prototype.element=function(e,t,n){var r,i,o,a,s,c,u,l,g,v,b;if(c=null,null===t&&null==n&&(g=[{},null],t=g[0],n=g[1]),null==t&&(t={}),t=d(t),p(t)||(v=[t,n],n=v[0],t=v[1]),null!=e&&(e=d(e)),Array.isArray(e))for(o=0,u=e.length;o<u;o++)i=e[o],c=this.element(i);else if(h(e))c=this.element(e.apply());else if(p(e)){for(s in e)if(m.call(e,s))if(b=e[s],h(b)&&(b=b.apply()),p(b)&&f(b)&&(b=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===s.indexOf(this.stringify.convertAttKey))c=this.attribute(s.substr(this.stringify.convertAttKey.length),b);else if(!this.options.separateArrayItems&&Array.isArray(b))for(a=0,l=b.length;a<l;a++)i=b[a],r={},r[s]=i,c=this.element(r);else p(b)?(c=this.element(s),c.element(b)):c=this.element(s,b)}else c=this.options.skipNullNodes&&null===n?this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===e.indexOf(this.stringify.convertTextKey)?this.text(n):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===e.indexOf(this.stringify.convertCDataKey)?this.cdata(n):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===e.indexOf(this.stringify.convertCommentKey)?this.comment(n):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===e.indexOf(this.stringify.convertRawKey)?this.raw(n):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===e.indexOf(this.stringify.convertPIKey)?this.instruction(e.substr(this.stringify.convertPIKey.length),n):this.node(e,t,n);if(null==c)throw new Error("Could not create any elements with: "+e+". "+this.debugInfo());return c},e.prototype.insertBefore=function(e,t,n){var r,i,o;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return i=this.parent.children.indexOf(this),o=this.parent.children.splice(i),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,o),r},e.prototype.insertAfter=function(e,t,n){var r,i,o;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return i=this.parent.children.indexOf(this),o=this.parent.children.splice(i+1),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,o),r},e.prototype.remove=function(){var e;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat([])),this.parent},e.prototype.node=function(e,t,n){var r,i;return null!=e&&(e=d(e)),t||(t={}),t=d(t),p(t)||(i=[t,n],n=i[0],t=i[1]),r=new s(this,e,t),null!=n&&r.text(n),this.children.push(r),r},e.prototype.text=function(e){var t;return t=new l(this,e),this.children.push(t),this},e.prototype.cdata=function(e){var n;return n=new t(this,e),this.children.push(n),this},e.prototype.comment=function(e){var t;return t=new r(this,e),this.children.push(t),this},e.prototype.commentBefore=function(e){var t,n;return t=this.parent.children.indexOf(this),n=this.parent.children.splice(t),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},e.prototype.commentAfter=function(e){var t,n;return t=this.parent.children.indexOf(this),n=this.parent.children.splice(t+1),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},e.prototype.raw=function(e){var t;return t=new u(this,e),this.children.push(t),this},e.prototype.dummy=function(){var e;return e=new a(this),this.children.push(e),e},e.prototype.instruction=function(e,t){var n,r,i,o,a;if(null!=e&&(e=d(e)),null!=t&&(t=d(t)),Array.isArray(e))for(o=0,a=e.length;o<a;o++)n=e[o],this.instruction(n);else if(p(e))for(n in e)m.call(e,n)&&(r=e[n],this.instruction(n,r));else h(t)&&(t=t.apply()),i=new c(this,e,t),this.children.push(i);return this},e.prototype.instructionBefore=function(e,t){var n,r;return n=this.parent.children.indexOf(this),r=this.parent.children.splice(n),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},e.prototype.instructionAfter=function(e,t){var n,r;return n=this.parent.children.indexOf(this),r=this.parent.children.splice(n+1),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},e.prototype.declaration=function(e,t,n){var r,o;return r=this.document(),o=new i(r,e,t,n),r.children[0]instanceof i?r.children[0]=o:r.children.unshift(o),r.root()||r},e.prototype.doctype=function(e,t){var n,r,i,a,s,c,u,l,d,f;for(r=this.document(),i=new o(r,e,t),d=r.children,a=s=0,u=d.length;s<u;a=++s)if(n=d[a],n instanceof o)return r.children[a]=i,i;for(f=r.children,a=c=0,l=f.length;c<l;a=++c)if(n=f[a],n.isRoot)return r.children.splice(a,0,i),i;return r.children.push(i),i},e.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},e.prototype.root=function(){var e;e=this;while(e){if(e.isDocument)return e.rootObject;if(e.isRoot)return e;e=e.parent}},e.prototype.document=function(){var e;e=this;while(e){if(e.isDocument)return e;e=e.parent}},e.prototype.end=function(e){return this.document().end(e)},e.prototype.prev=function(){var e;e=this.parent.children.indexOf(this);while(e>0&&this.parent.children[e-1].isDummy)e-=1;if(e<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[e-1]},e.prototype.next=function(){var e;e=this.parent.children.indexOf(this);while(e<this.parent.children.length-1&&this.parent.children[e+1].isDummy)e+=1;if(-1===e||e===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[e+1]},e.prototype.importDocument=function(e){var t;return t=e.root().clone(),t.parent=this,t.isRoot=!1,this.children.push(t),this},e.prototype.debugInfo=function(e){var t,n;return e=e||this.name,null!=e||(null!=(t=this.parent)?t.name:void 0)?null==e?"parent: <"+this.parent.name+">":(null!=(n=this.parent)?n.name:void 0)?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},e.prototype.ele=function(e,t,n){return this.element(e,t,n)},e.prototype.nod=function(e,t,n){return this.node(e,t,n)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.doc=function(){return this.document()},e.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},e.prototype.dtd=function(e,t){return this.doctype(e,t)},e.prototype.e=function(e,t,n){return this.element(e,t,n)},e.prototype.n=function(e,t,n){return this.node(e,t,n)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.u=function(){return this.up()},e.prototype.importXMLBuilder=function(e){return this.importDocument(e)},e}()}).call(this)},9404:function(e,t,n){var r=n("335c"),i=n("5ddd");function o(e){return function(t){return i.elementWithTag(r.element(e),[t])}}t.element=o},9434:function(e,t,n){n("e8b0")},"94ce":function(e,t){(function(){"use strict";var e=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},t=function(t){return function(n){return e(n)===t}},n=function(e){return function(t){return typeof t===e}},r=function(e){return function(t){return e===t}},i=t("string"),o=t("object"),a=t("array"),s=r(null),c=n("boolean"),u=r(void 0),l=function(e){return null===e||void 0===e},d=function(e){return!l(e)},f=n("function"),h=n("number"),p=function(){},g=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},m=function(e,t){return function(n){return e(t(n))}},v=function(e){return function(){return e}},b=function(e){return e},y=function(e,t){return e===t};function x(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var _=function(e){return function(t){return!e(t)}},w=function(e){return function(){throw new Error(e)}},D=v(!1),C=v(!0),k=function(){return T},T=function(){var e=function(e){return e()},t=b,n={fold:function(e,t){return e()},isSome:D,isNone:C,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:v(null),getOrUndefined:v(void 0),or:t,orThunk:e,map:k,each:p,bind:k,exists:D,forall:C,filter:function(){return k()},toArray:function(){return[]},toString:v("none()")};return n}(),S=function(e){var t=v(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:C,isNone:D,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return S(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:T},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},A=function(e){return null===e||void 0===e?T:S(e)},E={some:S,none:k,from:A},U=Array.prototype.slice,O=Array.prototype.indexOf,F=Array.prototype.push,P=function(e,t){return O.call(e,t)},R=function(e,t){return P(e,t)>-1},N=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},M=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},I=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},B=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},L=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},z=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},W=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},j=function(e,t,n){return L(e,(function(e,r){n=t(n,e,r)})),n},H=function(e,t,n){return B(e,(function(e,r){n=t(n,e,r)})),n},V=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return E.some(o);if(n(o,r))break}return E.none()},q=function(e,t){return V(e,t,D)},$=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return E.some(n)}return E.none()},G=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);F.apply(t,e[n])}return t},X=function(e,t){return G(I(e,t))},Y=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},K=function(e){var t=U.call(e,0);return t.reverse(),t},Z=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},J=function(e){return[e]},Q=function(e,t){var n=U.call(e,0);return n.sort(t),n},ee=function(e,t){return t>=0&&t<e.length?E.some(e[t]):E.none()},te=function(e){return ee(e,0)},ne=function(e){return ee(e,e.length-1)},re=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return E.none()},ie=function(){return ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ie.apply(this,arguments)};function oe(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var ae=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},se=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),c=i||!o&&a&&r("(min-device-width:768px)"),u=o||a&&!c,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!u&&!c&&!l;return{isiPad:v(i),isiPhone:v(o),isTablet:v(c),isPhone:v(u),isTouch:v(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:v(l),isDesktop:v(d)}},ce=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},ue=function(e,t){var n=ce(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return fe(r(1),r(2))},le=function(e,t){var n=String(t).toLowerCase();return 0===e.length?de():ue(e,n)},de=function(){return fe(0,0)},fe=function(e,t){return{major:e,minor:t}},he={nu:fe,detect:le,unknown:de},pe=function(e,t){return re(t.brands,(function(t){var n=t.brand.toLowerCase();return q(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:he.nu(parseInt(t.version,10),0)}}))}))},ge=function(e,t){var n=String(t).toLowerCase();return q(e,(function(e){return e.search(n)}))},me=function(e,t){return ge(e,t).map((function(e){var n=he.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ve=function(e,t){return ge(e,t).map((function(e){var n=he.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},be=function(e,t){return e.substring(t)},ye=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},xe=function(e,t){return we(e,t)?be(e,t.length):e},_e=function(e,t){return-1!==e.indexOf(t)},we=function(e,t){return ye(e,t,0)},De=function(e,t){return ye(e,t,e.length-t.length)},Ce=function(e){return function(t){return t.replace(e,"")}},ke=Ce(/^\s+|\s+$/g),Te=function(e){return e.length>0},Se=function(e){return!Te(e)},Ae=function(e){var t=parseFloat(e);return isNaN(t)?E.none():E.some(t)},Ee=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ue=function(e){return function(t){return _e(t,e)}},Oe=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return _e(e,"edge/")&&_e(e,"chrome")&&_e(e,"safari")&&_e(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ee],search:function(e){return _e(e,"chrome")&&!_e(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return _e(e,"msie")||_e(e,"trident")}},{name:"Opera",versionRegexes:[Ee,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ue("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ue("firefox")},{name:"Safari",versionRegexes:[Ee,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(_e(e,"safari")||_e(e,"mobile/"))&&_e(e,"applewebkit")}}],Fe=[{name:"Windows",search:Ue("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return _e(e,"iphone")||_e(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ue("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Ue("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ue("linux"),versionRegexes:[]},{name:"Solaris",search:Ue("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ue("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ue("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Pe={browsers:v(Oe),oses:v(Fe)},Re="Edge",Ne="Chrome",Me="IE",Ie="Opera",Be="Firefox",Le="Safari",ze=function(){return We({current:void 0,version:he.unknown()})},We=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Re),isChrome:r(Ne),isIE:r(Me),isOpera:r(Ie),isFirefox:r(Be),isSafari:r(Le)}},je={unknown:ze,nu:We,edge:v(Re),chrome:v(Ne),ie:v(Me),opera:v(Ie),firefox:v(Be),safari:v(Le)},He="Windows",Ve="iOS",qe="Android",$e="Linux",Ge="OSX",Xe="Solaris",Ye="FreeBSD",Ke="ChromeOS",Ze=function(){return Je({current:void 0,version:he.unknown()})},Je=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(He),isiOS:r(Ve),isAndroid:r(qe),isOSX:r(Ge),isLinux:r($e),isSolaris:r(Xe),isFreeBSD:r(Ye),isChromeOS:r(Ke)}},Qe={unknown:Ze,nu:Je,windows:v(He),ios:v(Ve),android:v(qe),linux:v($e),osx:v(Ge),solaris:v(Xe),freebsd:v(Ye),chromeos:v(Ke)},et=function(e,t,n){var r=Pe.browsers(),i=Pe.oses(),o=t.bind((function(e){return pe(r,e)})).orThunk((function(){return me(r,e)})).fold(je.unknown,je.nu),a=ve(i,e).fold(Qe.unknown,Qe.nu),s=se(a,o,e,n);return{browser:o,os:a,deviceType:s}},tt={detect:et},nt=function(e){return window.matchMedia(e).matches},rt=ae((function(){return tt.detect(navigator.userAgent,E.from(navigator.userAgentData),nt)})),it=function(){return rt()},ot=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},at=function(e,t){return ot(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},st=8,ct=9,ut=11,lt=1,dt=3,ft=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return gt(r.childNodes[0])},ht=function(e,t){var n=t||document,r=n.createElement(e);return gt(r)},pt=function(e,t){var n=t||document,r=n.createTextNode(e);return gt(r)},gt=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},mt=function(e,t,n){return E.from(e.dom.elementFromPoint(t,n)).map(gt)},vt={fromHtml:ft,fromTag:ht,fromText:pt,fromDom:gt,fromPoint:mt},bt=function(e,t){var n=e.dom;if(n.nodeType!==lt)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},yt=function(e){return e.nodeType!==lt&&e.nodeType!==ct&&e.nodeType!==ut||0===e.childElementCount},xt=function(e,t){var n=void 0===t?document:t.dom;return yt(n)?[]:I(n.querySelectorAll(e),vt.fromDom)},_t=function(e,t){var n=void 0===t?document:t.dom;return yt(n)?E.none():E.from(n.querySelector(e)).map(vt.fromDom)},wt=function(e,t){return e.dom===t.dom},Dt=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},Ct=function(e,t){return at(e.dom,t.dom)},kt=function(e,t){return it().browser.isIE()?Ct(e,t):Dt(e,t)},Tt=bt,St=Object.keys,At=Object.hasOwnProperty,Et=function(e,t){for(var n=St(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},Ut=function(e,t){return Ot(e,(function(e,n){return{k:n,v:t(e,n)}}))},Ot=function(e,t){var n={};return Et(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},Ft=function(e){return function(t,n){e[n]=t}},Pt=function(e,t,n,r){var i={};return Et(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},Rt=function(e,t){var n={};return Pt(e,t,Ft(n),p),n},Nt=function(e,t){var n=[];return Et(e,(function(e,r){n.push(t(e,r))})),n},Mt=function(e){return Nt(e,b)},It=function(e){return St(e).length},Bt=function(e,t){return Lt(e,t)?E.from(e[t]):E.none()},Lt=function(e,t){return At.call(e,t)},zt=function(e,t){return Lt(e,t)&&void 0!==e[t]&&null!==e[t]},Wt=function(e){for(var t in e)if(At.call(e,t))return!1;return!0},jt=["tfoot","thead","tbody","colgroup"],Ht=function(e){return R(jt,e)},Vt=function(e,t){return{rows:e,columns:t}},qt=function(e,t){return{row:e,column:t}},$t=function(e,t,n){return{element:e,rowspan:t,colspan:n}},Gt=function(e,t,n,r){return{element:e,rowspan:t,colspan:n,isNew:r}},Xt=function(e,t,n,r,i,o){return{element:e,rowspan:t,colspan:n,row:r,column:i,isLocked:o}},Yt=function(e,t,n){return{element:e,cells:t,section:n}},Kt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Zt=function(e,t,n){return{element:e,isNew:t,isLocked:n}},Jt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Qt=function(e,t,n,r){return{startRow:e,startCol:t,finishRow:n,finishCol:r}},en=function(e,t,n){return{element:e,colspan:t,column:n}},tn=function(e,t){return{element:e,columns:t}};"undefined"!==typeof window?window:Function("return this;")();var nn=function(e){var t=e.dom.nodeName;return t.toLowerCase()},rn=function(e){return e.dom.nodeType},on=function(e){return function(t){return rn(t)===e}},an=function(e){return rn(e)===st||"#comment"===nn(e)},sn=on(lt),cn=on(dt),un=on(ct),ln=on(ut),dn=function(e){return function(t){return sn(t)&&nn(t)===e}},fn=function(e){return vt.fromDom(e.dom.ownerDocument)},hn=function(e){return un(e)?e:fn(e)},pn=function(e){return vt.fromDom(hn(e).dom.defaultView)},gn=function(e){return E.from(e.dom.parentNode).map(vt.fromDom)},mn=function(e){return E.from(e.dom.parentElement).map(vt.fromDom)},vn=function(e,t){var n=f(t)?t:D,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=vt.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},bn=function(e){return E.from(e.dom.previousSibling).map(vt.fromDom)},yn=function(e){return E.from(e.dom.nextSibling).map(vt.fromDom)},xn=function(e){return I(e.dom.childNodes,vt.fromDom)},_n=function(e,t){var n=e.dom.childNodes;return E.from(n[t]).map(vt.fromDom)},wn=function(e){return _n(e,0)},Dn=function(e){return ln(e)&&d(e.dom.host)},Cn=f(Element.prototype.attachShadow)&&f(Node.prototype.getRootNode),kn=v(Cn),Tn=Cn?function(e){return vt.fromDom(e.dom.getRootNode())}:hn,Sn=function(e){var t=Tn(e);return Dn(t)?E.some(t):E.none()},An=function(e){return vt.fromDom(e.dom.host)},En=function(e){if(kn()&&d(e.target)){var t=vt.fromDom(e.target);if(sn(t)&&Un(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return te(n)}}return E.from(e.target)},Un=function(e){return d(e.dom.shadowRoot)},On=function(e){var t=cn(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return Sn(vt.fromDom(t)).fold((function(){return n.body.contains(t)}),m(On,An))},Fn=function(){return Pn(vt.fromDom(document))},Pn=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return vt.fromDom(t)},Rn=function(e,t,n){return W(vn(e,n),t)},Nn=function(e,t){return W(xn(e),t)},Mn=function(e,t){var n=[];return B(xn(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Mn(e,t))})),n},In=function(e,t,n){return Rn(e,(function(e){return bt(e,t)}),n)},Bn=function(e,t){return Nn(e,(function(e){return bt(e,t)}))},Ln=function(e,t){return xt(t,e)};function zn(e,t,n,r,i){return e(n,r)?E.some(n):f(i)&&i(n)?E.none():t(n,r,i)}var Wn=function(e,t,n){var r=e.dom,i=f(n)?n:D;while(r.parentNode){r=r.parentNode;var o=vt.fromDom(r);if(t(o))return E.some(o);if(i(o))break}return E.none()},jn=function(e,t,n){var r=function(e,t){return t(e)};return zn(r,Wn,e,t,n)},Hn=function(e,t){var n=function(e){return t(vt.fromDom(e))},r=q(e.dom.childNodes,n);return r.map(vt.fromDom)},Vn=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var i=vt.fromDom(e.childNodes[r]);if(t(i))return E.some(i);var o=n(e.childNodes[r]);if(o.isSome())return o}return E.none()};return n(e.dom)},qn=function(e,t,n){return Wn(e,(function(e){return bt(e,t)}),n)},$n=function(e,t){return Hn(e,(function(e){return bt(e,t)}))},Gn=function(e,t){return _t(t,e)},Xn=function(e,t,n){var r=function(e,t){return bt(e,t)};return zn(r,qn,e,t,n)},Yn=function(e,t,n){if(!(i(n)||c(n)||h(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Kn=function(e,t,n){Yn(e.dom,t,n)},Zn=function(e,t){var n=e.dom;Et(t,(function(e,t){Yn(n,t,e)}))},Jn=function(e,t){Et(t,(function(t,n){t.fold((function(){tr(e,n)}),(function(t){Yn(e.dom,n,t)}))}))},Qn=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},er=function(e,t){return E.from(Qn(e,t))},tr=function(e,t){e.dom.removeAttribute(t)},nr=function(e){return H(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},rr=function(e,t,n){return void 0===n&&(n=y),e.exists((function(e){return n(e,t)}))},ir=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},or=function(e,t,n){return e.isSome()&&t.isSome()?E.some(n(e.getOrDie(),t.getOrDie())):E.none()},ar=function(e,t){return void 0!==e&&null!==e?t(e):E.none()},sr=function(e){return e.bind(b)},cr=function(e,t){return e?E.some(t):E.none()},ur=function(e){return void 0!==e.style&&f(e.style.getPropertyValue)},lr=function(e,t,n){if(!i(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);ur(e)&&e.style.setProperty(t,n)},dr=function(e,t){ur(e)&&e.style.removeProperty(t)},fr=function(e,t,n){var r=e.dom;lr(r,t,n)},hr=function(e,t){var n=e.dom;Et(t,(function(e,t){lr(n,t,e)}))},pr=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||On(e)?i:gr(n,t)},gr=function(e,t){return ur(e)?e.style.getPropertyValue(t):""},mr=function(e,t){var n=e.dom,r=gr(n,t);return E.from(r).filter((function(e){return e.length>0}))},vr=function(e,t){var n=e.dom;dr(n,t),rr(er(e,"style").map(ke),"")&&tr(e,"style")},br=function(e,t){var n=e.dom,r=t.dom;ur(n)&&ur(r)&&(r.style.cssText=n.style.cssText)},yr=function(e,t,n){return void 0===n&&(n=0),er(e,t).map((function(e){return parseInt(e,10)})).getOr(n)},xr=function(e,t){return yr(e,t,1)},_r=function(e){return dn("col")(e)?yr(e,"span",1)>1:xr(e,"colspan")>1},wr=function(e){return xr(e,"rowspan")>1},Dr=function(e,t){return parseInt(pr(e,t),10)},Cr=v(10),kr=v(10),Tr=function(e,t){return Sr(e,t,C)},Sr=function(e,t,n){return X(xn(e),(function(e){return bt(e,t)?n(e)?[e]:[]:Sr(e,t,n)}))},Ar=function(e,t,n){if(void 0===n&&(n=D),n(t))return E.none();if(R(e,nn(t)))return E.some(t);var r=function(e){return bt(e,"table")||n(e)};return qn(t,e.join(","),r)},Er=function(e,t){return Ar(["td","th"],e,t)},Ur=function(e){return Tr(e,"th,td")},Or=function(e){return bt(e,"colgroup")?Bn(e,"col"):X(Rr(e),(function(e){return Bn(e,"col")}))},Fr=function(e,t){return Xn(e,"table",t)},Pr=function(e){return Tr(e,"tr")},Rr=function(e){return Fr(e).fold(v([]),(function(e){return Bn(e,"colgroup")}))},Nr=function(e,t){return I(e,(function(e){if("colgroup"===nn(e)){var n=I(Or(e),(function(e){var t=yr(e,"span",1);return $t(e,1,t)}));return Yt(e,n,"colgroup")}n=I(Ur(e),(function(e){var t=yr(e,"rowspan",1),n=yr(e,"colspan",1);return $t(e,t,n)}));return Yt(e,n,t(e))}))},Mr=function(e){return gn(e).map((function(e){var t=nn(e);return Ht(t)?t:"tbody"})).getOr("tbody")},Ir=function(e){var t=Pr(e),n=Rr(e),r=oe(oe([],n,!0),t,!0);return Nr(r,Mr)},Br=function(e,t){return Nr(e,(function(){return t}))},Lr=function(e,t,n){var r=e.cells,i=r.slice(0,t),o=r.slice(t),a=i.concat(n).concat(o);return jr(e,a)},zr=function(e,t,n){return Lr(e,t,[n])},Wr=function(e,t,n){var r=e.cells;r[t]=n},jr=function(e,t){return Jt(e.element,t,e.section,e.isNew)},Hr=function(e,t){var n=e.cells,r=I(n,t);return Jt(e.element,r,e.section,e.isNew)},Vr=function(e,t){return e.cells[t]},qr=function(e,t){return Vr(e,t).element},$r=function(e){return e.cells.length},Gr=function(e){var t=z(e,(function(e){return"colgroup"===e.section}));return{rows:t.fail,cols:t.pass}},Xr=function(e,t,n){var r=I(e.cells,n);return Jt(t(e.element),r,e.section,!0)},Yr="data-snooker-locked-cols",Kr=function(e){return er(e,Yr).bind((function(e){return E.from(e.match(/\d+/g))})).map((function(e){return Z(e,C)}))},Zr=function(e){var t=H(Gr(e).rows,(function(e,t){return B(t.cells,(function(t,n){t.isLocked&&(e[n]=!0)})),e}),{}),n=Nt(t,(function(e,t){return parseInt(t,10)}));return Q(n)},Jr=function(e,t){return e+","+t},Qr=function(e,t,n){return E.from(e.access[Jr(t,n)])},ei=function(e,t,n){var r=ti(e,(function(e){return n(t,e.element)}));return r.length>0?E.some(r[0]):E.none()},ti=function(e,t){var n=X(e.all,(function(e){return e.cells}));return W(n,t)},ni=function(e){var t={},n=0;return B(e.cells,(function(e){var r=e.colspan;M(r,(function(i){var o=n+i;t[o]=en(e.element,r,o)})),n+=r})),t},ri=function(e){var t={},n=[],r=te(e).map((function(e){return e.element})).bind(Fr),i=r.bind(Kr).getOr({}),o=0,a=0,s=0,c=z(e,(function(e){return"colgroup"===e.section})),u=c.pass,l=c.fail;B(l,(function(e){var r=[];B(e.cells,(function(e){var n=0;while(void 0!==t[Jr(s,n)])n++;for(var o=zt(i,n.toString()),c=Xt(e.element,e.rowspan,e.colspan,s,n,o),u=0;u<e.colspan;u++)for(var l=0;l<e.rowspan;l++){var d=s+l,f=n+u,h=Jr(d,f);t[h]=c,a=Math.max(a,f+1)}r.push(c)})),o++,n.push(Yt(e.element,r,e.section)),s++}));var d=ne(u).map((function(e){var t=ni(e),n=tn(e.element,Mt(t));return{colgroups:[n],columns:t}})).getOrThunk((function(){return{colgroups:[],columns:{}}})),f=d.columns,h=d.colgroups,p=Vt(o,a);return{grid:p,access:t,all:n,columns:f,colgroups:h}},ii=function(e){var t=Ir(e);return ri(t)},oi=function(e){return X(e.all,(function(e){return e.cells}))},ai=function(e){return Mt(e.columns)},si=function(e){return St(e.columns).length>0},ci=function(e,t){return E.from(e.columns[t])},ui={fromTable:ii,generate:ri,getAt:Qr,findItem:ei,filterItems:ti,justCells:oi,justColumns:ai,hasColumns:si,getColumnAt:ci},li=function(e,t){var n=t.column,r=t.column+t.colspan-1,i=t.row,o=t.row+t.rowspan-1;return n<=e.finishCol&&r>=e.startCol&&i<=e.finishRow&&o>=e.startRow},di=function(e,t){return t.column>=e.startCol&&t.column+t.colspan-1<=e.finishCol&&t.row>=e.startRow&&t.row+t.rowspan-1<=e.finishRow},fi=function(e,t){for(var n=!0,r=x(di,t),i=t.startRow;i<=t.finishRow;i++)for(var o=t.startCol;o<=t.finishCol;o++)n=n&&ui.getAt(e,i,o).exists(r);return n?E.some(t):E.none()},hi=function(e,t){return Qt(Math.min(e.row,t.row),Math.min(e.column,t.column),Math.max(e.row+e.rowspan-1,t.row+t.rowspan-1),Math.max(e.column+e.colspan-1,t.column+t.colspan-1))},pi=function(e,t,n){var r=ui.findItem(e,t,wt),i=ui.findItem(e,n,wt);return r.bind((function(e){return i.map((function(t){return hi(e,t)}))}))},gi=function(e,t,n){return pi(e,t,n).bind((function(t){return fi(e,t)}))},mi=function(e,t,n,r){return ui.findItem(e,t,wt).bind((function(t){var i=n>0?t.row+t.rowspan-1:t.row,o=r>0?t.column+t.colspan-1:t.column,a=ui.getAt(e,i+n,o+r);return a.map((function(e){return e.element}))}))},vi=function(e,t,n){return pi(e,t,n).map((function(t){var n=ui.filterItems(e,x(li,t));return I(n,(function(e){return e.element}))}))},bi=function(e,t){var n=function(e,t){return kt(t,e)};return ui.findItem(e,t,n).map((function(e){return e.element}))},yi=function(e,t,n){return Fr(e).bind((function(r){var i=Di(r);return mi(i,e,t,n)}))},xi=function(e,t,n){var r=Di(e);return vi(r,t,n)},_i=function(e,t,n,r,i){var o=Di(e),a=wt(e,n)?E.some(t):bi(o,t),s=wt(e,i)?E.some(r):bi(o,r);return a.bind((function(e){return s.bind((function(t){return vi(o,e,t)}))}))},wi=function(e,t,n){var r=Di(e);return gi(r,t,n)},Di=ui.fromTable,Ci=function(e,t){var n=gn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},ki=function(e,t){var n=yn(e);n.fold((function(){var n=gn(e);n.each((function(e){Si(e,t)}))}),(function(e){Ci(e,t)}))},Ti=function(e,t){var n=wn(e);n.fold((function(){Si(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},Si=function(e,t){e.dom.appendChild(t.dom)},Ai=function(e,t,n){_n(e,n).fold((function(){Si(e,t)}),(function(e){Ci(e,t)}))},Ei=function(e,t){Ci(e,t),Si(t,e)},Ui=function(e,t){B(t,(function(t){Ci(e,t)}))},Oi=function(e,t){B(t,(function(n,r){var i=0===r?e:t[r-1];ki(i,n)}))},Fi=function(e,t){B(t,(function(t){Si(e,t)}))},Pi=function(e){e.dom.textContent="",B(xn(e),(function(e){Ri(e)}))},Ri=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Ni=function(e){var t=xn(e);t.length>0&&Ui(e,t),Ri(e)},Mi=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?E.from(t.dom.nodeValue):E.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},Ii=Mi(cn,"text"),Bi=function(e){return Ii.get(e)},Li=function(e){return Ii.getOption(e)},zi=function(e,t){return Ii.set(e,t)},Wi=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function ji(){var e=function(e){return vt.fromDom(e.dom.cloneNode(!1))},t=function(e){return hn(e).dom},n=function(e){return!!sn(e)&&("body"===nn(e)||R(Wi,nn(e)))},r=function(e){return!!sn(e)&&R(["br","img","hr","input"],nn(e))},i=function(e){return sn(e)&&"false"===Qn(e,"contenteditable")},o=function(e,t){return e.dom.compareDocumentPosition(t.dom)},a=function(e,t){var n=nr(e);Zn(t,n)},s=function(e){var t=nn(e);return R(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},c=function(e){return sn(e)?er(e,"lang"):E.none()};return{up:v({selector:qn,closest:Xn,predicate:Wn,all:vn}),down:v({selector:Ln,predicate:Mn}),styles:v({get:pr,getRaw:mr,set:fr,remove:vr}),attrs:v({get:Qn,set:Kn,remove:tr,copyTo:a}),insert:v({before:Ci,after:ki,afterAll:Oi,append:Si,appendAll:Fi,prepend:Ti,wrap:Ei}),remove:v({unwrap:Ni,remove:Ri}),create:v({nu:vt.fromTag,clone:e,text:vt.fromText}),query:v({comparePosition:o,prevSibling:bn,nextSibling:yn}),property:v({children:xn,name:nn,parent:gn,document:t,isText:cn,isComment:an,isElement:sn,isSpecial:s,getLanguage:c,getText:Bi,setText:zi,isBoundary:n,isEmptyTag:r,isNonEditable:i}),eq:wt,is:Tt}}var Hi=function(e,t,n,r){var i=n[0],o=n.slice(1);return r(e,t,i,o)},Vi=function(e,t,n){return n.length>0?Hi(e,t,n,qi):E.none()},qi=function(e,t,n,r){var i=t(e,n);return j(r,(function(n,r){var i=t(e,r);return $i(e,n,i)}),i)},$i=function(e,t,n){return t.bind((function(t){return n.filter(x(e.eq,t))}))},Gi=function(e,t){return x(e.eq,t)},Xi=function(e,t,n,r){void 0===r&&(r=D);var i=[t].concat(e.up().all(t)),o=[n].concat(e.up().all(n)),a=function(e){var t=$(e,r);return t.fold((function(){return e}),(function(t){return e.slice(0,t+1)}))},s=a(i),c=a(o),u=q(s,(function(t){return N(c,Gi(e,t))}));return{firstpath:s,secondpath:c,shared:u}},Yi=Vi,Ki=Xi,Zi=ji(),Ji=function(e,t){return Yi(Zi,(function(t,n){return e(n)}),t)},Qi=function(e,t,n){return Ki(Zi,e,t,n)},eo=function(e){return qn(e,"table")},to=function(e,t,n){var r=function(e){return function(t){return void 0!==n&&n(t)||wt(t,e)}};return wt(e,t)?E.some({boxes:E.some([e]),start:e,finish:t}):eo(e).bind((function(i){return eo(t).bind((function(o){if(wt(i,o))return E.some({boxes:xi(i,e,t),start:e,finish:t});if(kt(i,o)){var a=In(t,"td,th",r(i)),s=a.length>0?a[a.length-1]:t;return E.some({boxes:_i(i,e,i,t,o),start:e,finish:s})}if(kt(o,i)){a=In(e,"td,th",r(o));var c=a.length>0?a[a.length-1]:e;return E.some({boxes:_i(o,e,i,t,o),start:e,finish:c})}return Qi(e,t).shared.bind((function(a){return Xn(a,"table",n).bind((function(n){var a=In(t,"td,th",r(n)),s=a.length>0?a[a.length-1]:t,c=In(e,"td,th",r(n)),u=c.length>0?c[c.length-1]:e;return E.some({boxes:_i(n,e,i,t,o),start:u,finish:s})}))}))}))}))},no=function(e,t){var n=Ln(e,t);return n.length>0?E.some(n):E.none()},ro=function(e,t){return q(e,(function(e){return bt(e,t)}))},io=function(e,t,n){return Gn(e,t).bind((function(t){return Gn(e,n).bind((function(e){return Ji(eo,[t,e]).map((function(n){return{first:t,last:e,table:n}}))}))}))},oo=function(e,t){return qn(e,"table").bind((function(n){return Gn(n,t).bind((function(t){return to(t,e).bind((function(e){return e.boxes.map((function(t){return{boxes:t,start:e.start,finish:e.finish}}))}))}))}))},ao=function(e,t,n,r,i){return ro(e,i).bind((function(e){return yi(e,t,n).bind((function(e){return oo(e,r)}))}))},so=function(e,t){return no(e,t)},co=function(e,t,n){return io(e,t,n).bind((function(t){var n=function(t){return wt(e,t)},r="thead,tfoot,tbody,table",i=qn(t.first,r,n),o=qn(t.last,r,n);return i.bind((function(e){return o.bind((function(n){return wt(e,n)?wi(t.table,t.first,t.last):E.none()}))}))}))},uo=function(e){if(!a(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return B(e,(function(r,i){var o=St(r);if(1!==o.length)throw new Error("one and only one name per case");var s=o[0],c=r[s];if(void 0!==n[s])throw new Error("duplicate key detected:"+s);if("cata"===s)throw new Error("cannot have a case named cata (sorry)");if(!a(c))throw new Error("case arguments must be an array");t.push(s),n[s]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==c.length)throw new Error("Wrong number of arguments to case "+s+". Expected "+c.length+" ("+c+"), got "+o);var a=function(e){var r=St(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=Y(t,(function(e){return R(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[s].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:a,log:function(e){console.log(e,{constructors:t,constructor:s,params:n})}}}})),n},lo={generate:uo},fo=lo.generate([{none:[]},{multiple:["elements"]},{single:["element"]}]),ho=function(e,t,n,r){return e.fold(t,n,r)},po=fo.none,go=fo.multiple,mo=fo.single,vo=function(e,t,n){var r=function(){return so(e(),n).fold((function(){return t().fold(po,mo)}),(function(e){return go(e)}))};return{get:r}},bo=tinymce.util.Tools.resolve("tinymce.PluginManager"),yo=function(e,t){return vt.fromDom(e.dom.cloneNode(t))},xo=function(e){return yo(e,!1)},_o=function(e){return yo(e,!0)},wo=function(e,t){var n=vt.fromTag(t),r=nr(e);return Zn(n,r),n},Do=function(e,t){var n=wo(e,t),r=xn(_o(e));return Fi(n,r),n},Co=function(e,t){var n=wo(e,t);Ci(e,n);var r=xn(e);return Fi(n,r),Ri(e),n},ko=function(e,t){var n=function(t,n){if(!h(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;ur(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=pr(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return H(t,(function(t,n){var r=pr(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},To=function(){var e=it().browser;return e.isIE()||e.isEdge()},So=function(e,t){return Ae(e).getOr(t)},Ao=function(e,t,n){return So(pr(e,t),n)},Eo=function(e){return pr(e,"box-sizing")},Uo=function(e,t,n,r){var i=Ao(e,"padding-"+n,0),o=Ao(e,"padding-"+r,0),a=Ao(e,"border-"+n+"-width",0),s=Ao(e,"border-"+r+"-width",0);return t-i-o-a-s},Oo=function(e,t){var n=e.dom,r=n.getBoundingClientRect().height||n.offsetHeight;return"border-box"===t?r:Uo(e,r,"top","bottom")},Fo=function(e,t){var n=e.dom,r=n.getBoundingClientRect().width||n.offsetWidth;return"border-box"===t?r:Uo(e,r,"left","right")},Po=function(e){return To()?Oo(e,Eo(e)):Ao(e,"height",e.dom.offsetHeight)},Ro=function(e){return To()?Fo(e,Eo(e)):Ao(e,"width",e.dom.offsetWidth)},No=function(e){return Fo(e,"content-box")},Mo=ko("width",(function(e){return e.dom.offsetWidth})),Io=function(e){return Mo.get(e)},Bo=function(e){return Mo.getOuter(e)},Lo=No,zo=Ro,Wo=function(e,t){void 0===t&&(t=C);var n=e.grid,r=M(n.columns,b),i=M(n.rows,b);return I(r,(function(n){var r=function(){return X(i,(function(t){return ui.getAt(e,t,n).filter((function(e){return e.column===n})).toArray()}))},o=function(e){return 1===e.colspan&&t(e.element)},a=function(){return ui.getAt(e,0,n)};return jo(r,o,a)}))},jo=function(e,t,n){var r=e(),i=q(r,t),o=i.orThunk((function(){return E.from(r[0]).orThunk(n)}));return o.map((function(e){return e.element}))},Ho=function(e){var t=e.grid,n=M(t.rows,b),r=M(t.columns,b);return I(n,(function(t){var n=function(){return X(r,(function(n){return ui.getAt(e,t,n).filter((function(e){return e.row===t})).fold(v([]),(function(e){return[e]}))}))},i=function(e){return 1===e.rowspan},o=function(){return ui.getAt(e,t,0)};return jo(n,i,o)}))},Vo=function(e,t){if(t<0||t>=e.length-1)return E.none();var n=e[t].fold((function(){var n=K(e.slice(0,t));return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return E.some({value:e,delta:0})})),r=e[t+1].fold((function(){var n=e.slice(t+1);return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return E.some({value:e,delta:1})}));return n.bind((function(e){return r.map((function(t){var n=t.delta+e.delta;return Math.abs(t.value-e.value)/n}))}))},qo=function(e,t){return function(n){return"rtl"===$o(n)?t:e}},$o=function(e){return"rtl"===pr(e,"direction")?"rtl":"ltr"},Go=ko("height",(function(e){var t=e.dom;return On(e)?t.getBoundingClientRect().height:t.offsetHeight})),Xo=function(e){return Go.get(e)},Yo=function(e){return Go.getOuter(e)},Ko=Po,Zo=function(e,t){var n=function(n,r){return Zo(e+n,t+r)};return{left:e,top:t,translate:n}},Jo=Zo,Qo=function(e){var t=e.getBoundingClientRect();return Jo(t.left,t.top)},ea=function(e,t){return void 0!==e?e:void 0!==t?t:0},ta=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return Jo(n.offsetLeft,n.offsetTop);var o=ea(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=ea(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=ea(i.clientTop,n.clientTop),c=ea(i.clientLeft,n.clientLeft);return na(e).translate(a-c,o-s)},na=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Jo(r.offsetLeft,r.offsetTop):On(e)?Qo(t):Jo(0,0)},ra=function(e,t){return{row:e,y:t}},ia=function(e,t){return{col:e,x:t}},oa=function(e){var t=ta(e);return t.left+Bo(e)},aa=function(e){return ta(e).left},sa=function(e,t){return ia(e,aa(t))},ca=function(e,t){return ia(e,oa(t))},ua=function(e){return ta(e).top},la=function(e,t){return ra(e,ua(t))},da=function(e,t){return ra(e,ua(t)+Yo(t))},fa=function(e,t,n){if(0===n.length)return[];var r=I(n.slice(1),(function(t,n){return t.map((function(t){return e(n,t)}))})),i=n[n.length-1].map((function(e){return t(n.length-1,e)}));return r.concat([i])},ha=function(e){return-e},pa={delta:b,positions:function(e){return fa(la,da,e)},edge:ua},ga={delta:b,edge:aa,positions:function(e){return fa(sa,ca,e)}},ma={delta:ha,edge:oa,positions:function(e){return fa(ca,sa,e)}},va=qo(ga,ma),ba={delta:function(e,t){return va(t).delta(e,t)},positions:function(e,t){return va(t).positions(e,t)},edge:function(e){return va(e).edge(e)}},ya={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},xa=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",i=function(e){return"(?:"+e+")?"},o=["Infinity",e+r+i(e)+i(n),r+e+i(n),e+i(n)].join("|"),a="[+-]?(?:"+o+")";return new RegExp("^("+a+")(.*)$")}(),_a=function(e,t){return N(t,(function(t){return N(ya[t],(function(t){return e===t}))}))},wa=function(e,t){var n=E.from(xa.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return _a(r,t)?E.some({value:n,unit:r}):E.none()}))},Da=/(\d+(\.\d+)?)%/,Ca=/(\d+(\.\d+)?)px|em/,ka=dn("col"),Ta=function(e,t,n){var r=mn(e).getOrThunk((function(){return Pn(fn(e))}));return t(e)/n(r)*100},Sa=function(e,t){fr(e,"width",t+"px")},Aa=function(e,t){fr(e,"width",t+"%")},Ea=function(e,t){fr(e,"height",t+"px")},Ua=function(e){return Ko(e)+"px"},Oa=function(e,t,n,r){var i=Fr(e).map((function(e){var r=n(e);return Math.floor(t/100*r)})).getOr(t);return r(e,i),i},Fa=function(e,t,n,r){var i=parseFloat(e);return De(e,"%")&&"table"!==nn(t)?Oa(t,i,n,r):i},Pa=function(e){var t=Ua(e);return t?Fa(t,e,Xo,Ea):Xo(e)},Ra=function(e,t,n){var r=n(e),i=xr(e,t);return r/i},Na=function(e,t){return mr(e,t).orThunk((function(){return er(e,t).map((function(e){return e+"px"}))}))},Ma=function(e){return Na(e,"width")},Ia=function(e){return Na(e,"height")},Ba=function(e){return Ta(e,Io,Lo)},La=function(e){return ka(e)?Io(e):zo(e)},za=function(e){return Ra(e,"rowspan",Pa)},Wa=function(e){var t=Ma(e);return t.bind((function(e){return wa(e,["fixed","relative","empty"])}))},ja=function(e,t,n){fr(e,"width",t+n)},Ha=function(e){return Io(e)+"px"},Va=function(e){return Ta(e,Io,Lo)+"%"},qa=function(e){return Ma(e).exists((function(e){return Da.test(e)}))},$a=function(e){return Ma(e).exists((function(e){return Ca.test(e)}))},Ga=function(e){return Ma(e).isNone()},Xa=v(Da),Ya=dn("col"),Ka=function(e){return Ma(e).getOrThunk((function(){return La(e)+"px"}))},Za=function(e){return Ia(e).getOrThunk((function(){return za(e)+"px"}))},Ja=function(e){return I(ui.justColumns(e),(function(e){return E.from(e.element)}))},Qa=function(e){var t=it().browser,n=t.isChrome()||t.isFirefox();return!Ya(e)||n},es=function(e,t,n,r,i,o){return e.filter(r).fold((function(){return o(Vo(n,t))}),(function(e){return i(e)}))},ts=function(e,t,n,r){var i=Wo(e),o=ui.hasColumns(e)?Ja(e):i,a=[E.some(ba.edge(t))].concat(I(ba.positions(i,t),(function(e){return e.map((function(e){return e.x}))}))),s=_(_r);return I(o,(function(e,t){return es(e,t,a,s,(function(e){if(Qa(e))return n(e);var o=ar(i[t],b);return es(o,t,a,s,(function(e){return r(E.some(Io(e)))}),r)}),r)}))},ns=function(e){return e.map((function(e){return e+"px"})).getOr("")},rs=function(e,t){return ts(e,t,Ka,ns)},is=function(e,t,n){return ts(e,t,Ba,(function(e){return e.fold((function(){return n.minCellWidth()}),(function(e){return e/n.pixelWidth()*100}))}))},os=function(e,t,n){return ts(e,t,La,(function(e){return e.getOrThunk(n.minCellWidth)}))},as=function(e,t,n,r,i){var o=Ho(e),a=[E.some(n.edge(t))].concat(I(n.positions(o,t),(function(e){return e.map((function(e){return e.y}))})));return I(o,(function(e,t){return es(e,t,a,_(wr),r,i)}))},ss=function(e,t,n){return as(e,t,n,za,(function(e){return e.getOrThunk(kr)}))},cs=function(e,t,n){return as(e,t,n,Za,ns)},us=function(e,t){return function(){return On(e)?t(e):parseFloat(mr(e,"width").getOr("0"))}},ls=function(e){var t=us(e,Io),n=v(0),r=function(t,n){return os(t,e,n)};return{width:t,pixelWidth:t,getWidths:r,getCellDelta:n,singleColumnWidth:v([0]),minCellWidth:n,setElementWidth:p,adjustTableWidth:p,isRelative:!0,label:"none"}},ds=function(e){var t=us(e,(function(e){return parseFloat(Va(e))})),n=us(e,Io),r=function(e){return e/n()*100},i=function(e,t){return[100-e]},o=function(){return Cr()/n()*100},a=function(n){var r=t(),i=n/100*r,o=r+i;Aa(e,o)},s=function(t,n){return is(t,e,n)};return{width:t,pixelWidth:n,getWidths:s,getCellDelta:r,singleColumnWidth:i,minCellWidth:o,setElementWidth:Aa,adjustTableWidth:a,isRelative:!0,label:"percent"}},fs=function(e){var t=us(e,Io),n=b,r=function(e,t){var n=Math.max(Cr(),e+t);return[n-e]},i=function(n){var r=t()+n;Sa(e,r)},o=function(t,n){return os(t,e,n)};return{width:t,pixelWidth:t,getWidths:o,getCellDelta:n,singleColumnWidth:r,minCellWidth:Cr,setElementWidth:Sa,adjustTableWidth:i,isRelative:!1,label:"pixel"}},hs=function(e,t){var n=Xa().exec(t);return null!==n?ds(e):fs(e)},ps=function(e){var t=Ma(e);return t.fold((function(){return ls(e)}),(function(t){return hs(e,t)}))},gs={getTableSize:ps,pixelSize:fs,percentageSize:ds,noneSize:ls},ms=function(e,t,n,r,i,o){return{minRow:e,minCol:t,maxRow:n,maxCol:r,allCells:i,selectedCells:o}},vs=function(e,t){var n=e.grid.columns,r=e.grid.rows,i=r,o=n,a=0,s=0,c=[],u=[];return Et(e.access,(function(e){if(c.push(e),t(e)){u.push(e);var n=e.row,r=n+e.rowspan-1,l=e.column,d=l+e.colspan-1;n<i?i=n:r>a&&(a=r),l<o?o=l:d>s&&(s=d)}})),ms(i,o,a,s,c,u)},bs=function(e,t,n){var r=e[n].element,i=vt.fromTag("td");Si(i,vt.fromTag("br"));var o=t?Si:Ti;o(r,i)},ys=function(e,t,n,r){for(var i=t.grid.columns,o=t.grid.rows,a=0;a<o;a++)for(var s=!1,c=0;c<i;c++)if(!(a<n.minRow||a>n.maxRow||c<n.minCol||c>n.maxCol)){var u=ui.getAt(t,a,c).filter(r).isNone();u?bs(e,s,a):s=!0}},xs=function(e,t,n,r){Et(n.columns,(function(e){(e.column<t.minCol||e.column>t.maxCol)&&Ri(e.element)}));var i=W(Tr(e,"tr"),(function(e){return 0===e.dom.childElementCount}));B(i,Ri),t.minCol!==t.maxCol&&t.minRow!==t.maxRow||B(Tr(e,"th,td"),(function(e){tr(e,"rowspan"),tr(e,"colspan")})),tr(e,Yr),tr(e,"data-snooker-col-series");var o=gs.getTableSize(e);o.adjustTableWidth(r)},_s=function(e,t,n,r){if(0===r.minCol&&t.grid.columns===r.maxCol+1)return 0;var i=os(t,e,n),o=H(i,(function(e,t){return e+t}),0),a=H(i.slice(r.minCol,r.maxCol+1),(function(e,t){return e+t}),0),s=a/o*n.pixelWidth(),c=s-n.pixelWidth();return n.getCellDelta(c)},ws=function(e,t){var n=function(e){return bt(e.element,t)},r=_o(e),i=Ir(r),o=gs.getTableSize(e),a=ui.generate(i),s=vs(a,n),c="th:not("+t+"),td:not("+t+")",u=Sr(r,"th,td",(function(e){return bt(e,c)}));B(u,Ri),ys(i,a,s,n);var l=ui.fromTable(e),d=_s(e,l,o,s);return xs(r,s,a,d),r},Ds=" ",Cs=function(e){return"img"===nn(e)?1:Li(e).fold((function(){return xn(e).length}),(function(e){return e.length}))},ks=function(e){return Li(e).filter((function(e){return 0!==e.trim().length||e.indexOf(Ds)>-1})).isSome()},Ts=["img","br"],Ss=function(e){var t=ks(e);return t||R(Ts,nn(e))},As=function(e){return Vn(e,Ss)},Es=function(e){return Us(e,Ss)},Us=function(e,t){var n=function(e){for(var r=xn(e),i=r.length-1;i>=0;i--){var o=r[i];if(t(o))return E.some(o);var a=n(o);if(a.isSome())return a}return E.none()};return n(e)},Os={scope:["row","col"]},Fs=function(e){return function(){var t=vt.fromTag("td",e.dom);return Si(t,vt.fromTag("br",e.dom)),t}},Ps=function(e){return function(){return vt.fromTag("col",e.dom)}},Rs=function(e){return function(){return vt.fromTag("colgroup",e.dom)}},Ns=function(e){return function(){return vt.fromTag("tr",e.dom)}},Ms=function(e,t,n){var r=Do(e,t);return Et(n,(function(e,t){null===e?tr(r,t):Kn(r,t,e)})),r},Is=function(e){return e},Bs=function(e,t,n){var r=As(e);return r.map((function(r){var i=n.join(","),o=In(r,i,(function(t){return wt(t,e)}));return j(o,(function(e,t){var n=xo(t);return tr(n,"contenteditable"),Si(e,n),n}),t)})).getOr(t)},Ls=function(e,t){Et(Os,(function(n,r){return er(e,r).filter((function(e){return R(n,e)})).each((function(e){return Kn(t,r,e)}))}))},zs=function(e,t,n){var r=function(e,t){br(e.element,t),vr(t,"height"),1!==e.colspan&&vr(t,"width")},i=function(i){var o=vt.fromTag(nn(i.element),t.dom),a=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),s=a.length>0?Bs(i.element,o,a):o;return Si(s,vt.fromTag("br")),r(i,o),Ls(i.element,o),e(i.element,o),o},o=function(n){var i=vt.fromTag(nn(n.element),t.dom);return r(n,i),e(n.element,i),i};return{col:o,colgroup:Rs(t),row:Ns(t),cell:i,replace:Ms,colGap:Ps(t),gap:Fs(t)}},Ws=function(e){return{col:Ps(e),colgroup:Rs(e),row:Ns(e),cell:Fs(e),replace:Is,colGap:Ps(e),gap:Fs(e)}},js=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,xn(vt.fromDom(r))},Hs=function(e){return I(e,vt.fromDom)},Vs=function(e){return e.nodeName.toLowerCase()},qs=function(e){return vt.fromDom(e.getBody())},$s=function(e){return e.getBoundingClientRect().width},Gs=function(e){return e.getBoundingClientRect().height},Xs=function(e){return function(t){return wt(t,qs(e))}},Ys=function(e){return e?e.replace(/px$/,""):""},Ks=function(e){return/^\d+(\.\d+)?$/.test(e)?e+"px":e},Zs=function(e){tr(e,"data-mce-style");var t=function(e){return tr(e,"data-mce-style")};B(Ur(e),t),B(Or(e),t),B(Pr(e),t)},Js=function(e,t){var n=e.dom.getStyle(t,"width")||e.dom.getAttrib(t,"width");return E.from(n).filter(Te)},Qs=function(e){return/^(\d+(\.\d+)?)%$/.test(e)},ec=function(e){return/^(\d+(\.\d+)?)px$/.test(e)},tc=function(e){return vt.fromDom(e.selection.getStart())},nc=function(e){return vt.fromDom(e.selection.getEnd())},rc=function(e){return ho(e.get(),v([]),b,J)},ic=function(e){var t=function(e,t){return er(e,t).exists((function(e){return parseInt(e,10)>1}))},n=function(e){return t(e,"rowspan")||t(e,"colspan")},r=rc(e);return r.length>0&&Y(r,n)?E.some(r):E.none()},oc=function(e,t,n){return ho(t.get(),E.none,(function(t){return t.length<=1?E.none():co(e,n.firstSelectedSelector,n.lastSelectedSelector).map((function(e){return{bounds:e,cells:t}}))}),E.none)},ac="data-mce-selected",sc="td["+ac+"],th["+ac+"]",cc="["+ac+"]",uc="data-mce-first-selected",lc="td["+uc+"],th["+uc+"]",dc="data-mce-last-selected",fc="td["+dc+"],th["+dc+"]",hc=cc,pc={selected:ac,selectedSelector:sc,firstSelected:uc,firstSelectedSelector:lc,lastSelected:dc,lastSelectedSelector:fc},gc=function(e){return{element:e,mergable:E.none(),unmergable:E.none(),selection:[e]}},mc=function(e,t,n){return{element:n,mergable:oc(t,e,pc),unmergable:ic(e),selection:rc(e)}},vc=function(e,t,n){return{element:e,clipboard:t,generators:n}},bc=function(e,t,n,r){return{selection:rc(e),clipboard:n,generators:r}},yc=function(e){return Fr(e).bind((function(e){return so(e,pc.firstSelectedSelector)})).fold(v(e),(function(e){return e[0]}))},xc=function(e){return function(t,n){var r=nn(t),i="col"===r||"colgroup"===r?yc(t):t;return Xn(i,e,n)}},_c=xc("th,td,caption"),wc=xc("th,td"),Dc=function(e){return rc(e)},Cc=function(e,t){var n=wc(e),r=n.bind((function(e){return Fr(e)})).map((function(e){return Pr(e)}));return or(n,r,(function(e,n){return W(n,(function(n){return N(Hs(n.dom.cells),(function(n){return"1"===Qn(n,t)||wt(n,e)}))}))})).getOr([])},kc=function(e){return Fr(e[0]).map((function(e){var t=ws(e,hc);return Zs(t),[t]}))},Tc=function(e,t){return I(t,(function(t){return e.selection.serializer.serialize(t.dom,{})})).join("")},Sc=function(e){return I(e,(function(e){return e.dom.innerText})).join("")},Ac=function(e,t,n){e.on("BeforeGetContent",(function(n){var r=function(t){n.preventDefault(),kc(t).each((function(t){n.content="text"===n.format?Sc(t):Tc(e,t)}))};!0===n.selection&&ho(t.get(),p,r,p)})),e.on("BeforeSetContent",(function(r){if(!0===r.selection&&!0===r.paste){var i=Dc(t);te(i).each((function(t){Fr(t).each((function(i){var o=W(js(r.content),(function(e){return"meta"!==nn(e)})),a=dn("table");if(1===o.length&&a(o[0])){r.preventDefault();var s=vt.fromDom(e.getDoc()),c=Ws(s),u=vc(t,o[0],c);n.pasteCells(i,u).each((function(){e.focus()}))}}))}))}}))},Ec=lo.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Uc=ie({},Ec),Oc=function(e,t){return 0===e.length?Uc.none():1===e.length?Uc.only(0):0===t?Uc.left(0,1):t===e.length-1?Uc.right(t-1,t):t>0&&t<e.length-1?Uc.middle(t-1,t,t+1):Uc.none()},Fc=function(e,t,n,r,i){var o=e.slice(0),a=Oc(e,t),s=v(I(o,v(0))),c=function(e){return r.singleColumnWidth(o[e],n)},u=function(e,t){return i.calcLeftEdgeDeltas(o,e,t,n,r.minCellWidth(),r.isRelative)},l=function(e,t,a){return i.calcMiddleDeltas(o,e,t,a,n,r.minCellWidth(),r.isRelative)},d=function(e,t){return i.calcRightEdgeDeltas(o,e,t,n,r.minCellWidth(),r.isRelative)};return a.fold(s,c,u,l,d)},Pc=function(e,t,n){for(var r=0,i=e;i<t;i++)r+=void 0!==n[i]?n[i]:0;return r},Rc=function(e,t){var n=ui.justCells(e);return I(n,(function(e){var n=Pc(e.column,e.column+e.colspan,t);return{element:e.element,width:n,colspan:e.colspan}}))},Nc=function(e,t){var n=ui.justColumns(e);return I(n,(function(e,n){return{element:e.element,width:t[n],colspan:e.colspan}}))},Mc=function(e,t){var n=ui.justCells(e);return I(n,(function(e){var n=Pc(e.row,e.row+e.rowspan,t);return{element:e.element,height:n,rowspan:e.rowspan}}))},Ic=function(e,t){return I(e.all,(function(e,n){return{element:e.element,height:t[n]}}))},Bc=function(e){return j(e,(function(e,t){return e+t}),0)},Lc=function(e,t){return ui.hasColumns(e)?Nc(e,t):Rc(e,t)},zc=function(e,t,n){var r=Lc(e,t);B(r,(function(e){n.setElementWidth(e.element,e.width)}))},Wc=function(e,t,n,r,i){var o=ui.fromTable(e),a=i.getCellDelta(t),s=i.getWidths(o,i),c=n===o.grid.columns-1,u=r.clampTableDelta(s,n,a,i.minCellWidth(),c),l=Fc(s,n,u,i,r),d=I(l,(function(e,t){return e+s[t]}));zc(o,d,i),r.resizeTable(i.adjustTableWidth,u,c)},jc=function(e,t,n,r){var i=ui.fromTable(e),o=ss(i,e,r),a=I(o,(function(e,r){return n===r?Math.max(t+e,kr()):e})),s=Mc(i,a),c=Ic(i,a);B(c,(function(e){Ea(e.element,e.height)})),B(s,(function(e){Ea(e.element,e.height)}));var u=Bc(a);Ea(e,u)},Hc=function(e,t,n,r,i){var o=ui.generate(t),a=r.getWidths(o,r),s=r.pixelWidth(),c=i.calcRedestributedWidths(a,s,n.pixelDelta,r.isRelative),u=c.newSizes,l=c.delta;zc(o,u,r),r.adjustTableWidth(l)},Vc=function(e,t,n,r){var i=ui.generate(t),o=r.getWidths(i,r);zc(i,o,r)},qc=function(e){return I(e,v(0))},$c=function(e,t,n,r,i){return i(e.slice(0,t)).concat(r).concat(i(e.slice(n)))},Gc=function(e){return function(t,n,r,i){if(e(r)){var o=Math.max(i,t[n]-Math.abs(r)),a=Math.abs(o-t[n]);return r>=0?a:-a}return r}},Xc=Gc((function(e){return e<0})),Yc=Gc(C),Kc=function(){var e=function(e,t,n,r,i){var o=Xc(e,t,r,i);return $c(e,t,n+1,[o,0],qc)},t=function(e,t,n,r){var i=(100+n)/100,o=Math.max(r,(e[t]+n)/i);return I(e,(function(e,n){var r=n===t?o:e/i;return r-e}))},n=function(n,r,i,o,a,s){return s?t(n,r,o,a):e(n,r,i,o,a)},r=function(e,t,r,i,o,a,s){return n(e,r,i,o,a,s)},i=function(e,t){return e(t)},o=function(e,n,r,i,o,a){if(a)return t(e,r,i,o);var s=Xc(e,r,i,o);return qc(e.slice(0,r)).concat([s])},a=function(e,t,n,r){if(r){var i=t+n,o=i/t,a=I(e,(function(e){return e/o}));return{delta:100*o-100,newSizes:a}}return{delta:n,newSizes:e}};return{resizeTable:i,clampTableDelta:Xc,calcLeftEdgeDeltas:n,calcMiddleDeltas:r,calcRightEdgeDeltas:o,calcRedestributedWidths:a}},Zc=function(){var e=function(e,t,n,r,i){var o=r>=0?n:t,a=Yc(e,o,r,i);return $c(e,t,n+1,[a,-a],qc)},t=function(t,n,r,i,o,a){return e(t,r,i,o,a)},n=function(e,t,n){n&&e(t)},r=function(e,t,n,r,i,o){if(o)return qc(e);var a=r/e.length;return I(e,v(a))},i=function(e,t,n,r,i){if(i){if(n>=0)return n;var o=H(e,(function(e,t){return e+t-r}),0);return Math.max(-o,n)}return Xc(e,t,n,r)},o=function(e,t,n,r){return{delta:0,newSizes:e}};return{resizeTable:n,clampTableDelta:i,calcLeftEdgeDeltas:e,calcMiddleDeltas:t,calcRightEdgeDeltas:r,calcRedestributedWidths:o}},Jc=function(e,t){var n=E.from(e.dom.documentElement).map(vt.fromDom).getOr(e);return{parent:v(n),view:v(e),origin:v(Jo(0,0)),isResizable:t}},Qc=function(e,t,n){var r=function(){return ta(t)};return{parent:v(t),view:v(e),origin:r,isResizable:n}},eu=function(e,t,n){return{parent:v(t),view:v(e),origin:v(Jo(0,0)),isResizable:n}},tu={only:Jc,detached:Qc,body:eu},nu=lo.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),ru=function(e,t,n){var r=n.substring(0,n.length-e.length),i=parseFloat(r);return r===i.toString()?t(i):nu.invalid(n)},iu=function(e){return De(e,"%")?ru("%",nu.percent,e):De(e,"px")?ru("px",nu.pixels,e):nu.invalid(e)},ou=ie(ie({},nu),{from:iu}),au=function(e,t){return I(e,(function(e){var n=ou.from(e);return n.fold((function(){return e}),(function(e){var n=e/t*100;return n+"%"}),(function(e){return e+"%"}))}))},su=function(e,t,n){var r=n/t;return I(e,(function(e){var t=ou.from(e);return t.fold((function(){return e}),(function(e){return e*r+"px"}),(function(e){return e/100*n+"px"}))}))},cu=function(e,t){var n=e.fold((function(){return v("")}),(function(e){var n=e/t;return v(n+"px")}),(function(){var e=100/t;return v(e+"%")}));return M(t,n)},uu=function(e,t,n){return e.fold((function(){return t}),(function(e){return su(t,n,e)}),(function(e){return au(t,n)}))},lu=function(e,t,n){var r=ou.from(n),i=Y(e,(function(e){return"0px"===e}))?cu(r,e.length):uu(r,e,t);return pu(i)},du=function(e,t){return 0===e.length?t:j(e,(function(e,t){return ou.from(t).fold(v(0),b,b)+e}),0)},fu=function(e,t){var n=Math.floor(e);return{value:n+t,remainder:e-n}},hu=function(e,t){return ou.from(e).fold(v(e),(function(e){return e+t+"px"}),(function(e){return e+t+"%"}))},pu=function(e){if(0===e.length)return e;var t=j(e,(function(e,t){var n=ou.from(t).fold((function(){return{value:t,remainder:0}}),(function(e){return fu(e,"px")}),(function(e){return{value:e+"%",remainder:0}}));return{output:[n.value].concat(e.output),remainder:e.remainder+n.remainder}}),{output:[],remainder:0}),n=t.output;return n.slice(0,n.length-1).concat([hu(n[n.length-1],Math.round(t.remainder))])},gu=ou.from,mu=function(e,t,n){B(t,(function(t){var r=e.slice(t.column,t.colspan+t.column),i=du(r,Cr());fr(t.element,"width",i+n)}))},vu=function(e,t,n){B(t,(function(t,r){var i=du([e[r]],Cr());fr(t.element,"width",i+n)}))},bu=function(e,t,n,r){B(n,(function(t){var n=e.slice(t.row,t.rowspan+t.row),i=du(n,kr());fr(t.element,"height",i+r)})),B(t,(function(t,n){fr(t.element,"height",e[n])}))},yu=function(e){return gu(e).fold(v("px"),v("px"),v("%"))},xu=function(e,t,n){var r=ui.fromTable(e),i=r.all,o=ui.justCells(r),a=ui.justColumns(r);t.each((function(t){var n=yu(t),i=Io(e),s=rs(r,e),c=lu(s,i,t);ui.hasColumns(r)?vu(c,a,n):mu(c,o,n),fr(e,"width",t)})),n.each((function(t){var n=yu(t),a=Xo(e),s=cs(r,e,pa),c=lu(s,a,t);bu(c,i,o,n),fr(e,"height",t)}))},_u=qa,wu=$a,Du=Ga,Cu=function(e){var t=ui.fromTable(e);return t.grid},ku=function(e){var t=[],n=function(e){if(void 0===e)throw new Error("Event bind error: undefined handler");t.push(e)},r=function(e){t=W(t,(function(t){return t!==e}))},i=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};B(e,(function(e,t){i[e]=n[t]})),B(t,(function(e){e(i)}))};return{bind:n,unbind:r,trigger:i}},Tu=function(e){var t=Ut(e,(function(e){return{bind:e.bind,unbind:e.unbind}})),n=Ut(e,(function(e){return e.trigger}));return{registry:t,trigger:n}},Su=function(e,t){var n=null,r=function(){s(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},Au=function(e){return e.slice(0).sort()},Eu=function(e,t){throw new Error("All required keys ("+Au(e).join(", ")+") were not specified. Specified keys were: "+Au(t).join(", ")+".")},Uu=function(e){throw new Error("Unsupported keys for object: "+Au(e).join(", "))},Ou=function(e,t){if(!a(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");B(t,(function(t){if(!i(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")}))},Fu=function(e,t){throw new Error("All values need to be of type: "+t+". Keys ("+Au(e).join(", ")+") were not.")},Pu=function(e){var t=Au(e),n=q(t,(function(e,n){return n<t.length-1&&e===t[n+1]}));n.each((function(e){throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+t.join(", ")+"].")}))},Ru=function(e,t){return Nu(e,t,{validate:f,label:"function"})},Nu=function(e,t,n){if(0===t.length)throw new Error("You must specify at least one required field.");return Ou("required",t),Pu(t),function(r){var i=St(r),o=Y(t,(function(e){return R(i,e)}));o||Eu(t,i),e(t,i);var a=W(t,(function(e){return!n.validate(r[e],e)}));return a.length>0&&Fu(a,n.label),r}},Mu=function(e,t){var n=W(t,(function(t){return!R(e,t)}));n.length>0&&Uu(n)},Iu=function(e){return Ru(Mu,e)},Bu=Iu(["compare","extract","mutate","sink"]),Lu=Iu(["element","start","stop","destroy"]),zu=Iu(["forceDrop","drop","move","delayDrop"]),Wu=function(){var e=E.none(),t=function(){e=E.none()},n=function(t,n){var r=e.map((function(e){return t.compare(e,n)}));return e=E.some(n),r},r=function(e,t){var r=t.extract(e);r.each((function(e){var r=n(t,e);r.each((function(e){i.trigger.move(e)}))}))},i=Tu({move:ku(["info"])});return{onEvent:r,reset:t,events:i.registry}},ju=function(){var e=Tu({move:ku(["info"])});return{onEvent:p,reset:p,events:e.registry}},Hu=function(){var e=ju(),t=Wu(),n=e,r=function(){n.reset(),n=t},i=function(){n.reset(),n=e},o=function(e,t){n.onEvent(e,t)},a=function(){return n===t};return{on:r,off:i,isOn:a,onEvent:o,events:t.events}},Vu=function(e,t,n){var r=!1,i=Tu({start:ku([]),stop:ku([])}),o=Hu(),a=function(){h.stop(),o.isOn()&&(o.off(),i.trigger.stop())},s=Su(a,200),c=function(e){h.start(e),o.on(),i.trigger.start()},u=function(e){s.cancel(),o.onEvent(e,t)};o.events.move.bind((function(n){t.mutate(e,n.info)}));var l=function(){r=!0},d=function(){r=!1},f=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r&&e.apply(null,t)}},h=t.sink(zu({forceDrop:a,drop:f(a),move:f(u),delayDrop:f(s.throttle)}),n),p=function(){h.destroy()};return{element:h.element,go:c,on:l,off:d,destroy:p,events:i.registry}},qu=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},$u=function(e){var t=vt.fromDom(En(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},i=g(r,n);return qu(t,e.clientX,e.clientY,n,r,i,e)},Gu=function(e,t){return function(n){e(n)&&t($u(n))}},Xu=function(e,t,n,r,i){var o=Gu(n,r);return e.dom.addEventListener(t,o,i),{unbind:x(Ku,e,t,o,i)}},Yu=function(e,t,n,r){return Xu(e,t,n,r,!1)},Ku=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Zu=C,Ju=function(e,t,n){return Yu(e,t,Zu,n)},Qu=$u,el=function(e,t){var n=Qn(e,t);return void 0===n||""===n?[]:n.split(" ")},tl=function(e,t,n){var r=el(e,t),i=r.concat([n]);return Kn(e,t,i.join(" ")),!0},nl=function(e,t,n){var r=W(el(e,t),(function(e){return e!==n}));return r.length>0?Kn(e,t,r.join(" ")):tr(e,t),!1},rl=function(e){return void 0!==e.dom.classList},il=function(e){return el(e,"class")},ol=function(e,t){return tl(e,"class",t)},al=function(e,t){return nl(e,"class",t)},sl=function(e,t){rl(e)?e.dom.classList.add(t):ol(e,t)},cl=function(e){var t=rl(e)?e.dom.classList:il(e);0===t.length&&tr(e,"class")},ul=function(e,t){if(rl(e)){var n=e.dom.classList;n.remove(t)}else al(e,t);cl(e)},ll=function(e,t){return rl(e)&&e.dom.classList.contains(t)},dl=function(e){var t=e.replace(/\./g,"-"),n=function(e){return t+"-"+e};return{resolve:n}},fl=dl("ephox-dragster"),hl=fl.resolve,pl=function(e){var t=ie({layerClass:hl("blocker")},e),n=vt.fromTag("div");Kn(n,"role","presentation"),hr(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),sl(n,hl("blocker")),sl(n,t.layerClass);var r=v(n),i=function(){Ri(n)};return{element:r,destroy:i}},gl=function(e,t){return Jo(t.left-e.left,t.top-e.top)},ml=function(e){return E.some(Jo(e.x,e.y))},vl=function(e,t){e.mutate(t.left,t.top)},bl=function(e,t){var n=pl(t),r=Ju(n.element(),"mousedown",e.forceDrop),i=Ju(n.element(),"mouseup",e.drop),o=Ju(n.element(),"mousemove",e.move),a=Ju(n.element(),"mouseout",e.delayDrop),s=function(){n.destroy(),i.unbind(),o.unbind(),a.unbind(),r.unbind()},c=function(e){Si(e,n.element())},u=function(){Ri(n.element())};return Lu({element:n.element,start:c,stop:u,destroy:s})},yl=Bu({compare:gl,extract:ml,sink:bl,mutate:vl}),xl=function(e,t){void 0===t&&(t={});var n=void 0!==t.mode?t.mode:yl;return Vu(e,n,t)},_l=function(e){return Xn(e,"[contenteditable]")},wl=function(e,t){return void 0===t&&(t=!1),!it().browser.isIE()&&On(e)?e.dom.isContentEditable:_l(e).fold(v(t),(function(e){return"true"===Dl(e)}))},Dl=function(e){return e.dom.contentEditable},Cl=dl("ephox-snooker"),kl=Cl.resolve,Tl=function(){var e=Tu({drag:ku(["xDelta","yDelta"])}),t=function(t,n){e.trigger.drag(t,n)};return{mutate:t,events:e.registry}},Sl=function(){var e=Tu({drag:ku(["xDelta","yDelta","target"])}),t=E.none(),n=Tl();n.events.drag.bind((function(n){t.each((function(t){e.trigger.drag(n.xDelta,n.yDelta,t)}))}));var r=function(e){t=E.some(e)},i=function(){return t};return{assign:r,get:i,mutate:n.mutate,events:e.registry}},Al=function(e,t,n,r,i){var o=vt.fromTag("div");return hr(o,{position:"absolute",left:t-r/2+"px",top:n+"px",height:i+"px",width:r+"px"}),Zn(o,{"data-column":e,role:"presentation"}),o},El=function(e,t,n,r,i){var o=vt.fromTag("div");return hr(o,{position:"absolute",left:t+"px",top:n-i/2+"px",height:i+"px",width:r+"px"}),Zn(o,{"data-row":e,role:"presentation"}),o},Ul=kl("resizer-bar"),Ol=kl("resizer-rows"),Fl=kl("resizer-cols"),Pl=7,Rl=function(e,t){return X(e.all,(function(e,n){return t(e.element)?[n]:[]}))},Nl=function(e,t){var n=[];return M(e.grid.columns,(function(r){var i=ui.getColumnAt(e,r).map((function(e){return e.element}));i.forall(t)&&n.push(r)})),W(n,(function(n){var r=ui.filterItems(e,(function(e){return e.column===n}));return Y(r,(function(e){return t(e.element)}))}))},Ml=function(e){var t=Ln(e.parent(),"."+Ul);B(t,Ri)},Il=function(e,t,n){var r=e.origin();B(t,(function(t){t.each((function(t){var i=n(r,t);sl(i,Ul),Si(e.parent(),i)}))}))},Bl=function(e,t,n,r){Il(e,t,(function(e,t){var i=Al(t.col,t.x-e.left,n.top-e.top,Pl,r);return sl(i,Fl),i}))},Ll=function(e,t,n,r){Il(e,t,(function(e,t){var i=El(t.row,n.left-e.left,t.y-e.top,r,Pl);return sl(i,Ol),i}))},zl=function(e,t,n,r,i){var o=ta(n),a=t.isResizable,s=r.length>0?pa.positions(r,n):[],c=s.length>0?Rl(e,a):[],u=W(s,(function(e,t){return N(c,(function(e){return t===e}))}));Ll(t,u,o,Bo(n));var l=i.length>0?ba.positions(i,n):[],d=l.length>0?Nl(e,a):[],f=W(l,(function(e,t){return N(d,(function(e){return t===e}))}));Bl(t,f,o,Yo(n))},Wl=function(e,t){if(Ml(e),e.isResizable(t)){var n=ui.fromTable(t),r=Ho(n),i=Wo(n);zl(n,e,t,r,i)}},jl=function(e,t){var n=Ln(e.parent(),"."+Ul);B(n,t)},Hl=function(e){jl(e,(function(e){fr(e,"display","none")}))},Vl=function(e){jl(e,(function(e){fr(e,"display","block")}))},ql=function(e){return ll(e,Ol)},$l=function(e){return ll(e,Fl)},Gl=kl("resizer-bar-dragging"),Xl=function(e){var t=Sl(),n=xl(t,{}),r=E.none(),i=function(e,t){return E.from(Qn(e,t))};t.events.drag.bind((function(e){i(e.target,"data-row").each((function(t){var n=Dr(e.target,"top");fr(e.target,"top",n+e.yDelta+"px")})),i(e.target,"data-column").each((function(t){var n=Dr(e.target,"left");fr(e.target,"left",n+e.xDelta+"px")}))}));var o=function(e,t){var n=Dr(e,t),r=yr(e,"data-initial-"+t,0);return n-r};n.events.stop.bind((function(){t.get().each((function(t){r.each((function(n){i(t,"data-row").each((function(e){var r=o(t,"top");tr(t,"data-initial-top"),h.trigger.adjustHeight(n,r,parseInt(e,10))})),i(t,"data-column").each((function(e){var r=o(t,"left");tr(t,"data-initial-left"),h.trigger.adjustWidth(n,r,parseInt(e,10))})),Wl(e,n)}))}))}));var a=function(r,i){h.trigger.startAdjust(),t.assign(r),Kn(r,"data-initial-"+i,Dr(r,i)),sl(r,Gl),fr(r,"opacity","0.2"),n.go(e.parent())},s=Ju(e.parent(),"mousedown",(function(e){ql(e.target)&&a(e.target,"top"),$l(e.target)&&a(e.target,"left")})),c=function(t){return wt(t,e.view())},u=function(e){return Xn(e,"table",c).filter(wl)},l=Ju(e.view(),"mouseover",(function(t){u(t.target).fold((function(){On(t.target)&&Ml(e)}),(function(t){r=E.some(t),Wl(e,t)}))})),d=function(){s.unbind(),l.unbind(),n.destroy(),Ml(e)},f=function(t){Wl(e,t)},h=Tu({adjustHeight:ku(["table","delta","row"]),adjustWidth:ku(["table","delta","column"]),startAdjust:ku([])});return{destroy:d,refresh:f,on:n.on,off:n.off,hideBars:x(Hl,e),showBars:x(Vl,e),events:h.registry}},Yl=function(e,t,n){var r=pa,i=ba,o=Xl(e),a=Tu({beforeResize:ku(["table","type"]),afterResize:ku(["table","type"]),startDrag:ku([])});return o.events.adjustHeight.bind((function(e){var t=e.table;a.trigger.beforeResize(t,"row");var n=r.delta(e.delta,t);jc(t,n,e.row,r),a.trigger.afterResize(t,"row")})),o.events.startAdjust.bind((function(e){a.trigger.startDrag()})),o.events.adjustWidth.bind((function(e){var r=e.table;a.trigger.beforeResize(r,"col");var o=i.delta(e.delta,r),s=n(r);Wc(r,o,e.column,t,s),a.trigger.afterResize(r,"col")})),{on:o.on,off:o.off,hideBars:o.hideBars,showBars:o.showBars,destroy:o.destroy,events:a.registry}},Kl={create:Yl},Zl=function(e,t){return e.fire("newrow",{node:t})},Jl=function(e,t){return e.fire("newcell",{node:t})},Ql=function(e,t,n,r,i){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:i})},ed=function(e,t,n,r,i){e.fire("ObjectResized",{target:t,width:n,height:r,origin:i})},td=function(e,t,n,r,i){e.fire("TableSelectionChange",{cells:t,start:n,finish:r,otherCells:i})},nd=function(e){e.fire("TableSelectionClear")},rd=function(e,t,n){e.fire("TableModified",ie(ie({},n),{table:t}))},id={structure:!1,style:!0},od={structure:!0,style:!1},ad={structure:!0,style:!0},sd="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",cd={"border-collapse":"collapse",width:"100%"},ud=M(5,(function(e){var t=e+1+"px";return{title:t,value:t}})),ld=I(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],(function(e){return{title:e,value:e.toLowerCase()}})),dd=function(e){var t;if(Fd(e)){var n=e.dom,r=null!==(t=n.getParent(e.selection.getStart(),n.isBlock))&&void 0!==t?t:e.getBody(),i=Lo(vt.fromDom(r));return ie(ie({},cd),{width:i+"px"})}return Pd(e)?Rt(cd,(function(e,t){return"width"!==t})):cd},fd={border:"1"},hd="preservetable",pd=function(e){return e.getParam("table_sizing_mode","auto")},gd=function(e){return e.getParam("table_responsive_width")},md=function(e){return e.getParam("table_border_widths",ud,"array")},vd=function(e){return e.getParam("table_border_styles",ld,"array")},bd=function(e){return e.getParam("table_default_attributes",fd,"object")},yd=function(e){return e.getParam("table_default_styles",dd(e),"object")},xd=function(e){return e.getParam("table_resize_bars",!0,"boolean")},_d=function(e){return e.getParam("table_tab_navigation",!0,"boolean")},wd=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},Dd=function(e){return e.getParam("table_row_advtab",!0,"boolean")},Cd=function(e){return e.getParam("table_advtab",!0,"boolean")},kd=function(e){return e.getParam("table_appearance_options",!0,"boolean")},Td=function(e){return e.getParam("table_grid",!0,"boolean")},Sd=function(e){return e.getParam("table_style_by_css",!1,"boolean")},Ad=function(e){return e.getParam("table_cell_class_list",[],"array")},Ed=function(e){return e.getParam("table_row_class_list",[],"array")},Ud=function(e){return e.getParam("table_class_list",[],"array")},Od=function(e){return"relative"===pd(e)||!0===gd(e)},Fd=function(e){return"fixed"===pd(e)||!1===gd(e)},Pd=function(e){return"responsive"===pd(e)},Rd=function(e){return e.getParam("table_toolbar",sd)},Nd=function(e){return e.getParam("table_use_colgroups",!1,"boolean")},Md=function(e){var t="section",n=e.getParam("table_header_type",t,"string"),r=["section","cells","sectionCells","auto"];return R(r,n)?n:t},Id=function(e){var t=["preservetable","resizetable"],n=e.getParam("table_column_resizing",hd,"string");return q(t,(function(e){return e===n})).getOr(hd)},Bd=function(e){return"preservetable"===Id(e)},Ld=function(e){return"resizetable"===Id(e)},zd=function(e){var t=e.getParam("table_clone_elements");return i(t)?E.some(t.split(/[ ,]/)):Array.isArray(t)?E.some(t):E.none()},Wd=function(e){var t=e.getParam("object_resizing",!0);return i(t)?"table"===t:t},jd=function(e){return e.getParam("table_background_color_map",[],"array")},Hd=function(e){return e.getParam("table_border_color_map",[],"array")},Vd=function(e,t){return Od(e)?gs.percentageSize(t):Fd(e)?gs.pixelSize(t):gs.getTableSize(t)},qd=function(e){tr(e,"width")},$d=function(e){var t=Va(e);xu(e,E.some(t),E.none()),qd(e)},Gd=function(e){var t=Ha(e);xu(e,E.some(t),E.none()),qd(e)},Xd=function(e){vr(e,"width");var t=Or(e),n=t.length>0?t:Ur(e);B(n,(function(e){vr(e,"width"),qd(e)})),qd(e)},Yd=$d,Kd=Gd,Zd=Xd,Jd=function(e){var t=ui.fromTable(e);ui.hasColumns(t)||B(Ur(e),(function(e){var t=pr(e,"width");fr(e,"width",t),tr(e,"width")}))},Qd=function(){var e=vt.fromTag("div");return hr(e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Si(Fn(),e),e},ef=function(e,t){return e.inline?tu.body(qs(e),Qd(),t):tu.only(vt.fromDom(e.getDoc()),t)},tf=function(e,t){e.inline&&Ri(t.parent())},nf="bar-",rf=function(e){return"false"!==Qn(e,"data-mce-resize")},of=function(e){var t,n,r=E.none(),i=E.none(),o=E.none(),a=function(e){return"TABLE"===e.nodeName},s=function(){return i},c=function(){return o.getOr(tu.only(vt.fromDom(e.getBody()),rf))},u=function(t){return Vd(e,t)},l=function(){return Bd(e)?Zc():Kc()},d=function(e){return Cu(e).columns},f=function(r,i,o){var a=De(i,"e");if(""===n&&Yd(r),o!==t&&""!==n){fr(r,"width",n);var s=l(),c=u(r),f=Bd(e)||a?d(r)-1:0;Wc(r,o-t,f,s,c)}else if(Qs(n)){var h=parseFloat(n.replace("%","")),p=o*h/t;fr(r,"width",p+"%")}ec(n)&&Jd(r)},h=function(){i.each((function(e){e.destroy()})),o.each((function(t){tf(e,t)}))};return e.on("init",(function(){var t=ef(e,rf);if(o=E.some(t),Wd(e)&&xd(e)){var n=l(),a=Kl.create(t,n,u);a.on(),a.events.startDrag.bind((function(t){r=E.some(e.selection.getRng())})),a.events.beforeResize.bind((function(t){var n=t.table.dom;Ql(e,n,$s(n),Gs(n),nf+t.type)})),a.events.afterResize.bind((function(t){var n=t.table,i=n.dom;Zs(n),r.each((function(t){e.selection.setRng(t),e.focus()})),ed(e,i,$s(i),Gs(i),nf+t.type),e.undoManager.add()})),i=E.some(a)}})),e.on("ObjectResizeStart",(function(r){var i=r.target;if(a(i)){var o=vt.fromDom(i);B(e.dom.select(".mce-clonedresizable"),(function(t){e.dom.addClass(t,"mce-"+Id(e)+"-columns")})),!wu(o)&&Fd(e)?Kd(o):!_u(o)&&Od(e)&&Yd(o),Du(o)&&we(r.origin,nf)&&Yd(o),t=r.width,n=Pd(e)?"":Js(e,i).getOr("")}})),e.on("ObjectResized",(function(t){var n=t.target;if(a(n)){var r=vt.fromDom(n),i=t.origin;we(i,"corner-")&&f(r,i,t.width),Zs(r),rd(e,r.dom,id)}})),e.on("SwitchMode",(function(){s().each((function(t){e.mode.isReadOnly()?t.hideBars():t.showBars()}))})),{lazyResize:s,lazyWire:c,destroy:h}},af=function(e,t){return{element:e,offset:t}},sf=function(e,t,n){return e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?n(t).bind((function(t){return sf(e,t,n).orThunk((function(){return E.some(t)}))})):E.none()},cf=function(e,t){if(e.property().isText(t))return e.property().getText(t).length;var n=e.property().children(t);return n.length},uf=function(e,t){var n=sf(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(n))return af(n,cf(e,n));var r=e.property().children(n);return r.length>0?uf(e,r[r.length-1]):af(n,cf(e,n))},lf=uf,df=ji(),ff=function(e){return lf(df,e)},hf=function(e,t){var n=xr(e,"colspan");if(1===n){var r=Wa(e);r.each((function(n){var r=n.value/2;ja(e,r,n.unit),ja(t,r,n.unit)}))}},pf=dn("th"),gf=function(e){return Y(e,(function(e){return pf(e.element)}))},mf=function(e,t){return e&&t?"sectionCells":e?"section":"cells"},vf=function(e){var t="thead"===e.section,n=rr(bf(e.cells),"th");return t||n?{type:"header",subType:mf(t,n)}:"tfoot"===e.section?{type:"footer"}:{type:"body"}},bf=function(e){var t=W(e,(function(e){return pf(e.element)}));return 0===t.length?E.some("td"):t.length===e.length?E.some("th"):E.none()},yf=function(e){var t=I(e,(function(e){return vf(e).type})),n=R(t,"header"),r=R(t,"footer");if(n||r){var i=R(t,"body");return!n||i||r?n||i||!r?E.none():E.some("footer"):E.some("header")}return E.some("body")},xf=function(e){return re(e.all,(function(e){var t=vf(e);return"header"===t.type?E.from(t.subType):E.none()}))},_f=function(e,t,n){return Zt(n(e.element,t),!0,e.isLocked)},wf=function(e,t){return e.section!==t?Jt(e.element,e.cells,t,e.isNew):e},Df=function(){return{transformRow:wf,transformCell:function(e,t,n){var r=n(e.element,t),i="td"!==nn(r)?Co(r,"td"):r;return Zt(i,e.isNew,e.isLocked)}}},Cf=function(){return{transformRow:wf,transformCell:_f}},kf=function(){return{transformRow:function(e,t){var n="thead"===t?"tbody":t;return wf(e,n)},transformCell:_f}},Tf=function(){return{transformRow:b,transformCell:_f}},Sf=function(e,t){var n=ui.fromTable(e),r=xf(n).getOr(t);switch(r){case"section":return Df();case"sectionCells":return Cf();case"cells":return kf()}},Af={getTableSectionType:Sf,section:Df,sectionCells:Cf,cells:kf,fallback:Tf},Ef=function(e,t,n,r){n===r?tr(e,t):Kn(e,t,n)},Uf=function(e,t,n){ne(Bn(e,t)).fold((function(){return Ti(e,n)}),(function(e){return ki(e,n)}))},Of=function(e,t){var n=$n(e,t).getOrThunk((function(){var n=vt.fromTag(t,fn(e).dom);return"thead"===t?Uf(e,"caption,colgroup",n):"colgroup"===t?Uf(e,"caption",n):Si(e,n),n}));return Pi(n),n},Ff=function(e,t){var n=[],r=[],i=function(e){return I(e,(function(e){e.isNew&&n.push(e.element);var t=e.element;return Pi(t),B(e.cells,(function(e){e.isNew&&r.push(e.element),Ef(e.element,"colspan",e.colspan,1),Ef(e.element,"rowspan",e.rowspan,1),Si(t,e.element)})),t}))},o=function(e){return X(e,(function(e){return I(e.cells,(function(e){return Ef(e.element,"span",e.colspan,1),e.element}))}))},a=function(t,n){var r=Of(e,n),a="colgroup"===n?o:i,s=a(t);Fi(r,s)},s=function(t){$n(e,t).each(Ri)},c=function(e,t){e.length>0?a(e,t):s(t)},u=[],l=[],d=[],f=[];return B(t,(function(e){switch(e.section){case"thead":u.push(e);break;case"tbody":l.push(e);break;case"tfoot":d.push(e);break;case"colgroup":f.push(e);break}})),c(f,"colgroup"),c(u,"thead"),c(l,"tbody"),c(d,"tfoot"),{newRows:n,newCells:r}},Pf=function(e){return I(e,(function(e){var t=xo(e.element);return B(e.cells,(function(e){var n=_o(e.element);Ef(n,"colspan",e.colspan,1),Ef(n,"rowspan",e.rowspan,1),Si(t,n)})),t}))},Rf=function(e,t){return I(e,(function(e){return Vr(e,t)}))},Nf=function(e,t){return e[t]},Mf=function(e,t){if(0===e.length)return 0;var n=e[0],r=$(e,(function(e){return!t(n.element,e.element)}));return r.getOr(e.length)},If=function(e,t,n,r){var i=Nf(e,t),o="colgroup"===i.section,a=Mf(i.cells.slice(n),r),s=o?1:Mf(Rf(e.slice(t),n),r);return{colspan:a,rowspan:s}},Bf=function(e,t){var n=I(e,(function(e){return I(e.cells,D)})),r=function(e,t,r,i){for(var o=e;o<e+r;o++)for(var a=t;a<t+i;a++)n[o][a]=!0};return I(e,(function(i,o){var a=X(i.cells,(function(i,a){if(!1===n[o][a]){var s=If(e,o,a,t);return r(o,a,s.rowspan,s.colspan),[Gt(i.element,s.rowspan,s.colspan,i.isNew)]}return[]}));return Kt(i.element,a,i.section,i.isNew)}))},Lf=function(e,t,n){var r=[];B(e.colgroups,(function(i){for(var o=[],a=0;a<e.grid.columns;a++){var s=ui.getColumnAt(e,a).map((function(e){return Zt(e.element,n,!1)})).getOrThunk((function(){return Zt(t.colGap(),!0,!1)}));o.push(s)}r.push(Jt(i.element,o,"colgroup",n))}));for(var i=0;i<e.grid.rows;i++){for(var o=[],a=0;a<e.grid.columns;a++){var s=ui.getAt(e,i,a).map((function(e){return Zt(e.element,n,e.isLocked)})).getOrThunk((function(){return Zt(t.gap(),!0,!1)}));o.push(s)}var c=e.all[i],u=Jt(c.element,o,c.section,n);r.push(u)}return r},zf=function(e,t){return Lf(e,t,!1)},Wf=function(e){return Bf(e,wt)},jf=function(e,t){return re(e.all,(function(e){return q(e.cells,(function(e){return wt(t,e.element)}))}))},Hf=function(e,t,n){var r=I(t.selection,(function(t){return Er(t).bind((function(t){return jf(e,t)})).filter(n)})),i=ir(r);return cr(i.length>0,i)},Vf=function(e,t,n,r,i){return function(o,a,s,c,u){var l=ui.fromTable(a),d=E.from(null===u||void 0===u?void 0:u.section).getOrThunk(Af.fallback),f=t(l,s).map((function(t){var n=zf(l,c),r=e(n,t,wt,i(c),d),o=Zr(r.grid),a=Wf(r.grid);return{info:t,grid:a,cursor:r.cursor,lockedColumns:o}}));return f.bind((function(e){var t=Ff(a,e.grid),i=E.from(null===u||void 0===u?void 0:u.sizing).getOrThunk((function(){return gs.getTableSize(a)})),s=E.from(null===u||void 0===u?void 0:u.resize).getOrThunk(Zc);return n(a,e.grid,e.info,{sizing:i,resize:s,section:d}),r(a),Wl(o,a),tr(a,Yr),e.lockedColumns.length>0&&Kn(a,Yr,e.lockedColumns.join(",")),E.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})}))}},qf=function(e,t){return Er(t.element).bind((function(n){return jf(e,n).map((function(e){var n=ie(ie({},e),{generators:t.generators,clipboard:t.clipboard});return n}))}))},$f=function(e,t){return Hf(e,t,C).map((function(e){return{cells:e,generators:t.generators,clipboard:t.clipboard}}))},Gf=function(e,t){return t.mergable},Xf=function(e,t){return t.unmergable},Yf=function(e,t){return Hf(e,t,C)},Kf=function(e,t){return Hf(e,t,(function(e){return!e.isLocked}))},Zf=function(e,t){return jf(e,t).exists((function(e){return!e.isLocked}))},Jf=function(e,t){return Y(t,(function(t){return Zf(e,t)}))},Qf=function(e,t){return Gf(e,t).filter((function(t){return Jf(e,t.cells)}))},eh=function(e,t){return Xf(e,t).filter((function(t){return Jf(e,t)}))},th=function(e,t,n,r){var i=Gr(e).rows;if(0===i.length)return e;for(var o=t.startRow;o<=t.finishRow;o++)for(var a=t.startCol;a<=t.finishCol;a++){var s=i[o],c=Vr(s,a).isLocked;Wr(s,a,Zt(r(),!1,c))}return e},nh=function(e,t,n,r){for(var i=Gr(e).rows,o=!0,a=0;a<i.length;a++)for(var s=0;s<$r(i[0]);s++){var c=i[a],u=Vr(c,s),l=u.element,d=n(l,t);!0===d&&!1===o?Wr(c,s,Zt(r(),!0,u.isLocked)):!0===d&&(o=!1)}return e},rh=function(e,t){return H(e,(function(e,n){return N(e,(function(e){return t(e.element,n.element)}))?e:e.concat([n])}),[])},ih=function(e,t,n,r){return t>0&&t<e[0].cells.length&&B(e,(function(e){var i=e.cells[t-1],o=e.cells[t],a=n(o.element,i.element);a&&Wr(e,t,Zt(r(),!0,o.isLocked))})),e},oh=function(e,t,n,r){var i=Gr(e).rows;if(t>0&&t<i.length){var o=i[t-1].cells,a=rh(o,n);B(a,(function(e){for(var o=E.none(),a=t;a<i.length;a++)for(var s=function(t){var s=i[a],c=Vr(s,t),u=n(c.element,e.element);u&&(o.isNone()&&(o=E.some(r())),o.each((function(e){Wr(s,t,Zt(e,!0,c.isLocked))})))},c=0;c<$r(i[0]);c++)s(c)}))}return e},ah=function(e){var t=function(t){return ah(e)},n=function(t){return ah(e)},r=function(t){return ah(t(e))},i=function(t){return ah(e)},o=function(t){t(e)},a=function(t){return t(e)},s=function(t,n){return n(e)},c=function(t){return t(e)},u=function(t){return t(e)},l=function(){return E.some(e)};return{isValue:C,isError:D,getOr:v(e),getOrThunk:v(e),getOrDie:v(e),or:t,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:c,forall:u,toOptional:l}},sh=function(e){var t=function(e){return e()},n=function(){return w(String(e))()},r=b,i=function(e){return e()},o=function(t){return sh(e)},a=function(t){return sh(t(e))},s=function(t){return sh(e)},c=function(t,n){return t(e)};return{isValue:D,isError:C,getOr:b,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:c,map:o,mapError:a,each:p,bind:s,exists:D,forall:C,toOptional:E.none}},ch=function(e,t){return e.fold((function(){return sh(t)}),ah)},uh={value:ah,error:sh,fromOption:ch},lh=function(e,t,n){if(e.row>=t.length||e.column>$r(t[0]))return uh.error("invalid start address out of table bounds, row: "+e.row+", column: "+e.column);var r=t.slice(e.row),i=r[0].cells.slice(e.column),o=$r(n[0]),a=n.length;return uh.value({rowDelta:r.length-a,colDelta:i.length-o})},dh=function(e,t){var n=$r(e[0]),r=$r(t[0]);return{rowDelta:0,colDelta:n-r}},fh=function(e,t){var n=e.length,r=t.length;return{rowDelta:n-r,colDelta:0}},hh=function(e,t,n,r){var i="colgroup"===t.section?n.col:n.cell;return M(e,(function(e){return Zt(i(),!0,r(e))}))},ph=function(e,t,n,r){var i=e[e.length-1];return e.concat(M(t,(function(){var e="colgroup"===i.section?n.colgroup:n.row,t=Xr(i,e,b),o=hh(t.cells.length,t,n,(function(e){return Lt(r,e.toString())}));return jr(t,o)})))},gh=function(e,t,n,r){return I(e,(function(e){var i=hh(t,e,n,D);return Lr(e,r,i)}))},mh=function(e,t,n){return I(e,(function(e){return H(n,(function(n,r){var i=hh(1,e,t,C)[0];return zr(n,r,i)}),e)}))},vh=function(e,t,n){var r=t.colDelta<0?gh:b,i=t.rowDelta<0?ph:b,o=Zr(e),a=$r(e[0]),s=N(o,(function(e){return e===a-1})),c=r(e,Math.abs(t.colDelta),n,s?a-1:a),u=Zr(c);return i(c,Math.abs(t.rowDelta),n,Z(u,C))},bh=function(e,t,n,r){var i=Vr(e[t],n),o=x(r,i.element),a=e[t];return e.length>1&&$r(a)>1&&(n>0&&o(qr(a,n-1))||n<a.cells.length-1&&o(qr(a,n+1))||t>0&&o(qr(e[t-1],n))||t<e.length-1&&o(qr(e[t+1],n)))},yh=function(e,t,n,r,i,o){for(var a=e.row,s=e.column,c=n.length,u=$r(n[0]),l=a+c,d=s+u+o.length,f=Z(o,C),h=a;h<l;h++)for(var p=0,g=s;g<d;g++)if(f[g])p++;else{bh(t,h,g,i)&&nh(t,qr(t[h],g),i,r.cell);var m=g-s-p,v=Vr(n[h-a],m),b=v.element,y=r.replace(b);Wr(t[h],g,Zt(y,!0,v.isLocked))}return t},xh=function(e,t,n){var r=$r(t[0]),i=Gr(t).cols.length+e.row,o=M(r-e.column,(function(t){return t+e.column})),a=q(o,(function(e){return Y(n,(function(t){return t!==e}))})).getOr(r-1);return{row:i,column:a}},_h=function(e,t,n){return W(n,(function(n){return n>=e.column&&n<=$r(t[0])+e.column}))},wh=function(e,t,n,r,i){var o=Zr(t),a=xh(e,t,o),s=Gr(n).rows,c=_h(a,s,o),u=lh(a,t,s);return u.map((function(e){var n=ie(ie({},e),{colDelta:e.colDelta-c.length}),o=vh(t,n,r),u=Zr(o),l=_h(a,s,u);return yh(a,o,s,r,i,l)}))},Dh=function(e,t,n,r,i){ih(t,e,i,r.cell);var o=fh(n,t),a=vh(n,o,r),s=fh(t,a),c=vh(t,s,r);return I(c,(function(t,n){return Lr(t,e,a[n].cells)}))},Ch=function(e,t,n,r,i){oh(t,e,i,r.cell);var o=Zr(t),a=dh(t,n),s=ie(ie({},a),{colDelta:a.colDelta-o.length}),c=vh(t,s,r),u=Gr(c),l=u.cols,d=u.rows,f=Zr(c),h=dh(n,t),p=ie(ie({},h),{colDelta:h.colDelta+f.length}),g=mh(n,r,f),m=vh(g,p,r);return l.concat(d.slice(0,e)).concat(m).concat(d.slice(e,d.length))},kh=function(e,t,n,r){return Xr(e,(function(e){return r(e,n)}),t)},Th=function(e,t,n,r,i){var o=Gr(e),a=o.rows,s=o.cols,c=a.slice(0,t),u=a.slice(t),l=kh(a[n],(function(e,n){var o=t>0&&t<a.length&&r(qr(a[t-1],n),qr(a[t],n)),s=o?Vr(a[t],n):Zt(i(e.element,r),!0,e.isLocked);return s}),r,i);return s.concat(c).concat([l]).concat(u)},Sh=function(e,t,n,r,i,o,a){if("colgroup"!==n&&r)return Vr(e,t);var s=Vr(e,i);return Zt(a(s.element,o),!0,!1)},Ah=function(e,t,n,r,i){return I(e,(function(e){var o=t>0&&t<$r(e)&&r(qr(e,t-1),qr(e,t)),a=Sh(e,t,e.section,o,n,r,i);return zr(e,t,a)}))},Eh=function(e,t){return X(e,(function(e){var n=e.cells,r=j(t,(function(e,t){return t>=0&&t<e.length?e.slice(0,t).concat(e.slice(t+1)):e}),n);return r.length>0?[Jt(e.element,r,e.section,e.isNew)]:[]}))},Uh=function(e,t,n){var r=Gr(e),i=r.rows,o=r.cols;return o.concat(i.slice(0,t)).concat(i.slice(n+1))},Oh=function(e,t,n,r){return void 0!==qr(e[t],n)&&t>0&&r(qr(e[t-1],n),qr(e[t],n))},Fh=function(e,t,n){return t>0&&n(qr(e,t-1),qr(e,t))},Ph=function(e,t,n,r){return Oh(e,t,n,r)||Fh(e[t],n,r)},Rh=function(e,t){var n=Y(t,b)&&gf(e.cells);return n?C:function(e,n,r){var i=nn(e.element);return!("th"===i&&t[r])}},Nh=function(e,t){var n=Y(t,b)&&gf(e);return n?C:function(e,n,r){var i=nn(e.element);return!("th"===i&&t[n])}},Mh=function(e,t,n,r){var i=function(e){return"row"===e?wr(t):_r(t)},o=function(e){return i(e)?e+"group":e};if(e)return pf(t)?o(n):null;if(r&&pf(t)){var a="row"===n?"col":"row";return o(a)}return null},Ih=function(e,t){return function(n,r,i){return E.some(Mh(e,n.element,"col",t[i]))}},Bh=function(e,t){return function(n,r){return E.some(Mh(e,n.element,"row",t[r]))}},Lh=function(e,t,n){return Zt(n(e.element,t),!0,e.isLocked)},zh=function(e,t,n,r,i,o,a){var s=function(e){return N(t,(function(t){return n(e.element,t.element)}))};return I(e,(function(e,t){return Hr(e,(function(e,c){if(s(e)){var u=a(e,t,c)?i(e,n,r):e;return o(u,t,c).each((function(e){Jn(u.element,{scope:E.from(e)})})),u}return e}))}))},Wh=function(e,t,n){return X(e,(function(r,i){return Ph(e,i,t,n)?[]:[Vr(r,t)]}))},jh=function(e,t,n){var r=e[t];return X(r.cells,(function(r,i){return Ph(e,t,i,n)?[]:[r]}))},Hh=function(e,t,n,r,i){var o=Gr(e).rows,a=X(t,(function(e){return Wh(o,e,r)})),s=I(e,(function(e){return gf(e.cells)})),c=Nh(a,s),u=Bh(n,s);return zh(e,a,r,i,Lh,u,c)},Vh=function(e,t,n,r,i,o,a){var s=Gr(e),c=s.cols,u=s.rows,l=u[t[0]],d=X(t,(function(e){return jh(u,e,i)})),f=I(l.cells,(function(e,t){return gf(Wh(u,t,i))})),h=oe([],u,!0);B(t,(function(e){h[e]=a.transformRow(u[e],n)}));var p=c.concat(h),g=Rh(l,f),m=Ih(r,f);return zh(p,d,i,o,a.transformCell,m,g)},qh=function(e,t,n,r){var i=Gr(e).rows,o=I(t,(function(e){return Vr(i[e.row],e.column)}));return zh(e,o,n,r,Lh,E.none,C)},$h=function(e){var t=function(e,t){var n=N(e,(function(e){return e.column===t.column}));return n?e:e.concat([t])};return H(e,t,[]).sort((function(e,t){return e.column-t.column}))},Gh=dn("col"),Xh=dn("colgroup"),Yh=function(e){return"tr"===nn(e)||Xh(e)},Kh=function(e){var t=yr(e,"colspan",1),n=yr(e,"rowspan",1);return{element:e,colspan:t,rowspan:n}},Zh=function(e,t){void 0===t&&(t=Kh);var n=function(t){return Gh(t.element)?e.col(t):e.cell(t)},r=function(t){return Xh(t.element)?e.colgroup(t):e.row(t)},i=function(e){if(Yh(e))return r({element:e});var i=n(t(e));return o=E.some({item:e,replacement:i}),i},o=E.none(),a=function(e,t){return o.fold((function(){return i(e)}),(function(n){return t(e,n.item)?n.replacement:i(e)}))};return{getOrInit:a}},Jh=function(e){return function(t){var n=[],r=function(e,t){return q(n,(function(n){return t(n.item,e)}))},i=function(r){var i="td"===e?{scope:null}:{},o=t.replace(r,e,i);return n.push({item:r,sub:o}),o},o=function(e,t){return Yh(e)||Gh(e)?e:r(e,t).fold((function(){return i(e)}),(function(n){return t(e,n.item)?n.sub:i(e)}))};return{replaceOrInit:o}}},Qh=function(e){return er(e,"scope").map((function(e){return e.substr(0,3)}))},ep=function(e){var t=function(t){var n=Qh(t);return n.each((function(e){return Kn(t,"scope",e)})),function(){var r=e.cell({element:t,colspan:1,rowspan:1});return vr(r,"width"),vr(t,"width"),n.each((function(e){return Kn(r,"scope",e)})),r}},n=function(e){var t=function(){var t=ir(I(e,Qh));if(0===t.length)return E.none();var n=t[0],r=["row","col"],i=N(t,(function(e){return e!==n&&R(r,e)}));return i?E.none():E.from(n)};return vr(e[0],"width"),t().fold((function(){return tr(e[0],"scope")}),(function(t){return Kn(e[0],"scope",t+"group")})),v(e[0])};return{unmerge:t,merge:n}},tp={modification:Zh,transform:Jh,merging:ep},np=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],rp=function(e,t){var n=e.property().name(t);return R(["ol","ul"],n)},ip=function(e,t){var n=e.property().name(t);return R(np,n)},op=function(e,t){return R(["br","img","hr","input"],e.property().name(t))},ap=ji(),sp=function(e){return ip(ap,e)},cp=function(e){return rp(ap,e)},up=function(e){return op(ap,e)},lp=function(e){var t=function(e){return"br"===nn(e)},n=function(e){return Y(e,(function(e){return t(e)||cn(e)&&0===Bi(e).trim().length}))},r=function(e){return"li"===nn(e)||Wn(e,cp).isSome()},i=function(e){return yn(e).map((function(e){return!!sp(e)||!!up(e)&&"img"!==nn(e)})).getOr(!1)},o=function(e){return Es(e).bind((function(n){var o=i(n);return gn(n).map((function(i){return!0===o||r(i)||t(n)||sp(i)&&!wt(e,i)?[]:[vt.fromTag("br")]}))})).getOr([])},a=function(){var t=X(e,(function(e){var t=xn(e);return n(t)?[]:t.concat(o(e))}));return 0===t.length?[vt.fromTag("br")]:t},s=a();Pi(e[0]),Fi(e[0],s)},dp=function(e){return wl(e,!0)},fp=function(e){var t=Ur(e);0===t.length&&Ri(e)},hp=function(e,t){return{grid:e,cursor:t}},pp=function(e){return re(e,(function(e){return re(e.cells,(function(e){var t=e.element;return cr(dp(t),t)}))}))},gp=function(e,t,n){var r,i,o=Gr(e).rows;return E.from(null===(i=null===(r=o[t])||void 0===r?void 0:r.cells[n])||void 0===i?void 0:i.element).filter(dp).orThunk((function(){return pp(o)}))},mp=function(e,t,n){var r=gp(e,t,n);return hp(e,r)},vp=function(e){var t=function(e,t){var n=N(e,(function(e){return e.row===t.row}));return n?e:e.concat([t])};return H(e,t,[]).sort((function(e,t){return e.row-t.row}))},bp=function(e,t,n,r){var i=t[0].row,o=vp(t),a=j(o,(function(e,t){var o=Th(e.grid,i,t.row+e.delta,n,r.getOrInit);return{grid:o,delta:e.delta+1}}),{grid:e,delta:0}).grid;return mp(a,i,t[0].column)},yp=function(e,t,n,r){var i=vp(t),o=i[i.length-1],a=o.row+o.rowspan,s=j(i,(function(e,t){return Th(e,a,t.row,n,r.getOrInit)}),e);return mp(s,a,t[0].column)},xp=function(e,t,n,r){var i=t.details,o=$h(i),a=o[0].column,s=j(o,(function(e,t){var i=Ah(e.grid,a,t.column+e.delta,n,r.getOrInit);return{grid:i,delta:e.delta+1}}),{grid:e,delta:0}).grid;return mp(s,i[0].row,a)},_p=function(e,t,n,r){var i=t.details,o=i[i.length-1],a=o.column+o.colspan,s=$h(i),c=j(s,(function(e,t){return Ah(e,a,t.column,n,r.getOrInit)}),e);return mp(c,i[0].row,a)},wp=function(e,t,n,r){var i=$h(t),o=I(i,(function(e){return e.column})),a=Hh(e,o,!0,n,r.replaceOrInit);return mp(a,t[0].row,t[0].column)},Dp=function(e,t,n,r){var i=qh(e,t,n,r.replaceOrInit);return mp(i,t[0].row,t[0].column)},Cp=function(e,t,n,r){var i=$h(t),o=I(i,(function(e){return e.column})),a=Hh(e,o,!1,n,r.replaceOrInit);return mp(a,t[0].row,t[0].column)},kp=function(e,t,n,r){var i=qh(e,t,n,r.replaceOrInit);return mp(i,t[0].row,t[0].column)},Tp=function(e,t){return function(n,r,i,o,a){var s=vp(r),c=I(s,(function(e){return e.row})),u=Vh(n,c,e,t,i,o.replaceOrInit,a);return mp(u,r[0].row,r[0].column)}},Sp=Tp("thead",!0),Ap=Tp("tbody",!1),Ep=Tp("tfoot",!1),Up=function(e,t,n,r){var i=$h(t.details),o=Eh(e,I(i,(function(e){return e.column}))),a=o.length>0?o[0].cells.length-1:0;return mp(o,i[0].row,Math.min(i[0].column,a))},Op=function(e,t,n,r){var i=vp(t),o=Uh(e,i[0].row,i[i.length-1].row),a=o.length>0?o.length-1:0;return mp(o,Math.min(t[0].row,a),t[0].column)},Fp=function(e,t,n,r){var i=t.cells;lp(i);var o=th(e,t.bounds,n,r.merge(i));return hp(o,E.from(i[0]))},Pp=function(e,t,n,r){var i=function(e,t){return nh(e,t,n,r.unmerge(t))},o=j(t,i,e);return hp(o,E.from(t[0]))},Rp=function(e,t,n,r){var i=function(e,t){var n=ui.fromTable(e);return Lf(n,t,!0)},o=i(t.clipboard,t.generators),a=qt(t.row,t.column),s=wh(a,e,o,t.generators,n);return s.fold((function(){return hp(e,E.some(t.element))}),(function(e){return mp(e,t.row,t.column)}))},Np=function(e,t,n){var r=Br(e,n.section),i=ui.generate(r);return Lf(i,t,!0)},Mp=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[0].column,a=i[t.cells[0].row],s=Np(t.clipboard,t.generators,a),c=Dh(o,e,s,t.generators,n);return mp(c,t.cells[0].row,t.cells[0].column)},Ip=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[t.cells.length-1].column+t.cells[t.cells.length-1].colspan,a=i[t.cells[0].row],s=Np(t.clipboard,t.generators,a),c=Dh(o,e,s,t.generators,n);return mp(c,t.cells[0].row,t.cells[0].column)},Bp=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[0].row,a=i[o],s=Np(t.clipboard,t.generators,a),c=Ch(o,e,s,t.generators,n);return mp(c,t.cells[0].row,t.cells[0].column)},Lp=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[t.cells.length-1].row+t.cells[t.cells.length-1].rowspan,a=i[t.cells[0].row],s=Np(t.clipboard,t.generators,a),c=Ch(o,e,s,t.generators,n);return mp(c,t.cells[0].row,t.cells[0].column)},zp=function(e,t){var n=ui.fromTable(e),r=Yf(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].column,i=t.column+t.colspan,o=G(I(n.all,(function(e){return W(e.cells,(function(e){return e.column>=r&&e.column<i}))})));return bf(o)})).getOr("")},Wp=function(e,t){var n=ui.fromTable(e),r=Yf(n,t);return r.bind(bf).getOr("")},jp=function(e,t){var n=ui.fromTable(e),r=Yf(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].row,i=t.row+t.rowspan,o=n.all.slice(r,i);return yf(o)})).getOr("")},Hp=function(e,t,n,r){return Vc(e,t,n,r.sizing)},Vp=function(e,t,n,r){return Hc(e,t,n,r.sizing,r.resize)},qp=function(e,t){return N(t,(function(e){return 0===e.column&&e.isLocked}))},$p=function(e,t){return N(t,(function(t){return t.column+t.colspan>=e.grid.columns&&t.isLocked}))},Gp=function(e,t){var n=Wo(e),r=$h(t);return H(r,(function(e,t){var r=n[t.column],i=r.map(Bo).getOr(0);return e+i}),0)},Xp=function(e){return function(t,n){return Yf(t,n).filter((function(n){var r=e?qp:$p;return!r(t,n)})).map((function(e){return{details:e,pixelDelta:Gp(t,e)}}))}},Yp=function(e,t){return Kf(e,t).map((function(t){return{details:t,pixelDelta:-Gp(e,t)}}))},Kp=function(e){return function(t,n){return $f(t,n).filter((function(n){var r=e?qp:$p;return!r(t,n.cells)}))}},Zp=tp.transform("th"),Jp=tp.transform("td"),Qp=Vf(bp,Yf,p,p,tp.modification),eg=Vf(yp,Yf,p,p,tp.modification),tg=Vf(xp,Xp(!0),Vp,p,tp.modification),ng=Vf(_p,Xp(!1),Vp,p,tp.modification),rg=Vf(Up,Yp,Vp,fp,tp.modification),ig=Vf(Op,Yf,p,fp,tp.modification),og=Vf(wp,Kf,p,p,Zp),ag=Vf(Cp,Kf,p,p,Jp),sg=Vf(Sp,Kf,p,p,Zp),cg=Vf(Ap,Kf,p,p,Jp),ug=Vf(Ep,Kf,p,p,Jp),lg=Vf(Dp,Kf,p,p,Zp),dg=Vf(kp,Kf,p,p,Jp),fg=Vf(Fp,Qf,Hp,p,tp.merging),hg=Vf(Pp,eh,Hp,p,tp.merging),pg=Vf(Rp,qf,Hp,p,tp.modification),gg=Vf(Mp,Kp(!0),p,p,tp.modification),mg=Vf(Ip,Kp(!1),p,p,tp.modification),vg=Vf(Bp,$f,p,p,tp.modification),bg=Vf(Lp,$f,p,p,tp.modification),yg=zp,xg=Wp,_g=jp,wg=function(e,t,n){var r=function(e){return"table"===nn(qs(e))},i=function(t){return!1===r(e)||Cu(t).rows>1},o=function(t){return!1===r(e)||Cu(t).columns>1},a=zd(e),s=Ld(e)?p:hf,c=function(t){switch(Md(e)){case"section":return Af.section();case"sectionCells":return Af.sectionCells();case"cells":return Af.cells();default:return Af.getTableSectionType(t,"section")}},u=function(n,r){return r.cursor.fold((function(){var r=Ur(n);return te(r).filter(On).map((function(r){t.clear(n);var i=e.dom.createRng();return i.selectNode(r.dom),e.selection.setRng(i),Kn(r,"data-mce-selected","1"),i}))}),(function(r){var i=ff(r),o=e.dom.createRng();return o.setStart(i.element.dom,i.offset),o.setEnd(i.element.dom,i.offset),e.selection.setRng(o),t.clear(n),E.some(o)}))},l=function(t,n,r,i,o){return function(s,l,d){void 0===d&&(d=!1),Zs(s);var f=i(),h=vt.fromDom(e.getDoc()),p=zs(r,h,a),g={sizing:Vd(e,s),resize:Ld(e)?Kc():Zc(),section:c(s)};return n(s)?t(f,s,l,p,g).bind((function(t){B(t.newRows,(function(t){Zl(e,t.dom)})),B(t.newCells,(function(t){Jl(e,t.dom)}));var n=u(s,t);return On(s)&&(Zs(s),d||rd(e,s.dom,o)),n.map((function(e){return{rng:e,effect:o}}))})):E.none()}},d=l(ig,i,p,n,od),f=l(rg,o,p,n,od),h=l(Qp,C,p,n,od),g=l(eg,C,p,n,od),m=l(tg,C,s,n,od),v=l(ng,C,s,n,od),b=l(fg,C,p,n,od),y=l(hg,C,p,n,od),x=l(gg,C,p,n,od),_=l(mg,C,p,n,od),w=l(vg,C,p,n,od),D=l(bg,C,p,n,od),k=l(pg,C,p,n,ad),T=l(lg,C,p,n,od),S=l(dg,C,p,n,od),A=l(og,C,p,n,od),U=l(ag,C,p,n,od),O=l(sg,C,p,n,od),F=l(cg,C,p,n,od),P=l(ug,C,p,n,od),R=xg,N=yg,M=_g;return{deleteRow:d,deleteColumn:f,insertRowsBefore:h,insertRowsAfter:g,insertColumnsBefore:m,insertColumnsAfter:v,mergeCells:b,unmergeCells:y,pasteColsBefore:x,pasteColsAfter:_,pasteRowsBefore:w,pasteRowsAfter:D,pasteCells:k,makeCellsHeader:T,unmakeCellsHeader:S,makeColumnsHeader:A,unmakeColumnsHeader:U,makeRowsHeader:O,makeRowsBody:F,makeRowsFooter:P,getTableRowType:M,getTableCellType:R,getTableColType:N}},Dg={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},Cg=function(){return vt.fromTag("th")},kg=function(){return vt.fromTag("td")},Tg=function(){return vt.fromTag("col")},Sg=function(e,t,n,r){for(var i=vt.fromTag("tr"),o=0;o<e;o++){var a=r<t||o<n?Cg():kg();o<n&&Kn(a,"scope","row"),r<t&&Kn(a,"scope","col"),Si(a,vt.fromTag("br")),Si(i,a)}return i},Ag=function(e){var t=vt.fromTag("colgroup");return M(e,(function(){return Si(t,Tg())})),t},Eg=function(e,t,n,r){return M(e,(function(e){return Sg(t,n,r,e)}))},Ug=function(e,t,n,r,i,o){void 0===o&&(o=Dg);var a=vt.fromTag("table"),s="cells"!==i;hr(a,o.styles),Zn(a,o.attributes),o.colGroups&&Si(a,Ag(t));var c=Math.min(e,n);if(s&&n>0){var u=vt.fromTag("thead");Si(a,u);var l="sectionCells"===i?c:0,d=Eg(n,t,l,r);Fi(u,d)}var f=vt.fromTag("tbody");Si(a,f);var h=s?e-c:e,p=s?0:n,g=Eg(h,t,p,r);return Fi(f,g),a},Og=function(e){return e.dom.innerHTML},Fg=function(e){var t=vt.fromTag("div"),n=vt.fromDom(e.dom.cloneNode(!0));return Si(t,n),Og(t)},Pg=function(e,t){e.selection.select(t.dom,!0),e.selection.collapse(!0)},Rg=function(e,t){Gn(t,"td,th").each(x(Pg,e))},Ng=function(e,t){B(Ln(t,"tr"),(function(t){Zl(e,t.dom),B(Ln(t,"th,td"),(function(t){Jl(e,t.dom)}))}))},Mg=function(e){return i(e)&&-1!==e.indexOf("%")},Ig=function(e,t,n,r,i){var o=yd(e),a={styles:o,attributes:bd(e),colGroups:Nd(e)};return e.undoManager.ignore((function(){var o=Ug(n,t,i,r,Md(e),a);Kn(o,"data-mce-id","__mce");var s=Fg(o);e.insertContent(s),e.addVisual()})),Gn(qs(e),'table[data-mce-id="__mce"]').map((function(t){return Fd(e)?Kd(t):Pd(e)?Zd(t):(Od(e)||Mg(o.width))&&Yd(t),Zs(t),tr(t,"data-mce-id"),Ng(e,t),Rg(e,t),t.dom})).getOr(null)},Bg=function(e,t,n,r,i){void 0===r&&(r={});var o=function(e){return h(e)&&e>0};if(o(t)&&o(n)){var a=r.headerRows||0,s=r.headerColumns||0;return Ig(e,n,t,s,a)}return console.error(i),null},Lg=function(e){return function(){return e().fold((function(){return[]}),(function(e){return I(e,(function(e){return e.dom}))}))}},zg=function(e){return function(t){var n=t.length>0?E.some(Hs(t)):E.none();e(n)}},Wg=function(e){return function(t,n,r){void 0===r&&(r={});var i=Bg(e,n,t,r,"Invalid values for insertTable - rows and columns values are required to insert a table.");return e.undoManager.add(),i}},jg=function(e,t,n,r){return{insertTable:Wg(e),setClipboardRows:zg(t.setRows),getClipboardRows:Lg(t.getRows),setClipboardCols:zg(t.setColumns),getClipboardCols:Lg(t.getColumns),resizeHandler:n,selectionTargets:r}},Hg=function(e,t,n){var r=yr(e,t,1);1===n||r<=1?tr(e,t):Kn(e,t,Math.min(n,r))},Vg=function(e,t,n){if(ui.hasColumns(e)){var r=W(ui.justColumns(e),(function(e){return e.column>=t&&e.column<n})),i=I(r,(function(e){var r=_o(e.element);return Hg(r,"span",n-t),r})),o=vt.fromTag("colgroup");return Fi(o,i),[o]}return[]},qg=function(e,t,n){return I(e.all,(function(e){var r=W(e.cells,(function(e){return e.column>=t&&e.column<n})),i=I(r,(function(e){var r=_o(e.element);return Hg(r,"colspan",n-t),r})),o=vt.fromTag("tr");return Fi(o,i),o}))},$g=function(e,t){var n=ui.fromTable(e),r=Kf(n,t);return r.map((function(e){var t=e[e.length-1],r=e[0].column,i=t.column+t.colspan,o=Vg(n,r,i),a=qg(n,r,i);return oe(oe([],o,!0),a,!0)}))},Gg=function(e,t,n){var r=ui.fromTable(e),i=Yf(r,t);return i.bind((function(e){var t=Lf(r,n,!1),i=Gr(t).rows,o=i.slice(e[0].row,e[e.length-1].row+e[e.length-1].rowspan),a=X(o,(function(e){var t=W(e.cells,(function(e){return!e.isLocked}));return t.length>0?[ie(ie({},e),{cells:t})]:[]})),s=Wf(a);return cr(s.length>0,s)})).map((function(e){return Pf(e)}))},Xg=tinymce.util.Tools.resolve("tinymce.util.Tools"),Yg=function(e,t,n){var r,i=e.select("td,th",t),o=function(t,r){for(var i=0;i<r.length;i++){var o=e.getStyle(r[i],n);if("undefined"===typeof t&&(t=o),t!==o)return""}return t};return o(r,i)},Kg=function(e,t,n){n&&e.formatter.apply("align"+n,{},t)},Zg=function(e,t,n){n&&e.formatter.apply("valign"+n,{},t)},Jg=function(e,t){Xg.each("left center right".split(" "),(function(n){e.formatter.remove("align"+n,{},t)}))},Qg=function(e,t){Xg.each("top middle bottom".split(" "),(function(n){e.formatter.remove("valign"+n,{},t)}))},em=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],tm=function(e){return{value:e}},nm=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,rm=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,im=function(e){return nm.test(e)||rm.test(e)},om=function(e){return xe(e,"#").toUpperCase()},am=function(e){return im(e)?E.some({value:om(e)}):E.none()},sm=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},cm=function(e){var t=sm(e.red)+sm(e.green)+sm(e.blue);return tm(t)},um=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,lm=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,dm=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},fm=function(e,t,n,r){var i=parseInt(e,10),o=parseInt(t,10),a=parseInt(n,10),s=parseFloat(r);return dm(i,o,a,s)},hm=function(e){if("transparent"===e)return E.some(dm(0,0,0,0));var t=um.exec(e);if(null!==t)return E.some(fm(t[1],t[2],t[3],"1"));var n=lm.exec(e);return null!==n?E.some(fm(n[1],n[2],n[3],n[4])):E.none()},pm=function(e){return am(e).orThunk((function(){return hm(e).map(cm)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,i=r[0],o=r[1],a=r[2],s=r[3];return cm(dm(i,o,a,s))}))},gm=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},mm=function(e){var t=gm(E.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(E.none())},i=function(){return t.get().isSome()},o=function(){return t.get()},a=function(e){n(),t.set(E.some(e))};return{clear:r,isSet:i,get:o,set:a}},vm=function(){return mm((function(e){return e.unbind()}))},bm=function(){var e=mm(p),t=function(t){return e.get().each(t)};return ie(ie({},e),{on:t})},ym=function(e,t,n,r){return function(i){var o=vm(),a=Se(r),s=function(){var s=Dc(t),c=function(t){return e.formatter.match(n,{value:r},t.dom,a)};a?(i.setActive(!N(s,c)),o.set(e.formatter.formatChanged(n,(function(e){return i.setActive(!e)}),!0))):(i.setActive(Y(s,c)),o.set(e.formatter.formatChanged(n,i.setActive,!1,{value:r})))};return e.initialized?s():e.on("init",s),o.clear}},xm=function(e){return zt(e,"menu")},_m=function(e){return I(e,(function(e){var t=e.text||e.title;return xm(e)?{text:t,items:_m(e.menu)}:{text:t,value:e.value}}))},wm=function(e,t,n,r,i){return I(n,(function(n){var o=n.text||n.title;return xm(n)?{type:"nestedmenuitem",text:o,getSubmenuItems:function(){return wm(e,t,n.menu,r,i)}}:{text:o,type:"togglemenuitem",onAction:function(){return i(n.value)},onSetup:ym(e,t,r,n.value)}}))},Dm=function(e,t){return function(n){var r;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[t]=n,r))}},Cm=function(e){return X(e,(function(e){return xm(e)?[ie(ie({},e),{menu:Cm(e.menu)})]:Te(e.value)?[e]:[]}))},km=function(e,t,n,r,i){return function(o){return o(wm(e,t,n,r,i))}},Tm=function(e,t,n){var r=I(t,(function(e){return{text:e.title,value:"#"+pm(e.value).value,type:"choiceitem"}}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:r.length>0?r:void 0,allowCustomColors:!1},onAction:function(t){var r,i="remove"===t.value?"":t.value;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[n]=i,r))}}]},Sm=function(e){return function(){var t=e.queryCommandValue("mceTableRowType"),n="header"===t?"body":"header";e.execCommand("mceTableRowType",!1,{type:n})}},Am=function(e){return function(){var t=e.queryCommandValue("mceTableColType"),n="th"===t?"td":"th";e.execCommand("mceTableColType",!1,{type:n})}},Em=function(e){var t=_m(Ad(e));return t.length>0?E.some({name:"class",type:"listbox",label:"Class",items:t}):E.none()},Um=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:em}],Om=function(e){return Um.concat(Em(e).toArray())},Fm=function(e,t){var n=[{text:"Select...",value:""}],r=[{name:"borderstyle",type:"listbox",label:"Border style",items:n.concat(_m(vd(e)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}],i={name:"borderwidth",type:"input",label:"Border width"},o="cell"===t?[i].concat(r):r;return{title:"Advanced",name:"advanced",items:o}},Pm=function(e){return function(t,n){var r=t.dom,i=function(t,i){e&&!i||r.setAttrib(n,t,i)},o=function(t,i){e&&!i||r.setStyle(n,t,i)},a=function(r,i){e&&!i||(""===i?t.formatter.remove(r,{value:null},n,!0):t.formatter.apply(r,{value:i},n))};return{setAttrib:i,setStyle:o,setFormat:a}}},Rm={normal:Pm(!1),ifTruthy:Pm(!0)},Nm=function(e){return function(t){return we(t,"rgb")?e.toHex(t):t}},Mm=function(e,t){var n=vt.fromDom(t);return{borderwidth:mr(n,"border-width").getOr(""),borderstyle:mr(n,"border-style").getOr(""),bordercolor:mr(n,"border-color").map(Nm(e)).getOr(""),backgroundcolor:mr(n,"background-color").map(Nm(e)).getOr("")}},Im=function(e){var t=e[0],n=e.slice(1);return B(n,(function(e){B(St(t),(function(n){Et(e,(function(e,r){var i=t[n];""!==i&&n===r&&i!==e&&(t[n]="")}))}))})),t},Bm=function(e,t,n,r){return q(e,(function(e){return!u(n.formatter.matchNode(r,t+e))})).getOr("")},Lm=x(Bm,["left","center","right"],"align"),zm=x(Bm,["top","middle","bottom"],"valign"),Wm=function(e,t){var n=yd(e),r=bd(e),i=function(e){return{borderstyle:Bt(n,"border-style").getOr(""),bordercolor:Nm(e)(Bt(n,"border-color").getOr("")),backgroundcolor:Nm(e)(Bt(n,"background-color").getOr(""))}},o={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},a=function(){var t=n["border-width"];return Sd(e)&&t?{border:t}:Bt(r,"border").fold((function(){return{}}),(function(e){return{border:e}}))},s=t?i(e.dom):{},c=function(){var e=Bt(n,"border-spacing").or(Bt(r,"cellspacing")).fold((function(){return{}}),(function(e){return{cellspacing:e}})),t=Bt(n,"border-padding").or(Bt(r,"cellpadding")).fold((function(){return{}}),(function(e){return{cellpadding:e}}));return ie(ie({},e),t)},u=ie(ie(ie(ie(ie(ie({},o),n),r),s),a()),c());return u},jm=function(e){return Fr(vt.fromDom(e)).map((function(t){var n={selection:Hs(e.cells)};return _g(t,n)})).getOr("")},Hm=function(e,t,n){var r=function(t,n){var r=mr(vt.fromDom(n),"border-width");return Sd(e)&&r.isSome()?r.getOr(""):t.getAttrib(n,"border")||Yg(e.dom,n,"border-width")||Yg(e.dom,n,"border")},i=e.dom,o=Sd(e)?i.getStyle(t,"border-spacing")||i.getAttrib(t,"cellspacing"):i.getAttrib(t,"cellspacing")||i.getStyle(t,"border-spacing"),a=Sd(e)?Yg(i,t,"padding")||i.getAttrib(t,"cellpadding"):i.getAttrib(t,"cellpadding")||Yg(i,t,"padding");return ie({width:i.getStyle(t,"width")||i.getAttrib(t,"width"),height:i.getStyle(t,"height")||i.getAttrib(t,"height"),cellspacing:o,cellpadding:a,border:r(i,t),caption:!!i.select("caption",t)[0],class:i.getAttrib(t,"class",""),align:Lm(e,t)},n?Mm(i,t):{})},Vm=function(e,t,n){var r=e.dom;return ie({height:r.getStyle(t,"height")||r.getAttrib(t,"height"),class:r.getAttrib(t,"class",""),type:jm(t),align:Lm(e,t)},n?Mm(r,t):{})},qm=function(e,t,n,r){var i=e.dom,o=r.getOr(t),a=function(e,t){return i.getStyle(e,t)||i.getAttrib(e,t)};return ie({width:a(o,"width"),height:a(t,"height"),scope:i.getAttrib(t,"scope"),celltype:Vs(t),class:i.getAttrib(t,"class",""),halign:Lm(e,t),valign:zm(e,t)},n?Mm(i,t):{})},$m=function(e,t){var n=ui.fromTable(e),r=ui.justCells(n),i=W(r,(function(e){return N(t,(function(t){return wt(e.element,t)}))}));return I(i,(function(e){return{element:e.element.dom,column:ui.getColumnAt(n,e.column).map((function(e){return e.element.dom}))}}))},Gm=function(e,t,n){e.setAttrib("scope",n.scope),e.setAttrib("class",n.class),e.setStyle("height",Ks(n.height)),t.setStyle("width",Ks(n.width))},Xm=function(e,t){e.setFormat("tablecellbackgroundcolor",t.backgroundcolor),e.setFormat("tablecellbordercolor",t.bordercolor),e.setFormat("tablecellborderstyle",t.borderstyle),e.setFormat("tablecellborderwidth",Ks(t.borderwidth))},Ym=function(e,t,n){var r=1===t.length;B(t,(function(t){var i=t.element,o=r?Rm.normal(e,i):Rm.ifTruthy(e,i),a=t.column.map((function(t){return r?Rm.normal(e,t):Rm.ifTruthy(e,t)})).getOr(o);Gm(o,a,n),wd(e)&&Xm(o,n),r&&(Jg(e,i),Qg(e,i)),n.halign&&Kg(e,i,n.halign),n.valign&&Zg(e,i,n.valign)}))},Km=function(e,t){e.execCommand("mceTableCellType",!1,{type:t.celltype,no_events:!0})},Zm=function(e,t,n,r){var i=Rt(r,(function(e,t){return n[t]!==e}));It(i)>0&&t.length>=1&&Fr(t[0]).each((function(n){var o=$m(n,t),a=It(Rt(i,(function(e,t){return"scope"!==t&&"celltype"!==t})))>0,s=Lt(i,"celltype");(a||Lt(i,"scope"))&&Ym(e,o,r),s&&Km(e,r),rd(e,n.dom,{structure:s,style:a})}))},Jm=function(e,t,n,r){var i=r.getData();r.close(),e.undoManager.transact((function(){Zm(e,t,n,i),e.focus()}))},Qm=function(e,t){var n=Fr(t[0]).map((function(n){return I($m(n,t),(function(t){return qm(e,t.element,wd(e),t.column)}))}));return Im(n.getOrDie())},ev=function(e,t){var n=Dc(t);if(0!==n.length){var r=Qm(e,n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:Om(e)},Fm(e,"cell")]},o={type:"panel",items:[{type:"grid",columns:2,items:Om(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:wd(e)?i:o,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:x(Jm,e,n,r)})}},tv=function(e){var t=_m(Ed(e));return t.length>0?E.some({name:"class",type:"listbox",label:"Class",items:t}):E.none()},nv=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],rv=function(e){return nv.concat(tv(e).toArray())},iv=function(e,t){e.setAttrib("class",t.class),e.setStyle("height",Ks(t.height))},ov=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle)},av=function(e,t,n,r){var i=1===t.length;B(t,(function(t){var o=i?Rm.normal(e,t):Rm.ifTruthy(e,t);iv(o,n),Dd(e)&&ov(o,n),n.align!==r.align&&(Jg(e,t),Kg(e,t,n.align))}))},sv=function(e,t){e.execCommand("mceTableRowType",!1,{type:t.type,no_events:!0})},cv=function(e,t,n,r){var i=Rt(r,(function(e,t){return n[t]!==e}));if(It(i)>0){var o=Lt(i,"type"),a=!o||It(i)>1;a&&av(e,t,r,n),o&&sv(e,r),Fr(vt.fromDom(t[0])).each((function(t){return rd(e,t.dom,{structure:o,style:a})}))}},uv=function(e,t,n,r){var i=r.getData();r.close(),e.undoManager.transact((function(){cv(e,t,n,i),e.focus()}))},lv=function(e){var t=Cc(tc(e),pc.selected);if(0!==t.length){var n=I(t,(function(t){return Vm(e,t.dom,Dd(e))})),r=Im(n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:rv(e)},Fm(e,"row")]},o={type:"panel",items:[{type:"grid",columns:2,items:rv(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:Dd(e)?i:o,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:x(uv,e,I(t,(function(e){return e.dom})),r)})}},dv=function(e,t,n){var r=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],i=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],o=kd(e)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],a=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],s=t.length>0?[{type:"listbox",name:"class",label:"Class",items:t}]:[];return r.concat(i).concat(o).concat(a).concat(s)},fv=function(e,t,n,r){if("TD"===t.tagName||"TH"===t.tagName)i(n)?e.setStyle(t,n,r):e.setStyle(t,n);else if(t.children)for(var o=0;o<t.children.length;o++)fv(e,t.children[o],n,r)},hv=function(e,t,n){var r=e.dom,i={},o={};if(i.class=n.class,o.height=Ks(n.height),r.getAttrib(t,"width")&&!Sd(e)?i.width=Ys(n.width):o.width=Ks(n.width),Sd(e)?(o["border-width"]=Ks(n.border),o["border-spacing"]=Ks(n.cellspacing)):(i.border=n.border,i.cellpadding=n.cellpadding,i.cellspacing=n.cellspacing),Sd(e)&&t.children)for(var a=0;a<t.children.length;a++)fv(r,t.children[a],{"border-width":Ks(n.border),padding:Ks(n.cellpadding)}),Cd(e)&&fv(r,t.children[a],{"border-color":n.bordercolor});Cd(e)&&(o["background-color"]=n.backgroundcolor,o["border-color"]=n.bordercolor,o["border-style"]=n.borderstyle),i.style=r.serializeStyle(ie(ie({},yd(e)),o)),r.setAttribs(t,ie(ie({},bd(e)),i))},pv=function(e,t,n,r){var i=e.dom,o=r.getData(),a=Rt(o,(function(e,t){return n[t]!==e}));r.close(),""===o.class&&delete o.class,e.undoManager.transact((function(){if(!t){var n=parseInt(o.cols,10)||1,r=parseInt(o.rows,10)||1;t=Ig(e,n,r,0,0)}if(It(a)>0){hv(e,t,o);var s=i.select("caption",t)[0];(s&&!o.caption||!s&&o.caption)&&e.execCommand("mceTableToggleCaption"),""===o.align?Jg(e,t):Kg(e,t,o.align)}if(e.focus(),e.addVisual(),It(a)>0){var c=Lt(a,"caption"),u=!c||It(a)>1;rd(e,t,{structure:c,style:u})}}))},gv=function(e,t){var n,r=e.dom,i=Wm(e,Cd(e));!1===t?(n=r.getParent(e.selection.getStart(),"table",e.getBody()),n?i=Hm(e,n,Cd(e)):Cd(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor="")):(i.cols="1",i.rows="1",Cd(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor=""));var o=_m(Ud(e));o.length>0&&i.class&&(i.class=i.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:dv(e,o,t)},s=function(){return{type:"panel",items:[a]}},c=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},Fm(e,"table")]}},u=Cd(e)?c():s();e.windowManager.open({title:"Table Properties",size:"normal",body:u,onSubmit:x(pv,e,n,i),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i})},mv=function(e){return _c(tc(e),Xs(e))},vv=function(e){return wc(tc(e),Xs(e))},bv=function(e,t,n,r,a){var s=Xs(e),c=function(){return mv(e).each((function(t){Fr(t,s).filter(_(s)).each((function(t){var n=vt.fromText("");if(ki(t,n),Ri(t),e.dom.isEmpty(e.getBody()))e.setContent(""),e.selection.setCursorLocation();else{var r=e.dom.createRng();r.setStart(n.dom,0),r.setEnd(n.dom,0),e.selection.setRng(r),e.nodeChanged()}}))}))},u=function(t){return mv(e).each((function(n){var r=Pd(e)||Fd(e)||Od(e);r||Fr(n,s).each((function(n){"relative"!==t||_u(n)?"fixed"!==t||wu(n)?"responsive"!==t||Du(n)||Zd(n):Kd(n):Yd(n),Zs(n),rd(e,n.dom,od)}))}))},l=function(e){return Fr(e,s)},d=function(t){return vv(e).bind((function(e){return l(e).map((function(n){return t(n,e)}))}))},f=function(t,n){d((function(t){e.formatter.toggle("tableclass",{value:n},t.dom),rd(e,t.dom,id)}))},h=function(t,n){d((function(t){var i=Dc(r),o=Y(i,(function(t){return e.formatter.match("tablecellclass",{value:n},t.dom)})),a=o?e.formatter.remove:e.formatter.apply;B(i,(function(e){return a("tablecellclass",{value:n},e.dom)})),rd(e,t.dom,id)}))},g=function(){mv(e).each((function(t){Fr(t,s).each((function(n){$n(n,"caption").fold((function(){var t=vt.fromTag("caption");Si(t,vt.fromText("Caption")),Ai(n,t,0),e.selection.setCursorLocation(t.dom,0)}),(function(r){dn("caption")(t)&&_t("td",n).each((function(t){return e.selection.setCursorLocation(t.dom,0)})),Ri(r)})),rd(e,n.dom,od)}))}))},m=function(t){e.focus()},v=function(e,t){return void 0===t&&(t=!1),d((function(n,i){var o=mc(r,n,i);e(n,o,t).each(m)}))},b=function(){return d((function(t,n){var i=mc(r,t,n),o=zs(p,vt.fromDom(e.getDoc()),E.none());return Gg(t,i,o)}))},y=function(){return d((function(e,t){var n=mc(r,e,t);return $g(e,n)}))},w=function(t,n){return n().each((function(n){var i=I(n,(function(e){return _o(e)}));d((function(n,o){var a=Ws(vt.fromDom(e.getDoc())),s=bc(r,o,i,a);t(n,s).each(m)}))}))},D=function(e){return function(t,n){return Bt(n,"type").each((function(t){v(e(t),n.no_events)}))}};Et({mceTableSplitCells:function(){return v(t.unmergeCells)},mceTableMergeCells:function(){return v(t.mergeCells)},mceTableInsertRowBefore:function(){return v(t.insertRowsBefore)},mceTableInsertRowAfter:function(){return v(t.insertRowsAfter)},mceTableInsertColBefore:function(){return v(t.insertColumnsBefore)},mceTableInsertColAfter:function(){return v(t.insertColumnsAfter)},mceTableDeleteCol:function(){return v(t.deleteColumn)},mceTableDeleteRow:function(){return v(t.deleteRow)},mceTableCutCol:function(){return y().each((function(e){a.setColumns(e),v(t.deleteColumn)}))},mceTableCutRow:function(){return b().each((function(e){a.setRows(e),v(t.deleteRow)}))},mceTableCopyCol:function(){return y().each((function(e){return a.setColumns(e)}))},mceTableCopyRow:function(){return b().each((function(e){return a.setRows(e)}))},mceTablePasteColBefore:function(){return w(t.pasteColsBefore,a.getColumns)},mceTablePasteColAfter:function(){return w(t.pasteColsAfter,a.getColumns)},mceTablePasteRowBefore:function(){return w(t.pasteRowsBefore,a.getRows)},mceTablePasteRowAfter:function(){return w(t.pasteRowsAfter,a.getRows)},mceTableDelete:c,mceTableCellToggleClass:h,mceTableToggleClass:f,mceTableToggleCaption:g,mceTableSizingMode:function(e,t){return u(t)},mceTableCellType:D((function(e){return"th"===e?t.makeCellsHeader:t.unmakeCellsHeader})),mceTableColType:D((function(e){return"th"===e?t.makeColumnsHeader:t.unmakeColumnsHeader})),mceTableRowType:D((function(e){switch(e){case"header":return t.makeRowsHeader;case"footer":return t.makeRowsFooter;default:return t.makeRowsBody}}))},(function(t,n){return e.addCommand(n,t)})),Et({mceTableProps:x(gv,e,!1),mceTableRowProps:x(lv,e),mceTableCellProps:x(ev,e,r)},(function(t,n){return e.addCommand(n,(function(){return t()}))})),e.addCommand("mceInsertTable",(function(t,n){o(n)&&St(n).length>0?Bg(e,n.rows,n.columns,n.options,"Invalid values for mceInsertTable - rows and columns values are required to insert a table."):gv(e,!0)})),e.addCommand("mceTableApplyCellStyle",(function(t,n){var a=function(e){return"tablecell"+e.toLowerCase().replace("-","")};if(o(n)){var s=Dc(r);if(0!==s.length){var c=Rt(n,(function(t,n){return e.formatter.has(a(n))&&i(t)}));Wt(c)||(Et(c,(function(t,n){B(s,(function(r){Rm.normal(e,r.dom).setFormat(a(n),t)}))})),l(s[0]).each((function(t){return rd(e,t.dom,id)})))}}}))},yv=function(e,t,n){var r=Xs(e),i=function(t){return wc(tc(e)).bind((function(e){return Fr(e,r).map((function(r){var i=mc(n,r,e);return t(r,i)}))})).getOr("")};Et({mceTableRowType:function(){return i(t.getTableRowType)},mceTableCellType:function(){return i(t.getTableCellType)},mceTableColType:function(){return i(t.getTableColType)}},(function(t,n){return e.addQueryValueHandler(n,t)}))},xv=function(){var e=bm(),t=bm();return{getRows:e.get,setRows:function(n){n.fold(e.clear,e.set),t.clear()},clearRows:e.clear,getColumns:t.get,setColumns:function(n){n.fold(t.clear,t.set),e.clear()},clearColumns:t.clear}},_v={remove_similar:!0,inherit:!1},wv=ie({selector:"td,th"},_v),Dv={tablecellbackgroundcolor:ie({styles:{backgroundColor:"%value"}},wv),tablecellverticalalign:ie({styles:{"vertical-align":"%value"}},wv),tablecellbordercolor:ie({styles:{borderColor:"%value"}},wv),tablecellclass:ie({classes:["%value"]},wv),tableclass:ie({selector:"table",classes:["%value"]},_v),tablecellborderstyle:ie({styles:{borderStyle:"%value"}},wv),tablecellborderwidth:ie({styles:{borderWidth:"%value"}},wv)},Cv=function(e){e.formatter.register(Dv)},kv=lo.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),Tv=function(e){return void 0===e&&(e=void 0),kv.none(e)},Sv=ie(ie({},kv),{none:Tv}),Av=function(e,t,n,r,i){void 0===i&&(i=C);var o=1===r;if(!o&&n<=0)return Sv.first(e[0]);if(o&&n>=e.length-1)return Sv.last(e[e.length-1]);var a=n+r,s=e[a];return i(s)?Sv.middle(t,s):Av(e,t,a,r,i)},Ev=function(e,t){return Fr(e,t).bind((function(t){var n=Ur(t),r=$(n,(function(t){return wt(e,t)}));return r.map((function(e){return{index:e,all:n}}))}))},Uv=function(e,t,n){var r=Ev(e,n);return r.fold((function(){return Sv.none(e)}),(function(n){return Av(n.all,e,n.index,1,t)}))},Ov=function(e,t,n){var r=Ev(e,n);return r.fold((function(){return Sv.none()}),(function(n){return Av(n.all,e,n.index,-1,t)}))},Fv=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},Pv={create:Fv},Rv=lo.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Nv=function(e,t,n,r){return e.fold(t,n,r)},Mv=function(e){return e.fold(b,b,b)},Iv=Rv.before,Bv=Rv.on,Lv=Rv.after,zv={before:Iv,on:Bv,after:Lv,cata:Nv,getStart:Mv},Wv=lo.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),jv=function(e){return Wv.exact(e.start,e.soffset,e.finish,e.foffset)},Hv=function(e){return e.match({domRange:function(e){return vt.fromDom(e.startContainer)},relative:function(e,t){return zv.getStart(e)},exact:function(e,t,n,r){return e}})},Vv=Wv.domRange,qv=Wv.relative,$v=Wv.exact,Gv=function(e){var t=Hv(e);return pn(t)},Xv=Pv.create,Yv={domRange:Vv,relative:qv,exact:$v,exactFromRange:jv,getWin:Gv,range:Xv},Kv=function(e,t){var n=e.document.createRange();return n.selectNode(t.dom),n},Zv=function(e,t){var n=e.document.createRange();return Jv(n,t),n},Jv=function(e,t){return e.selectNodeContents(t.dom)},Qv=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},eb=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},tb=function(e,t,n){var r=e.document.createRange();return Qv(r,t),eb(r,n),r},nb=function(e,t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rb=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},ib=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?E.some(n).map(rb):E.none()},ob=lo.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),ab=function(e,t,n){return t(vt.fromDom(n.startContainer),n.startOffset,vt.fromDom(n.endContainer),n.endOffset)},sb=function(e,t){return t.match({domRange:function(e){return{ltr:v(e),rtl:E.none}},relative:function(t,n){return{ltr:ae((function(){return tb(e,t,n)})),rtl:ae((function(){return E.some(tb(e,n,t))}))}},exact:function(t,n,r,i){return{ltr:ae((function(){return nb(e,t,n,r,i)})),rtl:ae((function(){return E.some(nb(e,r,i,t,n))}))}}})},cb=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return ob.rtl(vt.fromDom(e.endContainer),e.endOffset,vt.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return ab(e,ob.ltr,n)}))}return ab(e,ob.ltr,n)},ub=function(e,t){var n=sb(e,t);return cb(e,n)},lb=function(e,t){var n=ub(e,t);return n.match({ltr:function(t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rtl:function(t,n,r,i){var o=e.document.createRange();return o.setStart(r.dom,i),o.setEnd(t.dom,n),o}})};ob.ltr,ob.rtl;var db=function(e,t,n,r,i){if(0===i)return 0;if(t===r)return i-1;for(var o=r,a=1;a<i;a++){var s=e(a),c=Math.abs(t-s.left);if(n<=s.bottom){if(n<s.top||c>o)return a-1;o=c}}return 0},fb=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},hb=function(e,t,n,r,i){var o=function(n){var r=e.dom.createRange();return r.setStart(t.dom,n),r.collapse(!0),r},a=function(e){var t=o(e);return t.getBoundingClientRect()},s=Bi(t).length,c=db(a,n,r,i.right,s);return o(c)},pb=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getClientRects(),a=re(o,(function(e){return fb(e,n,r)?E.some(e):E.none()}));return a.map((function(i){return hb(e,t,n,r,i)}))},gb=function(e,t,n,r){var i=e.dom.createRange(),o=xn(t);return re(o,(function(t){return i.selectNode(t.dom),fb(i.getBoundingClientRect(),n,r)?mb(e,t,n,r):E.none()}))},mb=function(e,t,n,r){return cn(t)?pb(e,t,n,r):gb(e,t,n,r)},vb=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return mb(e,t,a,s)},bb=!0,yb=!1,xb=function(e,t){return t-e.left<e.right-t?bb:yb},_b=function(e,t,n){var r=e.dom.createRange();return r.selectNode(t.dom),r.collapse(n),r},wb=function(e,t,n){var r=e.dom.createRange();r.selectNode(t.dom);var i=r.getBoundingClientRect(),o=xb(i,n),a=o===bb?As:Es;return a(t).map((function(t){return _b(e,t,o)}))},Db=function(e,t,n){var r=t.dom.getBoundingClientRect(),i=xb(r,n);return E.some(_b(e,t,i))},Cb=function(e,t,n){var r=0===xn(t).length?Db:wb;return r(e,t,n)},kb=function(e,t,n){var r,i;return E.from(null===(i=(r=e.dom).caretPositionFromPoint)||void 0===i?void 0:i.call(r,t,n)).bind((function(t){if(null===t.offsetNode)return E.none();var n=e.dom.createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),E.some(n)}))},Tb=function(e,t,n){var r,i;return E.from(null===(i=(r=e.dom).caretRangeFromPoint)||void 0===i?void 0:i.call(r,t,n))},Sb=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return vb(e,t,a,s)},Ab=function(e,t,n){return vt.fromPoint(e,t,n).bind((function(r){var i=function(){return Cb(e,r,t)};return 0===xn(r).length?i():Sb(e,r,t,n).orThunk(i)}))},Eb=function(){return document.caretPositionFromPoint?kb:document.caretRangeFromPoint?Tb:Ab}(),Ub=function(e,t,n){var r=vt.fromDom(e.document);return Eb(r,t,n).map((function(e){return Pv.create(vt.fromDom(e.startContainer),e.startOffset,vt.fromDom(e.endContainer),e.endOffset)}))},Ob=function(e,t){var n=nn(e);return"input"===n?zv.after(e):R(["br","img"],n)?0===t?zv.before(e):zv.after(e):zv.on(e,t)},Fb=function(e,t){var n=e.fold(zv.before,Ob,zv.after),r=t.fold(zv.before,Ob,zv.after);return Yv.relative(n,r)},Pb=function(e,t,n,r){var i=Ob(e,t),o=Ob(n,r);return Yv.relative(i,o)},Rb=function(e){return e.match({domRange:function(e){var t=vt.fromDom(e.startContainer),n=vt.fromDom(e.endContainer);return Pb(t,e.startOffset,n,e.endOffset)},relative:Fb,exact:Pb})},Nb=function(e,t,n,r){var i=fn(e),o=i.dom.createRange();return o.setStart(e.dom,t),o.setEnd(n.dom,r),o},Mb=function(e,t,n,r){var i=Nb(e,t,n,r),o=wt(e,n)&&t===r;return i.collapsed&&!o},Ib=function(e){return E.from(e.getSelection())},Bb=function(e,t){Ib(e).each((function(e){e.removeAllRanges(),e.addRange(t)}))},Lb=function(e,t,n,r,i){var o=nb(e,t,n,r,i);Bb(e,o)},zb=function(e,t,n,r,i,o){t.collapse(n.dom,r),t.extend(i.dom,o)},Wb=function(e,t){return ub(e,t).match({ltr:function(t,n,r,i){Lb(e,t,n,r,i)},rtl:function(t,n,r,i){Ib(e).each((function(o){if(o.setBaseAndExtent)o.setBaseAndExtent(t.dom,n,r.dom,i);else if(o.extend)try{zb(e,o,t,n,r,i)}catch(a){Lb(e,r,i,t,n)}else Lb(e,r,i,t,n)}))}})},jb=function(e,t,n,r,i){var o=Pb(t,n,r,i);Wb(e,o)},Hb=function(e,t,n){var r=Fb(t,n);Wb(e,r)},Vb=function(e){var t=Yv.getWin(e).dom,n=function(e,n,r,i){return nb(t,e,n,r,i)},r=Rb(e);return ub(t,r).match({ltr:n,rtl:n})},qb=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return E.some(Pv.create(vt.fromDom(t.startContainer),t.startOffset,vt.fromDom(n.endContainer),n.endOffset))}return E.none()},$b=function(e){if(null===e.anchorNode||null===e.focusNode)return qb(e);var t=vt.fromDom(e.anchorNode),n=vt.fromDom(e.focusNode);return Mb(t,e.anchorOffset,n,e.focusOffset)?E.some(Pv.create(t,e.anchorOffset,n,e.focusOffset)):qb(e)},Gb=function(e,t,n){void 0===n&&(n=!0);var r=n?Zv:Kv,i=r(e,t);Bb(e,i)},Xb=function(e){return Ib(e).filter((function(e){return e.rangeCount>0})).bind($b)},Yb=function(e){return Xb(e).map((function(e){return Yv.exact(e.start,e.soffset,e.finish,e.foffset)}))},Kb=function(e,t){var n=lb(e,t);return ib(n)},Zb=function(e,t,n){return Ub(e,t,n)},Jb=function(e){Ib(e).each((function(e){return e.removeAllRanges()}))},Qb=tinymce.util.Tools.resolve("tinymce.util.VK"),ey=function(e,t,n){return ry(e,t,Uv(n,wl))},ty=function(e,t,n){return ry(e,t,Ov(n,wl))},ny=function(e,t){var n=Yv.exact(t,0,t,0);return Vb(n)},ry=function(e,t,n){return n.fold(E.none,E.none,(function(t,n){return As(n).map((function(t){return ny(e,t)}))}),(function(n){return e.execCommand("mceTableInsertRowAfter"),ey(e,t,n)}))},iy=["table","li","dl"],oy=function(e,t,n){if(e.keyCode===Qb.TAB){var r=qs(t),i=function(e){var t=nn(e);return wt(e,r)||R(iy,t)},o=t.selection.getRng(),a=vt.fromDom(e.shiftKey?o.startContainer:o.endContainer);Er(a,i).each((function(r){e.preventDefault(),Fr(r,i).each(n.clear),t.selection.collapse(e.shiftKey);var o=e.shiftKey?ty:ey,a=o(t,i,r);a.each((function(e){t.selection.setRng(e)}))}))}},ay=function(e,t){return{selection:e,kill:t}},sy={create:ay},cy=function(e,t,n,r){return{start:zv.on(e,t),finish:zv.on(n,r)}},uy={create:cy},ly=function(e,t){var n=lb(e,t);return Pv.create(vt.fromDom(n.startContainer),n.startOffset,vt.fromDom(n.endContainer),n.endOffset)},dy=uy.create,fy=function(e,t,n,r,i,o,a){return wt(n,i)&&r===o?E.none():Xn(n,"td,th",t).bind((function(n){return Xn(i,"td,th",t).bind((function(r){return hy(e,t,n,r,a)}))}))},hy=function(e,t,n,r,i){return wt(n,r)?E.none():to(n,r,t).bind((function(t){var r=t.boxes.getOr([]);return r.length>1?(i(e,r,t.start,t.finish),E.some(sy.create(E.some(dy(n,0,n,Cs(n))),!0))):E.none()}))},py=function(e,t,n,r,i){var o=function(e){return i.clearBeforeUpdate(n),i.selectRange(n,e.boxes,e.start,e.finish),e.boxes};return ao(r,e,t,i.firstSelectedSelector,i.lastSelectedSelector).map(o)},gy=function(e,t){return{item:e,mode:t}},my=function(e,t,n,r){return void 0===r&&(r=vy),e.property().parent(t).map((function(e){return gy(e,r)}))},vy=function(e,t,n,r){return void 0===r&&(r=by),n.sibling(e,t).map((function(e){return gy(e,r)}))},by=function(e,t,n,r){void 0===r&&(r=by);var i=e.property().children(t),o=n.first(i);return o.map((function(e){return gy(e,r)}))},yy=[{current:my,next:vy,fallback:E.none()},{current:vy,next:by,fallback:E.some(my)},{current:by,next:by,fallback:E.some(vy)}],xy=function(e,t,n,r,i){void 0===i&&(i=yy);var o=q(i,(function(e){return e.current===n}));return o.bind((function(n){return n.current(e,t,r,n.next).orThunk((function(){return n.fallback.bind((function(n){return xy(e,t,n,r)}))}))}))},_y=function(){var e=function(e,t){return e.query().prevSibling(t)},t=function(e){return e.length>0?E.some(e[e.length-1]):E.none()};return{sibling:e,first:t}},wy=function(){var e=function(e,t){return e.query().nextSibling(t)},t=function(e){return e.length>0?E.some(e[0]):E.none()};return{sibling:e,first:t}},Dy={left:_y,right:wy},Cy=function(e,t,n,r,i,o){var a=xy(e,t,r,i);return a.bind((function(t){return o(t.item)?E.none():n(t.item)?E.some(t.item):Cy(e,t.item,n,t.mode,i,o)}))},ky=function(e,t,n,r){return Cy(e,t,n,vy,Dy.left(),r)},Ty=function(e,t,n,r){return Cy(e,t,n,vy,Dy.right(),r)},Sy=function(e){return function(t){return 0===e.property().children(t).length}},Ay=function(e,t,n){return Uy(e,t,Sy(e),n)},Ey=function(e,t,n){return Oy(e,t,Sy(e),n)},Uy=ky,Oy=Ty,Fy=ji(),Py=function(e,t){return Ay(Fy,e,t)},Ry=function(e,t){return Ey(Fy,e,t)},Ny=function(e,t,n){return Uy(Fy,e,t,n)},My=function(e,t,n){return Oy(Fy,e,t,n)},Iy=function(e,t,n){return Wn(e,t,n).isSome()},By=lo.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Ly=function(e,t,n){var r=e.getRect(t),i=e.getRect(n);return i.right>r.left&&i.left<r.right},zy=function(e){return Xn(e,"tr")},Wy=function(e,t,n,r,i,o,a){return Xn(r,"td,th",a).bind((function(n){return Xn(t,"td,th",a).map((function(t){return wt(n,t)?wt(r,n)&&Cs(n)===i?o(t):By.none("in same cell"):Ji(zy,[n,t]).fold((function(){return Ly(e,t,n)?By.success():o(t)}),(function(e){return o(t)}))}))})).getOr(By.none("default"))},jy=function(e,t,n,r,i){return e.fold(t,n,r,i)},Hy=ie(ie({},By),{verify:Wy,cata:jy}),Vy=function(e,t,n,r){return{parent:e,children:t,element:n,index:r}},qy=function(e){return gn(e).bind((function(t){var n=xn(t);return $y(n,e).map((function(r){return Vy(t,n,e,r)}))}))},$y=function(e,t){return $(e,x(wt,t))},Gy=function(e){return"br"===nn(e)},Xy=function(e,t,n){return t(e,n).bind((function(e){return cn(e)&&0===Bi(e).trim().length?Xy(e,t,n):E.some(e)}))},Yy=function(e,t,n){return n.traverse(t).orThunk((function(){return Xy(t,n.gather,e)})).map(n.relative)},Ky=function(e,t){return _n(e,t).filter(Gy).orThunk((function(){return _n(e,t-1).filter(Gy)}))},Zy=function(e,t,n,r){return Ky(t,n).bind((function(t){return r.traverse(t).fold((function(){return Xy(t,r.gather,e).map(r.relative)}),(function(e){return qy(e).map((function(e){return zv.on(e.parent,e.index)}))}))}))},Jy=function(e,t,n,r){var i=Gy(t)?Yy(e,t,r):Zy(e,t,n,r);return i.map((function(e){return{start:e,finish:e}}))},Qy=function(e){return Hy.cata(e,(function(e){return E.none()}),(function(){return E.none()}),(function(e){return E.some(af(e,0))}),(function(e){return E.some(af(e,Cs(e)))}))},ex=function(e,t){return{left:e.left,top:e.top+t,right:e.right,bottom:e.bottom+t}},tx=function(e,t){return{left:e.left,top:e.top-t,right:e.right,bottom:e.bottom-t}},nx=function(e,t,n){return{left:e.left+t,top:e.top+n,right:e.right+t,bottom:e.bottom+n}},rx=function(e){return e.top},ix=function(e){return e.bottom},ox=function(e,t,n){return n>=0&&n<Cs(t)?e.getRangedRect(t,n,t,n+1):n>0?e.getRangedRect(t,n-1,t,n):E.none()},ax=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}},sx=function(e,t){return E.some(e.getRect(t))},cx=function(e,t,n){return sn(t)?sx(e,t).map(ax):cn(t)?ox(e,t,n).map(ax):E.none()},ux=function(e,t){return sn(t)?sx(e,t).map(ax):cn(t)?e.getRangedRect(t,0,t,Cs(t)).map(ax):E.none()},lx=5,dx=100,fx=lo.generate([{none:[]},{retry:["caret"]}]),hx=function(e,t){return e.left<t.left||Math.abs(t.right-e.left)<1||e.left>t.right},px=function(e,t,n){return jn(t,sp).fold(D,(function(t){return ux(e,t).exists((function(e){return hx(n,e)}))}))},gx=function(e,t,n,r,i){var o=ex(i,lx);return Math.abs(n.bottom-r.bottom)<1||n.top>i.bottom?fx.retry(o):n.top===i.bottom?fx.retry(ex(i,1)):px(e,t,i)?fx.retry(nx(o,lx,0)):fx.none()},mx=function(e,t,n,r,i){var o=tx(i,lx);return Math.abs(n.top-r.top)<1||n.bottom<i.top?fx.retry(o):n.bottom===i.top?fx.retry(tx(i,1)):px(e,t,i)?fx.retry(nx(o,lx,0)):fx.none()},vx={point:rx,adjuster:mx,move:tx,gather:Py},bx={point:ix,adjuster:gx,move:ex,gather:Ry},yx=function(e,t,n){return e.elementFromPoint(t,n).filter((function(e){return"table"===nn(e)})).isSome()},xx=function(e,t,n,r,i){return _x(e,t,n,t.move(r,lx),i)},_x=function(e,t,n,r,i){return 0===i?E.some(r):yx(e,r.left,t.point(r))?xx(e,t,n,r,i-1):e.situsFromPoint(r.left,t.point(r)).bind((function(o){return o.start.fold(E.none,(function(o){return ux(e,o).bind((function(a){return t.adjuster(e,o,a,n,r).fold(E.none,(function(r){return _x(e,t,n,r,i-1)}))})).orThunk((function(){return E.some(r)}))}),E.none)}))},wx=function(e,t){return e.situsFromPoint(t.left,t.bottom+lx)},Dx=function(e,t){return e.situsFromPoint(t.left,t.top-lx)},Cx=function(e,t,n){return e.point(t)>n.getInnerHeight()?E.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?E.some(-e.point(t)):E.none()},kx=function(e,t,n){var r=e.move(n,lx),i=_x(t,e,n,r,dx).getOr(r);return Cx(e,i,t).fold((function(){return t.situsFromPoint(i.left,e.point(i))}),(function(n){return t.scrollBy(0,n),t.situsFromPoint(i.left,e.point(i)-n)}))},Tx={tryUp:x(kx,vx),tryDown:x(kx,bx),ieTryUp:Dx,ieTryDown:wx,getJumpSize:v(lx)},Sx=20,Ax=function(e,t,n){return e.getSelection().bind((function(r){return Jy(t,r.finish,r.foffset,n).fold((function(){return E.some(af(r.finish,r.foffset))}),(function(i){var o=e.fromSitus(i),a=Hy.verify(e,r.finish,r.foffset,o.finish,o.foffset,n.failure,t);return Qy(a)}))}))},Ex=function(e,t,n,r,i,o){return 0===o?E.none():Fx(e,t,n,r,i).bind((function(a){var s=e.fromSitus(a),c=Hy.verify(e,n,r,s.finish,s.foffset,i.failure,t);return Hy.cata(c,(function(){return E.none()}),(function(){return E.some(a)}),(function(a){return wt(n,a)&&0===r?Ux(e,n,r,tx,i):Ex(e,t,a,0,i,o-1)}),(function(a){return wt(n,a)&&r===Cs(a)?Ux(e,n,r,ex,i):Ex(e,t,a,Cs(a),i,o-1)}))}))},Ux=function(e,t,n,r,i){return cx(e,t,n).bind((function(t){return Ox(e,i,r(t,Tx.getJumpSize()))}))},Ox=function(e,t,n){var r=it().browser;return r.isChrome()||r.isSafari()||r.isFirefox()||r.isEdge()?t.otherRetry(e,n):r.isIE()?t.ieRetry(e,n):E.none()},Fx=function(e,t,n,r,i){return cx(e,n,r).bind((function(t){return Ox(e,i,t)}))},Px=function(e,t,n){return Ax(e,t,n).bind((function(r){return Ex(e,t,r.element,r.offset,n,Sx).map(e.fromSitus)}))},Rx=function(e,t){return Iy(e,(function(e){return gn(e).exists((function(e){return wt(e,t)}))}))},Nx=function(e,t,n,r,i){return Xn(r,"td,th",t).bind((function(r){return Xn(r,"table",t).bind((function(o){return Rx(i,o)?Px(e,t,n).bind((function(e){return Xn(e.finish,"td,th",t).map((function(t){return{start:r,finish:t,range:e}}))})):E.none()}))}))},Mx=function(e,t,n,r,i,o){return it().browser.isIE()?E.none():o(r,t).orThunk((function(){return Nx(e,t,n,r,i).map((function(e){var t=e.range;return sy.create(E.some(dy(t.start,t.soffset,t.finish,t.foffset)),!0)}))}))},Ix=function(e,t){return Xn(e,"tr",t).bind((function(e){return Xn(e,"table",t).bind((function(n){var r=Ln(n,"tr");return wt(e,r[0])?Ny(n,(function(e){return Es(e).isSome()}),t).map((function(e){var t=Cs(e);return sy.create(E.some(dy(e,t,e,t)),!0)})):E.none()}))}))},Bx=function(e,t){return Xn(e,"tr",t).bind((function(e){return Xn(e,"table",t).bind((function(n){var r=Ln(n,"tr");return wt(e,r[r.length-1])?My(n,(function(e){return As(e).isSome()}),t).map((function(e){return sy.create(E.some(dy(e,0,e,0)),!0)})):E.none()}))}))},Lx=function(e,t,n,r,i,o,a){return Nx(e,n,r,i,o).bind((function(e){return hy(t,n,e.start,e.finish,a)}))},zx=function(e,t){return Xn(e,"td,th",t)},Wx=function(e,t,n,r){var i=bm(),o=i.clear,a=function(o){i.on((function(i){r.clearBeforeUpdate(t),zx(o.target,n).each((function(a){to(i,a,n).each((function(n){var i=n.boxes.getOr([]);if(1===i.length){var s=i[0],c="false"===Dl(s),u=rr(_l(o.target),s,wt);c&&u&&(r.selectRange(t,i,s,s),e.selectContents(s))}else i.length>1&&(r.selectRange(t,i,n.start,n.finish),e.selectContents(a))}))}))}))},s=function(e){r.clear(t),zx(e.target,n).each(i.set)},c=function(e){a(e)},u=function(e){a(e),o()};return{clearstate:o,mousedown:s,mouseover:c,mouseup:u}},jx={traverse:yn,gather:Ry,relative:zv.before,otherRetry:Tx.tryDown,ieRetry:Tx.ieTryDown,failure:Hy.failedDown},Hx={traverse:bn,gather:Py,relative:zv.before,otherRetry:Tx.tryUp,ieRetry:Tx.ieTryUp,failure:Hy.failedUp},Vx=function(e){return function(t){return t===e}},qx=Vx(38),$x=Vx(40),Gx=function(e){return e>=37&&e<=40},Xx={isBackward:Vx(37),isForward:Vx(39)},Yx={isBackward:Vx(39),isForward:Vx(37)},Kx=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Jo(n,r)},Zx=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollBy(e,t)},Jx=function(e){var t=function(t,n){return vt.fromPoint(vt.fromDom(e.document),t,n)},n=function(e){return e.dom.getBoundingClientRect()},r=function(t,n,r,i){var o=Yv.exact(t,n,r,i);return Kb(e,o)},i=function(){return Yb(e).map((function(t){return ly(e,t)}))},o=function(t){var n=Yv.relative(t.start,t.finish);return ly(e,n)},a=function(t,n){return Zb(e,t,n).map((function(e){return uy.create(e.start,e.soffset,e.finish,e.foffset)}))},s=function(){Jb(e)},c=function(t){void 0===t&&(t=!1),Yb(e).each((function(n){return n.fold((function(e){return e.collapse(t)}),(function(n,r){var i=t?n:r;Hb(e,i,i)}),(function(n,r,i,o){var a=t?n:i,s=t?r:o;jb(e,a,s,a,s)}))}))},u=function(t){Gb(e,t,!1)},l=function(t){Gb(e,t)},d=function(t){jb(e,t.start,t.soffset,t.finish,t.foffset)},f=function(t,n){Hb(e,t,n)},h=function(){return e.innerHeight},p=function(){var t=Kx(vt.fromDom(e.document));return t.top},g=function(t,n){Zx(t,n,vt.fromDom(e.document))};return{elementFromPoint:t,getRect:n,getRangedRect:r,getSelection:i,fromSitus:o,situsFromPoint:a,clearSelection:s,collapseSelection:c,setSelection:d,setRelativeSelection:f,selectNode:u,selectContents:l,getInnerHeight:h,getScrollY:p,scrollBy:g}},Qx=function(e,t){return{rows:e,cols:t}},e_=function(e,t,n,r){var i=Jx(e),o=Wx(i,t,n,r);return{clearstate:o.clearstate,mousedown:o.mousedown,mouseover:o.mouseover,mouseup:o.mouseup}},t_=function(e,t,n,r){var i=Jx(e),o=function(){return r.clear(t),E.none()},a=function(e,a,s,c,u,l){var d=e.raw,f=d.which,h=!0===d.shiftKey,p=no(t,r.selectedSelector).fold((function(){return Gx(f)&&!h&&r.clearBeforeUpdate(t),$x(f)&&h?x(Lx,i,t,n,jx,c,a,r.selectRange):qx(f)&&h?x(Lx,i,t,n,Hx,c,a,r.selectRange):$x(f)?x(Mx,i,n,jx,c,a,Bx):qx(f)?x(Mx,i,n,Hx,c,a,Ix):E.none}),(function(e){var n=function(n){return function(){var o=re(n,(function(n){return py(n.rows,n.cols,t,e,r)}));return o.fold((function(){return io(t,r.firstSelectedSelector,r.lastSelectedSelector).map((function(e){var n=$x(f)||l.isForward(f)?zv.after:zv.before;return i.setRelativeSelection(zv.on(e.first,0),n(e.table)),r.clear(t),sy.create(E.none(),!0)}))}),(function(e){return E.some(sy.create(E.none(),!0))}))}};return $x(f)&&h?n([Qx(1,0)]):qx(f)&&h?n([Qx(-1,0)]):l.isBackward(f)&&h?n([Qx(0,-1),Qx(-1,0)]):l.isForward(f)&&h?n([Qx(0,1),Qx(1,0)]):Gx(f)&&!h?o:E.none}));return p()},s=function(e,i,o,a,s){return no(t,r.selectedSelector).fold((function(){var c=e.raw,u=c.which,l=!0===c.shiftKey;return l&&Gx(u)?fy(t,n,i,o,a,s,r.selectRange):E.none()}),E.none)};return{keydown:a,keyup:s}},n_=function(e,t,n,r){var i=Jx(e);return function(e,o){r.clearBeforeUpdate(t),to(e,o,n).each((function(e){var n=e.boxes.getOr([]);r.selectRange(t,n,e.start,e.finish),i.selectContents(o),i.collapseSelection()}))}},r_=function(e,t){B(t,(function(t){ul(e,t)}))},i_=function(e){return function(t){sl(t,e)}},o_=function(e){return function(t){r_(t,e)}},a_=function(e){var t=i_(e.selected),n=o_([e.selected,e.lastSelected,e.firstSelected]),r=function(t){var r=Ln(t,e.selectedSelector);B(r,n)},i=function(n,i,o,a){r(n),B(i,t),sl(o,e.firstSelected),sl(a,e.lastSelected)};return{clearBeforeUpdate:r,clear:r,selectRange:i,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},s_=function(e,t,n){var r=function(t){tr(t,e.selected),tr(t,e.firstSelected),tr(t,e.lastSelected)},i=function(t){Kn(t,e.selected,"1")},o=function(e){a(e),n()},a=function(t){var n=Ln(t,e.selectedSelector+","+e.firstSelectedSelector+","+e.lastSelectedSelector);B(n,r)},s=function(n,r,a,s){o(n),B(r,i),Kn(a,e.firstSelected,"1"),Kn(s,e.lastSelected,"1"),t(r,a,s)};return{clearBeforeUpdate:a,clear:o,selectRange:s,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},c_={byClass:a_,byAttr:s_},u_=function(e,t){var n=e.slice(0,t[t.length-1].row+1),r=Wf(n);return X(r,(function(e){var n=e.cells.slice(0,t[t.length-1].column+1);return I(n,(function(e){return e.element}))}))},l_=function(e,t){var n=e.slice(t[0].row+t[0].rowspan-1,e.length),r=Wf(n);return X(r,(function(e){var n=e.cells.slice(t[0].column+t[0].colspan-1,e.cells.length);return I(n,(function(e){return e.element}))}))},d_=function(e,t,n){var r=ui.fromTable(e),i=Yf(r,t);return i.map((function(e){var t=Lf(r,n,!1),i=u_(t,e),o=l_(t,e);return{upOrLeftCells:i,downOrRightCells:o}}))},f_=tinymce.util.Tools.resolve("tinymce.Env"),h_=function(e){return!1===ll(vt.fromDom(e.target),"ephox-snooker-resizer-bar")};function p_(e,t,n){var r=function(t,r,i){n.targets().each((function(n){var o=Fr(r);o.each((function(o){var a=zd(e),s=zs(p,vt.fromDom(e.getDoc()),a),c=d_(o,n,s);td(e,t,r,i,c)}))}))},i=function(){return nd(e)},o=c_.byAttr(pc,r,i);return e.on("init",(function(n){var r=e.getWin(),i=qs(e),a=Xs(e),s=function(){var t=e.selection,n=vt.fromDom(t.getStart()),r=vt.fromDom(t.getEnd()),a=Ji(Fr,[n,r]);a.fold((function(){return o.clear(i)}),p)},c=e_(r,i,a,o),u=t_(r,i,a,o),l=n_(r,i,a,o),d=function(e){return!0===e.raw.shiftKey};e.on("TableSelectorChange",(function(e){return l(e.start,e.finish)}));var f=function(t,n){d(t)&&(n.kill&&t.kill(),n.selection.each((function(t){var n=Yv.relative(t.start,t.finish),i=lb(r,n);e.selection.setRng(i)})))},h=function(t){var n=Qu(t);if(n.raw.shiftKey&&Gx(n.raw.which)){var r=e.selection.getRng(),i=vt.fromDom(r.startContainer),o=vt.fromDom(r.endContainer);u.keyup(n,i,r.startOffset,o,r.endOffset).each((function(e){f(n,e)}))}},g=function(n){var r=Qu(n);t().each((function(e){return e.hideBars()}));var i=e.selection.getRng(),o=vt.fromDom(i.startContainer),a=vt.fromDom(i.endContainer),s=qo(Xx,Yx)(vt.fromDom(e.selection.getStart()));u.keydown(r,o,i.startOffset,a,i.endOffset,s).each((function(e){f(r,e)})),t().each((function(e){return e.showBars()}))},m=function(e){return 0===e.button},v=function(e){return void 0===e.buttons||(!(!f_.browser.isEdge()||0!==e.buttons)||0!==(1&e.buttons))},b=function(e){c.clearstate()},y=function(e){m(e)&&h_(e)&&c.mousedown(Qu(e))},x=function(e){v(e)&&h_(e)&&c.mouseover(Qu(e))},_=function(e){m(e)&&h_(e)&&c.mouseup(Qu(e))},w=function(){var e=gm(vt.fromDom(i)),t=gm(0),n=function(n){var r=vt.fromDom(n.target);if("td"===nn(r)||"th"===nn(r)){var i=e.get(),o=t.get();wt(i,r)&&n.timeStamp-o<300&&(n.preventDefault(),l(r,r))}e.set(r),t.set(n.timeStamp)};return{touchEnd:n}},D=w();e.on("dragstart",b),e.on("mousedown",y),e.on("mouseover",x),e.on("mouseup",_),e.on("touchend",D.touchEnd),e.on("keyup",h),e.on("keydown",g),e.on("NodeChange",s)})),{clear:o.clear}}var g_=function(e,t){return $n(e,t).isSome()},m_=function(e,t){var n=gm(E.none()),r=gm([]),i=E.none(),o=dn("caption"),a=function(e){return i.forall((function(t){return!t[e]}))},s=function(){return _c(tc(e),Xs(e))},c=function(){return _c(nc(e),Xs(e))},u=function(){return s().bind((function(e){return sr(or(Fr(e),c().bind(Fr),(function(n,r){return wt(n,r)?o(e)?E.some(gc(e)):E.some(mc(t,n,e)):E.none()})))}))},l=function(e){var t=Fr(e.element);return t.map((function(t){var n=ui.fromTable(t),r=Yf(n,e).getOr([]),i=H(r,(function(e,t){return t.isLocked&&(e.onAny=!0,0===t.column?e.onFirst=!0:t.column+t.colspan>=n.grid.columns&&(e.onLast=!0)),e}),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:Qf(n,e).isSome(),unmergeable:eh(n,e).isSome(),locked:i}}))},d=function(){n.set(ae(u)()),i=n.get().bind(l),B(r.get(),(function(e){return e()}))},f=function(e){return e(),r.set(r.get().concat([e])),function(){r.set(W(r.get(),(function(t){return t!==e})))}},h=function(e,t){return f((function(){return n.get().fold((function(){e.setDisabled(!0)}),(function(n){e.setDisabled(t(n))}))}))},p=function(e,t,r){return f((function(){return n.get().fold((function(){e.setDisabled(!0),e.setActive(!1)}),(function(n){e.setDisabled(t(n)),e.setActive(r(n))}))}))},g=function(e){return i.exists((function(t){return t.locked[e]}))},m=function(e){return h(e,(function(e){return!1}))},v=function(e){return h(e,(function(e){return o(e.element)}))},b=function(e){return function(t){return h(t,(function(t){return o(t.element)||g(e)}))}},y=function(e){return function(t){return h(t,(function(t){return o(t.element)||e().isNone()}))}},x=function(e,t){return function(n){return h(n,(function(n){return o(n.element)||e().isNone()||g(t)}))}},_=function(e){return h(e,(function(e){return a("mergeable")}))},w=function(e){return h(e,(function(e){return a("unmergeable")}))},C=function(t){return p(t,D,(function(t){var n=Fr(t.element,Xs(e));return n.exists((function(e){return g_(e,"caption")}))}))},k=function(t,n){return function(r){return p(r,(function(e){return o(e.element)}),(function(){return e.queryCommandValue(t)===n}))}},T=k("mceTableRowType","header"),S=k("mceTableColType","th");return e.on("NodeChange ExecCommand TableSelectorChange",d),{onSetupTable:m,onSetupCellOrRow:v,onSetupColumn:b,onSetupPasteable:y,onSetupPasteableColumn:x,onSetupMergeable:_,onSetupUnmergeable:w,resetTargets:d,onSetupTableWithCaption:C,onSetupTableRowHeaders:T,onSetupTableColumnHeaders:S,targets:n.get}},v_=function(e,t,n,r){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(e){return e("inserttable | cell row column | advtablesort | tableprops deletetable")}});var i=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:i("mceTableProps"),icon:"table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:i("mceTableDelete"),icon:"table-delete-table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:i("mceTableCellProps"),icon:"table-cell-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:i("mceTableMergeCells"),icon:"table-merge-cells",onSetup:n.onSetupMergeable}),e.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:i("mceTableSplitCells"),icon:"table-split-cells",onSetup:n.onSetupUnmergeable}),e.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:i("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:i("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:i("mceTableDeleteRow"),icon:"table-delete-row",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:i("mceTableRowProps"),icon:"table-row-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:i("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:i("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:i("mceTableDeleteCol"),icon:"table-delete-column",onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:i("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:i("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:i("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:i("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:i("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:i("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:i("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:i("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")}),e.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:i("mceInsertTable"),icon:"table"});var o=Cm(Ud(e));0!==o.length&&e.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:km(e,t,o,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)})),onSetup:n.onSetupTable});var a=Cm(Ad(e));0!==a.length&&e.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:km(e,t,a,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)})),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:km(e,t,em,"tablecellverticalalign",Dm(e,"vertical-align")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:km(e,t,md(e),"tablecellborderwidth",Dm(e,"border-width")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:km(e,t,vd(e),"tablecellborderstyle",Dm(e,"border-style")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablecaption",{tooltip:"Table caption",onAction:i("mceTableToggleCaption"),icon:"table-caption",onSetup:n.onSetupTableWithCaption}),e.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:function(t){return t(Tm(e,jd(e),"background-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function(t){return t(Tm(e,Hd(e),"border-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablerowheader",{tooltip:"Row header",icon:"table-top-header",onAction:Sm(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleButton("tablecolheader",{tooltip:"Column header",icon:"table-left-header",onAction:Am(e),onSetup:n.onSetupTableColumnHeaders})},b_=function(e){var t=function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},n=Rd(e);n.length>0&&e.ui.registry.addContextToolbar("table",{predicate:t,items:n,scope:"node",position:"node"})},y_=function(e,t,n,r){var i=function(t){return function(){return e.execCommand(t)}},o=function(t){e.execCommand("mceInsertTable",!1,{rows:t.numRows,columns:t.numColumns})},a={text:"Table properties",onSetup:n.onSetupTable,onAction:i("mceTableProps")},s={text:"Delete table",icon:"table-delete-table",onSetup:n.onSetupTable,onAction:i("mceTableDelete")};e.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:i("mceTableInsertRowBefore"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:i("mceTableInsertRowAfter"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:i("mceTableDeleteRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:i("mceTableRowProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:i("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:i("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:i("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:i("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)});var c={type:"nestedmenuitem",text:"Row",getSubmenuItems:v("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")};e.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:i("mceTableInsertColBefore"),onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:i("mceTableInsertColAfter"),onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:i("mceTableDeleteCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:i("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:i("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:i("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:i("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")});var u={type:"nestedmenuitem",text:"Column",getSubmenuItems:v("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")};e.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:i("mceTableCellProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:i("mceTableMergeCells"),onSetup:n.onSetupMergeable}),e.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:i("mceTableSplitCells"),onSetup:n.onSetupUnmergeable});var l={type:"nestedmenuitem",text:"Cell",getSubmenuItems:v("tablecellprops tablemergecells tablesplitcells")};!1===Td(e)?e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:i("mceInsertTable")}):e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:o}]}}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:i("mceInsertTable")}),e.ui.registry.addMenuItem("tableprops",a),e.ui.registry.addMenuItem("deletetable",s),e.ui.registry.addNestedMenuItem("row",c),e.ui.registry.addNestedMenuItem("column",u),e.ui.registry.addNestedMenuItem("cell",l),e.ui.registry.addContextMenu("table",{update:function(){return n.resetTargets(),n.targets().fold(v(""),(function(e){return"caption"===nn(e.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}});var d=Cm(Ud(e));0!==d.length&&e.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return wm(e,t,d,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)}))},onSetup:n.onSetupTable});var f=Cm(Ad(e));0!==f.length&&e.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return wm(e,t,f,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)}))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return wm(e,t,em,"tablecellverticalalign",Dm(e,"vertical-align"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return wm(e,t,md(e),"tablecellborderwidth",Dm(e,"border-width"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return wm(e,t,vd(e),"tablecellborderstyle",Dm(e,"border-style"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablecaption",{icon:"table-caption",text:"Table caption",onAction:i("mceTableToggleCaption"),onSetup:n.onSetupTableWithCaption}),e.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return Tm(e,jd(e),"background-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return Tm(e,Hd(e),"border-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablerowheader",{text:"Row header",icon:"table-top-header",onAction:Sm(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleMenuItem("tablecolheader",{text:"Column header",icon:"table-left-header",onAction:Am(e),onSetup:n.onSetupTableColumnHeaders})},x_=function(e){var t=vo((function(){return qs(e)}),(function(){return wc(tc(e),Xs(e))}),pc.selectedSelector),n=m_(e,t),r=of(e),i=p_(e,r.lazyResize,n),o=wg(e,i,r.lazyWire),a=xv();return bv(e,o,i,t,a),yv(e,o,t),Ac(e,t,o),y_(e,t,n,a),v_(e,t,n,a),b_(e),e.on("PreInit",(function(){e.serializer.addTempAttr(pc.firstSelected),e.serializer.addTempAttr(pc.lastSelected),Cv(e)})),_d(e)&&e.on("keydown",(function(t){oy(t,e,i)})),e.on("remove",(function(){r.destroy()})),jg(e,a,r,n)};function __(){bo.add("table",x_)}__()})()},9567:function(e,t,n){var r=n("c46f"),i=n("ebf8"),o=n("9d83"),a=n("335c"),s=n("03e1"),c=n("1259"),u=n("5ddd"),l=n("9796");function d(e){return{convertToHtml:function(t){var n=r.indexBy(t.type===o.types.document?t.comments:[],"commentId"),i=new f(e,n);return i.convertToHtml(t)}}}function f(e,t){var n=1,d=[],f=[];e=r.extend({ignoreEmptyParagraphs:!0},e);var h=void 0===e.idPrefix?"":e.idPrefix,y=e.ignoreEmptyParagraphs,x=a.topLevelElement("p"),_=e.styleMap||[];function w(t){var n=[],o=C(t,n,{}),a=[];v(o,(function(e){"deferred"===e.type&&a.push(e)}));var c={};return i.mapSeries(a,(function(e){return e.value().then((function(t){c[e.id]=t}))})).then((function(){function t(e){return m(e,(function(e){return"deferred"===e.type?c[e.id]:e.children?[r.extend({},e,{children:t(e.children)})]:[e]}))}var i=l.writer({prettyPrint:e.prettyPrint,outputFormat:e.outputFormat});return u.write(i,u.simplify(t(o))),new s.Result(i.asString(),n)}))}function D(e,t,n){return m(e,(function(e){return C(e,t,n)}))}function C(e,t,n){if(!n)throw new Error("options not set");var r=$[e.type];return r?r(e,t,n):[]}function k(e,t,n){return T(e,t).wrap((function(){var r=D(e.children,t,n);return y?r:[u.forceWrite].concat(r)}))}function T(e,t){var n=U(e);return n?n.to:(e.styleId&&t.push(g("paragraph",e)),x)}function S(e,t,n){var r=function(){return D(e.children,t,n)},i=[];e.isSmallCaps&&i.push(A("smallCaps")),e.isAllCaps&&i.push(A("allCaps")),e.isStrikethrough&&i.push(A("strikethrough","s")),e.isUnderline&&i.push(A("underline")),e.verticalAlignment===o.verticalAlignment.subscript&&i.push(a.element("sub",{},{fresh:!1})),e.verticalAlignment===o.verticalAlignment.superscript&&i.push(a.element("sup",{},{fresh:!1})),e.isItalic&&i.push(A("italic","em")),e.isBold&&i.push(A("bold","strong"));var s=a.empty,c=U(e);return c?s=c.to:e.styleId&&t.push(g("run",e)),i.push(s),i.forEach((function(e){r=e.wrap.bind(e,r)})),r()}function A(e,t){var n=E({type:e});return n||(t?a.element(t,{},{fresh:!1}):a.empty)}function E(e,t){var n=U(e);return n?n.to:t}function U(e){for(var t=0;t<_.length;t++)if(_[t].from.matches(e))return _[t]}function O(e){return function(t,n){return i.attempt((function(){return e(t,n)})).caught((function(e){return n.push(s.error(e)),[]}))}}function F(e){return R(e.noteType,e.noteId)}function P(e){return N(e.noteType,e.noteId)}function R(e,t){return M(e+"-"+t)}function N(e,t){return M(e+"-ref-"+t)}function M(e){return h+e}var I=a.elements([a.element("table",{},{fresh:!0})]);function B(e,t,n){return E(e,I).wrap((function(){return L(e,t,n)}))}function L(e,t,n){var i,a=r.findIndex(e.children,(function(e){return!e.type===o.types.tableRow||!e.isHeader}));if(-1===a&&(a=e.children.length),0===a)i=D(e.children,t,r.extend({},n,{isTableHeader:!1}));else{var s=D(e.children.slice(0,a),t,r.extend({},n,{isTableHeader:!0})),c=D(e.children.slice(a),t,r.extend({},n,{isTableHeader:!1}));i=[u.freshElement("thead",{},s),u.freshElement("tbody",{},c)]}return[u.forceWrite].concat(i)}function z(e,t,n){var r=D(e.children,t,n);return[u.freshElement("tr",{},[u.forceWrite].concat(r))]}function W(e,t,n){var r=n.isTableHeader?"th":"td",i=D(e.children,t,n),o={};return 1!==e.colSpan&&(o.colspan=e.colSpan.toString()),1!==e.rowSpan&&(o.rowspan=e.rowSpan.toString()),[u.freshElement(r,o,[u.forceWrite].concat(i))]}function j(e,n,r){return E(e,a.ignore).wrap((function(){var n=t[e.commentId],r=f.length+1,i="["+b(n)+r+"]";return f.push({label:i,comment:n}),[u.freshElement("a",{href:"#"+R("comment",e.commentId),id:N("comment",e.commentId)},[u.text(i)])]}))}function H(e,t,n){var r=e.label,i=e.comment,o=D(i.body,t,n).concat([u.nonFreshElement("p",{},[u.text(" "),u.freshElement("a",{href:"#"+N("comment",i.commentId)},[u.text("↑")])])]);return[u.freshElement("dt",{id:R("comment",i.commentId)},[u.text("Comment "+r)]),u.freshElement("dd",{},o)]}function V(e,t,n){return q(e).wrap((function(){return[]}))}function q(e){var t=U(e);return t?t.to:"line"===e.breakType?a.topLevelElement("br"):a.empty}var $={document:function(e,t,n){var r=D(e.children,t,n),i=d.map((function(t){return e.notes.resolve(t)})),o=D(i,t,n);return r.concat([u.freshElement("ol",{},o),u.freshElement("dl",{},m(f,(function(e){return H(e,t,n)})))])},paragraph:k,run:S,text:function(e,t,n){return[u.text(e.value)]},tab:function(e,t,n){return[u.text("\t")]},hyperlink:function(e,t,n){var r=e.anchor?"#"+M(e.anchor):e.href,i={href:r};null!=e.targetFrame&&(i.target=e.targetFrame);var o=D(e.children,t,n);return[u.nonFreshElement("a",i,o)]},bookmarkStart:function(e,t,n){var r=u.freshElement("a",{id:M(e.name)},[u.forceWrite]);return[r]},noteReference:function(e,t,r){d.push(e);var i=u.freshElement("a",{href:"#"+F(e),id:P(e)},[u.text("["+n+++"]")]);return[u.freshElement("sup",{},[i])]},note:function(e,t,n){var r=D(e.body,t,n),i=u.elementWithTag(a.element("p",{},{fresh:!1}),[u.text(" "),u.freshElement("a",{href:"#"+P(e)},[u.text("↑")])]),o=r.concat([i]);return u.freshElement("li",{id:F(e)},o)},commentReference:j,comment:H,image:p(O(e.convertImage||c.dataUri)),table:B,tableRow:z,tableCell:W,break:V};return{convertToHtml:w}}t.DocumentConverter=d;var h=1;function p(e){return function(t,n,r){return[{type:"deferred",id:h++,value:function(){return e(t,n,r)}}]}}function g(e,t){return s.warning("Unrecognised "+e+" style: '"+t.styleName+"' (Style ID: "+t.styleId+")")}function m(e,t){return r.flatten(e.map(t),!0)}function v(e,t){e.forEach((function(e){t(e),e.children&&v(e.children,t)}))}var b=t.commentAuthorLabel=function(e){return e.authorInitials||""}},"95c8":function(e,t,n){"use strict";n("e693")},9626:function(e,t,n){e.exports=n.p+"img/ocr.98b1424e.svg"},9752:function(e,t,n){"use strict";e.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype["return"]=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype["throw"]=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1],r=function(){throw t};return this.caught(e,r)},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];r instanceof e&&r.suppressUnhandledRejections();var i=function(){return r};return this.caught(n,i)}}},9796:function(e,t,n){var r=n("8cb0"),i=n("d64c");function o(e){return e=e||{},"markdown"===e.outputFormat?i.writer():r.writer(e)}t.writer=o},9899:function(e,t,n){"use strict";n("2ddd")},"98ae":function(e,t,n){},"9ad5":function(e,t,n){"use strict";e.exports=function(e,t,r,i){var o=n("6df9"),a=o.tryCatch,s=o.errorObj,c=e._async;e.prototype["break"]=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");var e=this,t=e;while(e._isCancellable()){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(void 0!==e)if("function"===typeof e){if(!t){var r=a(e).call(this._boundValue());r===s&&(this._attachExtraTrace(r.e),c.throwLater(r.e))}}else e._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),c.invoke(this._doInvokeOnCancel,this,e)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}},"9cb2":function(e,t,n){"use strict";n("f34b")},"9d2f":function(e,t,n){(function(){var t,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=n("92e7"),e.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(n)}return r(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).text(this)},t}(t)}).call(this)},"9d83":function(e,t,n){(function(e){var r=n("c46f"),i=t.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function o(e,t){return t=t||{},{type:i.document,children:e,notes:t.notes||new h({}),comments:t.comments||[]}}function a(e,t){t=t||{};var n=t.indent||{};return{type:i.paragraph,children:e,styleId:t.styleId||null,styleName:t.styleName||null,numbering:t.numbering||null,alignment:t.alignment||null,indent:{start:n.start||null,end:n.end||null,firstLine:n.firstLine||null,hanging:n.hanging||null}}}function s(e,t){return t=t||{},{type:i.run,children:e,styleId:t.styleId||null,styleName:t.styleName||null,isBold:!!t.isBold,isUnderline:!!t.isUnderline,isItalic:!!t.isItalic,isStrikethrough:!!t.isStrikethrough,isAllCaps:!!t.isAllCaps,isSmallCaps:!!t.isSmallCaps,verticalAlignment:t.verticalAlignment||c.baseline,font:t.font||null,fontSize:t.fontSize||null}}var c={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function u(e){return{type:i.text,value:e}}function l(){return{type:i.tab}}function d(e,t){return{type:i.hyperlink,children:e,href:t.href,anchor:t.anchor,targetFrame:t.targetFrame}}function f(e){return{type:i.noteReference,noteType:e.noteType,noteId:e.noteId}}function h(e){this._notes=r.indexBy(e,(function(e){return v(e.noteType,e.noteId)}))}function p(e){return{type:i.note,noteType:e.noteType,noteId:e.noteId,body:e.body}}function g(e){return{type:i.commentReference,commentId:e.commentId}}function m(e){return{type:i.comment,commentId:e.commentId,body:e.body,authorName:e.authorName,authorInitials:e.authorInitials}}function v(e,t){return e+"-"+t}function b(t){return{type:i.image,read:function(n){return n?t.readImage(n):t.readImage().then((function(t){return e.from(t)}))},readAsArrayBuffer:function(){return t.readImage()},readAsBase64String:function(){return t.readImage("base64")},readAsBuffer:function(){return t.readImage().then((function(t){return e.from(t)}))},altText:t.altText,contentType:t.contentType}}function y(e,t){return t=t||{},{type:i.table,children:e,styleId:t.styleId||null,styleName:t.styleName||null}}function x(e,t){return t=t||{},{type:i.tableRow,children:e,isHeader:t.isHeader||!1}}function _(e,t){return t=t||{},{type:i.tableCell,children:e,colSpan:null==t.colSpan?1:t.colSpan,rowSpan:null==t.rowSpan?1:t.rowSpan}}function w(e){return{type:i["break"],breakType:e}}function D(e){return{type:i.bookmarkStart,name:e.name}}h.prototype.resolve=function(e){return this.findNoteByKey(v(e.noteType,e.noteId))},h.prototype.findNoteByKey=function(e){return this._notes[e]||null},t.document=t.Document=o,t.paragraph=t.Paragraph=a,t.run=t.Run=s,t.text=t.Text=u,t.tab=t.Tab=l,t.Hyperlink=d,t.noteReference=t.NoteReference=f,t.Notes=h,t.Note=p,t.commentReference=g,t.comment=m,t.Image=b,t.Table=y,t.TableRow=x,t.TableCell=_,t.lineBreak=w("line"),t.pageBreak=w("page"),t.columnBreak=w("column"),t.BookmarkStart=D,t.verticalAlignment=c}).call(this,n("b639").Buffer)},a068:function(e,t,n){"use strict";n.r(t);var r=n("f8db"),i=Promise.resolve();t["default"]=function(e){function t(e){return"object"===typeof e&&null!==e&&!0===e.__PDFDocumentLoadingTask}function n(t,n){var r;if("string"===typeof t)r={url:t};else if(t instanceof Uint8Array)r={data:t};else{if("object"!==typeof t||null===t)throw new TypeError("invalid src type");r=Object.assign({},t)}n&&n.withCredentials&&(r.withCredentials=n.withCredentials);var i=e.getDocument(r);return i.__PDFDocumentLoadingTask=!0,n&&n.onPassword&&(i.onPassword=n.onPassword),n&&n.onProgress&&(i.onProgress=n.onProgress),i}function o(o,a,s){var c=null,u=null,l=null,d=!1;function f(){o.getContext("2d").clearRect(0,0,o.width,o.height)}function h(){while(a.firstChild)a.removeChild(a.firstChild)}o.getContext("2d").save(),this.destroy=function(){null!==c&&(i=c.destroy(),c=null)},this.getResolutionScale=function(){return o.offsetWidth/o.width},this.printPage=function(e,t){if(null!==u){var n=void 0===e?150:e,r=n/72,i=96/72,o=document.createElement("iframe");new Promise((function(e,t){o.frameBorder="0",o.scrolling="no",o.width="0px;",o.height="0px;",o.style.cssText="position: absolute; top: 0; left: 0",o.onload=function(){e(this.contentWindow)},window.document.body.appendChild(o)})).then((function(e){return e.document.title="",c.getPage(1).then((function(t){var n=t.getViewport({scale:1});return e.document.head.appendChild(e.document.createElement("style")).textContent="@supports ((size:A4) and (size:1pt 1pt)) {@page { margin: 1pt; size: "+n.width*r/i+"pt "+n.height*r/i+"pt; }}@media print {body { margin: 0 }canvas { page-break-before: avoid; page-break-after: always; page-break-inside: avoid }}@media screen {body { margin: 0 }}",e}))})).then((function(e){for(var n=[],i=1;i<=c.numPages;++i)void 0!==t&&-1===t.indexOf(i)||n.push(c.getPage(i).then((function(t){var n=t.getViewport({scale:1}),i=e.document.body.appendChild(e.document.createElement("canvas"));return i.width=n.width*r,i.height=n.height*r,t.render({canvasContext:i.getContext("2d"),transform:[r,0,0,r,0,0],viewport:n,intent:"print"}).promise})));Promise.all(n).then((function(){e.focus(),e.document.queryCommandSupported("print")?e.document.execCommand("print",!1,null):e.print(),a()})).catch((function(e){a(),s("error",e)}))}))}function a(){o.parentNode.removeChild(o)}},this.renderPage=function(t){if(null!==l){if(d)return;return d=!0,void l.cancel().catch((function(e){s("error",e)}))}if(null!==u){var n=(void 0===u.rotate?0:u.rotate)+(void 0===t?0:t),f=o.offsetWidth/u.getViewport({scale:1}).width*(window.devicePixelRatio||1),p=u.getViewport({scale:f,rotation:n});s("page-size",p.width,p.height,f),o.width=p.width,o.height=p.height,l=u.render({canvasContext:o.getContext("2d"),viewport:p}),a.style.visibility="hidden",h();var g={scrollPageIntoView:function(e){s("link-clicked",e.pageNumber)}},m=new r["PDFLinkService"];m.setDocument(c),m.setViewer(g),i=i.then(function(){var n=u.getAnnotations({intent:"display"}).then((function(t){e.AnnotationLayer.render({viewport:p.clone({dontFlip:!0}),div:a,annotations:t,page:u,linkService:m,renderInteractiveForms:!1})})),r=l.promise.then((function(){a.style.visibility="",d=!1,l=null})).catch(function(n){if(l=null,n instanceof e.RenderingCancelledException)return d=!1,void this.renderPage(t);s("error",n)}.bind(this));return Promise.all([n,r])}.bind(this))}},this.forEachPage=function(e){var t=c.numPages;(function n(r){c.getPage(r).then(e).then((function(){++r<=t&&n(r)}))})(1)},this.loadPage=function(e,t){u=null,null!==c&&(i=i.then((function(){return c.getPage(e)})).then(function(e){u=e,this.renderPage(t),s("page-loaded",e.pageNumber)}.bind(this)).catch((function(e){f(),h(),s("error",e)})))},this.loadDocument=function(r){if(c=null,u=null,s("num-pages",void 0),!r)return o.removeAttribute("width"),o.removeAttribute("height"),void h();i=i.then((function(){var i;if(t(r)){if(r.destroyed)return void s("error",new Error("loadingTask has been destroyed"));i=r}else i=n(r,{onPassword:function(t,n){var r;switch(n){case e.PasswordResponses.NEED_PASSWORD:r="NEED_PASSWORD";break;case e.PasswordResponses.INCORRECT_PASSWORD:r="INCORRECT_PASSWORD";break}s("password",t,r)},onProgress:function(e){var t=e.loaded/e.total;s("progress",Math.min(t,1))}});return i.promise})).then((function(e){c=e,s("num-pages",e.numPages),s("loaded")})).catch((function(e){f(),h(),s("error",e)}))},a.style.transformOrigin="0 0"}return{createLoadingTask:n,PDFJSWrapper:o}}},a08f:function(e,t,n){},a2f9:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticClass:"card-info",attrs:{bordered:!1}},[n("a-row",{attrs:{type:"flex"}},[n("a-col",{staticClass:"col-content",attrs:{span:24,xl:12}},[n("div",{staticClass:"card-content"},[n("h5",[e._v(e._s(e.casedata.title))]),n("div",{staticClass:"neirong",staticStyle:{width:"95%"},domProps:{innerHTML:e._s(e.casedata.content)}})])])],1)],1)},i=[],o={data(){return{casedata:[],newsid:{}}},created(){this.newsid=this.$route.query,this.getCaseList()},mounted(){console.log(this.newsid)},methods:{getCaseList(){this.$http("case.detail",{id:this.newsid.newsid}).then(e=>{1===e.code&&(this.casedata=e.data)})}}},a=o,s=(n("8ebd"),n("2877")),c=Object(s["a"])(a,r,i,!1,null,"014912ea",null);t["default"]=c.exports},a376:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d"))},n=function(e){return e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S"))},r=function(e){return e.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])},i=function(e){var t=r(e);return t.length>0?t[0]:n(e)},o=function(e){return e.getParam("insertdatetime_element",!1)},a="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),s="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),c="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),u="January February March April May June July August September October November December".split(" "),l=function(e,t){if(e=""+e,e.length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e},d=function(e,t,n){return void 0===n&&(n=new Date),t=t.replace("%D","%m/%d/%Y"),t=t.replace("%r","%I:%M:%S %p"),t=t.replace("%Y",""+n.getFullYear()),t=t.replace("%y",""+n.getYear()),t=t.replace("%m",l(n.getMonth()+1,2)),t=t.replace("%d",l(n.getDate(),2)),t=t.replace("%H",""+l(n.getHours(),2)),t=t.replace("%M",""+l(n.getMinutes(),2)),t=t.replace("%S",""+l(n.getSeconds(),2)),t=t.replace("%I",""+((n.getHours()+11)%12+1)),t=t.replace("%p",n.getHours()<12?"AM":"PM"),t=t.replace("%B",""+e.translate(u[n.getMonth()])),t=t.replace("%b",""+e.translate(c[n.getMonth()])),t=t.replace("%A",""+e.translate(s[n.getDay()])),t=t.replace("%a",""+e.translate(a[n.getDay()])),t=t.replace("%%","%"),t},f=function(e,t,n,r){var i=e.dom.create("time",{datetime:n},r);t.parentNode.insertBefore(i,t),e.dom.remove(t),e.selection.select(i,!0),e.selection.collapse(!1)},h=function(e,t){if(o(e)){var n=d(e,t),r=void 0;r=/%[HMSIp]/.test(t)?d(e,"%Y-%m-%dT%H:%M"):d(e,"%Y-%m-%d");var i=e.dom.getParent(e.selection.getStart(),"time");i?f(e,i,r,n):e.insertContent('<time datetime="'+r+'">'+n+"</time>")}else e.insertContent(d(e,t))},p=function(e){e.addCommand("mceInsertDate",(function(n,r){h(e,null!==r&&void 0!==r?r:t(e))})),e.addCommand("mceInsertTime",(function(t,r){h(e,null!==r&&void 0!==r?r:n(e))}))},g=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},m=tinymce.util.Tools.resolve("tinymce.util.Tools"),v=function(e){var t=r(e),n=g(i(e)),o=function(t){return e.execCommand("mceInsertDate",!1,t)};e.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:function(e){return e===n.get()},fetch:function(n){n(m.map(t,(function(t){return{type:"choiceitem",text:d(e,t),value:t}})))},onAction:function(e){o(n.get())},onItemAction:function(e,t){n.set(t),o(t)}});var a=function(e){return function(){n.set(e),o(e)}};e.ui.registry.addNestedMenuItem("insertdatetime",{icon:"insert-time",text:"Date/time",getSubmenuItems:function(){return m.map(t,(function(t){return{type:"menuitem",text:d(e,t),onAction:a(t)}}))}})};function b(){e.add("insertdatetime",(function(e){p(e),v(e)}))}b()})()},a4b6:function(e,t){(function(){var t={}.hasOwnProperty;e.exports=function(){function e(e){var n,r,i,o,a,s,c,u,l;for(n in e||(e={}),this.pretty=e.pretty||!1,this.allowEmpty=null!=(r=e.allowEmpty)&&r,this.pretty?(this.indent=null!=(i=e.indent)?i:"  ",this.newline=null!=(o=e.newline)?o:"\n",this.offset=null!=(a=e.offset)?a:0,this.dontprettytextnodes=null!=(s=e.dontprettytextnodes)?s:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=null!=(c=e.spacebeforeslash)?c:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,u=e.writer||{},u)t.call(u,n)&&(l=u[n],this[n]=l)}return e.prototype.set=function(e){var n,r,i;for(n in e||(e={}),"pretty"in e&&(this.pretty=e.pretty),"allowEmpty"in e&&(this.allowEmpty=e.allowEmpty),this.pretty?(this.indent="indent"in e?e.indent:"  ",this.newline="newline"in e?e.newline:"\n",this.offset="offset"in e?e.offset:0,this.dontprettytextnodes="dontprettytextnodes"in e?e.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in e?e.spacebeforeslash:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,r=e.writer||{},r)t.call(r,n)&&(i=r[n],this[n]=i);return this},e.prototype.space=function(e){var t;return this.pretty?(t=(e||0)+this.offset+1,t>0?new Array(t).join(this.indent):""):""},e}()}).call(this)},a4ba:function(e,t,n){"use strict";n("15da")},a623:function(e,t,n){"use strict";(function(t,r){var i,o=n("6df9"),a=function(){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")},s=o.getNativePromise();if(o.isNode&&"undefined"===typeof MutationObserver){var c=t.setImmediate,u=r.nextTick;i=o.isRecentNode?function(e){c.call(t,e)}:function(e){u.call(r,e)}}else if("function"===typeof s&&"function"===typeof s.resolve){var l=s.resolve();i=function(e){l.then(e)}}else i="undefined"===typeof MutationObserver||"undefined"!==typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?"undefined"!==typeof setImmediate?function(e){setImmediate(e)}:"undefined"!==typeof setTimeout?function(e){setTimeout(e,0)}:a:function(){var e=document.createElement("div"),t={attributes:!0},n=!1,r=document.createElement("div"),i=new MutationObserver((function(){e.classList.toggle("foo"),n=!1}));i.observe(r,t);var o=function(){n||(n=!0,r.classList.toggle("foo"))};return function(n){var r=new MutationObserver((function(){r.disconnect(),n()}));r.observe(e,t),o()}}();e.exports=i}).call(this,n("c8ba"),n("4362"))},a6fb:function(e,t,n){var r=n("83da"),i=n("4e02");function o(e){function t(e,t){var r=new i(e,t),a=0,s=[];while(a<e.length){var c=n(e,a,r);a=c.endIndex,s.push(c.token)}return s.push(o(e,r)),s}function n(t,n,i){for(var o=0;o<e.length;o++){var a=e[o].regex;a.lastIndex=n;var s=a.exec(t);if(s){var c=n+s[0].length;if(s.index===n&&c>n){var u=s[1],l=new r(e[o].name,u,i.range(n,c));return{token:l,endIndex:c}}}}c=n+1,l=new r("unrecognisedCharacter",t.substring(n,c),i.range(n,c));return{token:l,endIndex:c}}function o(e,t){return new r("end",null,t.range(e.length,e.length))}return e=e.map((function(e){return{name:e.name,regex:new RegExp(e.regex.source,"g")}})),{tokenise:t}}t.RegexTokeniser=o},a80f:function(e,t,n){var r=n("d688");t.Element=r.Element,t.element=r.element,t.text=r.text,t.readString=n("6390").readString,t.writeString=n("7a01").writeString},a88e:function(e,t,n){var r=n("ad74"),i=n("85d1");function o(e){function t(t){return new o(e.slice(0,a().indexOf(t)))}function n(t){return new o(e.slice(0,a().indexOf(t)+1))}function a(){return e.map((function(e){return e.name}))}function s(e){var t,n;while(1){if(t=c(e.remaining()),!t.isSuccess())return t.isFailure()?e:t;n=e.source().to(t.source()),e=i.success(t.value()(e.value(),n),t.remaining(),n)}}function c(t){return r.firstOf("infix",e.map((function(e){return e.rule})))(t)}return{apply:s,untilExclusive:t,untilInclusive:n}}t.parser=function(e,t,n){var i={rule:l,leftAssociative:d,rightAssociative:f},s=new o(n.map(u)),c=r.firstOf(e,t);function u(e){return{name:e.name,rule:a(e.ruleBuilder.bind(null,i))}}function l(){return h(s)}function d(e){return h(s.untilExclusive(e))}function f(e){return h(s.untilInclusive(e))}function h(e){return p.bind(null,e)}function p(e,t){var n=c(t);return n.isSuccess()?e.apply(n):n}return i},t.infix=function(e,n){function r(r){return t.infix(e,(function(e){var t=n(e);return function(e){var n=t(e);return n.map((function(e){return function(t,n){return r(t,e,n)}}))}}))}return{name:e,ruleBuilder:n,map:r}};var a=function(e){var t;return function(n){return t||(t=e()),t(n)}}},a8b8:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){},n=function(e){return function(){return e}},r=function(e){return e},i=n(!1),o=n(!0),a=function(){return s},s=function(){var e=function(e){return e()},s=r,c={fold:function(e,t){return e()},isSome:i,isNone:o,getOr:s,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:n(null),getOrUndefined:n(void 0),or:s,orThunk:e,map:a,each:t,bind:a,exists:i,forall:o,filter:function(){return a()},toArray:function(){return[]},toString:n("none()")};return c}(),c=function(e){var t=n(e),r=function(){return u},a=function(t){return t(e)},u={fold:function(t,n){return n(e)},isSome:o,isNone:i,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:r,orThunk:r,map:function(t){return c(t(e))},each:function(t){t(e)},bind:a,exists:a,forall:a,filter:function(t){return t(e)?u:s},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return u},u=function(e){return null===e||void 0===e?s:c(e)},l={some:c,none:a,from:u},d=function(e,t){return t>=0&&t<e.length?l.some(e[t]):l.none()},f=function(e){return d(e,0)},h=function(e,t){return e?l.some(t):l.none()},p=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),g=function(e){return e&&"PRE"===e.nodeName&&-1!==e.className.indexOf("language-")},m=function(e){return function(t,n){return e(n)}},v="undefined"!==typeof window?window:Function("return this;")(),b={},y={exports:b},x={};(function(e,t,n,r){var i=window.Prism;window.Prism={manual:!0},function(r,i){"object"===typeof t&&"undefined"!==typeof n?n.exports=i():"function"===typeof e&&e.amd?e(i):(r="undefined"!==typeof globalThis?globalThis:r||self,r.EphoxContactWrapper=i())}(this,(function(){var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof x?x:"undefined"!==typeof self?self:{},t={exports:{}};(function(t){var n="undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e["__id"]||Object.defineProperty(e,"__id",{value:++n}),e["__id"]},clone:function e(t,n){var r,o;switch(n=n||{},i.util.type(t)){case"Object":if(o=i.util.objId(t),n[o])return n[o];for(var a in r={},n[o]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return o=i.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){while(e){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t.source,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"===typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){var r="no-"+t;while(e){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||i.languages;var o=r[e],a={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=o[s])}var u=r[e];return r[e]=a,i.languages.DFS(i.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,o){o=o||{};var a=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],u=i.util.type(c);"Object"!==u||o[a(c)]?"Array"!==u||o[a(c)]||(o[a(c)]=!0,e(c,n,s,o)):(o[a(c)]=!0,e(c,n,null,o))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===t,r.callback)},highlightElement:function(t,n,r){var o=i.util.getLanguage(t),a=i.languages[o];i.util.setLanguage(t,o);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&i.util.setLanguage(s,o);var c=t.textContent,u={element:t,language:o,grammar:a,code:c};function l(e){u.highlightedCode=e,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i.hooks.run("after-highlight",u),i.hooks.run("complete",u),r&&r.call(u.element)}if(i.hooks.run("before-sanity-check",u),s=u.element.parentElement,s&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!u.code)return i.hooks.run("complete",u),void(r&&r.call(u.element));if(i.hooks.run("before-highlight",u),u.grammar)if(n&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){l(e.data)},d.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else l(i.highlight(u.code,u.grammar,u.language));else l(i.util.encode(u.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return u(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function s(e,t,n,r,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var h=n[f];h=Array.isArray(h)?h:[h];for(var p=0;p<h.length;++p){if(d&&d.cause==f+","+p)return;var g=h[p],m=g.inside,v=!!g.lookbehind,b=!!g.greedy,y=g.alias;if(b&&!g.pattern.global){var x=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,x+"g")}for(var _=g.pattern||g,w=r.next,D=c;w!==t.tail;D+=w.value.length,w=w.next){if(d&&D>=d.reach)break;var C=w.value;if(t.length>e.length)return;if(!(C instanceof o)){var k,T=1;if(b){if(k=a(_,D,e,v),!k||k.index>=e.length)break;var S=k.index,A=k.index+k[0].length,E=D;E+=w.value.length;while(S>=E)w=w.next,E+=w.value.length;if(E-=w.value.length,D=E,w.value instanceof o)continue;for(var U=w;U!==t.tail&&(E<A||"string"===typeof U.value);U=U.next)T++,E+=U.value.length;T--,C=e.slice(D,E),k.index-=D}else if(k=a(_,0,C,v),!k)continue;S=k.index;var O=k[0],F=C.slice(0,S),P=C.slice(S+O.length),R=D+C.length;d&&R>d.reach&&(d.reach=R);var N=w.prev;F&&(N=u(t,N,F),D+=F.length),l(t,N,T);var M=new o(f,m?i.tokenize(O,m):O,y,O);if(w=u(t,N,M),P&&u(t,w,P),T>1){var I={cause:f+","+p,reach:R};s(e,t,n,w.prev,D,I),d&&I.reach>d.reach&&(d.reach=I.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function l(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function d(e){var t=[],n=e.head.next;while(n!==e.tail)t.push(n.value),n=n.next;return t}if(e.Prism=i,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var s="";for(var c in o.attributes)s+=" "+c+'="'+(o.attributes[c]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()}),!1),i):i;var f=i.util.currentScript();function h(){i.manual||i.highlightAll()}if(f&&(i.filename=f.src,f.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16)}return i}(n);t.exports&&(t.exports=r),"undefined"!==typeof e&&(e.Prism=r)})(t),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,o){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(i,(function(e){if("function"===typeof o&&!o(e))return e;var i,s=a.length;while(-1!==n.code.indexOf(i=t(r,s)))++s;return a[s]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var i=0,o=Object.keys(n.tokenStack);a(n.tokens)}function a(s){for(var c=0;c<s.length;c++){if(i>=o.length)break;var u=s[c];if("string"===typeof u||u.content&&"string"===typeof u.content){var l=o[i],d=n.tokenStack[l],f="string"===typeof u?u:u.content,h=t(r,l),p=f.indexOf(h);if(p>-1){++i;var g=f.substring(0,p),m=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),v=f.substring(p+h.length),b=[];g&&b.push.apply(b,a([g])),b.push(m),v&&b.push.apply(b,a([v])),"string"===typeof u?s.splice.apply(s,[c,1].concat(b)):u.content=b}}else u.content&&a(u.content)}return s}}}})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c["string"]],char:Prism.languages.c["char"],comment:Prism.languages.c["comment"],"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c["boolean"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var i={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var a=o(i.typeDeclaration),s=RegExp(o(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),c=o(i.typeDeclaration+" "+i.contextual+" "+i.other),u=o(i.type+" "+i.typeDeclaration+" "+i.other),l=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),d=r(/\((?:[^()]|<<self>>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,h=t(/<<0>>(?:\s*<<1>>)?/.source,[f,l]),p=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,h]),g=/\[\s*(?:,\s*)*\]/.source,m=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[p,g]),v=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[l,d,g]),b=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),y=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[b,p,g]),x={keyword:s,punctuation:/[<>()?,.:[\]]/},_=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,w=/"(?:\\.|[^\\"\r\n])*"/.source,D=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[w]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[p]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,y]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[a,h]),lookbehind:!0,inside:x},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[p]),lookbehind:!0,inside:x},{pattern:n(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[m]),lookbehind:!0,inside:x},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[y,u,f]),inside:x}],keyword:s,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[d]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[y,p]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[y]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,l]),inside:{function:n(/^<<0>>/.source,[f]),generic:{pattern:RegExp(l),alias:"class-name",inside:x}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[a,h,f,y,s.source,d,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[h,d]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:s,"class-name":{pattern:RegExp(y),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var C=w+"|"+_,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[C]),T=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),S=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,A=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[p,T]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[S,A]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[S]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[T]),inside:e.languages.csharp},"class-name":{pattern:RegExp(p),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var E=/:[^}\r\n]+/.source,U=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),O=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[U,E]),F=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[C]),2),P=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,E]);function R(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,E]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[O]),lookbehind:!0,greedy:!0,inside:R(O,U)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:R(P,F)}],char:{pattern:RegExp(_),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css["atrule"].inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup["tag"].inside["attr-value"].inside["entity"]=Prism.languages.markup["entity"],Prism.languages.markup["doctype"].inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes["title"]=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n["cdata"]=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:o};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){var n=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;e.languages["markup-templating"].buildPlaceholders(t,"php",n)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside["interpolation"].inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism);var n=t.exports,r={boltExport:n};return r}));var o=window.Prism;window.Prism=i})(void 0,b,y);var _=y.exports.boltExport,w=function(e){return e.getParam("codesample_languages")},D=function(e){return e.getParam("codesample_global_prismjs",!1,"boolean")},C=function(e){return v.Prism&&D(e)?v.Prism:_},k=function(e){var t=e.selection?e.selection.getNode():null;return h(g(t),t)},T=function(e,t,n){e.undoManager.transact((function(){var r=k(e);return n=p.DOM.encode(n),r.fold((function(){e.insertContent('<pre id="__new" class="language-'+t+'">'+n+"</pre>"),e.selection.select(e.$("#__new").removeAttr("id")[0])}),(function(r){e.dom.setAttrib(r,"class","language-"+t),r.innerHTML=n,C(e).highlightElement(r),e.selection.select(r)}))}))},S=function(e){var t=k(e);return t.fold(n(""),(function(e){return e.textContent}))},A=function(e){var t=[{text:"HTML/XML",value:"markup"},{text:"JavaScript",value:"javascript"},{text:"CSS",value:"css"},{text:"PHP",value:"php"},{text:"Ruby",value:"ruby"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C",value:"c"},{text:"C#",value:"csharp"},{text:"C++",value:"cpp"}],n=w(e);return n||t},E=function(e,t){var n=k(e);return n.fold((function(){return t}),(function(e){var n=e.className.match(/language-(\w+)/);return n?n[1]:t}))},U=function(e){var t=A(e),r=f(t).fold(n(""),(function(e){return e.value})),i=E(e,r),o=S(e);e.windowManager.open({title:"Insert/Edit Code Sample",size:"large",body:{type:"panel",items:[{type:"selectbox",name:"language",label:"Language",items:t},{type:"textarea",name:"code",label:"Code view"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{language:i,code:o},onSubmit:function(t){var n=t.getData();T(e,n.language,n.code),t.close()}})},O=function(e){e.addCommand("codesample",(function(){var t=e.selection.getNode();e.selection.isCollapsed()||g(t)?U(e):e.formatter.toggle("code")}))},F=function(e){var t=e.$;e.on("PreProcess",(function(e){t("pre[contenteditable=false]",e.node).filter(m(g)).each((function(e,n){var r=t(n),i=n.textContent;r.attr("class",t.trim(r.attr("class"))),r.removeAttr("contentEditable"),r.empty().append(t("<code></code>").each((function(){this.textContent=i})))}))})),e.on("SetContent",(function(){var n=t("pre").filter(m(g)).filter((function(e,t){return"false"!==t.contentEditable}));n.length&&e.undoManager.transact((function(){n.each((function(n,r){t(r).find("br").each((function(t,n){n.parentNode.replaceChild(e.getDoc().createTextNode("\n"),n)})),r.contentEditable="false",r.innerHTML=e.dom.encode(r.textContent),C(e).highlightElement(r),r.className=t.trim(r.className)}))}))}))},P=function(e){var t=e.selection.getStart();return e.dom.is(t,'pre[class*="language-"]')},R=function(e){var t=function(){return e.execCommand("codesample")};e.ui.registry.addToggleButton("codesample",{icon:"code-sample",tooltip:"Insert/edit code sample",onAction:t,onSetup:function(t){var n=function(){t.setActive(P(e))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}}}),e.ui.registry.addMenuItem("codesample",{text:"Code sample...",icon:"code-sample",onAction:t})};function N(){e.add("codesample",(function(e){F(e),R(e),O(e),e.on("dblclick",(function(t){g(t.target)&&U(e)}))}))}N()})()},a939:function(e,t,n){},a967:function(e,t,n){"use strict";n("c80a")},ac16:function(e,t,n){e.exports=n.p+"img/word.d4a0f22f.png"},ad74:function(e,t,n){var r=n("c46f"),i=n("ffc2"),o=n("85d1"),a=n("46b5"),s=n("bf28");t.token=function(e,t){var n=void 0!==t;return function(r){var i=r.head();if(!i||i.name!==e||n&&i.value!==t){var a=f({name:e,value:t});return h(r,a)}return o.success(i.value,r.tail(),i.source)}},t.tokenOfType=function(e){return t.token(e)},t.firstOf=function(e,t){return r.isArray(t)||(t=Array.prototype.slice.call(arguments,1)),function(n){return s.fromArray(t).map((function(e){return e(n)})).filter((function(e){return e.isSuccess()||e.isError()})).first()||h(n,e)}},t.then=function(e,t){return function(n){var r=e(n);return r.map||console.log(r),r.map(t)}},t.sequence=function(){var e=Array.prototype.slice.call(arguments,0),n=function(n){var i=r.foldl(e,(function(e,t){var r=e.result,i=e.hasCut;if(!r.isSuccess())return{result:r,hasCut:i};var a=t(r.remaining());if(a.isCut())return{result:r,hasCut:!0};if(a.isSuccess()){var s;s=t.isCaptured?r.value().withValue(t,a.value()):r.value();var c=a.remaining(),u=n.to(c);return{result:o.success(s,c,u),hasCut:i}}return i?{result:o.error(a.errors(),a.remaining()),hasCut:i}:{result:a,hasCut:i}}),{result:o.success(new c,n),hasCut:!1}).result,a=n.to(i.remaining());return i.map((function(e){return e.withValue(t.sequence.source,a)}))};function i(e){return e.isCaptured}return n.head=function(){var o=r.find(e,i);return t.then(n,t.sequence.extract(o))},n.map=function(e){return t.then(n,(function(t){return e.apply(this,t.toArray())}))},n};var c=function(e,t){this._values=e||{},this._valuesArray=t||[]};c.prototype.withValue=function(e,t){if(e.captureName&&e.captureName in this._values)throw new Error('Cannot add second value for capture "'+e.captureName+'"');var n=r.clone(this._values);n[e.captureName]=t;var i=this._valuesArray.concat([t]);return new c(n,i)},c.prototype.get=function(e){if(e.captureName in this._values)return this._values[e.captureName];throw new Error('No value for capture "'+e.captureName+'"')},c.prototype.toArray=function(){return this._valuesArray},t.sequence.capture=function(e,t){var n=function(){return e.apply(this,arguments)};return n.captureName=t,n.isCaptured=!0,n},t.sequence.extract=function(e){return function(t){return t.get(e)}},t.sequence.applyValues=function(e){var t=Array.prototype.slice.call(arguments,1);return function(n){var r=t.map((function(e){return n.get(e)}));return e.apply(this,r)}},t.sequence.source={captureName:"☃source☃"},t.sequence.cut=function(){return function(e){return o.cut(e)}},t.optional=function(e){return function(t){var n=e(t);return n.isSuccess()?n.map(i.some):n.isFailure()?o.success(i.none,t):n}},t.zeroOrMoreWithSeparator=function(e,t){return d(e,t,!1)},t.oneOrMoreWithSeparator=function(e,t){return d(e,t,!0)};var u=t.zeroOrMore=function(e){return function(t){var n,r=[];while((n=e(t))&&n.isSuccess())t=n.remaining(),r.push(n.value());return n.isError()?n:o.success(r,t)}};function l(e){return o.success(null,e)}t.oneOrMore=function(e){return t.oneOrMoreWithSeparator(e,l)};var d=function(e,n,r){return function(i){var a=e(i);if(a.isSuccess()){var s=t.sequence.capture(e,"main"),c=u(t.then(t.sequence(n,s),t.sequence.extract(s))),l=c(a.remaining());return o.success([a.value()].concat(l.value()),l.remaining())}return r||a.isError()?a:o.success([],i)}};t.leftAssociative=function(e,n,r){var i;i=r?[{func:r,rule:n}]:n,i=i.map((function(e){return t.then(e.rule,(function(t){return function(n,r){return e.func(n,t,r)}}))}));var a=t.firstOf.apply(null,["rules"].concat(i));return function(t){var n=t,r=e(t);if(!r.isSuccess())return r;var i=a(r.remaining());while(i.isSuccess()){var s=i.remaining(),c=n.to(i.remaining()),u=i.value();r=o.success(u(r.value(),c),s,c),i=a(r.remaining())}return i.isError()?i:r}},t.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},t.nonConsuming=function(e){return function(t){return e(t).changeRemaining(t)}};var f=function(e){return e.value?e.name+' "'+e.value+'"':e.name};function h(e,t){var n,r=e.head();return n=r?a.error({expected:t,actual:f(r),location:r.source}):a.error({expected:t,actual:"end of tokens"}),o.failure([n],e)}},aded:function(e,t,n){var r=n("c46f"),i=n("51202"),o=n("6b02"),a=n("335c"),s=n("60c4").tokenise,c=n("03e1");function u(e){return _(C,e)}function l(){return i.rules.sequence(i.rules.sequence.capture(f()),i.rules.tokenOfType("whitespace"),i.rules.tokenOfType("arrow"),i.rules.sequence.capture(i.rules.optional(i.rules.sequence(i.rules.tokenOfType("whitespace"),i.rules.sequence.capture(p())).head())),i.rules.tokenOfType("end")).map((function(e,t){return{from:e,to:t.valueOrElse(a.empty)}}))}function d(e){return _(f(),e)}function f(){var e=i.rules.sequence,t=function(e,t){return i.rules.then(i.rules.token("identifier",e),(function(){return t}))},n=t("p",o.paragraph),a=t("r",o.run),s=i.rules.firstOf("p or r or table",n,a),c=i.rules.then(x,(function(e){return{styleId:e}})),u=i.rules.firstOf("style name matcher",i.rules.then(i.rules.sequence(i.rules.tokenOfType("equals"),i.rules.sequence.cut(),i.rules.sequence.capture(v)).head(),(function(e){return{styleName:o.equalTo(e)}})),i.rules.then(i.rules.sequence(i.rules.tokenOfType("startsWith"),i.rules.sequence.cut(),i.rules.sequence.capture(v)).head(),(function(e){return{styleName:o.startsWith(e)}}))),l=i.rules.sequence(i.rules.tokenOfType("open-square-bracket"),i.rules.sequence.cut(),i.rules.token("identifier","style-name"),i.rules.sequence.capture(u),i.rules.tokenOfType("close-square-bracket")).head(),d=i.rules.firstOf("list type",t("ordered-list",{isOrdered:!0}),t("unordered-list",{isOrdered:!1})),f=e(i.rules.tokenOfType("colon"),e.capture(d),e.cut(),i.rules.tokenOfType("open-paren"),e.capture(m),i.rules.tokenOfType("close-paren")).map((function(e,t){return{list:{isOrdered:e.isOrdered,levelIndex:t-1}}}));function h(e){var t=i.rules.firstOf.apply(i.rules.firstOf,["matcher suffix"].concat(e)),n=i.rules.zeroOrMore(t);return i.rules.then(n,(function(e){var t={};return e.forEach((function(e){r.extend(t,e)})),t}))}var p=e(e.capture(s),e.capture(h([c,l,f]))).map((function(e,t){return e(t)})),g=e(i.rules.token("identifier","table"),e.capture(h([c,l]))).map((function(e){return o.table(e)})),b=t("b",o.bold),y=t("i",o.italic),_=t("u",o.underline),w=t("strike",o.strikethrough),D=t("all-caps",o.allCaps),C=t("small-caps",o.smallCaps),k=t("comment-reference",o.commentReference),T=e(i.rules.token("identifier","br"),e.cut(),i.rules.tokenOfType("open-square-bracket"),i.rules.token("identifier","type"),i.rules.tokenOfType("equals"),e.capture(v),i.rules.tokenOfType("close-square-bracket")).map((function(e){switch(e){case"line":return o.lineBreak;case"page":return o.pageBreak;case"column":return o.columnBreak;default:}}));return i.rules.firstOf("element type",p,g,b,y,_,w,D,C,k,T)}function h(e){return _(p(),e)}function p(){var e=i.rules.sequence.capture,t=i.rules.tokenOfType("whitespace"),n=i.rules.then(i.rules.optional(i.rules.sequence(i.rules.tokenOfType("colon"),i.rules.token("identifier","fresh"))),(function(e){return e.map((function(){return!0})).valueOrElse(!1)})),r=i.rules.then(i.rules.optional(i.rules.sequence(i.rules.tokenOfType("colon"),i.rules.token("identifier","separator"),i.rules.tokenOfType("open-paren"),e(v),i.rules.tokenOfType("close-paren")).head()),(function(e){return e.valueOrElse("")})),o=i.rules.oneOrMoreWithSeparator(g,i.rules.tokenOfType("choice")),s=i.rules.sequence(e(o),e(i.rules.zeroOrMore(x)),e(n),e(r)).map((function(e,t,n,r){var i={},o={};return t.length>0&&(i["class"]=t.join(" ")),n&&(o.fresh=!0),r&&(o.separator=r),a.element(e,i,o)}));return i.rules.firstOf("html path",i.rules.then(i.rules.tokenOfType("bang"),(function(){return a.ignore})),i.rules.then(i.rules.zeroOrMoreWithSeparator(s,i.rules.sequence(t,i.rules.tokenOfType("gt"),t)),a.elements))}t.readHtmlPath=h,t.readDocumentMatcher=d,t.readStyle=u;var g=i.rules.then(i.rules.tokenOfType("identifier"),y),m=i.rules.tokenOfType("integer"),v=i.rules.then(i.rules.tokenOfType("string"),y),b={n:"\n",r:"\r",t:"\t"};function y(e){return e.replace(/\\(.)/g,(function(e,t){return b[t]||t}))}var x=i.rules.sequence(i.rules.tokenOfType("dot"),i.rules.sequence.cut(),i.rules.sequence.capture(g)).head();function _(e,t){var n=s(t),r=i.Parser(),o=r.parseTokens(e,n);return o.isSuccess()?c.success(o.value()):new c.Result(null,[c.warning(w(t,o))])}function w(e,t){return"Did not understand this style mapping, so ignored it: "+e+"\n"+t.errors().map(D).join("\n")}function D(e){return"Error was at character number "+e.characterNumber()+": Expected "+e.expected+" but got "+e.actual}var C=l()},ae0a:function(e,t,n){(function(){var t,r,i,o,a=function(e,t){for(var n in t)s.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},s={}.hasOwnProperty;o=n("45f3").isPlainObject,t=n("92e7"),i=n("5a61"),r=n("1f08"),e.exports=function(e){function t(e){t.__super__.constructor.call(this,null),this.name="?xml",e||(e={}),e.writer||(e.writer=new r),this.options=e,this.stringify=new i(e),this.isDocument=!0}return a(t,e),t.prototype.end=function(e){var t;return e?o(e)&&(t=e,e=this.options.writer.set(t)):e=this.options.writer,e.document(this)},t.prototype.toString=function(e){return this.options.writer.set(e).document(this)},t}(t)}).call(this)},ae68:function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=Object.hasOwnProperty,n=function(e,n){return t.call(e,n)},r=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=tinymce.util.Tools.resolve("tinymce.Env"),o=tinymce.util.Tools.resolve("tinymce.util.Delay"),a=function(e){return e.fire("ResizeEditor")},s=function(e){return e.getParam("min_height",e.getElement().offsetHeight,"number")},c=function(e){return e.getParam("max_height",0,"number")},u=function(e){return e.getParam("autoresize_overflow_padding",1,"number")},l=function(e){return e.getParam("autoresize_bottom_margin",50,"number")},d=function(e){return e.getParam("autoresize_on_init",!0,"boolean")},f=function(e){return e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen()},h=function(e,t,n,r,i){o.setEditorTimeout(e,(function(){v(e,t),n--?h(e,t,n,r,i):i&&i()}),r)},p=function(e,t){var n=e.getBody();n&&(n.style.overflowY=t?"":"hidden",t||(n.scrollTop=0))},g=function(e,t,n,r){var i=parseInt(e.getStyle(t,n,r),10);return isNaN(i)?0:i},m=function(e){if("setcontent"===(null===e||void 0===e?void 0:e.type.toLowerCase())){var t=e;return!0===t.selection||!0===t.paste}return!1},v=function(e,t,n){var r=e.dom,o=e.getDoc();if(o)if(f(e))p(e,!0);else{var u=o.documentElement,d=l(e),h=s(e),b=g(r,u,"margin-top",!0),y=g(r,u,"margin-bottom",!0),x=u.offsetHeight+b+y+d;x<0&&(x=0);var _=e.getContainer().offsetHeight,w=e.getContentAreaContainer().offsetHeight,D=_-w;x+D>s(e)&&(h=x+D);var C=c(e);if(C&&h>C?(h=C,p(e,!0)):p(e,!1),h!==t.get()){var k=h-t.get();if(r.setStyle(e.getContainer(),"height",h+"px"),t.set(h),a(e),i.browser.isSafari()&&i.mac){var T=e.getWin();T.scrollTo(T.pageXOffset,T.pageYOffset)}e.hasFocus()&&m(n)&&e.selection.scrollIntoView(),i.webkit&&k<0&&v(e,t,n)}}},b=function(e,t){e.on("init",(function(){var t=u(e),n=e.dom;n.setStyles(e.getDoc().documentElement,{height:"auto"}),n.setStyles(e.getBody(),{paddingLeft:t,paddingRight:t,"min-height":0})})),e.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",(function(n){v(e,t,n)})),d(e)&&e.on("init",(function(){h(e,t,20,100,(function(){h(e,t,5,1e3)}))}))},y=function(e,t){e.addCommand("mceAutoResize",(function(){v(e,t)}))};function x(){r.add("autoresize",(function(t){if(n(t.settings,"resize")||(t.settings.resize=!1),!t.inline){var r=e(0);y(t,r),b(t,r)}}))}x()})()},b06c:function(e,t,n){"use strict";e.exports=function(e,t){var r=n("6df9"),i=e.CancellationError,o=r.errorObj;function a(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function s(e){this.finallyHandler=e}function c(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function u(){return d.call(this,this.promise._target()._settledValue())}function l(e){if(!c(this,e))return o.e=e,o}function d(n){var r=this.promise,a=this.handler;if(!this.called){this.called=!0;var d=this.isFinallyHandler()?a.call(r._boundValue()):a.call(r._boundValue(),n);if(void 0!==d){r._setReturnedNonUndefined();var f=t(d,r);if(f instanceof e){if(null!=this.cancelPromise){if(f._isCancelled()){var h=new i("late cancellation observer");return r._attachExtraTrace(h),o.e=h,o}f.isPending()&&f._attachCancellationCallback(new s(this))}return f._then(u,l,void 0,this,void 0)}}}return r.isRejected()?(c(this),o.e=n,o):(c(this),n)}return a.prototype.isFinallyHandler=function(){return 0===this.type},s.prototype._resultCancelled=function(){c(this.finallyHandler)},e.prototype._passThrough=function(e,t,n,r){return"function"!==typeof e?this.then():this._then(n,r,void 0,new a(this,t,e),void 0)},e.prototype.lastly=e.prototype["finally"]=function(e){return this._passThrough(e,0,d,d)},e.prototype.tap=function(e){return this._passThrough(e,1,d)},a}},b074:function(e,t,n){var r=n("89a7"),i=n("e1c8"),o=n("b30f"),a=n("e003"),s=i.DOMImplementation,c=r.NAMESPACE,u=a.ParseError,l=a.XMLReader;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function f(e){this.options=e||{locator:{}}}function h(e,t,n){if(!e){if(t instanceof p)return t;e=t}var r={},i=e instanceof Function;function o(t){var o=e[t];!o&&i&&(o=2==e.length?function(n){e(t,n)}:e),r[t]=o&&function(e){o("[xmldom "+t+"]\t"+e+m(n))}||function(){}}return n=n||{},o("warning"),o("error"),o("fatalError"),r}function p(){this.cdata=!1}function g(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function m(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function v(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function b(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}f.prototype.parseFromString=function(e,t){var n=this.options,r=new l,i=n.domBuilder||new p,a=n.errorHandler,s=n.locator,u=n.xmlns||{},f=/\/x?html?$/.test(t),g=f?o.HTML_ENTITIES:o.XML_ENTITIES;s&&i.setDocumentLocator(s),r.errorHandler=h(a,i,s),r.domBuilder=n.domBuilder||i,f&&(u[""]=c.HTML),u.xml=u.xml||c.XML;var m=n.normalizeLineEndings||d;return e&&"string"===typeof e?r.parse(m(e),u,g):r.errorHandler.error("invalid doc source"),i.doc},p.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,o=i.createElementNS(e,n||t),a=r.length;b(this,o),this.currentElement=o,this.locator&&g(this.locator,o);for(var s=0;s<a;s++){e=r.getURI(s);var c=r.getValue(s),u=(n=r.getQName(s),i.createAttributeNS(e,n));this.locator&&g(r.getLocator(s),u),u.value=u.nodeValue=c,o.setAttributeNode(u)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&g(this.locator,n),b(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=v.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&g(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=v.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&g(this.locator,r),b(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&g(this.locator,i),b(this,i),this.doc.doctype=i}},warning:function(e){console.warn("[xmldom warning]\t"+e,m(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,m(this.locator))},fatalError:function(e){throw new u(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){p.prototype[e]=function(){return null}})),t.__DOMHandler=p,t.normalizeLineEndings=d,t.DOMParser=f},b126:function(e,t,n){},b299:function(e,t,n){"use strict";e.exports=function(e,t){var n=e.map;e.prototype.filter=function(e,r){return n(this,e,r,t)},e.filter=function(e,r,i){return n(e,r,i,t)}}},b30f:function(e,t,n){"use strict";var r=n("89a7").freeze;t.XML_ENTITIES=r({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=r({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",Ffr:"𝔉",ffr:"𝔣",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"Ĳ",ijlig:"ĳ",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES},b311:function(e,t,n){
/*!
 * clipboard.js v2.0.11
 * https://clipboardjs.com/
 *
 * Licensed MIT © Zeno Rocha
 */
(function(t,n){e.exports=n()})(0,(function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return F}});var r=n(279),i=n.n(r),o=n(370),a=n.n(o),s=n(817),c=n.n(s);function u(e){try{return document.execCommand(e)}catch(t){return!1}}var l=function(e){var t=c()(e);return u("cut"),t},d=l;function f(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}var h=function(e,t){var n=f(e);t.container.appendChild(n);var r=c()(n);return u("copy"),n.remove(),r},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof e?n=h(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===e||void 0===e?void 0:e.type)?n=h(e.value,t):(n=c()(e),u("copy")),n},g=p;function m(e){return m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,o=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==m(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?g(o,{container:r}):i?"cut"===n?d(i):g(i,{container:r}):void 0},b=v;function y(e){return y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t&&_(e.prototype,t),n&&_(e,n),e}function D(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}function C(e,t){return C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},C(e,t)}function k(e){var t=A();return function(){var n,r=E(e);if(t){var i=E(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==y(t)&&"function"!==typeof t?S(e):t}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function U(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var O=function(e){D(n,e);var t=k(n);function n(e,r){var i;return x(this,n),i=t.call(this),i.resolveOptions(r),i.listenClick(e),i}return w(n,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===y(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=a()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=b({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return U("action",e)}},{key:"defaultTarget",value:function(e){var t=U("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return U("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return g(e,t)}},{key:"cut",value:function(e){return d(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),n}(i()),F=O},828:function(e){var t=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(e,n){while(e&&e.nodeType!==t){if("function"===typeof e.matches&&e.matches(n))return e;e=e.parentNode}}e.exports=r},438:function(e,t,n){var r=n(828);function i(e,t,n,r,i){var o=a.apply(this,arguments);return e.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,i)}}}function o(e,t,n,r,o){return"function"===typeof e.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,o)})))}function a(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=o},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"===typeof e||e instanceof String},t.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},370:function(e,t,n){var r=n(879),i=n(438);function o(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return a(e,t,n);if(r.nodeList(e))return s(e,t,n);if(r.string(e))return c(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function s(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}function c(e,t,n){return i(document.body,e,t,n)}e.exports=o},817:function(e){function t(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}e.exports=t},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;for(r;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),n(686)}().default}))},b36c:function(e,t,n){var r=n("24e3");t.Parser=function(e){var t=function(e,t){return e(new r(t))};return{parseTokens:t}}},b6e1:function(e,t,n){(function(){var t,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=n("92e7"),e.exports=function(e){function t(e,n,r){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD notation name. "+this.debugInfo(n));if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n));this.name=this.stringify.eleName(n),null!=r.pubID&&(this.pubID=this.stringify.dtdPubID(r.pubID)),null!=r.sysID&&(this.sysID=this.stringify.dtdSysID(r.sysID))}return r(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdNotation(this)},t}(t)}).call(this)},b8ee:function(e,t,n){(function(){var t,r,i,o,a,s,c=function(e,t){for(var n in t)u.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;s=n("45f3"),a=s.isObject,o=s.isFunction,i=s.getValue,r=n("92e7"),t=n("2280"),e.exports=function(e){function n(e,t,r){if(n.__super__.constructor.call(this,e),null==t)throw new Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(t),this.attributes={},null!=r&&this.attribute(r),e.isDocument&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this)}return c(n,e),n.prototype.clone=function(){var e,t,n,r;for(t in n=Object.create(this),n.isRoot&&(n.documentObject=null),n.attributes={},r=this.attributes,r)u.call(r,t)&&(e=r[t],n.attributes[t]=e.clone());return n.children=[],this.children.forEach((function(e){var t;return t=e.clone(),t.parent=n,n.children.push(t)})),n},n.prototype.attribute=function(e,n){var r,s;if(null!=e&&(e=i(e)),a(e))for(r in e)u.call(e,r)&&(s=e[r],this.attribute(r,s));else o(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.attributes[e]=new t(this,e,n));return this},n.prototype.removeAttribute=function(e){var t,n,r;if(null==e)throw new Error("Missing attribute name. "+this.debugInfo());if(e=i(e),Array.isArray(e))for(n=0,r=e.length;n<r;n++)t=e[n],delete this.attributes[t];else delete this.attributes[e];return this},n.prototype.toString=function(e){return this.options.writer.set(e).element(this)},n.prototype.att=function(e,t){return this.attribute(e,t)},n.prototype.a=function(e,t){return this.attribute(e,t)},n}(r)}).call(this)},b9d2:function(e,t,n){"use strict";function r(e,t,n,r,i){for(var o=0;o<i;++o)n[o+r]=e[o+t],e[o+t]=void 0}function i(e){this._capacity=e,this._length=0,this._front=0}i.prototype._willBeOverCapacity=function(e){return this._capacity<e},i.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1);var n=this._front+t&this._capacity-1;this[n]=e,this._length=t+1},i.prototype.push=function(e,t,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(e),this._pushOne(t),void this._pushOne(n);var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=e,this[i+1&o]=t,this[i+2&o]=n,this._length=r},i.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},i.prototype.length=function(){return this._length},i.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},i.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e;var n=this._front,i=this._length,o=n+i&t-1;r(this,0,this,t,o)},e.exports=i},be7f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.VK"),n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=function(e){return function(t){return typeof t===e}},o=function(e){return function(t){return e===t}},a=r("string"),s=r("array"),c=o(null),u=i("boolean"),l=i("function"),d=function(){},f=function(e){return function(){return e}},h=function(e){return e},p=function(e,t){return e===t},g=f(!1),m=f(!0),v=function(){return b},b=function(){var e=function(e){return e()},t=h,n={fold:function(e,t){return e()},isSome:g,isNone:m,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:t,orThunk:e,map:v,each:d,bind:v,exists:g,forall:m,filter:function(){return v()},toArray:function(){return[]},toString:f("none()")};return n}(),y=function(e){var t=f(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:m,isNone:g,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return y(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:b},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},x=function(e){return null===e||void 0===e?b:y(e)},_={some:y,none:v,from:x},w=Array.prototype.indexOf,D=Array.prototype.push,C=function(e,t){return w.call(e,t)},k=function(e,t){return C(e,t)>-1},T=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},S=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},A=function(e,t,n){return S(e,(function(e,r){n=t(n,e,r)})),n},E=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);D.apply(t,e[n])}return t},U=function(e,t){return E(T(e,t))},O=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return _.none()},F=function(e,t,n){return void 0===n&&(n=p),e.exists((function(e){return n(e,t)}))},P=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},R=function(e,t){return e?_.some(t):_.none()},N=function(e){var t=e.getParam("link_assume_external_targets",!1);return u(t)&&t?1:!a(t)||"http"!==t&&"https"!==t?0:t},M=function(e){return e.getParam("link_context_toolbar",!1,"boolean")},I=function(e){return e.getParam("link_list")},B=function(e){return e.getParam("default_link_target")},L=function(e){return e.getParam("target_list",!0)},z=function(e){return e.getParam("rel_list",[],"array")},W=function(e){return e.getParam("link_class_list",[],"array")},j=function(e){return e.getParam("link_title",!0,"boolean")},H=function(e){return e.getParam("allow_unsafe_link_target",!1,"boolean")},V=function(e){return e.getParam("link_quicklink",!1,"boolean")},q=function(e){return e.getParam("link_default_protocol","http","string")},$=tinymce.util.Tools.resolve("tinymce.util.Tools"),G=function(e){return a(e.value)?e.value:""},X=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},Y=function(e,t){var n=[];return $.each(e,(function(e){var r=X(e);if(void 0!==e.menu){var i=Y(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},K=function(e){return void 0===e&&(e=G),function(t){return _.from(t).map((function(t){return Y(t,e)}))}},Z=function(e){return K(G)(e)},J=function(e,t){return function(n){return{name:e,type:"listbox",label:t,items:n}}},Q={sanitize:Z,sanitizeWith:K,createUi:J,getValue:G},ee=function(){return ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ee.apply(this,arguments)},te=Object.keys,ne=Object.hasOwnProperty,re=function(e,t){for(var n=te(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},ie=function(e){return function(t,n){e[n]=t}},oe=function(e,t,n,r){var i={};return re(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},ae=function(e,t){var n={};return oe(e,t,ie(n),d),n},se=function(e,t){return ne.call(e,t)},ce=function(e,t){return se(e,t)&&void 0!==e[t]&&null!==e[t]},ue=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),le=tinymce.util.Tools.resolve("tinymce.util.URI"),de=function(e){return e&&"a"===e.nodeName.toLowerCase()},fe=function(e){return de(e)&&!!ge(e)},he=function(e,t){if(e.collapsed)return[];var n=e.cloneContents(),r=new ue(n.firstChild,n),i=[],o=n.firstChild;do{t(o)&&i.push(o)}while(o=r.next());return i},pe=function(e){return/^\w+:/i.test(e)},ge=function(e){var t=e.getAttribute("data-mce-href");return t||e.getAttribute("href")},me=function(e,t){var n=["noopener"],r=e?e.split(/\s+/):[],i=function(e){return $.trim(e.sort().join(" "))},o=function(e){return e=a(e),e.length>0?e.concat(n):n},a=function(e){return e.filter((function(e){return-1===$.inArray(n,e)}))},s=t?o(r):a(r);return s.length>0?i(s):""},ve=function(e){return e.replace(/\uFEFF/g,"")},be=function(e,t){return t=t||e.selection.getNode(),De(t)?e.dom.select("a[href]",t)[0]:e.dom.getParent(t,"a[href]")},ye=function(e,t){var n=t?t.innerText||t.textContent:e.getContent({format:"text"});return ve(n)},xe=function(e){return $.grep(e,fe).length>0},_e=function(e){return he(e,fe).length>0},we=function(e){var t=e.schema.getTextInlineElements(),n=function(e){return 1===e.nodeType&&!de(e)&&!se(t,e.nodeName.toLowerCase())},r=he(e.selection.getRng(),n);return 0===r.length},De=function(e){return e&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className)},Ce=function(e){var t=["title","rel","class","target"];return A(t,(function(t,n){return e[n].each((function(e){t[n]=e.length>0?e:null})),t}),{href:e.href})},ke=function(e,t){return"http"!==t&&"https"!==t||pe(e)?e:t+"://"+e},Te=function(e,t){var n=ee({},t);if(!(z(e).length>0)&&!1===H(e)){var r=me(n.rel,"_blank"===n.target);n.rel=r||null}return _.from(n.target).isNone()&&!1===L(e)&&(n.target=B(e)),n.href=ke(n.href,N(e)),n},Se=function(e,t,n,r){n.each((function(e){se(t,"innerText")?t.innerText=e:t.textContent=e})),e.dom.setAttribs(t,r),e.selection.select(t)},Ae=function(e,t,n,r){De(t)?Ie(e,t,r):n.fold((function(){e.execCommand("mceInsertLink",!1,r)}),(function(t){e.insertContent(e.dom.createHTML("a",r,e.dom.encode(t)))}))},Ee=function(e,t,n){var r=e.selection.getNode(),i=be(e,r),o=Te(e,Ce(n));e.undoManager.transact((function(){n.href===t.href&&t.attach(),i?(e.focus(),Se(e,i,n.text,o)):Ae(e,r,n.text,o)}))},Ue=function(e){var t=e.dom,n=e.selection,r=n.getBookmark(),i=n.getRng().cloneRange(),o=t.getParent(i.startContainer,"a[href]",e.getBody()),a=t.getParent(i.endContainer,"a[href]",e.getBody());o&&i.setStartBefore(o),a&&i.setEndAfter(a),n.setRng(i),e.execCommand("unlink"),n.moveToBookmark(r)},Oe=function(e){e.undoManager.transact((function(){var t=e.selection.getNode();De(t)?Me(e,t):Ue(e),e.focus()}))},Fe=function(e){var t=e.class,n=e.href,r=e.rel,i=e.target,o=e.text,a=e.title;return ae({class:t.getOrNull(),href:n,rel:r.getOrNull(),target:i.getOrNull(),text:o.getOrNull(),title:a.getOrNull()},(function(e,t){return!1===c(e)}))},Pe=function(e,t){var n=t.href;return ee(ee({},t),{href:le.isDomSafe(n,"a",e.settings)?n:""})},Re=function(e,t,n){var r=Pe(e,n);e.hasPlugin("rtc",!0)?e.execCommand("createlink",!1,Fe(r)):Ee(e,t,r)},Ne=function(e){e.hasPlugin("rtc",!0)?e.execCommand("unlink"):Oe(e)},Me=function(e,t){var n=e.dom.select("img",t)[0];if(n){var r=e.dom.getParents(n,"a[href]",t)[0];r&&(r.parentNode.insertBefore(n,r),e.dom.remove(r))}},Ie=function(e,t,n){var r=e.dom.select("img",t)[0];if(r){var i=e.dom.create("a",n);r.parentNode.insertBefore(i,r),i.appendChild(r)}},Be=function(e){return ce(e,"items")},Le=function(e,t){return O(t,(function(t){return Be(t)?Le(e,t.items):R(t.value===e,t)}))},ze=function(e,t,n,r){var i=r[t],o=e.length>0;return void 0!==i?Le(i,n).map((function(t){return{url:{value:t.value,meta:{text:o?e:t.text,attach:d}},text:o?e:t.text}})):_.none()},We=function(e,t){return"link"===t?e.link:"anchor"===t?e.anchor:_.none()},je=function(e,t){var n={text:e.text,title:e.title},r=function(e){return R(n.title.length<=0,_.from(e.meta.title).getOr(""))},i=function(e){return R(n.text.length<=0,_.from(e.meta.text).getOr(e.value))},o=function(e){var t=i(e.url),n=r(e.url);return t.isSome()||n.isSome()?_.some(ee(ee({},t.map((function(e){return{text:e}})).getOr({})),n.map((function(e){return{title:e}})).getOr({}))):_.none()},a=function(e,r){var i=We(t,r.name).getOr([]);return ze(n.text,r.name,i,e)},s=function(e,t){var r=t.name;return"url"===r?o(e()):k(["anchor","link"],r)?a(e(),t):"text"===r||"title"===r?(n[r]=e()[r],_.none()):_.none()};return{onChange:s}},He={init:je,getDelta:ze},Ve=tinymce.util.Tools.resolve("tinymce.util.Delay"),qe=tinymce.util.Tools.resolve("tinymce.util.Promise"),$e=function(e,t,n){var r=e.selection.getRng();Ve.setEditorTimeout(e,(function(){e.windowManager.confirm(t,(function(t){e.selection.setRng(r),n(t)}))}))},Ge=function(e){var t=e.href,n=t.indexOf("@")>0&&-1===t.indexOf("/")&&-1===t.indexOf("mailto:");return n?_.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(e){return ee(ee({},e),{href:"mailto:"+t})}}):_.none()},Xe=function(e,t){return function(n){var r=n.href,i=1===e&&!pe(r)||0===e&&/^\s*www(\.|\d\.)/i.test(r);return i?_.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+t+":// prefix?",preprocess:function(e){return ee(ee({},e),{href:t+"://"+r})}}):_.none()}},Ye=function(e,t){return O([Ge,Xe(N(e),q(e))],(function(e){return e(t)})).fold((function(){return qe.resolve(t)}),(function(n){return new qe((function(r){$e(e,n.message,(function(e){r(e?n.preprocess(t):t)}))}))}))},Ke={preprocess:Ye},Ze=function(e){var t=e.dom.select("a:not([href])"),n=U(t,(function(e){var t=e.name||e.id;return t?[{text:t,value:"#"+t}]:[]}));return n.length>0?_.some([{text:"None",value:""}].concat(n)):_.none()},Je={getAnchors:Ze},Qe=function(e){var t=W(e);return t.length>0?Q.sanitize(t):_.none()},et={getClasses:Qe},tt=tinymce.util.Tools.resolve("tinymce.util.XHR"),nt=function(e){try{return _.some(JSON.parse(e))}catch(t){return _.none()}},rt=function(e){var t=function(t){return e.convertURL(t.value||t.url,"href")},n=I(e);return new qe((function(e){a(n)?tt.send({url:n,success:function(t){return e(nt(t))},error:function(t){return e(_.none())}}):l(n)?n((function(t){return e(_.some(t))})):e(_.from(n))})).then((function(e){return e.bind(Q.sanitizeWith(t)).map((function(e){if(e.length>0){var t=[{text:"None",value:""}];return t.concat(e)}return e}))}))},it={getLinks:rt},ot=function(e,t){var n=z(e);if(n.length>0){var r=F(t,"_blank"),i=!1===H(e),o=function(e){return me(Q.getValue(e),r)},a=i?Q.sanitizeWith(o):Q.sanitize;return a(n)}return _.none()},at={getRels:ot},st=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],ct=function(e){var t=L(e);return s(t)?Q.sanitize(t).orThunk((function(){return _.some(st)})):!1===t?_.none():_.some(st)},ut={getTargets:ct},lt=function(e,t,n){var r=e.getAttrib(t,n);return null!==r&&r.length>0?_.some(r):_.none()},dt=function(e,t){var n=e.dom,r=we(e),i=r?_.some(ye(e.selection,t)):_.none(),o=t?_.some(n.getAttrib(t,"href")):_.none(),a=t?_.from(n.getAttrib(t,"target")):_.none(),s=lt(n,t,"rel"),c=lt(n,t,"class"),u=lt(n,t,"title");return{url:o,text:i,title:u,target:a,rel:s,linkClass:c}},ft=function(e,t){return it.getLinks(e).then((function(n){var r=dt(e,t);return{anchor:r,catalogs:{targets:ut.getTargets(e),rels:at.getRels(e,r.target),classes:et.getClasses(e),anchor:Je.getAnchors(e),link:n},optNode:_.from(t),flags:{titleEnabled:j(e)}}}))},ht={collect:ft},pt=function(e,t){return function(n){var r=n.getData();if(!r.url.value)return Ne(e),void n.close();var i=function(e){return _.from(r[e]).filter((function(n){return!F(t.anchor[e],n)}))},o={href:r.url.value,text:i("text"),target:i("target"),rel:i("rel"),class:i("linkClass"),title:i("title")},a={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:d};Ke.preprocess(e,o).then((function(t){Re(e,a,t)})),n.close()}},gt=function(e){var t=be(e);return ht.collect(e,t)},mt=function(e,t){var n=e.anchor,r=n.url.getOr("");return{url:{value:r,meta:{original:{value:r}}},text:n.text.getOr(""),title:n.title.getOr(""),anchor:r,link:r,rel:n.rel.getOr(""),target:n.target.or(t).getOr(""),linkClass:n.linkClass.getOr("")}},vt=function(e,t,n){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],i=e.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),o=e.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],a=_.from(B(n)),s=mt(e,a),c=e.catalogs,u=He.init(s,c),l={type:"panel",items:E([r,i,o,P([c.anchor.map(Q.createUi("anchor","Anchors")),c.rels.map(Q.createUi("rel","Rel")),c.targets.map(Q.createUi("target","Open link in...")),c.link.map(Q.createUi("link","Link list")),c.classes.map(Q.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:l,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:s,onChange:function(e,t){var n=t.name;u.onChange(e.getData,{name:n}).each((function(t){e.setData(t)}))},onSubmit:t}},bt=function(e){var t=gt(e);t.then((function(t){var n=pt(e,t);return vt(t,n,e)})).then((function(t){e.windowManager.open(t)}))},yt=function(e,t){document.body.appendChild(e),e.dispatchEvent(t),document.body.removeChild(e)},xt=function(e){var t=document.createElement("a");t.target="_blank",t.href=e,t.rel="noreferrer noopener";var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),yt(t,n)},_t=function(e,t){return e.dom.getParent(t,"a[href]")},wt=function(e){return _t(e,e.selection.getStart())},Dt=function(e){return!0===e.altKey&&!1===e.shiftKey&&!1===e.ctrlKey&&!1===e.metaKey},Ct=function(e,t){if(t){var n=ge(t);if(/^#/.test(n)){var r=e.$(n);r.length&&e.selection.scrollIntoView(r[0],!0)}else xt(t.href)}},kt=function(e){return function(){bt(e)}},Tt=function(e){return function(){Ct(e,wt(e))}},St=function(e){e.on("click",(function(n){var r=_t(e,n.target);r&&t.metaKeyPressed(n)&&(n.preventDefault(),Ct(e,r))})),e.on("keydown",(function(t){var n=wt(e);n&&13===t.keyCode&&Dt(t)&&(t.preventDefault(),Ct(e,n))}))},At=function(e,t){return e.on("NodeChange",t),function(){return e.off("NodeChange",t)}},Et=function(e){return function(t){var n=function(){return t.setActive(!e.mode.isReadOnly()&&null!==be(e,e.selection.getNode()))};return n(),At(e,n)}},Ut=function(e){return function(t){var n=function(){return t.setDisabled(null===be(e,e.selection.getNode()))};return n(),At(e,n)}},Ot=function(e){return function(t){var n=function(t){return xe(t)||_e(e.selection.getRng())},r=e.dom.getParents(e.selection.getStart());return t.setDisabled(!n(r)),At(e,(function(e){return t.setDisabled(!n(e.parents))}))}},Ft=function(e){e.addCommand("mceLink",(function(){V(e)?e.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):kt(e)()}))},Pt=function(e){e.addShortcut("Meta+K","",(function(){e.execCommand("mceLink")}))},Rt=function(e){e.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:kt(e),onSetup:Et(e)}),e.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:Tt(e),onSetup:Ut(e)}),e.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return Ne(e)},onSetup:Ot(e)})},Nt=function(e){e.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:Tt(e),onSetup:Ut(e)}),e.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:kt(e)}),e.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return Ne(e)},onSetup:Ot(e)})},Mt=function(e){var t="link unlink openlink",n="link";e.ui.registry.addContextMenu("link",{update:function(r){return xe(e.dom.getParents(r,"a"))?t:n}})},It=function(e){var t=function(e){e.selection.collapse(!1)},n=function(t){var n=e.selection.getNode();return t.setDisabled(!be(e,n)),d},r=function(t){var n=be(e),r=we(e);if(!n&&r){var i=ye(e.selection,n);return _.some(i.length>0?i:t)}return _.none()};e.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Et(e)},label:"Link",predicate:function(t){return!!be(e,t)&&M(e)},initValue:function(){var t=be(e);return t?ge(t):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(t){var n=e.selection.getNode();return t.setActive(!!be(e,n)),Et(e)(t)},onAction:function(n){var i=n.getValue(),o=r(i),a={href:i,attach:d};Re(e,a,{href:i,text:o,title:_.none(),rel:_.none(),target:_.none(),class:_.none()}),t(e),n.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(t){Ne(e),t.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(t){Tt(e)(),t.hide()}}]})};function Bt(){e.add("link",(function(e){Rt(e),Nt(e),Mt(e),It(e),St(e),Ft(e),Pt(e)}))}Bt()})()},bf28:function(e,t){t.fromArray=function(e){var t=0,r=function(){return t<e.length};return new n({hasNext:r,next:function(){if(r())return e[t++];throw new Error("No more elements")}})};var n=function(e){this._iterator=e};n.prototype.map=function(e){var t=this._iterator;return new n({hasNext:function(){return t.hasNext()},next:function(){return e(t.next())}})},n.prototype.filter=function(e){var t,r=this._iterator,i=!1,o=!1,a=function(){if(!i){i=!0,o=!1;while(r.hasNext()&&!o)t=r.next(),o=e(t)}};return new n({hasNext:function(){return a(),o},next:function(){a();var e=t;return i=!1,e}})},n.prototype.first=function(){var e=this._iterator;return this._iterator.hasNext()?e.next():null},n.prototype.toArray=function(){var e=[];while(this._iterator.hasNext())e.push(this._iterator.next());return e}},c343:function(e,t,n){(function(e){var r=n("c46f"),i=n("1403"),o=n("cf43"),a=n("9567").DocumentConverter,s=n("6dbd").convertElementToRawText,c=n("aded").readStyle,u=n("5c59").readOptions,l=n("44cf"),d=n("03e1").Result;function f(e,t){return p(e,t)}function h(e,t){var n=Object.create(t||{});return n.outputFormat="markdown",p(e,n)}function p(e,t){return t=u(t),l.openZip(e).tap((function(e){return o.readStyleMap(e).then((function(e){t.embeddedStyleMap=e}))})).then((function(n){return i.read(n,e).then((function(e){return e.map(t.transformDocument)})).then((function(e){return m(e,t)}))}))}function g(e){return l.openZip(e).then(o.readStyleMap)}function m(e,t){var n=v(t.readStyleMap()),i=r.extend({},t,{styleMap:n.value}),o=new a(i);return e.flatMapThen((function(e){return n.flatMapThen((function(t){return o.convertToHtml(e)}))}))}function v(e){return d.combine((e||[]).map(c)).map((function(e){return e.filter((function(e){return!!e}))}))}function b(e){return l.openZip(e).then(i.read).then((function(e){return e.map(s)}))}function y(t,n){return l.openZip(t).tap((function(e){return o.writeStyleMap(e,n)})).then((function(e){return e.toArrayBuffer()})).then((function(t){return{toArrayBuffer:function(){return t},toBuffer:function(){return e.from(t)}}}))}t.convertToHtml=f,t.convertToMarkdown=h,t.convert=p,t.extractRawText=b,t.images=n("1259"),t.transforms=n("54ad"),t.underline=n("9404"),t.embedStyleMap=y,t.readEmbeddedStyleMap=g,t.styleMapping=function(){throw new Error("Use a raw string instead of mammoth.styleMapping e.g. \"p[style-name='Title'] => h1\" instead of mammoth.styleMapping(\"p[style-name='Title'] => h1\")")}}).call(this,n("b639").Buffer)},c361:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){var t=e.getParam("nonbreaking_force_tab",0);return"boolean"===typeof t?!0===t?3:0:t},n=function(e){return e.getParam("nonbreaking_wrap",!0,"boolean")},r=function(e,t){for(var n="",r=0;r<t;r++)n+=e;return n},i=function(e){return!!e.plugins.visualchars&&e.plugins.visualchars.isEnabled()},o=function(e,t){var o=function(){return i(e)?"mce-nbsp-wrap mce-nbsp":"mce-nbsp-wrap"},a=function(){return'<span class="'+o()+'" contenteditable="false">'+r("&nbsp;",t)+"</span>"},s=n(e),c=s||e.plugins.visualchars?a():r("&nbsp;",t);e.undoManager.transact((function(){return e.insertContent(c)}))},a=function(e){e.addCommand("mceNonBreaking",(function(){o(e,1)}))},s=tinymce.util.Tools.resolve("tinymce.util.VK"),c=function(e){var n=t(e);n>0&&e.on("keydown",(function(t){if(t.keyCode===s.TAB&&!t.isDefaultPrevented()){if(t.shiftKey)return;t.preventDefault(),t.stopImmediatePropagation(),o(e,n)}}))},u=function(e){var t=function(){return e.execCommand("mceNonBreaking")};e.ui.registry.addButton("nonbreaking",{icon:"non-breaking",tooltip:"Nonbreaking space",onAction:t}),e.ui.registry.addMenuItem("nonbreaking",{icon:"non-breaking",text:"Nonbreaking space",onAction:t})};function l(){e.add("nonbreaking",(function(e){a(e),u(e),c(e)}))}l()})()},c376:function(e,t,n){(function(){var t,r,i,o,a,s,c,u,l,d,f,h,p,g,m=function(e,t){for(var n in t)v.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},v={}.hasOwnProperty;c=n("528d"),u=n("d7e3"),t=n("536e"),r=n("8930"),d=n("b8ee"),h=n("50d7"),p=n("9d2f"),f=n("f016"),l=n("0e1e"),i=n("188f"),o=n("3b32"),a=n("1585"),s=n("b6e1"),g=n("a4b6"),e.exports=function(e){function n(e,t){n.__super__.constructor.call(this,t),this.stream=e}return m(n,e),n.prototype.document=function(e){var t,n,i,o,a,s,d,h;for(s=e.children,n=0,o=s.length;n<o;n++)t=s[n],t.isLastRootNode=!1;for(e.children[e.children.length-1].isLastRootNode=!0,d=e.children,h=[],i=0,a=d.length;i<a;i++)if(t=d[i],!(t instanceof l))switch(!1){case!(t instanceof c):h.push(this.declaration(t));break;case!(t instanceof u):h.push(this.docType(t));break;case!(t instanceof r):h.push(this.comment(t));break;case!(t instanceof f):h.push(this.processingInstruction(t));break;default:h.push(this.element(t))}return h},n.prototype.attribute=function(e){return this.stream.write(" "+e.name+'="'+e.value+'"')},n.prototype.cdata=function(e,t){return this.stream.write(this.space(t)+"<![CDATA["+e.text+"]]>"+this.endline(e))},n.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))},n.prototype.declaration=function(e,t){return this.stream.write(this.space(t)),this.stream.write('<?xml version="'+e.version+'"'),null!=e.encoding&&this.stream.write(' encoding="'+e.encoding+'"'),null!=e.standalone&&this.stream.write(' standalone="'+e.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(e))},n.prototype.docType=function(e,n){var c,u,l,d;if(n||(n=0),this.stream.write(this.space(n)),this.stream.write("<!DOCTYPE "+e.root().name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(e)),d=e.children,u=0,l=d.length;u<l;u++)switch(c=d[u],!1){case!(c instanceof i):this.dtdAttList(c,n+1);break;case!(c instanceof o):this.dtdElement(c,n+1);break;case!(c instanceof a):this.dtdEntity(c,n+1);break;case!(c instanceof s):this.dtdNotation(c,n+1);break;case!(c instanceof t):this.cdata(c,n+1);break;case!(c instanceof r):this.comment(c,n+1);break;case!(c instanceof f):this.processingInstruction(c,n+1);break;default:throw new Error("Unknown DTD node type: "+c.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(e))},n.prototype.element=function(e,n){var i,o,a,s,c,u,g,m;for(c in n||(n=0),m=this.space(n),this.stream.write(m+"<"+e.name),u=e.attributes,u)v.call(u,c)&&(i=u[c],this.attribute(i));if(0===e.children.length||e.children.every((function(e){return""===e.value})))this.allowEmpty?this.stream.write("></"+e.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===e.children.length&&null!=e.children[0].value)this.stream.write(">"),this.stream.write(e.children[0].value),this.stream.write("</"+e.name+">");else{for(this.stream.write(">"+this.newline),g=e.children,a=0,s=g.length;a<s;a++)switch(o=g[a],!1){case!(o instanceof t):this.cdata(o,n+1);break;case!(o instanceof r):this.comment(o,n+1);break;case!(o instanceof d):this.element(o,n+1);break;case!(o instanceof h):this.raw(o,n+1);break;case!(o instanceof p):this.text(o,n+1);break;case!(o instanceof f):this.processingInstruction(o,n+1);break;case!(o instanceof l):break;default:throw new Error("Unknown XML node type: "+o.constructor.name)}this.stream.write(m+"</"+e.name+">")}return this.stream.write(this.endline(e))},n.prototype.processingInstruction=function(e,t){return this.stream.write(this.space(t)+"<?"+e.target),e.value&&this.stream.write(" "+e.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(e))},n.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},n.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},n.prototype.dtdAttList=function(e,t){return this.stream.write(this.space(t)+"<!ATTLIST "+e.elementName+" "+e.attributeName+" "+e.attributeType),"#DEFAULT"!==e.defaultValueType&&this.stream.write(" "+e.defaultValueType),e.defaultValue&&this.stream.write(' "'+e.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},n.prototype.dtdElement=function(e,t){return this.stream.write(this.space(t)+"<!ELEMENT "+e.name+" "+e.value),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},n.prototype.dtdEntity=function(e,t){return this.stream.write(this.space(t)+"<!ENTITY"),e.pe&&this.stream.write(" %"),this.stream.write(" "+e.name),e.value?this.stream.write(' "'+e.value+'"'):(e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.nData&&this.stream.write(" NDATA "+e.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},n.prototype.dtdNotation=function(e,t){return this.stream.write(this.space(t)+"<!NOTATION "+e.name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.pubID?this.stream.write(' PUBLIC "'+e.pubID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},n.prototype.endline=function(e){return e.isLastRootNode?"":this.newline},n}(g)}).call(this)},c3d7:function(e,t,n){n("16f1")},c403:function(e,t,n){},c46f:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Un})),n.d(t,"VERSION",(function(){return i["e"]})),n.d(t,"restArguments",(function(){return o})),n.d(t,"isObject",(function(){return a})),n.d(t,"isNull",(function(){return s})),n.d(t,"isUndefined",(function(){return c})),n.d(t,"isBoolean",(function(){return u})),n.d(t,"isElement",(function(){return l})),n.d(t,"isString",(function(){return f})),n.d(t,"isNumber",(function(){return h})),n.d(t,"isDate",(function(){return p})),n.d(t,"isRegExp",(function(){return g})),n.d(t,"isError",(function(){return m})),n.d(t,"isSymbol",(function(){return v})),n.d(t,"isArrayBuffer",(function(){return b})),n.d(t,"isDataView",(function(){return S})),n.d(t,"isArray",(function(){return A})),n.d(t,"isFunction",(function(){return _})),n.d(t,"isArguments",(function(){return O})),n.d(t,"isFinite",(function(){return F})),n.d(t,"isNaN",(function(){return P})),n.d(t,"isTypedArray",(function(){return W})),n.d(t,"isEmpty",(function(){return $})),n.d(t,"isMatch",(function(){return G})),n.d(t,"isEqual",(function(){return Q})),n.d(t,"isMap",(function(){return ue})),n.d(t,"isWeakMap",(function(){return le})),n.d(t,"isSet",(function(){return de})),n.d(t,"isWeakSet",(function(){return fe})),n.d(t,"keys",(function(){return q})),n.d(t,"allKeys",(function(){return ee})),n.d(t,"values",(function(){return he})),n.d(t,"pairs",(function(){return pe})),n.d(t,"invert",(function(){return ge})),n.d(t,"functions",(function(){return me})),n.d(t,"methods",(function(){return me})),n.d(t,"extend",(function(){return be})),n.d(t,"extendOwn",(function(){return ye})),n.d(t,"assign",(function(){return ye})),n.d(t,"defaults",(function(){return xe})),n.d(t,"create",(function(){return De})),n.d(t,"clone",(function(){return Ce})),n.d(t,"tap",(function(){return ke})),n.d(t,"get",(function(){return Ee})),n.d(t,"has",(function(){return Ue})),n.d(t,"mapObject",(function(){return Be})),n.d(t,"identity",(function(){return Oe})),n.d(t,"constant",(function(){return R})),n.d(t,"noop",(function(){return Le})),n.d(t,"toPath",(function(){return Te})),n.d(t,"property",(function(){return Pe})),n.d(t,"propertyOf",(function(){return ze})),n.d(t,"matcher",(function(){return Fe})),n.d(t,"matches",(function(){return Fe})),n.d(t,"times",(function(){return We})),n.d(t,"random",(function(){return je})),n.d(t,"now",(function(){return He})),n.d(t,"escape",(function(){return $e})),n.d(t,"unescape",(function(){return Xe})),n.d(t,"templateSettings",(function(){return Ye})),n.d(t,"template",(function(){return tt})),n.d(t,"result",(function(){return nt})),n.d(t,"uniqueId",(function(){return it})),n.d(t,"chain",(function(){return ot})),n.d(t,"iteratee",(function(){return Me})),n.d(t,"partial",(function(){return ct})),n.d(t,"bind",(function(){return ut})),n.d(t,"bindAll",(function(){return ft})),n.d(t,"memoize",(function(){return ht})),n.d(t,"delay",(function(){return pt})),n.d(t,"defer",(function(){return gt})),n.d(t,"throttle",(function(){return mt})),n.d(t,"debounce",(function(){return vt})),n.d(t,"wrap",(function(){return bt})),n.d(t,"negate",(function(){return yt})),n.d(t,"compose",(function(){return xt})),n.d(t,"after",(function(){return _t})),n.d(t,"before",(function(){return wt})),n.d(t,"once",(function(){return Dt})),n.d(t,"findKey",(function(){return Ct})),n.d(t,"findIndex",(function(){return Tt})),n.d(t,"findLastIndex",(function(){return St})),n.d(t,"sortedIndex",(function(){return At})),n.d(t,"indexOf",(function(){return Ut})),n.d(t,"lastIndexOf",(function(){return Ot})),n.d(t,"find",(function(){return Ft})),n.d(t,"detect",(function(){return Ft})),n.d(t,"findWhere",(function(){return Pt})),n.d(t,"each",(function(){return Rt})),n.d(t,"forEach",(function(){return Rt})),n.d(t,"map",(function(){return Nt})),n.d(t,"collect",(function(){return Nt})),n.d(t,"reduce",(function(){return It})),n.d(t,"foldl",(function(){return It})),n.d(t,"inject",(function(){return It})),n.d(t,"reduceRight",(function(){return Bt})),n.d(t,"foldr",(function(){return Bt})),n.d(t,"filter",(function(){return Lt})),n.d(t,"select",(function(){return Lt})),n.d(t,"reject",(function(){return zt})),n.d(t,"every",(function(){return Wt})),n.d(t,"all",(function(){return Wt})),n.d(t,"some",(function(){return jt})),n.d(t,"any",(function(){return jt})),n.d(t,"contains",(function(){return Ht})),n.d(t,"includes",(function(){return Ht})),n.d(t,"include",(function(){return Ht})),n.d(t,"invoke",(function(){return Vt})),n.d(t,"pluck",(function(){return qt})),n.d(t,"where",(function(){return $t})),n.d(t,"max",(function(){return Gt})),n.d(t,"min",(function(){return Xt})),n.d(t,"shuffle",(function(){return Jt})),n.d(t,"sample",(function(){return Zt})),n.d(t,"sortBy",(function(){return Qt})),n.d(t,"groupBy",(function(){return tn})),n.d(t,"indexBy",(function(){return nn})),n.d(t,"countBy",(function(){return rn})),n.d(t,"partition",(function(){return on})),n.d(t,"toArray",(function(){return Kt})),n.d(t,"size",(function(){return an})),n.d(t,"pick",(function(){return cn})),n.d(t,"omit",(function(){return un})),n.d(t,"first",(function(){return dn})),n.d(t,"head",(function(){return dn})),n.d(t,"take",(function(){return dn})),n.d(t,"initial",(function(){return ln})),n.d(t,"last",(function(){return hn})),n.d(t,"rest",(function(){return fn})),n.d(t,"tail",(function(){return fn})),n.d(t,"drop",(function(){return fn})),n.d(t,"compact",(function(){return pn})),n.d(t,"flatten",(function(){return gn})),n.d(t,"without",(function(){return vn})),n.d(t,"uniq",(function(){return bn})),n.d(t,"unique",(function(){return bn})),n.d(t,"union",(function(){return yn})),n.d(t,"intersection",(function(){return xn})),n.d(t,"difference",(function(){return mn})),n.d(t,"unzip",(function(){return _n})),n.d(t,"transpose",(function(){return _n})),n.d(t,"zip",(function(){return wn})),n.d(t,"object",(function(){return Dn})),n.d(t,"range",(function(){return Cn})),n.d(t,"chunk",(function(){return kn})),n.d(t,"mixin",(function(){return Sn}));var r={};n.r(r),n.d(r,"VERSION",(function(){return i["e"]})),n.d(r,"restArguments",(function(){return o})),n.d(r,"isObject",(function(){return a})),n.d(r,"isNull",(function(){return s})),n.d(r,"isUndefined",(function(){return c})),n.d(r,"isBoolean",(function(){return u})),n.d(r,"isElement",(function(){return l})),n.d(r,"isString",(function(){return f})),n.d(r,"isNumber",(function(){return h})),n.d(r,"isDate",(function(){return p})),n.d(r,"isRegExp",(function(){return g})),n.d(r,"isError",(function(){return m})),n.d(r,"isSymbol",(function(){return v})),n.d(r,"isArrayBuffer",(function(){return b})),n.d(r,"isDataView",(function(){return S})),n.d(r,"isArray",(function(){return A})),n.d(r,"isFunction",(function(){return _})),n.d(r,"isArguments",(function(){return O})),n.d(r,"isFinite",(function(){return F})),n.d(r,"isNaN",(function(){return P})),n.d(r,"isTypedArray",(function(){return W})),n.d(r,"isEmpty",(function(){return $})),n.d(r,"isMatch",(function(){return G})),n.d(r,"isEqual",(function(){return Q})),n.d(r,"isMap",(function(){return ue})),n.d(r,"isWeakMap",(function(){return le})),n.d(r,"isSet",(function(){return de})),n.d(r,"isWeakSet",(function(){return fe})),n.d(r,"keys",(function(){return q})),n.d(r,"allKeys",(function(){return ee})),n.d(r,"values",(function(){return he})),n.d(r,"pairs",(function(){return pe})),n.d(r,"invert",(function(){return ge})),n.d(r,"functions",(function(){return me})),n.d(r,"methods",(function(){return me})),n.d(r,"extend",(function(){return be})),n.d(r,"extendOwn",(function(){return ye})),n.d(r,"assign",(function(){return ye})),n.d(r,"defaults",(function(){return xe})),n.d(r,"create",(function(){return De})),n.d(r,"clone",(function(){return Ce})),n.d(r,"tap",(function(){return ke})),n.d(r,"get",(function(){return Ee})),n.d(r,"has",(function(){return Ue})),n.d(r,"mapObject",(function(){return Be})),n.d(r,"identity",(function(){return Oe})),n.d(r,"constant",(function(){return R})),n.d(r,"noop",(function(){return Le})),n.d(r,"toPath",(function(){return Te})),n.d(r,"property",(function(){return Pe})),n.d(r,"propertyOf",(function(){return ze})),n.d(r,"matcher",(function(){return Fe})),n.d(r,"matches",(function(){return Fe})),n.d(r,"times",(function(){return We})),n.d(r,"random",(function(){return je})),n.d(r,"now",(function(){return He})),n.d(r,"escape",(function(){return $e})),n.d(r,"unescape",(function(){return Xe})),n.d(r,"templateSettings",(function(){return Ye})),n.d(r,"template",(function(){return tt})),n.d(r,"result",(function(){return nt})),n.d(r,"uniqueId",(function(){return it})),n.d(r,"chain",(function(){return ot})),n.d(r,"iteratee",(function(){return Me})),n.d(r,"partial",(function(){return ct})),n.d(r,"bind",(function(){return ut})),n.d(r,"bindAll",(function(){return ft})),n.d(r,"memoize",(function(){return ht})),n.d(r,"delay",(function(){return pt})),n.d(r,"defer",(function(){return gt})),n.d(r,"throttle",(function(){return mt})),n.d(r,"debounce",(function(){return vt})),n.d(r,"wrap",(function(){return bt})),n.d(r,"negate",(function(){return yt})),n.d(r,"compose",(function(){return xt})),n.d(r,"after",(function(){return _t})),n.d(r,"before",(function(){return wt})),n.d(r,"once",(function(){return Dt})),n.d(r,"findKey",(function(){return Ct})),n.d(r,"findIndex",(function(){return Tt})),n.d(r,"findLastIndex",(function(){return St})),n.d(r,"sortedIndex",(function(){return At})),n.d(r,"indexOf",(function(){return Ut})),n.d(r,"lastIndexOf",(function(){return Ot})),n.d(r,"find",(function(){return Ft})),n.d(r,"detect",(function(){return Ft})),n.d(r,"findWhere",(function(){return Pt})),n.d(r,"each",(function(){return Rt})),n.d(r,"forEach",(function(){return Rt})),n.d(r,"map",(function(){return Nt})),n.d(r,"collect",(function(){return Nt})),n.d(r,"reduce",(function(){return It})),n.d(r,"foldl",(function(){return It})),n.d(r,"inject",(function(){return It})),n.d(r,"reduceRight",(function(){return Bt})),n.d(r,"foldr",(function(){return Bt})),n.d(r,"filter",(function(){return Lt})),n.d(r,"select",(function(){return Lt})),n.d(r,"reject",(function(){return zt})),n.d(r,"every",(function(){return Wt})),n.d(r,"all",(function(){return Wt})),n.d(r,"some",(function(){return jt})),n.d(r,"any",(function(){return jt})),n.d(r,"contains",(function(){return Ht})),n.d(r,"includes",(function(){return Ht})),n.d(r,"include",(function(){return Ht})),n.d(r,"invoke",(function(){return Vt})),n.d(r,"pluck",(function(){return qt})),n.d(r,"where",(function(){return $t})),n.d(r,"max",(function(){return Gt})),n.d(r,"min",(function(){return Xt})),n.d(r,"shuffle",(function(){return Jt})),n.d(r,"sample",(function(){return Zt})),n.d(r,"sortBy",(function(){return Qt})),n.d(r,"groupBy",(function(){return tn})),n.d(r,"indexBy",(function(){return nn})),n.d(r,"countBy",(function(){return rn})),n.d(r,"partition",(function(){return on})),n.d(r,"toArray",(function(){return Kt})),n.d(r,"size",(function(){return an})),n.d(r,"pick",(function(){return cn})),n.d(r,"omit",(function(){return un})),n.d(r,"first",(function(){return dn})),n.d(r,"head",(function(){return dn})),n.d(r,"take",(function(){return dn})),n.d(r,"initial",(function(){return ln})),n.d(r,"last",(function(){return hn})),n.d(r,"rest",(function(){return fn})),n.d(r,"tail",(function(){return fn})),n.d(r,"drop",(function(){return fn})),n.d(r,"compact",(function(){return pn})),n.d(r,"flatten",(function(){return gn})),n.d(r,"without",(function(){return vn})),n.d(r,"uniq",(function(){return bn})),n.d(r,"unique",(function(){return bn})),n.d(r,"union",(function(){return yn})),n.d(r,"intersection",(function(){return xn})),n.d(r,"difference",(function(){return mn})),n.d(r,"unzip",(function(){return _n})),n.d(r,"transpose",(function(){return _n})),n.d(r,"zip",(function(){return wn})),n.d(r,"object",(function(){return Dn})),n.d(r,"range",(function(){return Cn})),n.d(r,"chunk",(function(){return kn})),n.d(r,"mixin",(function(){return Sn})),n.d(r,"default",(function(){return An}));var i=n("2f47");function o(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function a(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function s(e){return null===e}function c(e){return void 0===e}function u(e){return!0===e||!1===e||"[object Boolean]"===i["t"].call(e)}function l(e){return!(!e||1!==e.nodeType)}function d(e){var t="[object "+e+"]";return function(e){return i["t"].call(e)===t}}var f=d("String"),h=d("Number"),p=d("Date"),g=d("RegExp"),m=d("Error"),v=d("Symbol"),b=d("ArrayBuffer"),y=d("Function"),x=i["p"].document&&i["p"].document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof x&&(y=function(e){return"function"==typeof e||!1});var _=y,w=d("Object"),D=i["s"]&&w(new DataView(new ArrayBuffer(8))),C="undefined"!==typeof Map&&w(new Map),k=d("DataView");function T(e){return null!=e&&_(e.getInt8)&&b(e.buffer)}var S=D?T:k,A=i["k"]||d("Array");function E(e,t){return null!=e&&i["i"].call(e,t)}var U=d("Arguments");(function(){U(arguments)||(U=function(e){return E(e,"callee")})})();var O=U;function F(e){return!v(e)&&Object(i["f"])(e)&&!isNaN(parseFloat(e))}function P(e){return h(e)&&Object(i["g"])(e)}function R(e){return function(){return e}}function N(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=i["b"]}}function M(e){return function(t){return null==t?void 0:t[e]}}var I=M("byteLength"),B=N(I),L=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function z(e){return i["l"]?Object(i["l"])(e)&&!S(e):B(e)&&L.test(i["t"].call(e))}var W=i["r"]?z:R(!1),j=M("length");function H(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}function V(e,t){t=H(t);var n=i["n"].length,r=e.constructor,o=_(r)&&r.prototype||i["c"],a="constructor";E(e,a)&&!t.contains(a)&&t.push(a);while(n--)a=i["n"][n],a in e&&e[a]!==o[a]&&!t.contains(a)&&t.push(a)}function q(e){if(!a(e))return[];if(i["m"])return Object(i["m"])(e);var t=[];for(var n in e)E(e,n)&&t.push(n);return i["h"]&&V(e,t),t}function $(e){if(null==e)return!0;var t=j(e);return"number"==typeof t&&(A(e)||f(e)||O(e))?0===t:0===j(q(e))}function G(e,t){var n=q(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0}function X(e){return e instanceof X?e:this instanceof X?void(this._wrapped=e):new X(e)}function Y(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,I(e))}X.VERSION=i["e"],X.prototype.value=function(){return this._wrapped},X.prototype.valueOf=X.prototype.toJSON=X.prototype.value,X.prototype.toString=function(){return String(this._wrapped)};var K="[object DataView]";function Z(e,t,n,r){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&J(e,t,n,r)}function J(e,t,n,r){e instanceof X&&(e=e._wrapped),t instanceof X&&(t=t._wrapped);var o=i["t"].call(e);if(o!==i["t"].call(t))return!1;if(D&&"[object Object]"==o&&S(e)){if(!S(t))return!1;o=K}switch(o){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return i["d"].valueOf.call(e)===i["d"].valueOf.call(t);case"[object ArrayBuffer]":case K:return J(Y(e),Y(t),n,r)}var a="[object Array]"===o;if(!a&&W(e)){var s=I(e);if(s!==I(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;a=!0}if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var c=e.constructor,u=t.constructor;if(c!==u&&!(_(c)&&c instanceof c&&_(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];var l=n.length;while(l--)if(n[l]===e)return r[l]===t;if(n.push(e),r.push(t),a){if(l=e.length,l!==t.length)return!1;while(l--)if(!Z(e[l],t[l],n,r))return!1}else{var d,f=q(e);if(l=f.length,q(t).length!==l)return!1;while(l--)if(d=f[l],!E(t,d)||!Z(e[d],t[d],n,r))return!1}return n.pop(),r.pop(),!0}function Q(e,t){return Z(e,t)}function ee(e){if(!a(e))return[];var t=[];for(var n in e)t.push(n);return i["h"]&&V(e,t),t}function te(e){var t=j(e);return function(n){if(null==n)return!1;var r=ee(n);if(j(r))return!1;for(var i=0;i<t;i++)if(!_(n[e[i]]))return!1;return e!==se||!_(n[ne])}}var ne="forEach",re="has",ie=["clear","delete"],oe=["get",re,"set"],ae=ie.concat(ne,oe),se=ie.concat(oe),ce=["add"].concat(ie,ne,re),ue=C?te(ae):d("Map"),le=C?te(se):d("WeakMap"),de=C?te(ce):d("Set"),fe=d("WeakSet");function he(e){for(var t=q(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function pe(e){for(var t=q(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function ge(e){for(var t={},n=q(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function me(e){var t=[];for(var n in e)_(e[n])&&t.push(n);return t.sort()}function ve(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,c=0;c<s;c++){var u=a[c];t&&void 0!==n[u]||(n[u]=o[u])}return n}}var be=ve(ee),ye=ve(q),xe=ve(ee,!0);function _e(){return function(){}}function we(e){if(!a(e))return{};if(i["j"])return Object(i["j"])(e);var t=_e();t.prototype=e;var n=new t;return t.prototype=null,n}function De(e,t){var n=we(e);return t&&ye(n,t),n}function Ce(e){return a(e)?A(e)?e.slice():be({},e):e}function ke(e,t){return t(e),e}function Te(e){return A(e)?e:[e]}function Se(e){return X.toPath(e)}function Ae(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function Ee(e,t,n){var r=Ae(e,Se(t));return c(r)?n:r}function Ue(e,t){t=Se(t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(!E(e,i))return!1;e=e[i]}return!!n}function Oe(e){return e}function Fe(e){return e=ye({},e),function(t){return G(t,e)}}function Pe(e){return e=Se(e),function(t){return Ae(t,e)}}function Re(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Ne(e,t,n){return null==e?Oe:_(e)?Re(e,t,n):a(e)&&!A(e)?Fe(e):Pe(e)}function Me(e,t){return Ne(e,t,1/0)}function Ie(e,t,n){return X.iteratee!==Me?X.iteratee(e,t):Ne(e,t,n)}function Be(e,t,n){t=Ie(t,n);for(var r=q(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o}function Le(){}function ze(e){return null==e?Le:function(t){return Ee(e,t)}}function We(e,t,n){var r=Array(Math.max(0,e));t=Re(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function je(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}X.toPath=Te,X.iteratee=Me;var He=Date.now||function(){return(new Date).getTime()};function Ve(e){var t=function(t){return e[t]},n="(?:"+q(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}var qe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},$e=Ve(qe),Ge=ge(qe),Xe=Ve(Ge),Ye=X.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Ke=/(.)^/,Ze={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Je=/\\|'|\r|\n|\u2028|\u2029/g;function Qe(e){return"\\"+Ze[e]}var et=/^\s*(\w|\$)+\s*$/;function tt(e,t,n){!t&&n&&(t=n),t=xe({},t,X.templateSettings);var r=RegExp([(t.escape||Ke).source,(t.interpolate||Ke).source,(t.evaluate||Ke).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,a,s){return o+=e.slice(i,s).replace(Je,Qe),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a,s=t.variable;if(s){if(!et.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(s,"_",o)}catch(u){throw u.source=o,u}var c=function(e){return a.call(this,e,X)};return c.source="function("+s+"){\n"+o+"}",c}function nt(e,t,n){t=Se(t);var r=t.length;if(!r)return _(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=_(o)?o.call(e):o}return e}var rt=0;function it(e){var t=++rt+"";return e?e+t:t}function ot(e){var t=X(e);return t._chain=!0,t}function at(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=we(e.prototype),s=e.apply(o,i);return a(s)?s:o}var st=o((function(e,t){var n=st.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];while(i<arguments.length)a.push(arguments[i++]);return at(e,r,this,this,a)};return r}));st.placeholder=X;var ct=st,ut=o((function(e,t,n){if(!_(e))throw new TypeError("Bind must be called on a function");var r=o((function(i){return at(e,r,t,this,n.concat(i))}));return r})),lt=N(j);function dt(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,a=j(e);o<a;o++){var s=e[o];if(lt(s)&&(A(s)||O(s)))if(t>1)dt(s,t-1,n,r),i=r.length;else{var c=0,u=s.length;while(c<u)r[i++]=s[c++]}else n||(r[i++]=s)}return r}var ft=o((function(e,t){t=dt(t,!1,!1);var n=t.length;if(n<1)throw new Error("bindAll must be passed function names");while(n--){var r=t[n];e[r]=ut(e[r],e)}return e}));function ht(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return E(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}var pt=o((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),gt=ct(pt,X,1);function mt(e,t,n){var r,i,o,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:He(),r=null,a=e.apply(i,o),r||(i=o=null)},u=function(){var u=He();s||!1!==n.leading||(s=u);var l=t-(u-s);return i=this,o=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),s=u,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,l)),a};return u.cancel=function(){clearTimeout(r),s=0,r=i=o=null},u}function vt(e,t,n){var r,i,a,s,c,u=function(){var o=He()-i;t>o?r=setTimeout(u,t-o):(r=null,n||(s=e.apply(c,a)),r||(a=c=null))},l=o((function(o){return c=this,a=o,i=He(),r||(r=setTimeout(u,t),n&&(s=e.apply(c,a))),s}));return l.cancel=function(){clearTimeout(r),r=a=c=null},l}function bt(e,t){return ct(t,e)}function yt(e){return function(){return!e.apply(this,arguments)}}function xt(){var e=arguments,t=e.length-1;return function(){var n=t,r=e[t].apply(this,arguments);while(n--)r=e[n].call(this,r);return r}}function _t(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function wt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Dt=ct(wt,2);function Ct(e,t,n){t=Ie(t,n);for(var r,i=q(e),o=0,a=i.length;o<a;o++)if(r=i[o],t(e[r],r,e))return r}function kt(e){return function(t,n,r){n=Ie(n,r);for(var i=j(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}var Tt=kt(1),St=kt(-1);function At(e,t,n,r){n=Ie(n,r,1);var i=n(t),o=0,a=j(e);while(o<a){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o}function Et(e,t,n){return function(r,o,a){var s=0,c=j(r);if("number"==typeof a)e>0?s=a>=0?a:Math.max(a+c,s):c=a>=0?Math.min(a+1,c):a+c+1;else if(n&&a&&c)return a=n(r,o),r[a]===o?a:-1;if(o!==o)return a=t(i["q"].call(r,s,c),P),a>=0?a+s:-1;for(a=e>0?s:c-1;a>=0&&a<c;a+=e)if(r[a]===o)return a;return-1}}var Ut=Et(1,Tt,At),Ot=Et(-1,St);function Ft(e,t,n){var r=lt(e)?Tt:Ct,i=r(e,t,n);if(void 0!==i&&-1!==i)return e[i]}function Pt(e,t){return Ft(e,Fe(t))}function Rt(e,t,n){var r,i;if(t=Re(t,n),lt(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=q(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function Nt(e,t,n){t=Ie(t,n);for(var r=!lt(e)&&q(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o}function Mt(e){var t=function(t,n,r,i){var o=!lt(t)&&q(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var c=o?o[s]:s;r=n(r,t[c],c,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,Re(n,i,4),r,o)}}var It=Mt(1),Bt=Mt(-1);function Lt(e,t,n){var r=[];return t=Ie(t,n),Rt(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function zt(e,t,n){return Lt(e,yt(Ie(t)),n)}function Wt(e,t,n){t=Ie(t,n);for(var r=!lt(e)&&q(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0}function jt(e,t,n){t=Ie(t,n);for(var r=!lt(e)&&q(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1}function Ht(e,t,n,r){return lt(e)||(e=he(e)),("number"!=typeof n||r)&&(n=0),Ut(e,t,n)>=0}var Vt=o((function(e,t,n){var r,i;return _(t)?i=t:(t=Se(t),r=t.slice(0,-1),t=t[t.length-1]),Nt(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=Ae(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function qt(e,t){return Nt(e,Pe(t))}function $t(e,t){return Lt(e,Fe(t))}function Gt(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=lt(e)?e:he(e);for(var s=0,c=e.length;s<c;s++)r=e[s],null!=r&&r>o&&(o=r)}else t=Ie(t,n),Rt(e,(function(e,n,r){i=t(e,n,r),(i>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o}function Xt(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=lt(e)?e:he(e);for(var s=0,c=e.length;s<c;s++)r=e[s],null!=r&&r<o&&(o=r)}else t=Ie(t,n),Rt(e,(function(e,n,r){i=t(e,n,r),(i<a||i===1/0&&o===1/0)&&(o=e,a=i)}));return o}var Yt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Kt(e){return e?A(e)?i["q"].call(e):f(e)?e.match(Yt):lt(e)?Nt(e,Oe):he(e):[]}function Zt(e,t,n){if(null==t||n)return lt(e)||(e=he(e)),e[je(e.length-1)];var r=Kt(e),i=j(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=je(a,o),c=r[a];r[a]=r[s],r[s]=c}return r.slice(0,t)}function Jt(e){return Zt(e,1/0)}function Qt(e,t,n){var r=0;return t=Ie(t,n),qt(Nt(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function en(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=Ie(r,i),Rt(n,(function(t,i){var a=r(t,i,n);e(o,t,a)})),o}}var tn=en((function(e,t,n){E(e,n)?e[n].push(t):e[n]=[t]})),nn=en((function(e,t,n){e[n]=t})),rn=en((function(e,t,n){E(e,n)?e[n]++:e[n]=1})),on=en((function(e,t,n){e[n?0:1].push(t)}),!0);function an(e){return null==e?0:lt(e)?e.length:q(e).length}function sn(e,t,n){return t in n}var cn=o((function(e,t){var n={},r=t[0];if(null==e)return n;_(r)?(t.length>1&&(r=Re(r,t[1])),t=ee(e)):(r=sn,t=dt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n})),un=o((function(e,t){var n,r=t[0];return _(r)?(r=yt(r),t.length>1&&(n=t[1])):(t=Nt(dt(t,!1,!1),String),r=function(e,n){return!Ht(t,n)}),cn(e,r,n)}));function ln(e,t,n){return i["q"].call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function dn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:ln(e,e.length-t)}function fn(e,t,n){return i["q"].call(e,null==t||n?1:t)}function hn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:fn(e,Math.max(0,e.length-t))}function pn(e){return Lt(e,Boolean)}function gn(e,t){return dt(e,t,!1)}var mn=o((function(e,t){return t=dt(t,!0,!0),Lt(e,(function(e){return!Ht(t,e)}))})),vn=o((function(e,t){return mn(e,t)}));function bn(e,t,n,r){u(t)||(r=n,n=t,t=!1),null!=n&&(n=Ie(n,r));for(var i=[],o=[],a=0,s=j(e);a<s;a++){var c=e[a],l=n?n(c,a,e):c;t&&!n?(a&&o===l||i.push(c),o=l):n?Ht(o,l)||(o.push(l),i.push(c)):Ht(i,c)||i.push(c)}return i}var yn=o((function(e){return bn(dt(e,!0,!0))}));function xn(e){for(var t=[],n=arguments.length,r=0,i=j(e);r<i;r++){var o=e[r];if(!Ht(t,o)){var a;for(a=1;a<n;a++)if(!Ht(arguments[a],o))break;a===n&&t.push(o)}}return t}function _n(e){for(var t=e&&Gt(e,j).length||0,n=Array(t),r=0;r<t;r++)n[r]=qt(e,r);return n}var wn=o(_n);function Dn(e,t){for(var n={},r=0,i=j(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Cn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function kn(e,t){if(null==t||t<1)return[];var n=[],r=0,o=e.length;while(r<o)n.push(i["q"].call(e,r,r+=t));return n}function Tn(e,t){return e._chain?X(t).chain():t}function Sn(e){return Rt(me(e),(function(t){var n=X[t]=e[t];X.prototype[t]=function(){var e=[this._wrapped];return i["o"].apply(e,arguments),Tn(this,n.apply(X,e))}})),X}Rt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=i["a"][e];X.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Tn(this,n)}})),Rt(["concat","join","slice"],(function(e){var t=i["a"][e];X.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Tn(this,e)}}));var An=X,En=Sn(r);En._=En;var Un=En},c4a9:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=function(){return"undefined"!==typeof window?window:e},i=function(){var e=r();return e&&e.tinymce?e.tinymce:null}}).call(this,n("c8ba"))},c80a:function(e,t,n){},caa2:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"wrap",staticStyle:{width:"100%",padding:"20px",background:"radial-gradient(circle at 12% 55%,rgba(33,150,243,.15),hsla(0,0%,100%,0) 25%)"},attrs:{"element-loading-text":e.load_desc}},[n("div",{staticClass:"left"},[n("a-tabs",{attrs:{type:"card"},on:{change:e.callback}},[n("a-tab-pane",{key:"3",attrs:{tab:"智能写作"}},[n("div",{staticStyle:{padding:"10px"}},[n("div",{staticClass:"left-panel-setting-block__header"},[n("h5",[e._v("标题、内容关键词")])]),n("a-textarea",{attrs:{placeholder:"例如：请输入创作的标题和主要内容","allow-clear":"",rows:4},model:{value:e.desc3,callback:function(t){e.desc3=t},expression:"desc3"}}),n("div",{staticClass:"left-panel-setting-block__header",staticStyle:{"margin-top":"10px"}},[n("h5",[e._v("风格")])]),n("a-radio-group",{on:{change:e.onChanges},model:{value:e.fg_value,callback:function(t){e.fg_value=t},expression:"fg_value"}},[n("a-radio",{attrs:{value:1}},[e._v(" 专业 ")]),n("a-radio",{attrs:{value:2}},[e._v(" 学术 ")]),n("a-radio",{attrs:{value:3}},[e._v(" 幽默 ")]),n("a-radio",{attrs:{value:4}},[e._v(" 科普 ")]),n("a-radio",{attrs:{value:5}},[e._v(" 新闻 ")]),n("a-radio",{attrs:{value:6}},[e._v(" 散文 ")]),n("a-radio",{attrs:{value:7}},[e._v(" 日记 ")]),n("a-radio",{attrs:{value:8}},[e._v(" 公文 ")]),n("a-radio",{attrs:{value:9}},[e._v(" 通知 ")]),n("a-radio",{attrs:{value:10}},[e._v(" 规章制度 ")]),n("a-radio",{attrs:{value:11}},[e._v(" 论文 ")])],1),n("a-button",{staticClass:"w-100 mt-2 mb-2",staticStyle:{"margin-top":"10px","margin-bottom":"5px"},attrs:{type:"primary",loading:e.btn_loading},on:{click:function(t){return e.send_siwei(17)}}},[e._v(" 开始生成 (20积分/次 * 会员免费) ")])],1)]),n("a-tab-pane",{key:"4",attrs:{tab:"创意故事"}},[n("div",{staticStyle:{padding:"10px"}},[n("div",{staticClass:"left-panel-setting-block__header"},[n("h5",[e._v("剧情描述")])]),n("a-textarea",{attrs:{placeholder:"例如：男主一觉醒来,发现自己穿越了,四周一片漆黑,但天上挂着三个月亮,显然这并不是地球!","allow-clear":"",rows:4},model:{value:e.desc4,callback:function(t){e.desc4=t},expression:"desc4"}}),n("a-button",{staticClass:"w-100 mt-2 mb-2",staticStyle:{"margin-top":"10px","margin-bottom":"5px"},attrs:{type:"primary",loading:e.btn_loading},on:{click:function(t){return e.send_siwei(18)}}},[e._v(" 开始生成 (20积分/次 * 会员免费) ")])],1)])],1),e._m(0),n("div",{staticClass:"history",staticStyle:{"margin-top":"10px"}},e._l(e.contentlist,(function(t,r){return 0!=e.contentlist.length?n("div",{key:r,staticClass:"history_box",on:{click:function(n){return e.takecontentlist(t.id)},mouseenter:function(t){return e.handleMouseEnter(r)},mouseleave:function(t){return e.handleMouseLeave(r)}}},[e._m(1,!0),n("div",{staticClass:"hb_right"},[t.is_edit?e._e():n("div",[e._v(e._s(t.title))]),t.is_edit?n("div",{staticClass:"pdf_name"},[n("a-input",{model:{value:t.title,callback:function(n){e.$set(t,"title",n)},expression:"value.title"}})],1):e._e(),n("div",[e._v(e._s(t.id)+":"+e._s(t.creattime))])]),n("div",{staticClass:"icon"},[n("div",[t.is_edit?e._e():n("a-icon",{staticStyle:{"font-size":"18px"},attrs:{type:"edit"},on:{click:function(t){return t.stopPropagation(),e.edit_icon(r)}}}),t.is_edit?n("a-icon",{staticStyle:{"font-size":"18px"},attrs:{type:"check"},on:{click:function(n){return n.stopPropagation(),e.edit_pdf_name(r,t.id)}}}):e._e()],1),n("div",[n("a-icon",{staticStyle:{"font-size":"18px"},attrs:{type:"delete"},on:{click:function(n){return n.stopPropagation(),e.showModal(t.id)}}})],1)]),n("a-modal",{attrs:{title:"删除会话",visible:e.visible,"confirm-loading":e.confirmLoading,"ok-text":"确定","cancel-text":"取消"},on:{ok:function(t){return e.handleOk(e.del_id)},cancel:e.handleCancel}},[n("p",[e._v(e._s(e.ModalText))])])],1):e._e()})),0)],1),n("div",{staticClass:"right"},[n("div",{attrs:{id:"textAreaTemplate"}},[n("div",{staticStyle:{"text-align":"right","margin-bottom":"20px"}},[n("el-upload",{ref:"fileRefs",staticClass:"uploadBtn",staticStyle:{display:"none"},attrs:{action:"","before-upload":e.beforeUpload,"show-file-list":!1,disabled:e.disabled}},[n("el-button",{attrs:{disabled:e.disabled}},[e._v("导入")])],1)],1),n("div",{staticClass:"tinymcebox",attrs:{id:"copys"}},[n("editor",{attrs:{placeholder:"输入文本内容",init:e.init,disabled:e.disabled,id:"vue-tinymce"}})],1)])])])},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{"margin-left":"10px"}},[n("h5",[e._v("历史记录")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"hb_left"},[r("img",{staticStyle:{height:"40px"},attrs:{src:n("ac16")}})])}],o=(n("5b81"),n("2f62")),a=n("4f15"),s=n.n(a),c=(n("4631"),n("c343")),u=n.n(c),l=n("e562"),d=n.n(l),f=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],h=function(e){return-1!==f.indexOf(e)},p=function(e,t,n){Object.keys(t).filter(h).forEach((function(r){var i=t[r];"function"===typeof i&&("onInit"===r?i(e,n):n.on(r.substring(2),(function(e){return i(e,n)})))}))},g=function(e,t){var n,r=e.$props.modelEvents?e.$props.modelEvents:null,i=Array.isArray(r)?r.join(" "):r;e.$watch("value",(function(e,r){t&&"string"===typeof e&&e!==n&&e!==r&&(t.setContent(e),n=e)})),t.on(i||"change keyup undo redo",(function(){n=t.getContent(),e.$emit("input",n)}))},m=function(e,t,n){var r=t.$props.value?t.$props.value:"",i=t.$props.initialValue?t.$props.initialValue:"";n.setContent(r||i),t.$listeners.input&&g(t,n),p(e,t.$listeners,n)},v=0,b=function(e){var t=Date.now(),n=Math.floor(1e9*Math.random());return v++,e+"_"+n+v+String(t)},y=function(e){return null!==e&&"textarea"===e.tagName.toLowerCase()},x=function(e){return"undefined"===typeof e||""===e?[]:Array.isArray(e)?e:e.split(" ")},_=function(e,t){return x(e).concat(x(t))},w=function(e,t,n,r){var i=t.createElement("script");i.referrerPolicy="origin",i.type="application/javascript",i.id=e,i.addEventListener("load",r),i.src=n,t.head&&t.head.appendChild(i)},D=function(){return{listeners:[],scriptId:b("tiny-script"),scriptLoaded:!1}},C=function(e,t,n,r){e.scriptLoaded?r():(e.listeners.push(r),t.getElementById(e.scriptId)||w(e.scriptId,t,n,(function(){e.listeners.forEach((function(e){return e()})),e.scriptLoaded=!0})))},k=n("c4a9"),T={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean},S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S.apply(this,arguments)},A=D(),E=function(e,t,n){return e(n||"div",{attrs:{id:t}})},U=function(e,t){return e("textarea",{attrs:{id:t},style:{visibility:"hidden"}})},O=function(e){return function(){var t=S({},e.$props.init,{readonly:e.$props.disabled,selector:"#"+e.elementId,plugins:_(e.$props.init&&e.$props.init.plugins,e.$props.plugins),toolbar:e.$props.toolbar||e.$props.init&&e.$props.init.toolbar,inline:e.inlineEditor,setup:function(t){e.editor=t,t.on("init",(function(n){return m(n,e,t)})),e.$props.init&&"function"===typeof e.$props.init.setup&&e.$props.init.setup(t)}});y(e.element)&&(e.element.style.visibility=""),Object(k["a"])().init(t)}},F={props:T,created:function(){this.elementId=this.$props.id||b("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==Object(k["a"])())O(this)();else if(this.element&&this.element.ownerDocument){var e=this.element.ownerDocument,t=this.$props.cloudChannel?this.$props.cloudChannel:"5",n=this.$props.apiKey?this.$props.apiKey:"no-api-key";C(A,e,"https://cdn.tiny.cloud/1/"+n+"/tinymce/"+t+"/tinymce.min.js",O(this))}},beforeDestroy:function(){null!==Object(k["a"])()&&Object(k["a"])().remove(this.editor)},render:function(e){return this.inlineEditor?E(e,this.elementId,this.$props.tagName):U(e,this.elementId)}},P=F,R=(n("fc39"),n("0d68"),n("4ea8"),n("3aea"),n("07d1"),n("84ec"),n("9434"),n("0a9d"),n("64d8"),n("4237"),n("0902"),n("07d7"),n("3154"),n("62e5"),n("2fec"),n("855b"),n("0efa"),n("365e"),n("0335"),n("c3d7"),n("eda9"),n("4bd0"),n("ffbe"),n("7193"),{components:{Editor:P},watch:{},data(){return{del_id:"",visible:!1,confirmLoading:!1,is_edit:!1,ModalText:"删除后不可找回，确认删除当前记录？",modeType:"wxyy",tinymceId:"vue-tinymce",disabled:!1,content:"",is_type:"",init:{_target:()=>this,language_url:"/tinymce/langs/zh_CN.js",language:"zh_CN",skin_url:"/tinymce/skins/ui/tinymce-5",content_css:"/tinymce/skins/content/default/content.css",height:770,min_height:770,max_height:770,toolbar_mode:"​scrolling",branding:!1,menubar:!1,promotion:!1,image_dimensions:!1,statusbar:!1,paste_webkit_styles:"all",paste_merge_formats:!0,nonbreaking_force_tab:!1,paste_auto_cleanup_on_paste:!1,file_picker_types:"file",plugins:"preview searchreplace autolink directionality visualblocks visualchars fullscreen image link template code codesample table charmap  nonbreaking insertdatetime advlist lists wordcount autosave autoresize",toolbar:" |undo redo | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify outdent indent formatpainter | table image charmap  pagebreak |importbtn| importbtn2|importbtns| styleselect  fontselect fontsizeselect | bullist numlist |customMenu|customMenu2||",content_style:"p {margin: 5px 0;}",fontsize_formats:"12px 14px 16px 18px 24px 36px 48px 56px 72px",font_formats:"微软雅黑=Microsoft YaHei,Helvetica Neue,PingFang SC,sans-serif;苹果苹方=PingFang SC,Microsoft YaHei,sans-serif;宋体=simsun,serif;仿宋体=FangSong,serif;黑体=SimHei,sans-serif;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;",branding:!1,selector:"vue-tinymce",contextmenu:"customMenu | customMenu2",setup:e=>{this.editor=e;let t=this;e.on("change",(function(){t.changes=!0})),e.ui.registry.addButton("importbtns",{text:"保存草稿",onAction:()=>{this.cunchu()}}),e.ui.registry.addButton("importbtn",{text:"导入word",onAction:function(){t.$refs["fileRefs"].$refs["upload-inner"].handleClick()}}),e.ui.registry.addButton("importbtn2",{text:"导出word",onAction:()=>{const t=e.getContent({format:"html"});this.exportToWord(t)}}),e.ui.registry.addButton("customMenu",{text:'<svg style="margin-right:5px;display:inline-table;width:15px;height:15px" t="1702010433431" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="14995" width="200" height="200"><path d="M922.639594 232.709098l-67.873487-67.873487c-12.495119-12.495119-32.787193-12.495119-45.282312 0L63.475205 910.944162l113.055838 113.055838L922.539633 277.891449c12.59508-12.395158 12.59508-32.687232 0.099961-45.182351z m-70.672394 25.490043L730.714565 379.451777 708.123389 356.860601l121.252636-121.252635c1.599375-1.599375 4.098399-1.599375 5.697774 0l16.993362 16.993362c1.499414 1.499414 1.499414 3.998438-0.099961 5.597813zM585.171417 229.610308l-132.448262 72.37173-72.37173 132.348302-72.37173-132.348302-132.348301-72.37173 132.348301-72.371729 72.37173-132.448263 72.37173 132.448263zM588.270207 52.679422L641.949239 36.985553l-15.69387 53.679031 15.69387 53.679032-53.679032-15.793831-53.679032 15.793831 15.793831-53.679032L534.591175 36.985553zM249.902382 11.795392L290.086685 0l-11.795393 40.184303L290.086685 80.368606l-40.184303-11.795392-40.184303 11.795392 11.795392-40.184303L209.718079 0zM865.661851 617.158922L897.849278 607.762593l-9.39633 32.187427 9.39633 32.187426-32.187427-9.49629-32.187427 9.49629 9.496291-32.187426-9.496291-32.187427z" p-id="14996" fill="#aa55ff"></path></svg><span style="color:#aa55ff">改写</span>',onAction:()=>{this.select_text=e.selection.getContent({format:"text"});const t=e.getContent({format:"text"});this.ai_write_type="content_change",this.send_siweis(t,this.select_text,this.ai_write_type)}}),e.ui.registry.addButton("customMenu2",{text:'<svg style="margin-right:5px;display:inline-table;width:15px;height:15px" t="1702011010597" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="28317" width="200" height="200"><path d="M957.6 0C247.8 7.6 114.8 634.1 59.1 963.5c-3.9 22.8 7.8 44.2 26.6 54.3 7.2 3.9 15.5 6.1 24.4 6.1 11.8 0 22.8-4 31.6-10.7 8.8-6.8 15.5-16.4 18.5-27.8 9.3-34.9 21-66.1 35.2-93.6 45.4-87.7 116-137.5 212-149.5 193.9-24.2 342-186.2 400.6-333.8 5.6-14.1 0.7-30.2-11.9-38.6l-23.4-15.6c-16.8-11.2-19.2-35-4.9-49.3l23.6-23.6c40.8-40.8 81.7-97.8 135.4-197 12-22.1 24.6-46.3 38-72.9 0.3-0.6 0.5-1.2 0.7-1.8 1.1-4.7-2.6-9.7-7.9-9.7zM839.1 109.7c-8.1 13.7-15.9 26.3-23.5 38-24.2 37.2-46.2 65.4-69.4 88.6l-23.6 23.6c-20.4 20.4-30.5 48.6-27.7 77.3 2.8 28.7 18.3 54.4 42.3 70.4l1.2 0.8c-11.8 25.3-26.2 50.3-43 74.7-23.3 33.7-50.2 64.3-79.8 91.1-31.5 28.4-65.2 51.7-100.4 69.2-37.5 18.6-76.4 30.5-115.6 35.4-44.6 5.6-94.9 19.7-142.5 50.3-6.8 4.4-13.6 9.1-20.3 14.2-3.1 2.4-7.4-0.6-6.3-4.3 37.8-127.3 98.5-246.8 178.3-353.2l1.4-1.9s-90.4 68.3-203 264.5c-2.4 4.2-8.8 1.3-7.3-3.3 12.2-36.5 25.5-71.2 39.7-103.8 22.9-52.8 48.9-101.7 77.3-145.5 31.2-48.1 66.3-91.5 104.3-129 41.2-40.7 87.1-75.6 136.4-104 17.4-10 35.3-19.2 53.8-27.7 38.5-17.7 79.4-32.2 122.2-43.2 40.6-10.5 83.7-18.1 128.7-22.7-8.1 14.5-15.8 27.9-23.2 40.5z" p-id="28318" fill="#1890ff"></path></svg><span style="color:#1890ff">续写</span>',onAction:()=>{this.select_text=e.selection.getContent({format:"text"}),this.ai_write_type="content_long";const t=e.getContent({format:"text"});this.send_siweis(t,this.select_text,this.ai_write_type)}})},paste_data_images:!0,images_upload_handler:(e,t)=>new Promise((t,n)=>{t("data:"+e.blob().type+";base64,"+e.base64())})},changes:!1,fengge:"",mark_ais:"",baocun_id:"",select_text:"",ai_write_type:"",right_content:"",write_content_font:"",title:"",send_loading:!1,baseUrl:"",headers:{},fg_value:1,history_default:"https://osaigcimg.su.bcebos.com/uploads/20231128/deebfac0dff30b446e39a841828aa45f.png",image:[{url:"https://osaigcimg.su.bcebos.com/uploads/20231128/deebfac0dff30b446e39a841828aa45f.png"}],desc1:"",desc2:"",desc3:"",desc4:"",baiduUrl:"",editshow:!0,loading:!1,btn_loading:!1,load_desc:"拼命生成中,大概耗时2-5分钟，请您耐心等待",contentlist:[],contentlist:[],titles:"未命名",text:"https://download.yoojober.com/chatppt_business/2023-11/4838d61116e05834f283a7454e104f55.pptx?e=1701145672&token=8_2qFlGEVQZPpFvHdGR6gg2t9A9QZfWT9wwTl92s:VMX2fbqE5TAcHQmKWiVomXC6lxE="}},created(){this.getlist()},mounted(){},beforeDestroy(){clearInterval(this.interval)},computed:{...Object(o["c"])("user",["token","userInfo"])},methods:{...Object(o["b"])("user",["getUserInfo"]),showModal(e){this.del_id=e,this.visible=!0},handleCancel(e){this.visible=!1},edit_icon(e){this.contentlist[e].is_edit=!0},edit_pdf_name(e,t){this.$http("ai_write.edit_title",{id:t,title:this.contentlist[e].title}).then(t=>{1==t.code&&(this.contentlist[e].is_edit=!1,this.$message.success("修改成功"))})},handleMouseEnter(e){this.contentlist[e].show=!0},handleMouseLeave(e){this.contentlist[e].show=!1},handleOk(e){this.confirmLoading=!0,this.$http("ai_write.del_word",{id:e}).then(e=>{1==e.code&&(this.contentlist=e.data,this.visible=!1,this.confirmLoading=!1,this.getlist())})},exportToWord(e){const t=s.a.asBlob(e),n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download="导出文件.doc",r.click(),URL.revokeObjectURL(n)},cunchu(){d.a.get("vue-tinymce").getContent()&&this.changes&&this.$http("ai_write.baocun",{content:encodeURIComponent(d.a.get("vue-tinymce").getContent()),is_type:this.is_type,titles:this.titles,id:this.baocun_id}).then(e=>{1===e.code&&(this.baocun_id=e.data,this.$message.success("保存成功"))})},getlist(){this.$http("ai_write.getlist",{}).then(e=>{1===e.code?this.contentlist=e.data:this.$message.warning(e.msg)})},takecontentlist(e){this.$http("ai_write.takecontentlist",{id:e}).then(e=>{1===e.code?(this.baocun_id=e.data.id,d.a.get("vue-tinymce").setContent(e.data.content),this.$message.success("加载完成")):this.$message.warning(e.msg)})},beforeUpload(e,t){const n=this;var r=new FileReader;return r.onloadend=function(e){let t=r.result;const i=n.$loading({lock:!0,text:"文件解析中....",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.3)"});u.a.convertToHtml({arrayBuffer:t}).then((function(e){setTimeout(()=>{let t=d.a.activeEditor.getContent()+e.value;d.a.activeEditor.setContent(t),i.close()},100)}))},r.readAsArrayBuffer(e),!1},onContentUpdated(e){this.content=e},callback(){console.log(this.content),console.log(this.select_text),console.log(this.ai_write_type)},onChanges(e){console.log("radio checked",e.target.value)},send_siwei(e){if(this.is_type=e,this.baocun_id="",this.btn_loading=!0,17==e&&(1==this.fg_value&&(this.fengge="专业"),2==this.fg_value&&(this.fengge="学术"),3==this.fg_value&&(this.fengge="幽默"),4==this.fg_value&&(this.fengge="科普"),5==this.fg_value&&(this.fengge="新闻"),6==this.fg_value&&(this.fengge="散文"),7==this.fg_value&&(this.fengge="日记"),8==this.fg_value&&(this.fengge="公文"),9==this.fg_value&&(this.fengge="通知"),10==this.fg_value&&(this.fengge="规则制度"),10==this.fg_value&&(this.fengge="论文"),this.mark_ais="标题及关键词："+this.desc3+"，风格："+this.fengge,this.titles=this.desc3),18==e&&(this.mark_ais="剧情及关键词："+this.desc4,this.titles=this.desc4),!this.modeType)return this.$message.error("会话模型错误，请联系管理员");if(this.langding=!0,this.group_id){const t={type:"rule",prompt_id:e,group_id:this.group_id,message:this.mark_ais,mode:this.modeType};this.fetchDataStream(t)}else this.createRoleChat(e)},send_siweis(e,t,n){if(t.length<5)return this.$message.error("请选择要改写或续写的内容,且必须多余5个字"),1;if(this.btn_loading=!0,"content_change"==n&&(this.mark_ais="请根据原文'"+e+"'改写'"+t+"'部分,仅回答改写的新内容"),"content_long"==n&&(this.mark_ais="请根据原文'"+e+"'续写'"+t+"'之后的内容,仅回答续写的新内容"),!this.modeType)return this.$message.error("会话模型错误，请联系管理员");if(this.langding=!0,this.group_id){const e={type:"rule",prompt_id:19,group_id:this.group_id,message:this.mark_ais,mode:this.modeType};this.fetchDataStreams(e)}else this.createRoleChat(19)},async createRoleChat(e){this.$http("role.create",{prompt_id:e}).then(t=>{if(1===t.code){this.group_id=t.data.group_id;const n={type:"rule",prompt_id:e,group_id:this.group_id,message:this.mark_ais,mode:this.modeType};19==e?this.fetchDataStreams(n):this.fetchDataStream(n)}})},async fetchDataStreams(e){if(!e)return void console.log("输入为空");this.dataText="",this.disabled=!0,d.a.get("vue-tinymce").setProgressState(1);const t=e,n=this.$BASE_API+"/addons/chatgpt/web/sendText",r=new AbortController,i=this.token,o=window.location.search.replace(/\?/g,"");try{const e=await fetch(n,{method:"post",headers:{"Content-Type":"application/json;charset=utf-8",Token:i,Sign:o},body:JSON.stringify(t),signal:r.signal}),u=e.body.getReader();let l="";while(1){const{done:e,value:t}=await u.read(),n=(new TextDecoder).decode(t);if(-1!=n.indexOf("data: [DONE]")||-1!=n.indexOf("data:[DONE]")||e){const e=n.replaceAll(" ","").split("data:[DONE]");e[0].length&&(this.dataText+=e[0]),this.disabled=!1;break}l+=n,this.dataText=l,this.content=this.dataText}var a=d.a.get("vue-tinymce");if("content_long"==this.ai_write_type){a.selection.getRng();this.content=this.select_text+"<span style='color:#1890ff'>"+this.content+"</span>",a.insertContent(this.content)}if("content_change"==this.ai_write_type){var s=a.getContent();this.content="<span style='color:#aa55ff'>"+this.content+"</span>";var c=s.replace(this.select_text,this.content);a.setContent(c)}this.cunchu(),d.a.get("vue-tinymce").setProgressState(0),this.btn_loading=!1,this.langding=!1}catch{d.a.get("vue-tinymce").setProgressState(0),this.btn_loading=!1,this.langding=!1,this.$message.error("请求失败")}},async fetchDataStream(e){if(!e)return void console.log("输入为空");this.dataText="",this.disabled=!0,d.a.get("vue-tinymce").setProgressState(1);const t=e,n=this.$BASE_API+"/addons/chatgpt/web/sendText",r=new AbortController,i=this.token,o=window.location.search.replace(/\?/g,"");try{const e=await fetch(n,{method:"post",headers:{"Content-Type":"application/json;charset=utf-8",Token:i,Sign:o},body:JSON.stringify(t),signal:r.signal}),a=e.body.getReader();let s="";while(1){const{done:e,value:t}=await a.read(),n=(new TextDecoder).decode(t);if(-1!=n.indexOf("data: [DONE]")||-1!=n.indexOf("data:[DONE]")||e){const e=n.replaceAll(" ","").split("data:[DONE]");e[0].length&&(this.dataText+=e[0]),this.disabled=!1;break}s+=n,this.dataText=s,this.content=this.dataText,d.a.get("vue-tinymce").setContent(this.content)}this.cunchu(),d.a.get("vue-tinymce").setProgressState(0),this.btn_loading=!1,this.langding=!1}catch{d.a.get("vue-tinymce").setProgressState(0),this.btn_loading=!1,this.langding=!1,console.error("请求失败")}}}}),N=R,M=(n("e177"),n("9cb2"),n("3939"),n("2877")),I=Object(M["a"])(N,r,i,!1,null,"d64ac5f2",null);t["default"]=I.exports},cdd9:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=function(e){return function(t){return typeof t===e}},o=function(e){return function(t){return e===t}},a=r("string"),s=r("object"),c=r("array"),u=o(null),l=i("boolean"),d=function(e){return null===e||void 0===e},f=function(e){return!d(e)},h=i("function"),p=i("number"),g=function(){},m=function(e){return function(){return e}},v=function(e){return e},b=m(!1),y=m(!0),x=function(){return _},_=function(){var e=function(e){return e()},t=v,n={fold:function(e,t){return e()},isSome:b,isNone:y,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:m(null),getOrUndefined:m(void 0),or:t,orThunk:e,map:x,each:g,bind:x,exists:b,forall:y,filter:function(){return x()},toArray:function(){return[]},toString:m("none()")};return n}(),w=function(e){var t=m(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:y,isNone:b,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return w(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:_},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},D=function(e){return null===e||void 0===e?_:w(e)},C={some:w,none:x,from:D},k=Object.keys,T=Object.hasOwnProperty,S=function(e,t){for(var n=k(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},A=function(e){return function(t,n){e[n]=t}},E=function(e,t,n,r){var i={};return S(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},U=function(e,t){var n={};return E(e,t,A(n),g),n},O=function(e,t){return T.call(e,t)},F=function(e,t){return O(e,t)&&void 0!==e[t]&&null!==e[t]},P=Array.prototype.push,R=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!c(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);P.apply(t,e[n])}return t},N=function(e,t){return t>=0&&t<e.length?C.some(e[t]):C.none()},M=function(e){return N(e,0)},I=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return C.none()};"undefined"!==typeof window?window:Function("return this;")();var B=function(e,t,n){if(!(a(n)||l(n)||p(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},L=function(e,t,n){B(e.dom,t,n)},z=function(e,t){e.dom.removeAttribute(t)},W=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return V(r.childNodes[0])},j=function(e,t){var n=t||document,r=n.createElement(e);return V(r)},H=function(e,t){var n=t||document,r=n.createTextNode(e);return V(r)},V=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},q=function(e,t,n){return C.from(e.dom.elementFromPoint(t,n)).map(V)},$={fromHtml:W,fromTag:j,fromText:H,fromDom:V,fromPoint:q},G=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),X=tinymce.util.Tools.resolve("tinymce.util.Promise"),Y=tinymce.util.Tools.resolve("tinymce.util.URI"),K=tinymce.util.Tools.resolve("tinymce.util.XHR"),Z=function(e){return e.getParam("image_dimensions",!0,"boolean")},J=function(e){return e.getParam("image_advtab",!1,"boolean")},Q=function(e){return e.getParam("image_uploadtab",!0,"boolean")},ee=function(e){return e.getParam("image_prepend_url","","string")},te=function(e){return e.getParam("image_class_list")},ne=function(e){return e.getParam("image_description",!0,"boolean")},re=function(e){return e.getParam("image_title",!1,"boolean")},ie=function(e){return e.getParam("image_caption",!1,"boolean")},oe=function(e){return e.getParam("image_list",!1)},ae=function(e){return f(e.getParam("images_upload_url"))},se=function(e){return f(e.getParam("images_upload_handler"))},ce=function(e){return e.getParam("a11y_advanced_options",!1,"boolean")},ue=function(e){return e.getParam("automatic_uploads",!0,"boolean")},le=function(e,t){return Math.max(parseInt(e,10),parseInt(t,10))},de=function(e){return new X((function(t){var n=document.createElement("img"),r=function(e){n.onload=n.onerror=null,n.parentNode&&n.parentNode.removeChild(n),t(e)};n.onload=function(){var e=le(n.width,n.clientWidth),t=le(n.height,n.clientHeight),i={width:e,height:t};r(X.resolve(i))},n.onerror=function(){r(X.reject("Failed to get image dimensions for: "+e))};var i=n.style;i.visibility="hidden",i.position="fixed",i.bottom=i.left="0px",i.width=i.height="auto",document.body.appendChild(n),n.src=e}))},fe=function(e){return e&&(e=e.replace(/px$/,"")),e},he=function(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e},pe=function(e){if(e.margin){var t=String(e.margin).split(" ");switch(t.length){case 1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case 2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case 3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case 4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}delete e.margin}return e},ge=function(e,t){var n=oe(e);a(n)?K.send({url:n,success:function(e){t(JSON.parse(e))}}):h(n)?n(t):t(n)},me=function(e,t,n){var r=function(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())};n.onload=function(){t.width||t.height||!Z(e)||e.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},ve=function(e){return new X((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=function(){n(r.error.message)},r.readAsDataURL(e)}))},be=function(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))},ye=function(e,t){return Y.isDomSafe(t,"img",e.settings)},xe=G.DOM,_e=function(e){return e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?fe(e.style.marginLeft):""},we=function(e){return e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?fe(e.style.marginTop):""},De=function(e){return e.style.borderWidth?fe(e.style.borderWidth):""},Ce=function(e,t){return e.hasAttribute(t)?e.getAttribute(t):""},ke=function(e,t){return e.style[t]?e.style[t]:""},Te=function(e){return null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName},Se=function(e,t,n){""===n?e.removeAttribute(t):e.setAttribute(t,n)},Ae=function(e){var t=xe.create("figure",{class:"image"});xe.insertAfter(t,e),t.appendChild(e),t.appendChild(xe.create("figcaption",{contentEditable:"true"},"Caption")),t.contentEditable="false"},Ee=function(e){var t=e.parentNode;xe.insertAfter(e,t),xe.remove(t)},Ue=function(e){Te(e)?Ee(e):Ae(e)},Oe=function(e,t){var n=e.getAttribute("style"),r=t(null!==n?n:"");r.length>0?(e.setAttribute("style",r),e.setAttribute("data-mce-style",r)):e.removeAttribute("style")},Fe=function(e,t){return function(e,n,r){e.style[n]?(e.style[n]=he(r),Oe(e,t)):Se(e,n,r)}},Pe=function(e,t){return e.style[t]?fe(e.style[t]):Ce(e,t)},Re=function(e,t){var n=he(t);e.style.marginLeft=n,e.style.marginRight=n},Ne=function(e,t){var n=he(t);e.style.marginTop=n,e.style.marginBottom=n},Me=function(e,t){var n=he(t);e.style.borderWidth=n},Ie=function(e,t){e.style.borderStyle=t},Be=function(e){return ke(e,"borderStyle")},Le=function(e){return"FIGURE"===e.nodeName},ze=function(e){return"IMG"===e.nodeName},We=function(e){return 0===xe.getAttrib(e,"alt").length&&"presentation"===xe.getAttrib(e,"role")},je=function(e){return We(e)?"":Ce(e,"alt")},He=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},Ve=function(e,t){var n=document.createElement("img");return Se(n,"style",t.style),(_e(n)||""!==t.hspace)&&Re(n,t.hspace),(we(n)||""!==t.vspace)&&Ne(n,t.vspace),(De(n)||""!==t.border)&&Me(n,t.border),(Be(n)||""!==t.borderStyle)&&Ie(n,t.borderStyle),e(n.getAttribute("style"))},qe=function(e,n){var r=document.createElement("img");if(Ze(e,t(t({},n),{caption:!1}),r),Xe(r,n.alt,n.isDecorative),n.caption){var i=xe.create("figure",{class:"image"});return i.appendChild(r),i.appendChild(xe.create("figcaption",{contentEditable:"true"},"Caption")),i.contentEditable="false",i}return r},$e=function(e,t){return{src:Ce(t,"src"),alt:je(t),title:Ce(t,"title"),width:Pe(t,"width"),height:Pe(t,"height"),class:Ce(t,"class"),style:e(Ce(t,"style")),caption:Te(t),hspace:_e(t),vspace:we(t),border:De(t),borderStyle:ke(t,"borderStyle"),isDecorative:We(t)}},Ge=function(e,t,n,r,i){n[r]!==t[r]&&i(e,r,n[r])},Xe=function(e,t,n){if(n){xe.setAttrib(e,"role","presentation");var r=$.fromDom(e);L(r,"alt","")}else{if(u(t)){r=$.fromDom(e);z(r,"alt")}else{r=$.fromDom(e);L(r,"alt",t)}"presentation"===xe.getAttrib(e,"role")&&xe.setAttrib(e,"role","")}},Ye=function(e,t,n){n.alt===t.alt&&n.isDecorative===t.isDecorative||Xe(e,n.alt,n.isDecorative)},Ke=function(e,t){return function(n,r,i){e(n,i),Oe(n,t)}},Ze=function(e,t,n){var r=$e(e,n);Ge(n,r,t,"caption",(function(e,t,n){return Ue(e)})),Ge(n,r,t,"src",Se),Ge(n,r,t,"title",Se),Ge(n,r,t,"width",Fe("width",e)),Ge(n,r,t,"height",Fe("height",e)),Ge(n,r,t,"class",Se),Ge(n,r,t,"style",Ke((function(e,t){return Se(e,"style",t)}),e)),Ge(n,r,t,"hspace",Ke(Re,e)),Ge(n,r,t,"vspace",Ke(Ne,e)),Ge(n,r,t,"border",Ke(Me,e)),Ge(n,r,t,"borderStyle",Ke(Ie,e)),Ye(n,r,t)},Je=function(e,t){var n=e.dom.styles.parse(t),r=pe(n),i=e.dom.styles.parse(e.dom.styles.serialize(r));return e.dom.styles.serialize(i)},Qe=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return n?e.dom.select("img",n)[0]:t&&("IMG"!==t.nodeName||be(t))?null:t},et=function(e,t){var n=e.dom,r=U(e.schema.getTextBlockElements(),(function(t,n){return!e.schema.isValidChild(n,"figure")})),i=n.getParent(t.parentNode,(function(e){return F(r,e.nodeName)}),e.getBody());return i?n.split(i,t):t},tt=function(e){var t=Qe(e);return t?$e((function(t){return Je(e,t)}),t):He()},nt=function(e,t){var n=qe((function(t){return Je(e,t)}),t);e.dom.setAttrib(n,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(n.outerHTML);var r=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(r,"data-mce-id",null),Le(r)){var i=et(e,r);e.selection.select(i)}else e.selection.select(r)},rt=function(e,t){e.dom.setAttrib(t,"src",t.getAttribute("src"))},it=function(e,t){if(t){var n=e.dom.is(t.parentNode,"figure.image")?t.parentNode:t;e.dom.remove(n),e.focus(),e.nodeChanged(),e.dom.isEmpty(e.getBody())&&(e.setContent(""),e.selection.setCursorLocation())}},ot=function(e,t){var n=Qe(e);if(Ze((function(t){return Je(e,t)}),t,n),rt(e,n),Le(n.parentNode)){var r=n.parentNode;et(e,r),e.selection.select(n.parentNode)}else e.selection.select(n),me(e,t,n)},at=function(e,n){var r=n.src;return t(t({},n),{src:ye(e,r)?r:""})},st=function(e,n){var r=Qe(e);if(r){var i=$e((function(t){return Je(e,t)}),r),o=t(t({},i),n),a=at(e,o);o.src?ot(e,a):it(e,r)}else n.src&&nt(e,t(t({},He()),n))},ct=function(e,t){var n=s(e)&&s(t);return n?lt(e,t):t},ut=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)O(o,a)&&(r[a]=e(r[a],o[a]))}return r}},lt=ut(ct),dt=function(e){return e.length>0},ft=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),ht=tinymce.util.Tools.resolve("tinymce.util.Tools"),pt=function(e){return a(e.value)?e.value:""},gt=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},mt=function(e,t){var n=[];return ht.each(e,(function(e){var r=gt(e);if(void 0!==e.menu){var i=mt(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},vt=function(e){return void 0===e&&(e=pt),function(t){return t?C.from(t).map((function(t){return mt(t,e)})):C.none()}},bt=function(e){return vt(pt)(e)},yt=function(e){return O(e,"items")},xt=function(e,t){return I(e,(function(e){return yt(e)?xt(e.items,t):e.value===t?C.some(e):C.none()}))},_t=function(e,t){return e.bind((function(e){return xt(e,t)}))},wt={sanitizer:vt,sanitize:bt,findEntry:_t},Dt=function(e){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},Ct={makeTab:Dt},kt=function(e){var t=wt.sanitizer((function(t){return e.convertURL(t.value||t.url,"src")})),n=new X((function(n){ge(e,(function(e){n(t(e).map((function(e){return R([[{text:"None",value:""}],e])})))}))})),r=wt.sanitize(te(e)),i=J(e),o=Q(e),s=ae(e),c=se(e),u=tt(e),l=ne(e),d=re(e),f=Z(e),h=ie(e),p=ce(e),g=ue(e),m=C.some(ee(e)).filter((function(e){return a(e)&&e.length>0}));return n.then((function(e){return{image:u,imageList:e,classList:r,hasAdvTab:i,hasUploadTab:o,hasUploadUrl:s,hasUploadHandler:c,hasDescription:l,hasImageTitle:d,hasDimensions:f,hasImageCaption:h,prependURL:m,hasAccessibilityOptions:p,automaticUploads:g}}))},Tt=function(e){var n={name:"src",type:"urlinput",filetype:"image",label:"Source"},r=e.imageList.map((function(e){return{name:"images",type:"listbox",label:"Image list",items:e}})),i={name:"alt",type:"input",label:"Alternative description",disabled:e.hasAccessibilityOptions&&e.image.isDecorative},o={name:"title",type:"input",label:"Image title"},a={name:"dimensions",type:"sizeinput"},s={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},c=e.classList.map((function(e){return{name:"classes",type:"listbox",label:"Class",items:e}})),u={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},l=function(e){return e?{type:"grid",columns:2}:{type:"panel"}};return R([[n],r.toArray(),e.hasAccessibilityOptions&&e.hasDescription?[s]:[],e.hasDescription?[i]:[],e.hasImageTitle?[o]:[],e.hasDimensions?[a]:[],[t(t({},l(e.classList.isSome()&&e.hasImageCaption)),{items:R([c.toArray(),e.hasImageCaption?[u]:[]])})]])},St=function(e){return{title:"General",name:"general",items:Tt(e)}},At={makeTab:St,makeItems:Tt},Et=function(e){var t=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:t}},Ut={makeTab:Et},Ot=function(e){return{prevImage:wt.findEntry(e.imageList,e.image.src),prevAlt:e.image.alt,open:!0}},Ft=function(e){return{src:{value:e.src,meta:{}},images:e.src,alt:e.alt,title:e.title,dimensions:{width:e.width,height:e.height},classes:e.class,caption:e.caption,style:e.style,vspace:e.vspace,border:e.border,hspace:e.hspace,borderstyle:e.borderStyle,fileinput:[],isDecorative:e.isDecorative}},Pt=function(e,t){return{src:e.src.value,alt:0===e.alt.length&&t?null:e.alt,title:e.title,width:e.dimensions.width,height:e.dimensions.height,class:e.classes,style:e.style,caption:e.caption,hspace:e.hspace,vspace:e.vspace,border:e.border,borderStyle:e.borderstyle,isDecorative:e.isDecorative}},Rt=function(e,t){return/^(?:[a-zA-Z]+:)?\/\//.test(t)?C.none():e.prependURL.bind((function(e){return t.substring(0,e.length)!==e?C.some(e+t):C.none()}))},Nt=function(e,t){var n=t.getData();Rt(e,n.src.value).each((function(e){t.setData({src:{value:e,meta:n.src.meta}})}))},Mt=function(e,t,n){e.hasDescription&&a(n.alt)&&(t.alt=n.alt),e.hasAccessibilityOptions&&(t.isDecorative=n.isDecorative||t.isDecorative||!1),e.hasImageTitle&&a(n.title)&&(t.title=n.title),e.hasDimensions&&(a(n.width)&&(t.dimensions.width=n.width),a(n.height)&&(t.dimensions.height=n.height)),a(n.class)&&wt.findEntry(e.classList,n.class).each((function(e){t.classes=e.value})),e.hasImageCaption&&l(n.caption)&&(t.caption=n.caption),e.hasAdvTab&&(a(n.style)&&(t.style=n.style),a(n.vspace)&&(t.vspace=n.vspace),a(n.border)&&(t.border=n.border),a(n.hspace)&&(t.hspace=n.hspace),a(n.borderstyle)&&(t.borderstyle=n.borderstyle))},It=function(e,t){var n=t.getData(),r=n.src.meta;if(void 0!==r){var i=lt({},n);Mt(e,i,r),t.setData(i)}},Bt=function(e,t,n,r){var i=r.getData(),o=i.src.value,a=i.src.meta||{};a.width||a.height||!t.hasDimensions||(dt(o)?e.imageSize(o).then((function(e){n.open&&r.setData({dimensions:e})})).catch((function(e){return console.error(e)})):r.setData({dimensions:{width:"",height:""}}))},Lt=function(e,t,n){var r=n.getData(),i=wt.findEntry(e.imageList,r.src.value);t.prevImage=i,n.setData({images:i.map((function(e){return e.value})).getOr("")})},zt=function(e,t,n,r){Nt(t,r),It(t,r),Bt(e,t,n,r),Lt(t,n,r)},Wt=function(e,t,n,r){var i=r.getData(),o=wt.findEntry(t.imageList,i.images);o.each((function(e){var t=""===i.alt||n.prevImage.map((function(e){return e.text===i.alt})).getOr(!1);t?""===e.value?r.setData({src:e,alt:n.prevAlt}):r.setData({src:e,alt:e.text}):r.setData({src:e})})),n.prevImage=o,zt(e,t,n,r)},jt=function(e){var t=e["margin-top"]&&e["margin-bottom"]&&e["margin-top"]===e["margin-bottom"];return t?fe(String(e["margin-top"])):""},Ht=function(e){var t=e["margin-right"]&&e["margin-left"]&&e["margin-right"]===e["margin-left"];return t?fe(String(e["margin-right"])):""},Vt=function(e){return e["border-width"]?fe(String(e["border-width"])):""},qt=function(e){return e["border-style"]?String(e["border-style"]):""},$t=function(e,t,n){return t(e(t(n)))},Gt=function(e,t,n){var r=pe(e(n.style)),i=lt({},n);return i.vspace=jt(r),i.hspace=Ht(r),i.border=Vt(r),i.borderstyle=qt(r),i.style=$t(e,t,r),i},Xt=function(e,t){var n=t.getData(),r=Gt(e.parseStyle,e.serializeStyle,n);t.setData(r)},Yt=function(e,t,n){var r=lt(Ft(t.image),n.getData()),i=Ve(e.normalizeCss,Pt(r,!1));n.setData({style:i})},Kt=function(e,t,n,r){var i=r.getData();r.block("Uploading image"),M(i.fileinput).fold((function(){r.unblock()}),(function(i){var o=URL.createObjectURL(i),a=function(){r.unblock(),URL.revokeObjectURL(o)},s=function(i){r.setData({src:{value:i,meta:{}}}),r.showTab("general"),zt(e,t,n,r)};ve(i).then((function(n){var c=e.createBlobCache(i,o,n);t.automaticUploads?e.uploadImage(c).then((function(e){s(e.url),a()})).catch((function(t){a(),e.alertErr(t)})):(e.addToBlobCache(c),s(c.blobUri()),r.unblock())}))}))},Zt=function(e,t,n){return function(r,i){"src"===i.name?zt(e,t,n,r):"images"===i.name?Wt(e,t,n,r):"alt"===i.name?n.prevAlt=r.getData().alt:"style"===i.name?Xt(e,r):"vspace"===i.name||"hspace"===i.name||"border"===i.name||"borderstyle"===i.name?Yt(e,t,r):"fileinput"===i.name?Kt(e,t,n,r):"isDecorative"===i.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},Jt=function(e){return function(){e.open=!1}},Qt=function(e){if(e.hasAdvTab||e.hasUploadUrl||e.hasUploadHandler){var t={type:"tabpanel",tabs:R([[At.makeTab(e)],e.hasAdvTab?[Ct.makeTab(e)]:[],e.hasUploadTab&&(e.hasUploadUrl||e.hasUploadHandler)?[Ut.makeTab(e)]:[]])};return t}var n={type:"panel",items:At.makeItems(e)};return n},en=function(e){return function(t){var n=Ot(t);return{title:"Insert/Edit Image",size:"normal",body:Qt(t),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Ft(t.image),onSubmit:e.onSubmit(t),onChange:Zt(e,t,n),onClose:Jt(n)}}},tn=function(e){return function(t){return function(n){var r=lt(Ft(t.image),n.getData());e.execCommand("mceUpdateImage",!1,Pt(r,t.hasAccessibilityOptions)),e.editorUpload.uploadImagesAuto(),n.close()}}},nn=function(e){return function(t){return ye(e,t)?de(e.documentBaseURI.toAbsolute(t)).then((function(e){return{width:String(e.width),height:String(e.height)}})):X.resolve({width:"",height:""})}},rn=function(e){return function(t,n,r){return e.editorUpload.blobCache.create({blob:t,blobUri:n,name:t.name?t.name.replace(/\.[^\.]+$/,""):null,filename:t.name,base64:r.split(",")[1]})}},on=function(e){return function(t){e.editorUpload.blobCache.add(t)}},an=function(e){return function(t){e.windowManager.alert(t)}},sn=function(e){return function(t){return Je(e,t)}},cn=function(e){return function(t){return e.dom.parseStyle(t)}},un=function(e){return function(t,n){return e.dom.serializeStyle(t,n)}},ln=function(e){return function(t){return ft(e).upload([t],!1).then((function(e){return 0===e.length?X.reject("Failed to upload image"):!1===e[0].status?X.reject(e[0].error.message):e[0]}))}},dn=function(e){var t={onSubmit:tn(e),imageSize:nn(e),addToBlobCache:on(e),createBlobCache:rn(e),alertErr:an(e),normalizeCss:sn(e),parseStyle:cn(e),serializeStyle:un(e),uploadImage:ln(e)},n=function(){kt(e).then(en(t)).then(e.windowManager.open)};return{open:n}},fn=function(e){e.addCommand("mceImage",dn(e).open),e.addCommand("mceUpdateImage",(function(t,n){e.undoManager.transact((function(){return st(e,n)}))}))},hn=function(e){var t=e.attr("class");return t&&/\bimage\b/.test(t)},pn=function(e){return function(t){var n=t.length,r=function(t){t.attr("contenteditable",e?"true":null)};while(n--){var i=t[n];hn(i)&&(i.attr("contenteditable",e?"false":null),ht.each(i.getAll("figcaption"),r))}}},gn=function(e){e.on("PreInit",(function(){e.parser.addNodeFilter("figure",pn(!0)),e.serializer.addNodeFilter("figure",pn(!1))}))},mn=function(e){e.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:dn(e).open,onSetup:function(t){return t.setActive(f(Qe(e))),e.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",t.setActive).unbind}}),e.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:dn(e).open}),e.ui.registry.addContextMenu("image",{update:function(e){return Le(e)||ze(e)&&!be(e)?["image"]:[]}})};function vn(){e.add("image",(function(e){gn(e),mn(e),fn(e)}))}vn()})()},cef2:function(e,t,n){"use strict";e.exports=function(e){var t=n("6df9"),r=n("0341").keys,i=t.tryCatch,o=t.errorObj;function a(n,a,s){return function(c){var u=s._boundValue();e:for(var l=0;l<n.length;++l){var d=n[l];if(d===Error||null!=d&&d.prototype instanceof Error){if(c instanceof d)return i(a).call(u,c)}else if("function"===typeof d){var f=i(d).call(u,c);if(f===o)return f;if(f)return i(a).call(u,c)}else if(t.isObject(c)){for(var h=r(d),p=0;p<h.length;++p){var g=h[p];if(d[g]!=c[g])continue e}return i(a).call(u,c)}}return e}}return a}},cf08:function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){var t=function(){return e.get()};return{isEnabled:t}},r=function(e,t){return e.fire("VisualChars",{state:t})},i=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},o=function(e){return function(t){return i(t)===e}},a=function(e){return function(t){return typeof t===e}},s=o("string"),c=a("boolean"),u=a("number"),l=function(){},d=function(e){return function(){return e}},f=function(e){return e},h=d(!1),p=d(!0),g=function(){return m},m=function(){var e=function(e){return e()},t=f,n={fold:function(e,t){return e()},isSome:h,isNone:p,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:g,each:l,bind:g,exists:h,forall:p,filter:function(){return g()},toArray:function(){return[]},toString:d("none()")};return n}(),v=function(e){var t=d(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:p,isNone:h,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return v(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:m},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},b=function(e){return null===e||void 0===e?m:v(e)},y={some:v,none:g,from:b},x=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},_=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},w=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},D=Object.keys,C=function(e,t){for(var n=D(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}};"undefined"!==typeof window?window:Function("return this;")();var k=3,T=function(e){return e.dom.nodeType},S=function(e){return e.dom.nodeValue},A=function(e){return function(t){return T(t)===e}},E=A(k),U=function(e,t,n){if(!(s(n)||c(n)||u(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},O=function(e,t,n){U(e.dom,t,n)},F=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},P=function(e,t){e.dom.removeAttribute(t)},R=function(e,t){var n=F(e,t);return void 0===n||""===n?[]:n.split(" ")},N=function(e,t,n){var r=R(e,t),i=r.concat([n]);return O(e,t,i.join(" ")),!0},M=function(e,t,n){var r=w(R(e,t),(function(e){return e!==n}));return r.length>0?O(e,t,r.join(" ")):P(e,t),!1},I=function(e){return void 0!==e.dom.classList},B=function(e){return R(e,"class")},L=function(e,t){return N(e,"class",t)},z=function(e,t){return M(e,"class",t)},W=function(e,t){I(e)?e.dom.classList.add(t):L(e,t)},j=function(e){var t=I(e)?e.dom.classList:B(e);0===t.length&&P(e,"class")},H=function(e,t){if(I(e)){var n=e.dom.classList;n.remove(t)}else z(e,t);j(e)},V=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return G(r.childNodes[0])},q=function(e,t){var n=t||document,r=n.createElement(e);return G(r)},$=function(e,t){var n=t||document,r=n.createTextNode(e);return G(r)},G=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},X=function(e,t,n){return y.from(e.dom.elementFromPoint(t,n)).map(G)},Y={fromHtml:V,fromTag:q,fromText:$,fromDom:G,fromPoint:X},K={" ":"nbsp","­":"shy"},Z=function(e,t){var n="";return C(e,(function(e,t){n+=t})),new RegExp("["+n+"]",t?"g":"")},J=function(e){var t="";return C(e,(function(e){t&&(t+=","),t+="span.mce-"+e})),t},Q=Z(K),ee=Z(K,!0),te=J(K),ne="mce-nbsp",re=function(e){return'<span data-mce-bogus="1" class="mce-'+K[e]+'">'+e+"</span>"},ie=function(e){var t=S(e);return E(e)&&void 0!==t&&Q.test(t)},oe=function(e,t){var n=[],r=e.dom,i=x(r.childNodes,Y.fromDom);return _(i,(function(e){t(e)&&(n=n.concat([e])),n=n.concat(oe(e,t))})),n},ae=function(e,t){while(e.parentNode){if(e.parentNode===t)return e;e=e.parentNode}},se=function(e){return e.replace(ee,re)},ce=function(e){return"span"===e.nodeName.toLowerCase()&&e.classList.contains("mce-nbsp-wrap")},ue=function(e,t){var n=oe(Y.fromDom(t),ie);_(n,(function(t){var n=t.dom.parentNode;if(ce(n))W(Y.fromDom(n),ne);else{var r=se(e.dom.encode(S(t))),i=e.dom.create("div",null,r),o=void 0;while(o=i.lastChild)e.dom.insertAfter(o,t.dom);e.dom.remove(t.dom)}}))},le=function(e,t){var n=e.dom.select(te,t);_(n,(function(t){ce(t)?H(Y.fromDom(t),ne):e.dom.remove(t,!0)}))},de=function(e){var t=e.getBody(),n=e.selection.getBookmark(),r=ae(e.selection.getNode(),t);r=void 0!==r?r:t,le(e,r),ue(e,r),e.selection.moveToBookmark(n)},fe=function(e,t){r(e,t.get());var n=e.getBody();!0===t.get()?ue(e,n):le(e,n)},he=function(e,t){t.set(!t.get());var n=e.selection.getBookmark();fe(e,t),e.selection.moveToBookmark(n)},pe=function(e,t){e.addCommand("mceVisualChars",(function(){he(e,t)}))},ge=function(e){return e.getParam("visualchars_default_state",!1)},me=function(e){return!1!==e.getParam("forced_root_block")},ve=function(e,t){e.on("init",(function(){fe(e,t)}))},be=tinymce.util.Tools.resolve("tinymce.util.Delay"),ye=function(e,t){var n=be.debounce((function(){de(e)}),300);me(e)&&e.on("keydown",(function(r){!0===t.get()&&(13===r.keyCode?de(e):n())})),e.on("remove",n.stop)},xe=function(e,t){return function(n){n.setActive(t.get());var r=function(e){return n.setActive(e.state)};return e.on("VisualChars",r),function(){return e.off("VisualChars",r)}}},_e=function(e,t){var n=function(){return e.execCommand("mceVisualChars")};e.ui.registry.addToggleButton("visualchars",{tooltip:"Show invisible characters",icon:"visualchars",onAction:n,onSetup:xe(e,t)}),e.ui.registry.addToggleMenuItem("visualchars",{text:"Show invisible characters",icon:"visualchars",onAction:n,onSetup:xe(e,t)})};function we(){t.add("visualchars",(function(t){var r=e(ge(t));return pe(t,r),_e(t,r),ye(t,r),ve(t,r),n(r)}))}we()})()},cf43:function(e,t,n){var r=n("c46f"),i=n("ebf8"),o=n("a80f");t.writeStyleMap=u,t.readStyleMap=h;var a="http://schemas.zwobble.org/mammoth/style-map",s="mammoth/style-map",c="/"+s;function u(e,t){return e.write(s,t),l(e).then((function(){return d(e)}))}function l(e){var t="word/_rels/document.xml.rels",n="http://schemas.openxmlformats.org/package/2006/relationships",r="{"+n+"}Relationship";return e.read(t,"utf8").then(o.readString).then((function(i){var s=i.children;f(s,r,"Id",{Id:"rMammothStyleMap",Type:a,Target:c});var u={"":n};return e.write(t,o.writeString(i,u))}))}function d(e){var t="[Content_Types].xml",n="http://schemas.openxmlformats.org/package/2006/content-types",r="{"+n+"}Override";return e.read(t,"utf8").then(o.readString).then((function(i){var a=i.children;f(a,r,"PartName",{PartName:c,ContentType:"text/prs.mammoth.style-map"});var s={"":n};return e.write(t,o.writeString(i,s))}))}function f(e,t,n,i){var a=r.find(e,(function(e){return e.name===t&&e.attributes[n]===i[n]}));a?a.attributes=i:e.push(o.element(t,i))}function h(e){return e.exists(s)?e.read(s,"utf8"):i.resolve(null)}},d270:function(e,t,n){"use strict";e.exports=function(e,t,r){var i=n("6df9"),o=n("8d16").RangeError,a=n("8d16").AggregateError,s=i.isArray,c={};function u(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function l(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n    See http://goo.gl/MqrFmX\n");var n=new u(e),i=n.promise();return n.setHowMany(t),n.init(),i}i.inherits(u,t),u.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=s(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(e){this._howMany=e},u.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},u.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new a,t=this.length();t<this._values.length;++t)this._values[t]!==c&&e.push(this._values[t]);return e.length>0?this._reject(e):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(e){this._values.push(e)},u.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new o(t)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(e,t){return l(e,t)},e.prototype.some=function(e){return l(this,e)},e._SomePromiseArray=u}},d3e3:function(e,t,n){"use strict";e.exports=function(e,t,r,i,o,a){var s,c=n("6df9"),u=c.canEvaluate,l=c.tryCatch,d=c.errorObj;if(u){for(var f=function(e){return new Function("value","holder","                             \n            'use strict';                                                    \n            holder.pIndex = value;                                           \n            holder.checkFulfillment(this);                                   \n            ".replace(/Index/g,e))},h=function(e){return new Function("promise","holder","                           \n            'use strict';                                                    \n            holder.pIndex = promise;                                         \n            ".replace(/Index/g,e))},p=function(t){for(var n=new Array(t),r=0;r<n.length;++r)n[r]="this.p"+(r+1);var i=n.join(" = ")+" = null;",a="var promise;\n"+n.map((function(e){return"                                                         \n                promise = "+e+";                                      \n                if (promise instanceof Promise) {                            \n                    promise.cancel();                                        \n                }                                                            \n            "})).join("\n"),s=n.join(", "),c="Holder$"+t,u="return function(tryCatch, errorObj, Promise, async) {    \n            'use strict';                                                    \n            function [TheName](fn) {                                         \n                [TheProperties]                                              \n                this.fn = fn;                                                \n                this.asyncNeeded = true;                                     \n                this.now = 0;                                                \n            }                                                                \n                                                                             \n            [TheName].prototype._callFunction = function(promise) {          \n                promise._pushContext();                                      \n                var ret = tryCatch(this.fn)([ThePassedArguments]);           \n                promise._popContext();                                       \n                if (ret === errorObj) {                                      \n                    promise._rejectCallback(ret.e, false);                   \n                } else {                                                     \n                    promise._resolveCallback(ret);                           \n                }                                                            \n            };                                                               \n                                                                             \n            [TheName].prototype.checkFulfillment = function(promise) {       \n                var now = ++this.now;                                        \n                if (now === [TheTotal]) {                                    \n                    if (this.asyncNeeded) {                                  \n                        async.invoke(this._callFunction, this, promise);     \n                    } else {                                                 \n                        this._callFunction(promise);                         \n                    }                                                        \n                                                                             \n                }                                                            \n            };                                                               \n                                                                             \n            [TheName].prototype._resultCancelled = function() {              \n                [CancellationCode]                                           \n            };                                                               \n                                                                             \n            return [TheName];                                                \n        }(tryCatch, errorObj, Promise, async);                               \n        ";return u=u.replace(/\[TheName\]/g,c).replace(/\[TheTotal\]/g,t).replace(/\[ThePassedArguments\]/g,s).replace(/\[TheProperties\]/g,i).replace(/\[CancellationCode\]/g,a),new Function("tryCatch","errorObj","Promise","async",u)(l,d,e,o)},g=[],m=[],v=[],b=0;b<8;++b)g.push(p(b+1)),m.push(f(b+1)),v.push(h(b+1));s=function(e){this._reject(e)}}e.join=function(){var n,o=arguments.length-1;if(o>0&&"function"===typeof arguments[o]&&(n=arguments[o],o<=8&&u)){var l=new e(i);l._captureStackTrace();for(var d=g[o-1],f=new d(n),h=m,p=0;p<o;++p){var b=r(arguments[p],l);if(b instanceof e){b=b._target();var y=b._bitField;0===(50397184&y)?(b._then(h[p],s,void 0,l,f),v[p](b,f),f.asyncNeeded=!1):0!==(33554432&y)?h[p].call(l,b._value(),f):0!==(16777216&y)?l._reject(b._reason()):l._cancel()}else h[p].call(l,b,f)}if(!l._isFateSealed()){if(f.asyncNeeded){var x=a();null!==x&&(f.fn=c.domainBind(x,f.fn))}l._setAsyncGuaranteed(),l._setOnCancel(f)}return l}for(var _=arguments.length,w=new Array(_),D=0;D<_;++D)w[D]=arguments[D];n&&w.pop();l=new t(w).promise();return void 0!==n?l.spread(n):l}}},d4d8:function(e,t,n){(function(t,n,r){var i;!function(t){e.exports=t()}((function(){return function e(t,n,r){function o(s,c){if(!n[s]){if(!t[s]){var u="function"==typeof i&&i;if(!c&&u)return i(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var d=n[s]={exports:{}};t[s][0].call(d.exports,(function(e){var n=t[s][1][e];return o(n||e)}),d,d.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,a,s,c,u,l=[],d=0,f=e.length,h=f,p="string"!==r.getTypeOf(e);d<e.length;)h=f-d,i=p?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,c=1<h?(15&n)<<2|i>>6:64,u=2<h?63&i:64,l.push(o.charAt(a)+o.charAt(s)+o.charAt(c)+o.charAt(u));return l.join("")},n.decode=function(e){var t,n,r,a,s,c,u=0,l=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&h--,e.charAt(e.length-2)===o.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|h):new Array(0|h);u<e.length;)t=o.indexOf(e.charAt(u++))<<2|(a=o.indexOf(e.charAt(u++)))>>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(u++)))>>2,r=(3&s)<<6|(c=o.indexOf(e.charAt(u++))),f[l++]=t,64!==s&&(f[l++]=n),64!==c&&(f[l++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function c(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(c,a),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},c.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c("Deflate",e)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,a,l){var d,f,h=e.file,p=e.compression,g=l!==s.utf8encode,m=o.transformTo("string",l(h.name)),v=o.transformTo("string",s.utf8encode(h.name)),b=h.comment,y=o.transformTo("string",l(b)),x=o.transformTo("string",s.utf8encode(b)),_=v.length!==h.name.length,w=x.length!==b.length,D="",C="",k="",T=h.dir,S=h.date,A={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(A.crc32=e.crc32,A.compressedSize=e.compressedSize,A.uncompressedSize=e.uncompressedSize);var E=0;t&&(E|=8),g||!_&&!w||(E|=2048);var U=0,O=0;T&&(U|=16),"UNIX"===a?(O=798,U|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(h.unixPermissions,T)):(O=20,U|=function(e){return 63&(e||0)}(h.dosPermissions)),d=S.getUTCHours(),d<<=6,d|=S.getUTCMinutes(),d<<=5,d|=S.getUTCSeconds()/2,f=S.getUTCFullYear()-1980,f<<=4,f|=S.getUTCMonth()+1,f<<=5,f|=S.getUTCDate(),_&&(C=r(1,1)+r(c(m),4)+v,D+="up"+r(C.length,2)+C),w&&(k=r(1,1)+r(c(y),4)+x,D+="uc"+r(k.length,2)+k);var F="";return F+="\n\0",F+=r(E,2),F+=p.magic,F+=r(d,2),F+=r(f,2),F+=r(A.crc32,4),F+=r(A.compressedSize,4),F+=r(A.uncompressedSize,4),F+=r(m.length,2),F+=r(D.length,2),{fileRecord:u.LOCAL_FILE_HEADER+F+m+D,dirRecord:u.CENTRAL_FILE_HEADER+r(O,2)+F+r(y.length,2)+"\0\0\0\0"+r(U,4)+r(i,4)+m+D+y}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),c=e("../crc32"),u=e("../signature");function l(e,t,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(l,a),l.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},l.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return u.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,a){var s=o.transformTo("string",a(i));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},l.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},l.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=l},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new i(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:c,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function u(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new a(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var o=0;o<r.length;o++)n.push(u(r[o]));return i.Promise.all(n)})).then((function(e){for(var i=e.shift(),o=i.files,a=0;a<o.length;a++){var s=o[a],c=s.fileNameStr,u=r.resolve(s.fileNameStr);n.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(u).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,n,r){"use strict";n.exports={isNode:"undefined"!=typeof t,newBufferFrom:function(e,n){if(t.from&&t.from!==Uint8Array.from)return t.from(e,n);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new t(e,n)},allocBuffer:function(e){if(t.alloc)return t.alloc(e);var n=new t(e);return n.fill(0),n},isBuffer:function(e){return t.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,i=o.getTypeOf(t),s=o.extend(n||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=g(e)),s.createFolders&&(r=p(e))&&m.call(this,r,!0);var d="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var v=null;v=t instanceof u||t instanceof a?t:f.isNode&&f.isStream(t)?new h(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var b=new l(e,v,s);this.files[e]=b}var i=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),c=e("./defaults"),u=e("./compressedObject"),l=e("./zipObject"),d=e("./generate"),f=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:c.createFolders,e=g(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(v(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=m.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=d.generateWorker(this,n,r)}catch(e){(t=new a("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new c(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function o(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,r),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,n,r){"use strict";var i=e("../utils"),o=e("./ConvertWorker"),a=e("./GenericWorker"),s=e("../base64"),c=e("../support"),u=e("../external"),l=null;if(c.nodestream)try{l=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,n){return new u.Promise((function(r,o){var a=[],c=e._internalType,u=e._outputType,l=e._mimeType;e.on("data",(function(e,t){a.push(e),n&&n(t)})).on("error",(function(e){a=[],o(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return s.encode(t);default:return i.transformTo(e,t)}}(u,function(e,n){var r,i=0,o=null,a=0;for(r=0;r<n.length;r++)a+=n[r].length;switch(e){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(o=new Uint8Array(a),r=0;r<n.length;r++)o.set(n[r],i),i+=n[r].length;return o;case"nodebuffer":return t.concat(n);default:throw new Error("concat : unsupported type '"+e+"'")}}(c,a),l);r(e)}catch(e){o(e)}a=[]})).resume()}))}function f(e,t,n){var r=t;switch(t){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=t,this._mimeType=n,i.checkSupport(r),this._worker=e.pipe(new o(r)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}f.prototype={accumulate:function(e){return d(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:"nodebuffer"!==this._outputType},e)}},n.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,n,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof t,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(i),r.blob=0===o.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function l(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,r,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),o=a=0;a<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,o,a=e.length,c=new Array(2*a);for(t=n=0;t<a;)if((i=e[t++])<128)c[n++]=i;else if(4<(o=s[i]))c[n++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<a;)i=i<<6|63&e[t++],o--;1<o?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(u,a),u.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),c=t;a!==t.length&&(i.uint8array?(c=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(c=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(l,a),l.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),a=e("./external");function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(t,r){n.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,n){var r=[],i=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,o)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function l(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return u.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=l;var f={};f.string={string:s,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,o.allocBuffer(e.length))}},f.array={string:l,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},f.arraybuffer={string:function(e){return l(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:l,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return o.newBufferFrom(e)}},f.nodebuffer={string:l,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return f[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var i=t[r];"."===i||""===i&&0!==r&&r!==t.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&o.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,s,u){return a.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var l=n.getTypeOf(t);return l?("arraybuffer"===l?t=n.transformTo("uint8array",t):"string"===l&&(u?t=i.decode(t):o&&!0!==s&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),c=e("./compressions"),u=e("./support");function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=l},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),c=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&r&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new c("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)r.prototype[u[d]]=l;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(l),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var c=new e.MessageChannel;c.port1.onmessage=l,n=function(){c.port2.postMessage(0)}}var u=[];function l(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var r=e("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function l(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(r){return o.reject(e,r)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=p((function(){t(i,r)}));"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==c?d(n,this.state===s?e:t,this.outcome):this.queue.push(new l(n,e,t)),n},l.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){o.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(f,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,c=-1,u=new this(i);++c<n;)l(e[c],c);return u;function l(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(u,a))}),(function(e){r||(r=!0,o.reject(u,e))}))}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a,s=-1,c=new this(i);++s<n;)a=e[s],t.resolve(a).then((function(e){r||(r=!0,o.resolve(c,e))}),(function(e){r||(r=!0,o.reject(c,e))}));return c}},{immediate:36}],38:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString,u=0,l=-1,d=0,f=8;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({level:l,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==u)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==u)throw new Error(a[n]);this._dict_set=!0}}function p(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(e,t){var n,a,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=r.deflate(s,a))&&n!==u)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==a||(this.onEnd(u),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=h,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),l=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,c,u,d,f,h=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=o.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(f="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===l.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,f)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(h.output,h.next_out),u=h.next_out-c,d=o.buf2string(h.output,c),h.next_out=u,h.avail_out=p-u,u&&i.arraySet(h.output,h.output,c,u,0),this.onData(d)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((0<h.avail_in||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,i,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),o=a=0;a<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,o,s=t||e.length,u=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)u[r++]=i;else if(4<(o=a[i]))u[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<s;)i=i<<6|63&e[n++],o--;1<o?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return c(u,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],44:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),c=e("./messages"),u=0,l=4,d=0,f=-2,h=-1,p=4,g=2,m=8,v=9,b=286,y=30,x=19,_=2*b+1,w=15,D=3,C=258,k=C+D+1,T=42,S=113,A=1,E=2,U=3,O=4;function F(e,t){return e.msg=c[t],t}function P(e){return(e<<1)-(4<e?9:0)}function R(e){for(var t=e.length;0<=--t;)e[t]=0}function N(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function M(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,N(e.strm)}function I(e,t){e.pending_buf[e.pending++]=t}function B(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function L(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-k?e.strstart-(e.w_size-k):0,u=e.window,l=e.w_mask,d=e.prev,f=e.strstart+C,h=u[o+a-1],p=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===p&&u[n+a-1]===h&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<f);if(r=C-(f-o),o=f-C,a<r){if(e.match_start=t,s<=(a=r))break;h=u[o+a-1],p=u[o+a]}}}while((t=d[t&l])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function z(e){var t,n,r,o,c,u,l,d,f,h,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-k)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);o+=p}if(0===e.strm.avail_in)break;if(u=e.strm,l=e.window,d=e.strstart+e.lookahead,f=o,h=void 0,h=u.avail_in,f<h&&(h=f),n=0===h?0:(u.avail_in-=h,i.arraySet(l,u.input,u.next_in,h,d),1===u.state.wrap?u.adler=a(u.adler,l,h,d):2===u.state.wrap&&(u.adler=s(u.adler,l,h,d)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=D)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+D-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<D)););}while(e.lookahead<k&&0!==e.strm.avail_in)}function W(e,t){for(var n,r;;){if(e.lookahead<k){if(z(e),e.lookahead<k&&t===u)return A;if(0===e.lookahead)break}if(n=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-k&&(e.match_length=L(e,n)),e.match_length>=D)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-D),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=D){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(M(e,!1),0===e.strm.avail_out))return A}return e.insert=e.strstart<D-1?e.strstart:D-1,t===l?(M(e,!0),0===e.strm.avail_out?U:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?A:E}function j(e,t){for(var n,r,i;;){if(e.lookahead<k){if(z(e),e.lookahead<k&&t===u)return A;if(0===e.lookahead)break}if(n=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=D-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-k&&(e.match_length=L(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===D&&4096<e.strstart-e.match_start)&&(e.match_length=D-1)),e.prev_length>=D&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-D,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-D),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=D-1,e.strstart++,r&&(M(e,!1),0===e.strm.avail_out))return A}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&M(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return A}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<D-1?e.strstart:D-1,t===l?(M(e,!0),0===e.strm.avail_out?U:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?A:E}function H(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function V(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*y+1)),this.bl_tree=new i.Buf16(2*(2*x+1)),R(this.dyn_ltree),R(this.dyn_dtree),R(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(w+1),this.heap=new i.Buf16(2*b+1),R(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*b+1),R(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function q(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=g,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?T:S,e.adler=2===t.wrap?0:1,t.last_flush=u,o._tr_init(t),d):F(e,f)}function $(e){var t=q(e);return t===d&&function(e){e.window_size=2*e.w_size,R(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=D-1,e.match_available=0,e.ins_h=0}(e.state),t}function G(e,t,n,r,o,a){if(!e)return f;var s=1;if(t===h&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),o<1||v<o||n!==m||r<8||15<r||t<0||9<t||a<0||p<a)return F(e,f);8===r&&(r=9);var c=new V;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+D-1)/D),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=n,$(e)}r=[new H(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),0===e.lookahead&&t===u)return A;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,M(e,!1),0===e.strm.avail_out))return A;if(e.strstart-e.block_start>=e.w_size-k&&(M(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===l?(M(e,!0),0===e.strm.avail_out?U:O):(e.strstart>e.block_start&&(M(e,!1),e.strm.avail_out),A)})),new H(4,4,8,4,W),new H(4,5,16,8,W),new H(4,6,32,32,W),new H(4,4,16,16,j),new H(8,16,32,32,j),new H(8,16,128,128,j),new H(8,32,128,256,j),new H(32,128,258,1024,j),new H(32,258,258,4096,j)],n.deflateInit=function(e,t){return G(e,t,m,15,8,0)},n.deflateInit2=G,n.deflateReset=$,n.deflateResetKeep=q,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,i,a,c;if(!e||!e.state||5<t||t<0)return e?F(e,f):f;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==l)return F(e,0===e.avail_out?-5:f);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===T)if(2===i.wrap)e.adler=0,I(i,31),I(i,139),I(i,8),i.gzhead?(I(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),I(i,255&i.gzhead.time),I(i,i.gzhead.time>>8&255),I(i,i.gzhead.time>>16&255),I(i,i.gzhead.time>>24&255),I(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),I(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(I(i,255&i.gzhead.extra.length),I(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(I(i,0),I(i,0),I(i,0),I(i,0),I(i,0),I(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),I(i,3),i.status=S);else{var h=m+(i.w_bits-8<<4)<<8;h|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=S,B(i,h),0!==i.strstart&&(B(i,e.adler>>>16),B(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),N(e),a=i.pending,i.pending!==i.pending_buf_size));)I(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),N(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,I(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),N(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,I(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&N(e),i.pending+2<=i.pending_buf_size&&(I(i,255&e.adler),I(i,e.adler>>8&255),e.adler=0,i.status=S)):i.status=S),0!==i.pending){if(N(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&P(t)<=P(n)&&t!==l)return F(e,-5);if(666===i.status&&0!==e.avail_in)return F(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==u&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(z(e),0===e.lookahead)){if(t===u)return A;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(M(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===l?(M(e,!0),0===e.strm.avail_out?U:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?A:E}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=C){if(z(e),e.lookahead<=C&&t===u)return A;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=D&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+C;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=C-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=D?(n=o._tr_tally(e,1,e.match_length-D),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(M(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===l?(M(e,!0),0===e.strm.avail_out?U:O):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?A:E}(i,t):r[i.level].func(i,t);if(p!==U&&p!==O||(i.status=666),p===A||p===U)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===E&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(R(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),N(e),0===e.avail_out))return i.last_flush=-1,d}return t!==l?d:i.wrap<=0?1:(2===i.wrap?(I(i,255&e.adler),I(i,e.adler>>8&255),I(i,e.adler>>16&255),I(i,e.adler>>24&255),I(i,255&e.total_in),I(i,e.total_in>>8&255),I(i,e.total_in>>16&255),I(i,e.total_in>>24&255)):(B(i,e.adler>>>16),B(i,65535&e.adler)),N(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==T&&69!==t&&73!==t&&91!==t&&103!==t&&t!==S&&666!==t?F(e,f):(e.state=null,t===S?F(e,-3):d):f},n.deflateSetDictionary=function(e,t){var n,r,o,s,c,u,l,h,p=t.length;if(!e||!e.state)return f;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==T||n.lookahead)return f;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(R(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,t,p-n.w_size,n.w_size,0),t=h,p=n.w_size),c=e.avail_in,u=e.next_in,l=e.input,e.avail_in=p,e.next_in=0,e.input=t,z(n);n.lookahead>=D;){for(r=n.strstart,o=n.lookahead-(D-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+D-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=D-1,z(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=D-1,n.match_available=0,e.next_in=u,e.input=l,e.avail_in=c,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,o,a,s,c,u,l,d,f,h,p,g,m,v,b,y,x,_,w,D,C,k,T;n=e.state,r=e.next_in,k=e.input,i=r+(e.avail_in-5),o=e.next_out,T=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=n.dmax,u=n.wsize,l=n.whave,d=n.wnext,f=n.window,h=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{p<15&&(h+=k[r++]<<p,p+=8,h+=k[r++]<<p,p+=8),y=g[h&v];t:for(;;){if(h>>>=x=y>>>24,p-=x,0===(x=y>>>16&255))T[o++]=65535&y;else{if(!(16&x)){if(0==(64&x)){y=g[(65535&y)+(h&(1<<x)-1)];continue t}if(32&x){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}_=65535&y,(x&=15)&&(p<x&&(h+=k[r++]<<p,p+=8),_+=h&(1<<x)-1,h>>>=x,p-=x),p<15&&(h+=k[r++]<<p,p+=8,h+=k[r++]<<p,p+=8),y=m[h&b];n:for(;;){if(h>>>=x=y>>>24,p-=x,!(16&(x=y>>>16&255))){if(0==(64&x)){y=m[(65535&y)+(h&(1<<x)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(w=65535&y,p<(x&=15)&&(h+=k[r++]<<p,(p+=8)<x&&(h+=k[r++]<<p,p+=8)),c<(w+=h&(1<<x)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=x,p-=x,(x=o-a)<w){if(l<(x=w-x)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(C=f,(D=0)===d){if(D+=u-x,x<_){for(_-=x;T[o++]=f[D++],--x;);D=o-w,C=T}}else if(d<x){if(D+=u+d-x,(x-=d)<_){for(_-=x;T[o++]=f[D++],--x;);if(D=0,d<_){for(_-=x=d;T[o++]=f[D++],--x;);D=o-w,C=T}}}else if(D+=d-x,x<_){for(_-=x;T[o++]=f[D++],--x;);D=o-w,C=T}for(;2<_;)T[o++]=C[D++],T[o++]=C[D++],T[o++]=C[D++],_-=3;_&&(T[o++]=C[D++],1<_&&(T[o++]=C[D++]))}else{for(D=o-w;T[o++]=T[D++],T[o++]=T[D++],T[o++]=T[D++],2<(_-=3););_&&(T[o++]=T[D++],1<_&&(T[o++]=T[D++]))}break}}break}}while(r<i&&o<s);r-=_=p>>3,h&=(1<<(p-=_<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=h,n.bits=p}},{}],49:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),c=1,u=2,l=0,d=-2,f=1,h=852,p=592;function g(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(h),t.distcode=t.distdyn=new r.Buf32(p),t.sane=1,t.back=-1,l):d}function b(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function y(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,b(e))):d}function x(e,t){var n,r;return e?(r=new m,(e.state=r).window=null,(n=y(e,t))!==l&&(e.state=null),n):d}var _,w,D=!0;function C(e){if(D){var t;for(_=new r.Buf32(512),w=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,w,0,e.work,{bits:5}),D=!1}e.lencode=_,e.lenbits=9,e.distcode=w,e.distbits=5}function k(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=b,n.inflateReset2=y,n.inflateResetKeep=v,n.inflateInit=function(e){return x(e,15)},n.inflateInit2=x,n.inflate=function(e,t){var n,h,p,m,v,b,y,x,_,w,D,T,S,A,E,U,O,F,P,R,N,M,I,B,L=0,z=new r.Buf8(4),W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(n=e.state).mode&&(n.mode=13),v=e.next_out,p=e.output,y=e.avail_out,m=e.next_in,h=e.input,b=e.avail_in,x=n.hold,_=n.bits,w=b,D=y,M=l;e:for(;;)switch(n.mode){case f:if(0===n.wrap){n.mode=13;break}for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(2&n.wrap&&35615===x){z[n.check=0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0),_=x=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&x)<<8)+(x>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&x)){e.msg="unknown compression method",n.mode=30;break}if(_-=4,N=8+(15&(x>>>=4)),0===n.wbits)n.wbits=N;else if(N>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<N,e.adler=n.check=1,n.mode=512&x?10:12,_=x=0;break;case 2:for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(n.flags=x,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=x>>8&1),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),_=x=0,n.mode=3;case 3:for(;_<32;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.head&&(n.head.time=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,z[2]=x>>>16&255,z[3]=x>>>24&255,n.check=o(n.check,z,4,0)),_=x=0,n.mode=4;case 4:for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.head&&(n.head.xflags=255&x,n.head.os=x>>8),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),_=x=0,n.mode=5;case 5:if(1024&n.flags){for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.length=x,n.head&&(n.head.extra_len=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),_=x=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(b<(T=n.length)&&(T=b),T&&(n.head&&(N=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,h,m,T,N)),512&n.flags&&(n.check=o(n.check,h,T,m)),b-=T,m+=T,n.length-=T),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===b)break e;for(T=0;N=h[m+T++],n.head&&N&&n.length<65536&&(n.head.name+=String.fromCharCode(N)),N&&T<b;);if(512&n.flags&&(n.check=o(n.check,h,T,m)),b-=T,m+=T,N)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===b)break e;for(T=0;N=h[m+T++],n.head&&N&&n.length<65536&&(n.head.comment+=String.fromCharCode(N)),N&&T<b;);if(512&n.flags&&(n.check=o(n.check,h,T,m)),b-=T,m+=T,N)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;_<16;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(x!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}_=x=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;_<32;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}e.adler=n.check=g(x),_=x=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=v,e.avail_out=y,e.next_in=m,e.avail_in=b,n.hold=x,n.bits=_,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){x>>>=7&_,_-=7&_,n.mode=27;break}for(;_<3;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}switch(n.last=1&x,_-=1,3&(x>>>=1)){case 0:n.mode=14;break;case 1:if(C(n),n.mode=20,6!==t)break;x>>>=2,_-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}x>>>=2,_-=2;break;case 14:for(x>>>=7&_,_-=7&_;_<32;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if((65535&x)!=(x>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&x,_=x=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(T=n.length){if(b<T&&(T=b),y<T&&(T=y),0===T)break e;r.arraySet(p,h,m,T,v),b-=T,m+=T,y-=T,v+=T,n.length-=T;break}n.mode=12;break;case 17:for(;_<14;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(n.nlen=257+(31&x),x>>>=5,_-=5,n.ndist=1+(31&x),x>>>=5,_-=5,n.ncode=4+(15&x),x>>>=4,_-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;_<3;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.lens[W[n.have++]]=7&x,x>>>=3,_-=3}for(;n.have<19;)n.lens[W[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},M=s(0,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,M){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;U=(L=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,O=65535&L,!((E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(O<16)x>>>=E,_-=E,n.lens[n.have++]=O;else{if(16===O){for(B=E+2;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(x>>>=E,_-=E,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}N=n.lens[n.have-1],T=3+(3&x),x>>>=2,_-=2}else if(17===O){for(B=E+3;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}_-=E,N=0,T=3+(7&(x>>>=E)),x>>>=3,_-=3}else{for(B=E+7;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}_-=E,N=0,T=11+(127&(x>>>=E)),x>>>=7,_-=7}if(n.have+T>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;T--;)n.lens[n.have++]=N}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,I={bits:n.lenbits},M=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,M){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},M=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,M){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=b&&258<=y){e.next_out=v,e.avail_out=y,e.next_in=m,e.avail_in=b,n.hold=x,n.bits=_,a(e,D),v=e.next_out,p=e.output,y=e.avail_out,m=e.next_in,h=e.input,b=e.avail_in,x=n.hold,_=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;U=(L=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,O=65535&L,!((E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(U&&0==(240&U)){for(F=E,P=U,R=O;U=(L=n.lencode[R+((x&(1<<F+P)-1)>>F)])>>>16&255,O=65535&L,!(F+(E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}x>>>=F,_-=F,n.back+=F}if(x>>>=E,_-=E,n.back+=E,n.length=O,0===U){n.mode=26;break}if(32&U){n.back=-1,n.mode=12;break}if(64&U){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&U,n.mode=22;case 22:if(n.extra){for(B=n.extra;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.length+=x&(1<<n.extra)-1,x>>>=n.extra,_-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;U=(L=n.distcode[x&(1<<n.distbits)-1])>>>16&255,O=65535&L,!((E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(0==(240&U)){for(F=E,P=U,R=O;U=(L=n.distcode[R+((x&(1<<F+P)-1)>>F)])>>>16&255,O=65535&L,!(F+(E=L>>>24)<=_);){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}x>>>=F,_-=F,n.back+=F}if(x>>>=E,_-=E,n.back+=E,64&U){e.msg="invalid distance code",n.mode=30;break}n.offset=O,n.extra=15&U,n.mode=24;case 24:if(n.extra){for(B=n.extra;_<B;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}n.offset+=x&(1<<n.extra)-1,x>>>=n.extra,_-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===y)break e;if(T=D-y,n.offset>T){if((T=n.offset-T)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}S=T>n.wnext?(T-=n.wnext,n.wsize-T):n.wnext-T,T>n.length&&(T=n.length),A=n.window}else A=p,S=v-n.offset,T=n.length;for(y<T&&(T=y),y-=T,n.length-=T;p[v++]=A[S++],--T;);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[v++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;_<32;){if(0===b)break e;b--,x|=h[m++]<<_,_+=8}if(D-=y,e.total_out+=D,n.total+=D,D&&(e.adler=n.check=n.flags?o(n.check,p,D,v-D):i(n.check,p,D,v-D)),D=y,(n.flags?x:g(x))!==n.check){e.msg="incorrect data check",n.mode=30;break}_=x=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;_<32;){if(0===b)break e;b--,x+=h[m++]<<_,_+=8}if(x!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}_=x=0}n.mode=29;case 29:M=1;break e;case 30:M=-3;break e;case 31:return-4;case 32:default:return d}return e.next_out=v,e.avail_out=y,e.next_in=m,e.avail_in=b,n.hold=x,n.bits=_,(n.wsize||D!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&k(e,e.output,e.next_out,D-e.avail_out)?(n.mode=31,-4):(w-=e.avail_in,D-=e.avail_out,e.total_in+=w,e.total_out+=D,n.total+=D,n.wrap&&D&&(e.adler=n.check=n.flags?o(n.check,p,D,e.next_out-D):i(n.check,p,D,e.next_out-D)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===D||4===t)&&M===l&&(M=-5),M)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,l},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?d:((n.head=t).done=!1,l):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?d:11===n.mode&&i(1,t,r,0)!==n.check?-3:k(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,l):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,u,l,d,f){var h,p,g,m,v,b,y,x,_,w=f.bits,D=0,C=0,k=0,T=0,S=0,A=0,E=0,U=0,O=0,F=0,P=null,R=0,N=new r.Buf16(16),M=new r.Buf16(16),I=null,B=0;for(D=0;D<=15;D++)N[D]=0;for(C=0;C<c;C++)N[t[n+C]]++;for(S=w,T=15;1<=T&&0===N[T];T--);if(T<S&&(S=T),0===T)return u[l++]=20971520,u[l++]=20971520,f.bits=1,0;for(k=1;k<T&&0===N[k];k++);for(S<k&&(S=k),D=U=1;D<=15;D++)if(U<<=1,(U-=N[D])<0)return-1;if(0<U&&(0===e||1!==T))return-1;for(M[1]=0,D=1;D<15;D++)M[D+1]=M[D]+N[D];for(C=0;C<c;C++)0!==t[n+C]&&(d[M[t[n+C]]++]=C);if(b=0===e?(P=I=d,19):1===e?(P=i,R-=257,I=o,B-=257,256):(P=a,I=s,-1),D=k,v=l,E=C=F=0,g=-1,m=(O=1<<(A=S))-1,1===e&&852<O||2===e&&592<O)return 1;for(;;){for(y=D-E,_=d[C]<b?(x=0,d[C]):d[C]>b?(x=I[B+d[C]],P[R+d[C]]):(x=96,0),h=1<<D-E,k=p=1<<A;u[v+(F>>E)+(p-=h)]=y<<24|x<<16|_|0,0!==p;);for(h=1<<D-1;F&h;)h>>=1;if(0!==h?(F&=h-1,F+=h):F=0,C++,0==--N[D]){if(D===T)break;D=t[n+d[C]]}if(S<D&&(F&m)!==g){for(0===E&&(E=S),v+=k,U=1<<(A=D-E);A+E<T&&!((U-=N[A+E])<=0);)A++,U<<=1;if(O+=1<<A,1===e&&852<O||2===e&&592<O)return 1;u[g=F&m]=S<<24|A<<16|v-l|0}}return 0!==F&&(u[v+F]=D-E<<24|64<<16|0),f.bits=S,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){"use strict";var r=e("../utils/common"),i=0,o=1;function a(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,u=256,l=u+1+c,d=30,f=19,h=2*l+1,p=15,g=16,m=7,v=256,b=16,y=17,x=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(l+2));a(k);var T=new Array(2*d);a(T);var S=new Array(512);a(S);var A=new Array(256);a(A);var E=new Array(c);a(E);var U,O,F,P=new Array(d);function R(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function N(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function M(e){return e<256?S[e]:S[256+(e>>>7)]}function I(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function B(e,t,n){e.bi_valid>g-n?(e.bi_buf|=t<<e.bi_valid&65535,I(e,e.bi_buf),e.bi_buf=t>>g-e.bi_valid,e.bi_valid+=n-g):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function L(e,t,n){B(e,n[2*t],n[2*t+1])}function z(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function W(e,t,n){var r,i,o=new Array(p+1),a=0;for(r=1;r<=p;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=z(o[s]++,s))}}function j(e){var t;for(t=0;t<l;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function H(e){8<e.bi_valid?I(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function V(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function q(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&V(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!V(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function $(e,t,n){var r,i,o,a,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?L(e,i,t):(L(e,(o=A[i])+u+1,t),0!==(a=_[o])&&B(e,i-=E[o],a),L(e,o=M(--r),n),0!==(a=w[o])&&B(e,r-=P[o],a)),s<e.last_lit;);L(e,v,t)}function G(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=h,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)q(e,o,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],q(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,q(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,c=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,g=t.stat_desc.extra_base,m=t.stat_desc.max_length,v=0;for(o=0;o<=p;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<h;n++)m<(o=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(o=m,v++),c[2*r+1]=o,u<r||(e.bl_count[o]++,a=0,g<=r&&(a=f[r-g]),s=c[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(l[2*r+1]+a)));if(0!==v){do{for(o=m-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[m]--,v-=2}while(0<v);for(o=m;0!==o;o--)for(r=e.bl_count[o];0!==r;)u<(i=e.heap[--n])||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(e,t),W(o,u,e.bl_count)}function X(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<c&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*b]++):s<=10?e.bl_tree[2*y]++:e.bl_tree[2*x]++,o=i,u=(s=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4))}function Y(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<c&&i===a)){if(s<u)for(;L(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(L(e,i,e.bl_tree),s--),L(e,b,e.bl_tree),B(e,s-3,2)):s<=10?(L(e,y,e.bl_tree),B(e,s-3,3)):(L(e,x,e.bl_tree),B(e,s-11,7));o=i,u=(s=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4)}}a(P);var K=!1;function Z(e,t,n,i){B(e,(s<<1)+(i?1:0),3),function(e,t,n,i){H(e),i&&(I(e,n),I(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){K||(function(){var e,t,n,r,i,o=new Array(p+1);for(r=n=0;r<c-1;r++)for(E[r]=n,e=0;e<1<<_[r];e++)A[n++]=r;for(A[n-1]=r,r=i=0;r<16;r++)for(P[r]=i,e=0;e<1<<w[r];e++)S[i++]=r;for(i>>=7;r<d;r++)for(P[r]=i<<7,e=0;e<1<<w[r]-7;e++)S[256+i++]=r;for(t=0;t<=p;t++)o[t]=0;for(e=0;e<=143;)k[2*e+1]=8,e++,o[8]++;for(;e<=255;)k[2*e+1]=9,e++,o[9]++;for(;e<=279;)k[2*e+1]=7,e++,o[7]++;for(;e<=287;)k[2*e+1]=8,e++,o[8]++;for(W(k,l+1,o),e=0;e<d;e++)T[2*e+1]=5,T[2*e]=z(e,5);U=new R(k,_,u+1,l,p),O=new R(T,w,0,d,p),F=new R(new Array(0),D,0,f,m)}(),K=!0),e.l_desc=new N(e.dyn_ltree,U),e.d_desc=new N(e.dyn_dtree,O),e.bl_desc=new N(e.bl_tree,F),e.bi_buf=0,e.bi_valid=0,j(e)},n._tr_stored_block=Z,n._tr_flush_block=function(e,t,n,r){var a,s,c=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t<u;t++)if(0!==e.dyn_ltree[2*t])return o;return i}(e)),G(e,e.l_desc),G(e,e.d_desc),c=function(e){var t;for(X(e,e.dyn_ltree,e.l_desc.max_code),X(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=f-1;3<=t&&0===e.bl_tree[2*C[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==t?Z(e,t,n,r):4===e.strategy||s===a?(B(e,2+(r?1:0),3),$(e,k,T)):(B(e,4+(r?1:0),3),function(e,t,n,r){var i;for(B(e,t-257,5),B(e,n-1,5),B(e,r-4,4),i=0;i<r;i++)B(e,e.bl_tree[2*C[i]+1],3);Y(e,e.dyn_ltree,t-1),Y(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),$(e,e.dyn_ltree,e.dyn_dtree)),j(e),r&&H(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(A[n]+u+1)]++,e.dyn_dtree[2*M(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){B(e,2,3),L(e,v,k),function(e){16===e.bi_valid?(I(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,i){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,i,o,a,s=1,c={},u=!1,l=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,n="[object process]"==={}.toString.call(e.process)?function(e){r.nextTick((function(){h(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,function(e){var t=l.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(h,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return c[s]=i,n(s),s++},d.clearImmediate=f}function f(e){delete c[e]}function h(e){if(u)setTimeout(h,0,e);else{var n=c[e];if(n){u=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{f(e),u=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))}).call(this,n("b639").Buffer,n("c8ba"),n("4362"))},d60a:function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},d64c:function(e,t,n){var r=n("c46f");function i(e){return o(e,e)}function o(e,t){return function(){return{start:e,end:t}}}function a(e){var t=e.href||"";return t?{start:"[",end:"]("+t+")",anchorPosition:"before"}:{}}function s(e){var t=e.src||"",n=e.alt||"";return t||n?{start:"!["+n+"]("+t+")"}:{}}function c(e){return function(t,n){return{start:n?"\n":"",end:n?"":"\n",list:{isOrdered:e.isOrdered,indent:n?n.indent+1:0,count:0}}}}function u(e,t,n){t=t||{indent:0,isOrdered:!1,count:0},t.count++,n.hasClosed=!1;var r=t.isOrdered?t.count+".":"-",i=d("\t",t.indent)+r+" ";return{start:i,end:function(){if(!n.hasClosed)return n.hasClosed=!0,"\n"}}}var l={p:o("","\n\n"),br:o("","  \n"),ul:c({isOrdered:!1}),ol:c({isOrdered:!0}),li:u,strong:i("__"),em:i("*"),a:a,img:s};function d(e,t){return new Array(t+1).join(e)}function f(){var e=[],t=[],n=null,i={};function o(r,o){o=o||{};var s=l[r]||function(){return{}},c=s(o,n,i);t.push({end:c.end,list:n}),c.list&&(n=c.list);var u="before"===c.anchorPosition;u&&a(o),e.push(c.start||""),u||a(o)}function a(t){t.id&&e.push('<a id="'+t.id+'"></a>')}function s(i){var o=t.pop();n=o.list;var a=r.isFunction(o.end)?o.end():o.end;e.push(a||"")}function c(e,t){o(e,t),s(e)}function u(t){e.push(h(t))}function d(){return e.join("")}return{asString:d,open:o,close:s,text:u,selfClosing:c}}function h(e){return e.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}(function(){for(var e=1;e<=6;e++)l["h"+e]=o(d("#",e)+" ","\n\n")})(),t.writer=f},d688:function(e,t,n){var r=n("c46f");t.Element=o,t.element=function(e,t,n){return new o(e,t,n)},t.text=function(e){return{type:"text",value:e}};var i={first:function(){return null},firstOrEmpty:function(){return i},attributes:{}};function o(e,t,n){this.type="element",this.name=e,this.attributes=t||{},this.children=n||[]}o.prototype.first=function(e){return r.find(this.children,(function(t){return t.name===e}))},o.prototype.firstOrEmpty=function(e){return this.first(e)||i},o.prototype.getElementsByTagName=function(e){var t=r.filter(this.children,(function(t){return t.name===e}));return s(t)},o.prototype.text=function(){if(0===this.children.length)return"";if(1!==this.children.length||"text"!==this.children[0].type)throw new Error("Not implemented");return this.children[0].value};var a={getElementsByTagName:function(e){return s(r.flatten(this.map((function(t){return t.getElementsByTagName(e)}),!0)))}};function s(e){return r.extend(e,a)}},d7e1:function(e,t,n){"use strict";e.exports=function(e){var t=e._SomePromiseArray;function n(e){var n=new t(e),r=n.promise();return n.setHowMany(1),n.setUnwrap(),n.init(),r}e.any=function(e){return n(e)},e.prototype.any=function(){return n(this)}}},d7e3:function(e,t,n){(function(){var t,r,i,o,a,s,c=function(e,t){for(var n in t)u.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;s=n("45f3").isObject,a=n("92e7"),t=n("188f"),i=n("1585"),r=n("3b32"),o=n("b6e1"),e.exports=function(e){function n(e,t,r){var i,o;n.__super__.constructor.call(this,e),this.name="!DOCTYPE",this.documentObject=e,s(t)&&(i=t,t=i.pubID,r=i.sysID),null==r&&(o=[t,r],r=o[0],t=o[1]),null!=t&&(this.pubID=this.stringify.dtdPubID(t)),null!=r&&(this.sysID=this.stringify.dtdSysID(r))}return c(n,e),n.prototype.element=function(e,t){var n;return n=new r(this,e,t),this.children.push(n),this},n.prototype.attList=function(e,n,r,i,o){var a;return a=new t(this,e,n,r,i,o),this.children.push(a),this},n.prototype.entity=function(e,t){var n;return n=new i(this,!1,e,t),this.children.push(n),this},n.prototype.pEntity=function(e,t){var n;return n=new i(this,!0,e,t),this.children.push(n),this},n.prototype.notation=function(e,t){var n;return n=new o(this,e,t),this.children.push(n),this},n.prototype.toString=function(e){return this.options.writer.set(e).docType(this)},n.prototype.ele=function(e,t){return this.element(e,t)},n.prototype.att=function(e,t,n,r,i){return this.attList(e,t,n,r,i)},n.prototype.ent=function(e,t){return this.entity(e,t)},n.prototype.pent=function(e,t){return this.pEntity(e,t)},n.prototype.not=function(e,t){return this.notation(e,t)},n.prototype.up=function(){return this.root()||this.documentObject},n}(a)}).call(this)},d811:function(e,t,n){},d814:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"wrap"},[r("div",{staticClass:"left"},[r("div",[e.is_owner?r("div",{staticClass:"pdf_upload_box"},[r("a-upload",{staticClass:"pdf_upload_btn",attrs:{name:"file",multiple:!1,action:"/addons/chatgpt/xfmlb/basefile_upload",headers:e.headers,data:e.filedata,accept:".pdf,.docx,.txt",beforeUpload:e.beforeUpload,showUploadList:!0},on:{change:e.handleChange2}},[r("a-button",[r("a-icon",{attrs:{type:"upload"}}),e._v(" 添加文档 ")],1)],1)],1):e._e(),r("div",{staticClass:"basename"},[e._v(" "+e._s(e.basename)+" ")]),r("div",{staticClass:"pdf_search"},[r("a-input-search",{staticStyle:{width:"100%",opacity:"0.5",background:"#fff","border-radius":"4px"},attrs:{placeholder:"搜索文档"},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1)]),0!=e.history_data.length?r("div",{staticClass:"history"},e._l(e.history_data,(function(t,n){return e.is_search(t.pdf_name,e.keyword)?r("div",{key:n,staticClass:"history_box",on:{click:function(r){return e.upload_xfyun(t.id,n)},mouseenter:function(t){return e.handleMouseEnter(n)},mouseleave:function(t){return e.handleMouseLeave(n)}}},[e._m(0,!0),r("div",{staticClass:"hb_right"},[t.is_edit?e._e():r("div",{staticClass:"limited-text"},[e._v(e._s(t.pdf_name))]),t.is_edit?r("div",{staticClass:"pdf_name"},[r("a-input",{model:{value:t.pdf_name,callback:function(n){e.$set(t,"pdf_name",n)},expression:"value.pdf_name"}})],1):e._e(),r("div",[e._v(e._s(t.created_at))])]),t.show&&e.is_owner?r("div",{staticClass:"icon"},[r("div",[t.is_edit?e._e():r("a-icon",{staticStyle:{"font-size":"18px"},attrs:{type:"edit"},on:{click:function(t){return t.stopPropagation(),e.edit_icon(n)}}}),t.is_edit?r("a-icon",{staticStyle:{"font-size":"18px"},attrs:{type:"check"},on:{click:function(r){return r.stopPropagation(),e.edit_pdf_name(n,t.id)}}}):e._e()],1),r("div",[r("a-icon",{staticStyle:{"font-size":"18px"},attrs:{type:"delete"},on:{click:function(n){return n.stopPropagation(),e.showModal(t.id)}}})],1)]):e._e(),r("a-modal",{attrs:{title:"删除文档",visible:e.visible,"ok-text":"确定","cancel-text":"取消","confirm-loading":e.confirmLoading},on:{ok:function(t){return e.handleOk(e.del_id)},cancel:e.handleCancel}},[r("p",[e._v(e._s(e.ModalText))])])],1):e._e()})),0):e._e()]),r("div",{staticClass:"right"},[r("div",{staticClass:"qa_mian",class:{hide:""==e.fileIds}},[2==this.fileType?r("div",{staticClass:"word"},[2==this.fileType?r("div",{ref:"childRef",staticClass:"childRef",attrs:{id:"wordView"}}):e._e()]):e._e(),3==this.fileType?r("div",{staticClass:"txt"},[r("div",[r("pre",{staticStyle:{"white-space":"pre-line","font-family":"inherit"}},[e._v(e._s(e.txtContent))])])]):e._e(),1==this.fileType?r("div",{staticClass:"pdf"},[1==this.fileType?r("div",{staticClass:"onlineHelp cg-box"},[r("div",{staticClass:"tools"},[r("div",{staticClass:"page"},[e._v("第 "+e._s(e.pageNum)+" /"+e._s(e.pageTotalNum)+"页 ")]),r("el-input",{staticStyle:{width:"70px","margin-right":"8px"},model:{value:e.goPageNum,callback:function(t){e.goPageNum=e._n(t)},expression:"goPageNum"}}),r("el-button",{attrs:{type:"success"},on:{click:function(t){return t.stopPropagation(),e.goPage.apply(null,arguments)}}},[e._v(" 前往")]),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.prePage.apply(null,arguments)}}},[e._v(" 上一页")]),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.nextPage.apply(null,arguments)}}},[e._v(" 下一页")])],1),1==this.fileType?r("div",{staticClass:"pdf-box"},[r("pdf",{ref:"pdf",attrs:{src:e.url,page:e.pageNum},on:{progress:function(t){e.loadedRatio=t},"page-loaded":function(t){return e.pageLoaded(t)},"num-pages":function(t){e.pageTotalNum=t},error:function(t){return e.pdfError(t)},"link-clicked":function(t){e.page=t}}})],1):e._e()]):e._e()]):e._e(),r("div",{staticClass:"qa_content"},[r("div",{staticClass:"qa_top"},[r("div",[e._v("对话窗口")]),r("a-button",{attrs:{loading:e.iconLoading},on:{click:e.sum_up}},[e._v("文档总结"),e.sumup_open?r("a-icon",{attrs:{type:"caret-up"}}):e._e(),e.sumup_open?e._e():r("a-icon",{attrs:{type:"caret-down"}})],1)],1),e.sumup_open?r("div",{staticClass:"sumup"},[e._m(1),r("div",{staticClass:"sumup_text"},[r("div",[e._v(e._s(e.sumup_text))])])]):e._e(),r("div",{staticClass:"qa_box"},e._l(e.dialogue,(function(t,i){return r("div",{staticClass:"user dialogue_box",class:t.role},["user"==t.role?r("div",{staticClass:"avatar"},[r("img",{attrs:{src:e.userInfo.avatar}})]):e._e(),"user"!=t.role?r("div",{staticClass:"avatar"},[r("img",{attrs:{src:n("ede7")}})]):e._e(),r("div",{staticClass:"content_box"},["user"==t.role?r("div",[e._v(e._s(t.time)),r("v-md-editor",{attrs:{mode:"preview"},model:{value:t.content,callback:function(n){e.$set(t,"content",n)},expression:"item.content"}})],1):e._e(),"ai"==t.role&&1==t.status?r("div",[e._v(e._s(t.time)),r("v-md-editor",{attrs:{mode:"preview"},model:{value:e.answer,callback:function(t){e.answer=t},expression:"answer"}})],1):e._e(),"ai"==t.role&&2==t.status?r("div",[e._v(e._s(t.time)),r("v-md-editor",{attrs:{mode:"preview"},model:{value:t.content,callback:function(n){e.$set(t,"content",n)},expression:"item.content"}})],1):e._e(),r("div",{staticClass:"copy1",staticStyle:{"margin-top":"10px","font-size":"12px","margin-right":"220px",float:"right"},on:{click:function(n){return e.messageCopy(t.content)}}},[r("img",{staticStyle:{width:"16px"},attrs:{src:n("1ae3")}}),e._v(" 复制 ")]),r("div",{staticStyle:{"font-size":"12px","margin-top":"10px"}})])])})),0),r("div",{staticClass:"qa_bottom"},[r("div",{staticClass:"question",staticStyle:{"margin-top":"10px"}},[r("img",{attrs:{src:n("5b6e")},on:{click:function(t){return e.send()}}}),r("a-input",{staticStyle:{width:"85%"},attrs:{placeholder:"请输入问题"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.send()}},model:{value:e.question,callback:function(t){e.question=t},expression:"question"}})],1)])])])])])},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"hb_left"},[r("img",{attrs:{src:n("9626")}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"sumup_title"},[r("div",[r("img",{attrs:{src:n("f1a6")}}),e._v(" 以下是该文档的总结/概要信息:")]),r("div",{staticClass:"copy"},[r("img",{attrs:{src:n("1ae3")}}),e._v("复制")])])}],o=n("2f62"),a=n("b311"),s=n.n(a),c=n("858e"),u=(n("c343"),n("376d")),l={components:{pdf:c["a"]},data(){return{socket:null,connectionStatus:"Disconnected",headers:{authorization:"authorization-text",Token:""},num:0,question:"",answer:"",eg:"",currentTime:"",wss:"",dialogue:[],fileIds:"",desc:"",loading:!1,btn_loading:!1,history_data:[],is_fetch:!1,is_edit:!1,ModalText:"删除后不可找回，确认删除当前会话？",visible:!1,confirmLoading:!1,pdf_id:0,sumup_status:1,sumup_text:"",sumup_open:!1,iconLoading:!1,url:"",pageNum:1,pageTotalNum:1,loadedRatio:0,curPageNum:0,goPageNum:1,arr:[1],keyword:"",wordText:"",fileType:"",txtContent:"",previewImages:[{src:"",alt:"Text File"}],filedata:"",basename:"",is_owner:!1,del_id:""}},watch:{keyword(e,t){console.log(`输入值已从 ${t} 变为 ${e}`)}},created(){this.getUserPdf(),this.getwss(),this.getbasedata()},mounted(){const e=new s.a(".copy",{text:()=>this.sumup_text});e.on("success",e=>{this.copiedText=this.clipboardText,e.clearSelection(),this.$message.success("复制成功",1)})},computed:{...Object(o["c"])("user",["token","userInfo"]),id(){return this.$route.params.id}},methods:{...Object(o["b"])("user",["getUserInfo"]),async messageCopy(e){try{await navigator.clipboard.writeText(e),this.$message.success("已复制到剪切板")}catch(t){this.$message.error("复制失败")}},getwss(){this.$http("role.getbasewss",{id:this.id}).then(e=>{1==e.code&&(this.fileIds=e.data.data,this.wss=e.data.url,this.eg=e.data.eg,this.connectToServer())})},getbasedata(){this.$http("role.getbasedata",{id:this.id}).then(e=>{if(1==e.code)if(this.dialogue=JSON.parse(e.data.dialogue),this.fileType=e.data.filetype,this.pdf_id=e.data.pdf_id,this.basename=e.data.basename,this.is_owner=e.data.is_owner,2==this.fileType)this.previewDocxFile(e.data.fileurl);else if(3==this.fileType)this.previewImages[0].src=e.data.fileurl;else if(1==this.fileType){this.url=e.data.fileurl;for(var t=document.querySelectorAll("div.docx-wrapper"),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n])}})},previewDocxFile(e){const t=new XMLHttpRequest;t.open("get",e,!0),t.responseType="arraybuffer",t.onload=()=>{console.log(t.response),this.wordText=t.response;let e=document.getElementsByClassName("childRef");Object(u["renderAsync"])(this.wordText,e[0]).then(e=>{})},t.send()},prePage(){var e=this.pageNum;e=e>1?e-1:this.pageTotalNum,this.pageNum=e},nextPage(){var e=this.pageNum;e=e<this.pageTotalNum?e+1:1,this.pageNum=e},goPage(){!this.goPageNum||/\D/.test(this.goPageNum)||this.goPageNum<1||this.goPageNum>this.pageTotalNum?this.$message.warning("输入页码有误"):this.pageNum=this.goPageNum},pageLoaded(e){this.curPageNum=e,this.arr=this.generateArray(this.pageTotalNum)},pdfError(e){console.error(e)},is_search(e,t){if(null!=e)return!!e.includes(t)},showModal(e){this.del_id=e,this.visible=!0},handleOk(e){console.log(e),this.confirmLoading=!0,this.$http("role.del_pdf_base",{id:e,base_id:this.id}).then(e=>{1==e.code&&(this.history_data=e.data,this.visible=!1,this.confirmLoading=!1,this.$message.success("文件删除成功"))})},handleCancel(e){this.visible=!1},edit_icon(e){this.history_data[e].is_edit=!0},sum_up(){this.iconLoading=!0,this.$http("role.sum_up",{id:this.pdf_id}).then(e=>{1==e.code&&(this.sumup_status=e.data.status,this.sumup_text=e.data.sumup_text,1==this.sumup_status||2==this.sumup_status?this.$notification.open({message:"信息",description:"生成中，请稍后再试",onClick:()=>{}}):this.sumup_open=!this.sumup_open,this.iconLoading=!1)})},edit_pdf_name(e,t){this.$http("role.edit_name",{id:t,pdf_name:this.history_data[e].pdf_name}).then(t=>{1==t.code&&(this.history_data[e].is_edit=!1)})},handleMouseEnter(e){console.log(e),this.history_data[e].show=!0},handleMouseLeave(e){this.history_data[e].show=!1},connectToServer(){this.socket=new WebSocket(this.wss),this.socket.addEventListener("open",()=>{this.connectionStatus="Connected"}),this.socket.addEventListener("message",e=>{let t=new Object;if(t=JSON.parse(e.data),1==t.status&&this.num++,1==this.num){this.getCurrentTime();let e=new Object;e.role="ai",e.content="",e.time=this.currentTime,e.status=1,this.dialogue.push(e)}void 0!=this.answer&&(this.answer+=t.content,this.answer=this.answer.replace("undefined","")),2==t.status&&(this.num=0,this.dialogue[this.dialogue.length-1].content=this.answer,this.dialogue[this.dialogue.length-1].status=2,this.answer="",this.$http("role.save_dialogue_base",{dialogue:this.dialogue,id:this.id}).then(e=>{}))}),this.socket.addEventListener("close",()=>{this.connectionStatus="Disconnected",this.getwss()})},send(){if(""==this.question)return this.$message.error("请输入问题"),!1;this.$http("role.zsk_kf").then(e=>{if(1==e.code){this.getCurrentTime();let e=this.eg,t=new Object,n=new Object;t.role="user",t.content=this.question,t.time=this.currentTime,console.log(this.dialogue),null==this.dialogue&&(this.dialogue=new Array),this.dialogue.push(t),n=JSON.parse(e),n.fileIds=this.fileIds,n.messages[0].content=this.question,n.messages[0].role=t.role;let r=JSON.stringify(n);this.socket&&this.socket.readyState===WebSocket.OPEN&&this.socket.send(r),this.question=""}})},beforeUpload(e,t){this.headers.Token=this.token;var n=new Object;n.id=this.id,this.filedata=n;const r=e.size/1024/1024<20;if(!r)return this.$message.error(e.name+"文件大小不能超过20M"),!1},handleChange2(e){e.file.status,"done"===e.file.status?(e.file.response.data&&(this.history_data=e.file.response.data.data,this.fileIds=e.file.response.data.fileId),1==e.file.response.code?(this.getUserPdf(),this.upload_xfyun(this.history_data[0].id,0),this.$message.success(e.file.name+" 文件上传成功")):this.$message.error(e.file.response.msg)):"error"===e.file.status&&this.$message.error(e.file.name+" 文件上传失败.")},upload_xfyun(e,t){if(this.pdf_id!=e){if(this.loading=!0,this.pdf_show=!1,this.pdf_id=e,this.$http("role.upload_xfyun",{id:e}).then(e=>{if(console.log(e),1==e.code)if(this.txtContent=e.data.txt,null!=e.data.dialogue){const e=setTimeout(()=>{this.loading=!1,clearTimeout(e)},500)}else this.loading=!1;else this.loading=!1}),this.fileType=this.history_data[t]["file_type"],2==this.fileType)this.previewDocxFile(this.history_data[t]["url"]);else if(3==this.fileType)this.previewImages[0].src=this.history_data[t]["url"];else if(1==this.fileType){console.log(this.history_data),this.url=this.history_data[t]["url"];for(var n=document.querySelectorAll("div.docx-wrapper"),r=0;r<n.length;r++)n[r].parentNode.removeChild(n[r])}this.sumup_open=!1}},getUserPdf(){console.log(this.id),this.$http("role.get_base_file",{id:this.id}).then(e=>{1==e.code&&(this.history_data=e.data)})},getCurrentTime(){const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate(),i=e.getHours(),o=e.getMinutes(),a=e.getSeconds();this.currentTime=`${t}-${n}-${r} ${i}:${o}:${a}`},generateArray(e){let t=[];for(let n=1;n<=e;n++)t.push(n);return t}}},d=l,f=(n("8632"),n("032b"),n("1ed5"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"aa1bd76a",null);t["default"]=h.exports},dbf6:function(e,t,n){"use strict";e.exports=function(e,t,r,i){var o,a=n("6df9"),s=a.isObject,c=n("0341");"function"===typeof Map&&(o=Map);var u=function(){var e=0,t=0;function n(n,r){this[e]=n,this[e+t]=r,e++}return function(r){t=r.size,e=0;var i=new Array(2*r.size);return r.forEach(n,i),i}}(),l=function(e){for(var t=new o,n=e.length/2|0,r=0;r<n;++r){var i=e[n+r],a=e[r];t.set(i,a)}return t};function d(e){var t,n=!1;if(void 0!==o&&e instanceof o)t=u(e),n=!0;else{var r=c.keys(e),i=r.length;t=new Array(2*i);for(var a=0;a<i;++a){var s=r[a];t[a]=e[s],t[a+i]=s}}this.constructor$(t),this._isMap=n,this._init$(void 0,-3)}function f(t){var n,o=r(t);return s(o)?(n=o instanceof e?o._then(e.props,void 0,void 0,void 0,void 0):new d(o).promise(),o instanceof e&&n._propagateFrom(o,2),n):i("cannot await properties of a non-object\n\n    See http://goo.gl/MqrFmX\n")}a.inherits(d,t),d.prototype._init=function(){},d.prototype._promiseFulfilled=function(e,t){this._values[t]=e;var n=++this._totalResolved;if(n>=this._length){var r;if(this._isMap)r=l(this._values);else{r={};for(var i=this.length(),o=0,a=this.length();o<a;++o)r[this._values[o+i]]=this._values[o]}return this._resolve(r),!0}return!1},d.prototype.shouldCopyValues=function(){return!1},d.prototype.getActualLength=function(e){return e>>1},e.prototype.props=function(){return f(this)},e.props=function(e){return f(e)}}},e003:function(e,t,n){var r=n("89a7").NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+i.source+o.source+"*(?::"+i.source+o.source+"*)?$"),s=0,c=1,u=2,l=3,d=4,f=5,h=6,p=7;function g(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,g)}function m(){}function v(e,t,n,i,o){function a(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function s(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(n,t)?n[t]:"#"===t.charAt(0)?a(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function c(t){if(t>v){var n=e.substring(v,t).replace(/&#?\w+;/g,s);h&&u(v),i.characters(n,0,t-v),v=t}}function u(t,n){while(t>=d&&(n=f.exec(e)))l=n.index,d=l+n[0].length,h.lineNumber++;h.columnNumber=t-l+1}var l=0,d=0,f=/.*(?:\r\n?|\n)|.*$/g,h=i.locator,p=[{currentNSMap:t}],m={},v=0;while(1){try{var D=e.indexOf("<",v);if(D<0){if(!e.substr(v).match(/^\s*$/)){var S=i.doc,A=S.createTextNode(e.substr(v));S.appendChild(A),i.currentElement=A}return}switch(D>v&&c(D),e.charAt(D+1)){case"/":var E=e.indexOf(">",D+3),U=e.substring(D+2,E).replace(/[ \t\n\r]+$/g,""),O=p.pop();E<0?(U=e.substring(D+2).replace(/[\s<].*/,""),o.error("end tag name: "+U+" is not complete:"+O.tagName),E=D+1+U.length):U.match(/\s</)&&(U=U.replace(/[\s<].*/,""),o.error("end tag name: "+U+" maybe not complete"),E=D+1+U.length);var F=O.localNSMap,P=O.tagName==U,R=P||O.tagName&&O.tagName.toLowerCase()==U.toLowerCase();if(R){if(i.endElement(O.uri,O.localName,U),F)for(var N in F)Object.prototype.hasOwnProperty.call(F,N)&&i.endPrefixMapping(N);P||o.fatalError("end tag name: "+U+" is not match the current start tagName:"+O.tagName)}else p.push(O);E++;break;case"?":h&&u(D),E=k(e,D,i);break;case"!":h&&u(D),E=C(e,D,i,o);break;default:h&&u(D);var M=new T,I=p[p.length-1].currentNSMap,B=(E=y(e,D,M,I,s,o),M.length);if(!M.closed&&w(e,E,M.tagName,m)&&(M.closed=!0,n.nbsp||o.warning("unclosed xml attribute")),h&&B){for(var L=b(h,{}),z=0;z<B;z++){var W=M[z];u(W.offset),W.locator=b(h,{})}i.locator=L,x(M,i,I)&&p.push(M),i.locator=h}else x(M,i,I)&&p.push(M);r.isHTML(M.uri)&&!M.closed?E=_(e,E,M.tagName,s,i):E++}}catch(j){if(j instanceof g)throw j;o.error("element parse error: "+j),E=-1}E>v?v=E:c(Math.max(D,v)+1)}}function b(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function y(e,t,n,i,o,a){function g(e,t,r){n.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),r)}var m,v=++t,b=s;while(1){var y=e.charAt(v);switch(y){case"=":if(b===c)m=e.slice(t,v),b=l;else{if(b!==u)throw new Error("attribute equal must after attrName");b=l}break;case"'":case'"':if(b===l||b===c){if(b===c&&(a.warning('attribute value must after "="'),m=e.slice(t,v)),t=v+1,v=e.indexOf(y,t),!(v>0))throw new Error("attribute value no end '"+y+"' match");x=e.slice(t,v),g(m,x,t-1),b=f}else{if(b!=d)throw new Error('attribute value must after "="');x=e.slice(t,v),g(m,x,t),a.warning('attribute "'+m+'" missed start quot('+y+")!!"),t=v+1,b=f}break;case"/":switch(b){case s:n.setTagName(e.slice(t,v));case f:case h:case p:b=p,n.closed=!0;case d:case c:break;case u:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),b==s&&n.setTagName(e.slice(t,v)),v;case">":switch(b){case s:n.setTagName(e.slice(t,v));case f:case h:case p:break;case d:case c:x=e.slice(t,v),"/"===x.slice(-1)&&(n.closed=!0,x=x.slice(0,-1));case u:b===u&&(x=m),b==d?(a.warning('attribute "'+x+'" missed quot(")!'),g(m,x,t)):(r.isHTML(i[""])&&x.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+x+'" missed value!! "'+x+'" instead!!'),g(x,x,t));break;case l:throw new Error("attribute value missed!!")}return v;case"":y=" ";default:if(y<=" ")switch(b){case s:n.setTagName(e.slice(t,v)),b=h;break;case c:m=e.slice(t,v),b=u;break;case d:var x=e.slice(t,v);a.warning('attribute "'+x+'" missed quot(")!!'),g(m,x,t);case f:b=h;break}else switch(b){case u:n.tagName;r.isHTML(i[""])&&m.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+m+'" missed value!! "'+m+'" instead2!!'),g(m,m,t),t=v,b=c;break;case f:a.warning('attribute space is required"'+m+'"!!');case h:b=c,t=v;break;case l:b=d,t=v;break;case p:throw new Error("elements closed character '/' and '>' must be connected to")}}v++}}function x(e,t,n){var i=e.tagName,o=null,a=e.length;while(a--){var s=e[a],c=s.qName,u=s.value,l=c.indexOf(":");if(l>0)var d=s.prefix=c.slice(0,l),f=c.slice(l+1),h="xmlns"===d&&f;else f=c,d=null,h="xmlns"===c&&"";s.localName=f,!1!==h&&(null==o&&(o={},D(n,n={})),n[h]=o[h]=u,s.uri=r.XMLNS,t.startPrefixMapping(h,u))}a=e.length;while(a--){s=e[a];d=s.prefix;d&&("xml"===d&&(s.uri=r.XML),"xmlns"!==d&&(s.uri=n[d||""]))}l=i.indexOf(":");l>0?(d=e.prefix=i.slice(0,l),f=e.localName=i.slice(l+1)):(d=null,f=e.localName=i);var p=e.uri=n[d||""];if(t.startElement(p,f,i,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(t.endElement(p,f,i),o)for(d in o)Object.prototype.hasOwnProperty.call(o,d)&&t.endPrefixMapping(d)}function _(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return t+1}function w(e,t,n,r){var i=r[n];return null==i&&(i=e.lastIndexOf("</"+n+">"),i<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function D(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function C(e,t,n,r){var i=e.charAt(t+2);switch(i){case"-":if("-"===e.charAt(t+3)){var o=e.indexOf("--\x3e",t+4);return o>t?(n.comment(e,t+4,o-t-4),o+3):(r.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){o=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,o-t-9),n.endCDATA(),o+3}var a=S(e,t),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var c=a[1][0],u=!1,l=!1;s>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],l=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(l=a[3][0]));var d=a[s-1];return n.startDTD(c,u,l),n.endDTD(),d.index+d[0].length}}return-1}function k(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function T(){this.attributeNames={}}function S(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);while(n=i.exec(e))if(r.push(n),n[1])return r}g.prototype=new Error,g.prototype.name=g.name,m.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),D(t,t={}),v(e,t,n,r,this.errorHandler),r.endDocument()}},T.prototype={setTagName:function(e){if(!a.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!a.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=m,t.ParseError=g},e15a:function(e,t,n){"use strict";n("1c35")},e177:function(e,t,n){"use strict";n("4171")},e1c8:function(e,t,n){var r=n("89a7"),i=r.find,o=r.NAMESPACE;function a(e){return""!==e}function s(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}function c(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function u(e){if(!e)return[];var t=s(e);return Object.keys(t.reduce(c,{}))}function l(e){return function(t){return e&&-1!==e.indexOf(t)}}function d(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function f(e,t){var n=e.prototype;if(!(n instanceof t)){function r(){}r.prototype=t.prototype,r=new r,d(n,r),e.prototype=n=r}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var h={},p=h.ELEMENT_NODE=1,g=h.ATTRIBUTE_NODE=2,m=h.TEXT_NODE=3,v=h.CDATA_SECTION_NODE=4,b=h.ENTITY_REFERENCE_NODE=5,y=h.ENTITY_NODE=6,x=h.PROCESSING_INSTRUCTION_NODE=7,_=h.COMMENT_NODE=8,w=h.DOCUMENT_NODE=9,D=h.DOCUMENT_TYPE_NODE=10,C=h.DOCUMENT_FRAGMENT_NODE=11,k=h.NOTATION_NODE=12,T={},S={},A=(T.INDEX_SIZE_ERR=(S[1]="Index size error",1),T.DOMSTRING_SIZE_ERR=(S[2]="DOMString size error",2),T.HIERARCHY_REQUEST_ERR=(S[3]="Hierarchy request error",3)),E=(T.WRONG_DOCUMENT_ERR=(S[4]="Wrong document",4),T.INVALID_CHARACTER_ERR=(S[5]="Invalid character",5),T.NO_DATA_ALLOWED_ERR=(S[6]="No data allowed",6),T.NO_MODIFICATION_ALLOWED_ERR=(S[7]="No modification allowed",7),T.NOT_FOUND_ERR=(S[8]="Not found",8)),U=(T.NOT_SUPPORTED_ERR=(S[9]="Not supported",9),T.INUSE_ATTRIBUTE_ERR=(S[10]="Attribute in use",10));T.INVALID_STATE_ERR=(S[11]="Invalid state",11),T.SYNTAX_ERR=(S[12]="Syntax error",12),T.INVALID_MODIFICATION_ERR=(S[13]="Invalid modification",13),T.NAMESPACE_ERR=(S[14]="Invalid namespace",14),T.INVALID_ACCESS_ERR=(S[15]="Invalid access",15);function O(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,S[e]),this.message=S[e],Error.captureStackTrace&&Error.captureStackTrace(this,O);return n.code=e,t&&(this.message=this.message+": "+t),n}function F(){}function P(e,t){this._node=e,this._refresh=t,R(this)}function R(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(ke(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var r=n.length;r in e;r++)Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];d(n,e),e._inc=t}}function N(){}function M(e,t){var n=e.length;while(n--)if(e[n]===t)return n}function I(e,t,n,r){if(r?t[M(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&q(i,e,r),V(i,e,n))}}function B(e,t,n){var r=M(t,n);if(!(r>=0))throw new O(E,new Error(e.tagName+"@"+n));var i=t.length-1;while(r<i)t[r]=t[++r];if(t.length=i,e){var o=e.ownerDocument;o&&(q(o,e,n),n.ownerElement=null)}}function L(){}function z(){}function W(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function j(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(j(e,t))return!0}while(e=e.nextSibling)}function H(){this.ownerDocument=this}function V(e,t,n){e&&e._inc++;var r=n.namespaceURI;r===o.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function q(e,t,n,r){e&&e._inc++;var i=n.namespaceURI;i===o.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function $(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{var i=t.firstChild,o=0;while(i)r[o++]=i,i=i.nextSibling;r.length=o,delete r[r.length]}}}function G(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,$(e.ownerDocument,e),t}function X(e){return e&&(e.nodeType===z.DOCUMENT_NODE||e.nodeType===z.DOCUMENT_FRAGMENT_NODE||e.nodeType===z.ELEMENT_NODE)}function Y(e){return e&&(Z(e)||J(e)||K(e)||e.nodeType===z.DOCUMENT_FRAGMENT_NODE||e.nodeType===z.COMMENT_NODE||e.nodeType===z.PROCESSING_INSTRUCTION_NODE)}function K(e){return e&&e.nodeType===z.DOCUMENT_TYPE_NODE}function Z(e){return e&&e.nodeType===z.ELEMENT_NODE}function J(e){return e&&e.nodeType===z.TEXT_NODE}function Q(e,t){var n=e.childNodes||[];if(i(n,Z)||K(t))return!1;var r=i(n,K);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function ee(e,t){var n=e.childNodes||[];function r(e){return Z(e)&&e!==t}if(i(n,r))return!1;var o=i(n,K);return!(t&&o&&n.indexOf(o)>n.indexOf(t))}function te(e,t,n){if(!X(e))throw new O(A,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new O(E,"child not in parent");if(!Y(t)||K(t)&&e.nodeType!==z.DOCUMENT_NODE)throw new O(A,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function ne(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===z.DOCUMENT_FRAGMENT_NODE){var a=o.filter(Z);if(a.length>1||i(o,J))throw new O(A,"More than one element or text in fragment");if(1===a.length&&!Q(e,n))throw new O(A,"Element in fragment can not be inserted before doctype")}if(Z(t)&&!Q(e,n))throw new O(A,"Only one element can be added and only after doctype");if(K(t)){if(i(r,K))throw new O(A,"Only one doctype is allowed");var s=i(r,Z);if(n&&r.indexOf(s)<r.indexOf(n))throw new O(A,"Doctype can only be inserted before an element");if(!n&&s)throw new O(A,"Doctype can not be appended since element is present")}}function re(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===z.DOCUMENT_FRAGMENT_NODE){var a=o.filter(Z);if(a.length>1||i(o,J))throw new O(A,"More than one element or text in fragment");if(1===a.length&&!ee(e,n))throw new O(A,"Element in fragment can not be inserted before doctype")}if(Z(t)&&!ee(e,n))throw new O(A,"Only one element can be added and only after doctype");if(K(t)){function s(e){return K(e)&&e!==n}if(i(r,s))throw new O(A,"Only one doctype is allowed");var c=i(r,Z);if(n&&r.indexOf(c)<r.indexOf(n))throw new O(A,"Doctype can only be inserted before an element")}}function ie(e,t,n,r){te(e,t,n),e.nodeType===z.DOCUMENT_NODE&&(r||ne)(e,t,n);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===C){var o=t.firstChild;if(null==o)return t;var a=t.lastChild}else o=a=t;var s=n?n.previousSibling:e.lastChild;o.previousSibling=s,a.nextSibling=n,s?s.nextSibling=o:e.firstChild=o,null==n?e.lastChild=a:n.previousSibling=a;do{o.parentNode=e}while(o!==a&&(o=o.nextSibling));return $(e.ownerDocument||e,e),t.nodeType==C&&(t.firstChild=t.lastChild=null),t}function oe(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,$(e.ownerDocument,e,t),t}function ae(){this._nsMap={}}function se(){}function ce(){}function ue(){}function le(){}function de(){}function fe(){}function he(){}function pe(){}function ge(){}function me(){}function ve(){}function be(){}function ye(e,t){var n=[],r=9==this.nodeType&&this.documentElement||this,i=r.prefix,o=r.namespaceURI;if(o&&null==i){i=r.lookupPrefix(o);if(null==i)var a=[{namespace:o,prefix:null}]}return we(this,n,e,t,a),n.join("")}function xe(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!i)return!1;if("xml"===r&&i===o.XML||i===o.XMLNS)return!1;var a=n.length;while(a--){var s=n[a];if(s.prefix===r)return s.namespace!==i}return!0}function _e(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,W),'"')}function we(e,t,n,r,i){if(i||(i=[]),r){if(e=r(e),!e)return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case p:var a=e.attributes,s=a.length,c=e.firstChild,u=e.tagName;n=o.isHTML(e.namespaceURI)||n;var l=u;if(!n&&!e.prefix&&e.namespaceURI){for(var d,f=0;f<a.length;f++)if("xmlns"===a.item(f).name){d=a.item(f).value;break}if(!d)for(var h=i.length-1;h>=0;h--){var y=i[h];if(""===y.prefix&&y.namespace===e.namespaceURI){d=y.namespace;break}}if(d!==e.namespaceURI)for(h=i.length-1;h>=0;h--){y=i[h];if(y.namespace===e.namespaceURI){y.prefix&&(l=y.prefix+":"+u);break}}}t.push("<",l);for(var k=0;k<s;k++){var T=a.item(k);"xmlns"==T.prefix?i.push({prefix:T.localName,namespace:T.value}):"xmlns"==T.nodeName&&i.push({prefix:"",namespace:T.value})}for(k=0;k<s;k++){T=a.item(k);if(xe(T,n,i)){var S=T.prefix||"",A=T.namespaceURI;_e(t,S?"xmlns:"+S:"xmlns",A),i.push({prefix:S,namespace:A})}we(T,t,n,r,i)}if(u===l&&xe(e,n,i)){S=e.prefix||"",A=e.namespaceURI;_e(t,S?"xmlns:"+S:"xmlns",A),i.push({prefix:S,namespace:A})}if(c||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(t.push(">"),n&&/^script$/i.test(u))while(c)c.data?t.push(c.data):we(c,t,n,r,i.slice()),c=c.nextSibling;else while(c)we(c,t,n,r,i.slice()),c=c.nextSibling;t.push("</",l,">")}else t.push("/>");return;case w:case C:c=e.firstChild;while(c)we(c,t,n,r,i.slice()),c=c.nextSibling;return;case g:return _e(t,e.name,e.value);case m:return t.push(e.data.replace(/[<&>]/g,W));case v:return t.push("<![CDATA[",e.data,"]]>");case _:return t.push("\x3c!--",e.data,"--\x3e");case D:var E=e.publicId,U=e.systemId;if(t.push("<!DOCTYPE ",e.name),E)t.push(" PUBLIC ",E),U&&"."!=U&&t.push(" ",U),t.push(">");else if(U&&"."!=U)t.push(" SYSTEM ",U,">");else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case x:return t.push("<?",e.target," ",e.data,"?>");case b:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function De(e,t,n){var r;switch(t.nodeType){case p:r=t.cloneNode(!1),r.ownerDocument=e;case C:break;case g:n=!0;break}if(r||(r=t.cloneNode(!1)),r.ownerDocument=e,r.parentNode=null,n){var i=t.firstChild;while(i)r.appendChild(De(e,i,n)),i=i.nextSibling}return r}function Ce(e,t,n){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];"object"!=typeof o&&o!=r[i]&&(r[i]=o)}switch(t.childNodes&&(r.childNodes=new F),r.ownerDocument=e,r.nodeType){case p:var a=t.attributes,s=r.attributes=new N,c=a.length;s._ownerElement=r;for(var u=0;u<c;u++)r.setAttributeNode(Ce(e,a.item(u),!0));break;case g:n=!0}if(n){var l=t.firstChild;while(l)r.appendChild(Ce(e,l,n)),l=l.nextSibling}return r}function ke(e,t,n){e[t]=n}O.prototype=Error.prototype,d(T,O),F.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)we(this[r],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},P.prototype.item=function(e){return R(this),this[e]||null},f(P,F),N.prototype={length:0,item:F.prototype.item,getNamedItem:function(e){var t=this.length;while(t--){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new O(U);var n=this.getNamedItem(e.nodeName);return I(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new O(U);return t=this.getNamedItemNS(e.namespaceURI,e.localName),I(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return B(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return B(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){var n=this.length;while(n--){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},L.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=new H;if(r.implementation=this,r.childNodes=new F,r.doctype=n||null,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new fe;return r.name=e,r.nodeName=e,r.publicId=t||"",r.systemId=n||"",r}},z.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return ie(this,e,t)},replaceChild:function(e,t){ie(this,e,t,re),t&&this.removeChild(t)},removeChild:function(e){return G(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Ce(this.ownerDocument||this,this,e)},normalize:function(){var e=this.firstChild;while(e){var t=e.nextSibling;t&&t.nodeType==m&&e.nodeType==m?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){var t=this;while(t){var n=t._nsMap;if(n)for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===e)return r;t=t.nodeType==g?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==g?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return null==t}},d(h,z),d(h,z.prototype),H.prototype={nodeName:"#document",nodeType:w,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==C){var n=e.firstChild;while(n){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return ie(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===p&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),G(this,e)},replaceChild:function(e,t){ie(this,e,t,re),e.ownerDocument=this,t&&this.removeChild(t),Z(e)&&(this.documentElement=e)},importNode:function(e,t){return De(this,e,t)},getElementById:function(e){var t=null;return j(this.documentElement,(function(n){if(n.nodeType==p&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=u(e);return new P(this,(function(n){var r=[];return t.length>0&&j(n.documentElement,(function(i){if(i!==n&&i.nodeType===p){var o=i.getAttribute("class");if(o){var a=e===o;if(!a){var s=u(o);a=t.every(l(s))}a&&r.push(i)}}})),r}))},createElement:function(e){var t=new ae;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new F;var n=t.attributes=new N;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new me;return e.ownerDocument=this,e.childNodes=new F,e},createTextNode:function(e){var t=new ue;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new le;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new de;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new ve;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new se;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ge;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new ae,r=t.split(":"),i=n.attributes=new N;return n.childNodes=new F,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new se,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},f(H,z),ae.prototype={nodeType:p,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===C?this.insertBefore(e,null):oe(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new P(this,(function(t){var n=[];return j(t,(function(r){r===t||r.nodeType!=p||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new P(this,(function(n){var r=[];return j(n,(function(i){i===n||i.nodeType!==p||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},H.prototype.getElementsByTagName=ae.prototype.getElementsByTagName,H.prototype.getElementsByTagNameNS=ae.prototype.getElementsByTagNameNS,f(ae,z),se.prototype.nodeType=g,f(se,z),ce.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(S[A])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}},f(ce,z),ue.prototype={nodeName:"#text",nodeType:m,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},f(ue,ce),le.prototype={nodeName:"#comment",nodeType:_},f(le,ce),de.prototype={nodeName:"#cdata-section",nodeType:v},f(de,ce),fe.prototype.nodeType=D,f(fe,z),he.prototype.nodeType=k,f(he,z),pe.prototype.nodeType=y,f(pe,z),ge.prototype.nodeType=b,f(ge,z),me.prototype.nodeName="#document-fragment",me.prototype.nodeType=C,f(me,z),ve.prototype.nodeType=x,f(ve,z),be.prototype.serializeToString=function(e,t,n){return ye.call(e,t,n)},z.prototype.toString=ye;try{if(Object.defineProperty){function Te(e){switch(e.nodeType){case p:case C:var t=[];e=e.firstChild;while(e)7!==e.nodeType&&8!==e.nodeType&&t.push(Te(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(P.prototype,"length",{get:function(){return R(this),this.$$length}}),Object.defineProperty(z.prototype,"textContent",{get:function(){return Te(this)},set:function(e){switch(this.nodeType){case p:case C:while(this.firstChild)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ke=function(e,t,n){e["$$"+t]=n}}}catch(Se){}t.DocumentType=fe,t.DOMException=O,t.DOMImplementation=L,t.Element=ae,t.Node=z,t.NodeList=F,t.XMLSerializer=be},e2d6:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},i=n("string"),o=r("boolean"),a=function(e){return null===e||void 0===e},s=function(e){return!a(e)},c=r("function"),u=r("number"),l=function(){},d=function(e,t){return function(n){return e(t(n))}},f=function(e){return function(){return e}},h=function(e){return e},p=f(!1),g=f(!0),m=function(){return v},v=function(){var e=function(e){return e()},t=h,n={fold:function(e,t){return e()},isSome:p,isNone:g,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:t,orThunk:e,map:m,each:l,bind:m,exists:p,forall:g,filter:function(){return m()},toArray:function(){return[]},toString:f("none()")};return n}(),b=function(e){var t=f(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:g,isNone:p,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return b(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:v},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},y=function(e){return null===e||void 0===e?v:b(e)},x={some:b,none:m,from:y},_=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},w=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},D=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},C=9,k=11,T=1,S=3,A=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return O(r.childNodes[0])},E=function(e,t){var n=t||document,r=n.createElement(e);return O(r)},U=function(e,t){var n=t||document,r=n.createTextNode(e);return O(r)},O=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},F=function(e,t,n){return x.from(e.dom.elementFromPoint(t,n)).map(O)},P={fromHtml:A,fromTag:E,fromText:U,fromDom:O,fromPoint:F},R=function(e,t){var n=e.dom;if(n.nodeType!==T)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")};"undefined"!==typeof window?window:Function("return this;")();var N=function(e){var t=e.dom.nodeName;return t.toLowerCase()},M=function(e){return e.dom.nodeType},I=function(e){return function(t){return M(t)===e}},B=I(T),L=I(S),z=I(C),W=I(k),j=function(e){return function(t){return B(t)&&N(t)===e}},H=function(e){return P.fromDom(e.dom.ownerDocument)},V=function(e){return z(e)?e:H(e)},q=function(e){return x.from(e.dom.parentNode).map(P.fromDom)},$=function(e){return _(e.dom.childNodes,P.fromDom)},G=function(e,t,n){if(!(i(n)||o(n)||u(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},X=function(e,t,n){G(e.dom,t,n)},Y=function(e,t){e.dom.removeAttribute(t)},K=function(e){return W(e)&&s(e.dom.host)},Z=c(Element.prototype.attachShadow)&&c(Node.prototype.getRootNode),J=Z?function(e){return P.fromDom(e.dom.getRootNode())}:V,Q=function(e){var t=J(e);return K(t)?x.some(t):x.none()},ee=function(e){return P.fromDom(e.dom.host)},te=function(e){var t=L(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return Q(P.fromDom(t)).fold((function(){return n.body.contains(t)}),d(te,ee))},ne=function(e,t,n){var r=e.dom,i=c(n)?n:p;while(r.parentNode){r=r.parentNode;var o=P.fromDom(r);if(t(o))return x.some(o);if(i(o))break}return x.none()},re=function(e,t,n){return ne(e,(function(e){return R(e,t)}),n)},ie=function(e){return void 0!==e.style&&c(e.style.getPropertyValue)},oe=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||te(e)?i:ae(n,t)},ae=function(e,t){return ie(e)?e.style.getPropertyValue(t):""},se=function(e){return"rtl"===oe(e,"direction")?"rtl":"ltr"},ce=function(e,t){return D($(e),t)},ue=function(e,t){return ce(e,(function(e){return R(e,t)}))},le=function(e){return q(e).filter(B)},de=function(e,t){var n=t?re(e,"ol,ul"):x.some(e);return n.getOr(e)},fe=j("li"),he=function(e,t){var n=e.selection.getSelectedBlocks();n.length>0&&(w(n,(function(e){var n=P.fromDom(e),r=fe(n),i=de(n,r),o=le(i);o.each((function(e){var n=se(e);if(n!==t?X(i,"dir",t):se(i)!==t&&Y(i,"dir"),r){var o=ue(i,"li[dir]");w(o,(function(e){return Y(e,"dir")}))}}))})),e.nodeChanged())},pe=function(e){e.addCommand("mceDirectionLTR",(function(){he(e,"ltr")})),e.addCommand("mceDirectionRTL",(function(){he(e,"rtl")}))},ge=function(e,t){return function(n){var r=function(e){var r=P.fromDom(e.element);n.setActive(se(r)===t)};return e.on("NodeChange",r),function(){return e.off("NodeChange",r)}}},me=function(e){e.ui.registry.addToggleButton("ltr",{tooltip:"Left to right",icon:"ltr",onAction:function(){return e.execCommand("mceDirectionLTR")},onSetup:ge(e,"ltr")}),e.ui.registry.addToggleButton("rtl",{tooltip:"Right to left",icon:"rtl",onAction:function(){return e.execCommand("mceDirectionRTL")},onSetup:ge(e,"rtl")})};function ve(){e.add("directionality",(function(e){pe(e),me(e)}))}ve()})()},e4bb:function(e,t,n){"use strict";n("c403")},e562:function(e,t,n){(function(t){(function(){"use strict";var n=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)},i=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},o=function(e,t){return a((function(n,r){return e.eq(t(n),t(r))}))},a=function(e){return{eq:e}},s=a((function(e,t){return e===t})),c=s,u=function(e){return a((function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e.eq(t[i],n[i]))return!1;return!0}))},l=function(e,t){return o(u(e),(function(e){return i(e,t)}))},d=function(e){return a((function(t,n){var r=Object.keys(t),i=Object.keys(n);if(!l(c).eq(r,i))return!1;for(var o=r.length,a=0;a<o;a++){var s=r[a];if(!e.eq(t[s],n[s]))return!1}return!0}))},f=a((function(e,t){if(e===t)return!0;var i=n(e),o=n(t);return i===o&&(r(i)?e===t:"array"===i?u(f).eq(e,t):"object"===i&&d(f).eq(e,t))})),h=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},p=function(e){return function(t){return h(t)===e}},g=function(e){return function(t){return typeof t===e}},m=function(e){return function(t){return e===t}},v=p("string"),b=p("object"),y=p("array"),x=m(null),_=g("boolean"),w=m(void 0),D=function(e){return null===e||void 0===e},C=function(e){return!D(e)},k=g("function"),T=g("number"),S=function(){},A=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},E=function(e,t){return function(n){return e(t(n))}},U=function(e){return function(){return e}},O=function(e){return e},F=function(e,t){return e===t};function P(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var R=function(e){return function(t){return!e(t)}},N=function(e){return function(){throw new Error(e)}},M=function(e){return e()},I=function(e){e()},B=U(!1),L=U(!0),z=function(){return W},W=function(){var e=function(e){return e()},t=O,n={fold:function(e,t){return e()},isSome:B,isNone:L,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:U(null),getOrUndefined:U(void 0),or:t,orThunk:e,map:z,each:S,bind:z,exists:B,forall:L,filter:function(){return z()},toArray:function(){return[]},toString:U("none()")};return n}(),j=function(e){var t=U(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:L,isNone:B,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return j(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:W},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},H=function(e){return null===e||void 0===e?W:j(e)},V={some:j,none:z,from:H},q=Array.prototype.slice,$=Array.prototype.indexOf,G=Array.prototype.push,X=function(e,t){return $.call(e,t)},Y=function(e,t){var n=X(e,t);return-1===n?V.none():V.some(n)},K=function(e,t){return X(e,t)>-1},Z=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},J=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},Q=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},ee=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},te=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},ne=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},re=function(e,t,n){return ee(e,(function(e,r){n=t(n,e,r)})),n},ie=function(e,t,n){return Q(e,(function(e,r){n=t(n,e,r)})),n},oe=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return V.some(o);if(n(o,r))break}return V.none()},ae=function(e,t){return oe(e,t,B)},se=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return V.some(n)}return V.none()},ce=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!y(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);G.apply(t,e[n])}return t},ue=function(e,t){return ce(J(e,t))},le=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},de=function(e){var t=q.call(e,0);return t.reverse(),t},fe=function(e,t){return ne(e,(function(e){return!K(t,e)}))},he=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},pe=function(e,t){var n=q.call(e,0);return n.sort(t),n},ge=function(e,t){return t>=0&&t<e.length?V.some(e[t]):V.none()},me=function(e){return ge(e,0)},ve=function(e){return ge(e,e.length-1)},be=k(Array.from)?Array.from:function(e){return q.call(e)},ye=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return V.none()},xe=Object.keys,_e=Object.hasOwnProperty,we=function(e,t){for(var n=xe(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},De=function(e,t){return Ce(e,(function(e,n){return{k:n,v:t(e,n)}}))},Ce=function(e,t){var n={};return we(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},ke=function(e){return function(t,n){e[n]=t}},Te=function(e,t,n,r){var i={};return we(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},Se=function(e,t){var n={},r={};return Te(e,t,ke(n),ke(r)),{t:n,f:r}},Ae=function(e,t){var n={};return Te(e,t,ke(n),S),n},Ee=function(e,t){var n=[];return we(e,(function(e,r){n.push(t(e,r))})),n},Ue=function(e){return Ee(e,O)},Oe=function(e,t){return Fe(e,t)?V.from(e[t]):V.none()},Fe=function(e,t){return _e.call(e,t)},Pe=function(e,t){return Fe(e,t)&&void 0!==e[t]&&null!==e[t]},Re=function(e,t,n){return void 0===n&&(n=f),d(n).eq(e,t)},Ne=Array.isArray,Me=function(e){if(Ne(e))return e;for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n];return t},Ie=function(e,t,n){var r,i;if(!e)return!1;if(n=n||e,void 0!==e.length){for(r=0,i=e.length;r<i;r++)if(!1===t.call(n,e[r],r,e))return!1}else for(r in e)if(Fe(e,r)&&!1===t.call(n,e[r],r,e))return!1;return!0},Be=function(e,t){var n=[];return Ie(e,(function(r,i){n.push(t(r,i,e))})),n},Le=function(e,t){var n=[];return Ie(e,(function(r,i){t&&!t(r,i,e)||n.push(r)})),n},ze=function(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},We=function(e,t,n,r){for(var i=w(n)?e[0]:n,o=0;o<e.length;o++)i=t.call(r,i,e[o],o);return i},je=function(e,t,n){var r,i;for(r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return r;return-1},He=function(e){return e[e.length-1]},Ve=function(){return Ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ve.apply(this,arguments)};function qe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function $e(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var Ge=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},Xe=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),c=i||!o&&a&&r("(min-device-width:768px)"),u=o||a&&!c,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!u&&!c&&!l;return{isiPad:U(i),isiPhone:U(o),isTablet:U(c),isPhone:U(u),isTouch:U(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:U(l),isDesktop:U(d)}},Ye=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},Ke=function(e,t){var n=Ye(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Qe(r(1),r(2))},Ze=function(e,t){var n=String(t).toLowerCase();return 0===e.length?Je():Ke(e,n)},Je=function(){return Qe(0,0)},Qe=function(e,t){return{major:e,minor:t}},et={nu:Qe,detect:Ze,unknown:Je},tt=function(e,t){return ye(t.brands,(function(t){var n=t.brand.toLowerCase();return ae(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:et.nu(parseInt(t.version,10),0)}}))}))},nt=function(e,t){var n=String(t).toLowerCase();return ae(e,(function(e){return e.search(n)}))},rt=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},it=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ot=function(e,t){return e.substring(t)},at=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},st=function(e,t){return ut(e,t)?ot(e,t.length):e},ct=function(e,t){return-1!==e.indexOf(t)},ut=function(e,t){return at(e,t,0)},lt=function(e){return function(t){return t.replace(e,"")}},dt=lt(/^\s+|\s+$/g),ft=lt(/^\s+/g),ht=lt(/\s+$/g),pt=function(e){return e.length>0},gt=function(e){return!pt(e)},mt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,vt=function(e){return function(t){return ct(t,e)}},bt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ct(e,"edge/")&&ct(e,"chrome")&&ct(e,"safari")&&ct(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,mt],search:function(e){return ct(e,"chrome")&&!ct(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ct(e,"msie")||ct(e,"trident")}},{name:"Opera",versionRegexes:[mt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:vt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:vt("firefox")},{name:"Safari",versionRegexes:[mt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ct(e,"safari")||ct(e,"mobile/"))&&ct(e,"applewebkit")}}],yt=[{name:"Windows",search:vt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ct(e,"iphone")||ct(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:vt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:vt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:vt("linux"),versionRegexes:[]},{name:"Solaris",search:vt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:vt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:vt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],xt={browsers:U(bt),oses:U(yt)},_t="Edge",wt="Chrome",Dt="IE",Ct="Opera",kt="Firefox",Tt="Safari",St=function(){return At({current:void 0,version:et.unknown()})},At=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(_t),isChrome:r(wt),isIE:r(Dt),isOpera:r(Ct),isFirefox:r(kt),isSafari:r(Tt)}},Et={unknown:St,nu:At,edge:U(_t),chrome:U(wt),ie:U(Dt),opera:U(Ct),firefox:U(kt),safari:U(Tt)},Ut="Windows",Ot="iOS",Ft="Android",Pt="Linux",Rt="OSX",Nt="Solaris",Mt="FreeBSD",It="ChromeOS",Bt=function(){return Lt({current:void 0,version:et.unknown()})},Lt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Ut),isiOS:r(Ot),isAndroid:r(Ft),isOSX:r(Rt),isLinux:r(Pt),isSolaris:r(Nt),isFreeBSD:r(Mt),isChromeOS:r(It)}},zt={unknown:Bt,nu:Lt,windows:U(Ut),ios:U(Ot),android:U(Ft),linux:U(Pt),osx:U(Rt),solaris:U(Nt),freebsd:U(Mt),chromeos:U(It)},Wt=function(e,t,n){var r=xt.browsers(),i=xt.oses(),o=t.bind((function(e){return tt(r,e)})).orThunk((function(){return rt(r,e)})).fold(Et.unknown,Et.nu),a=it(i,e).fold(zt.unknown,zt.nu),s=Xe(a,o,e,n);return{browser:o,os:a,deviceType:s}},jt={detect:Wt},Ht=function(e){return window.matchMedia(e).matches},Vt=Ge((function(){return jt.detect(navigator.userAgent,V.from(navigator.userAgentData),Ht)})),qt=function(){return Vt()},$t=navigator.userAgent,Gt=qt(),Xt=Gt.browser,Yt=Gt.os,Kt=Gt.deviceType,Zt=/WebKit/.test($t)&&!Xt.isEdge(),Jt="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Qt=-1!==$t.indexOf("Windows Phone"),en={opera:Xt.isOpera(),webkit:Zt,ie:!(!Xt.isIE()&&!Xt.isEdge())&&Xt.version.major,gecko:Xt.isFirefox(),mac:Yt.isOSX()||Yt.isiOS(),iOS:Kt.isiPad()||Kt.isiPhone(),android:Yt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Xt.isIE()?document.documentMode||7:10,fileApi:Jt,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Xt.isIE(),desktop:Kt.isDesktop(),windowsPhone:Qt,browser:{current:Xt.current,version:Xt.version,isChrome:Xt.isChrome,isEdge:Xt.isEdge,isFirefox:Xt.isFirefox,isIE:Xt.isIE,isOpera:Xt.isOpera,isSafari:Xt.isSafari},os:{current:Yt.current,version:Yt.version,isAndroid:Yt.isAndroid,isChromeOS:Yt.isChromeOS,isFreeBSD:Yt.isFreeBSD,isiOS:Yt.isiOS,isLinux:Yt.isLinux,isOSX:Yt.isOSX,isSolaris:Yt.isSolaris,isWindows:Yt.isWindows},deviceType:{isDesktop:Kt.isDesktop,isiPad:Kt.isiPad,isiPhone:Kt.isiPhone,isPhone:Kt.isPhone,isTablet:Kt.isTablet,isTouch:Kt.isTouch,isWebView:Kt.isWebView}},tn=/^\s*|\s*$/g,nn=function(e){return null===e||void 0===e?"":(""+e).replace(tn,"")},rn=function(e,t){return t?!("array"!==t||!Ne(e))||typeof e===t:void 0!==e},on=function(e,t,n){var r;e=e||[],t=t||",","string"===typeof e&&(e=e.split(t)),n=n||{},r=e.length;while(r--)n[e[r]]={};return n},an=Fe,sn=function(e,t,n){var r,i,o,a=this,s=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var c=e[3].match(/(^|\.)(\w+)$/i)[2],u=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!u[c]){if("static"===e[2])return u[c]=t,void(this.onCreate&&this.onCreate(e[2],e[3],u[c]));t[c]||(t[c]=function(){},s=1),u[c]=t[c],a.extend(u[c].prototype,t),e[5]&&(r=a.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=u[c],u[c]=s?function(){return r[i].apply(this,arguments)}:function(){return this.parent=r[i],o.apply(this,arguments)},u[c].prototype[c]=u[c],a.each(r,(function(e,t){u[c].prototype[t]=r[t]})),a.each(t,(function(e,t){r[t]?u[c].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==c&&(u[c].prototype[t]=e)}))),a.each(t.static,(function(e,t){u[c][t]=e}))}},cn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var i=t[r];for(var o in i)if(Fe(i,o)){var a=i[o];void 0!==a&&(e[o]=a)}}return e},un=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Ie(e,(function(e,i){if(!1===t.call(r,e,i,n))return!1;un(e,t,n,r)})))},ln=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)r=e[n],t[r]||(t[r]={}),t=t[r];return t},dn=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0,r=e.length;n<r;n++)if(t=t[e[n]],!t)break;return t},fn=function(e,t){return!e||rn(e,"array")?e:Be(e.split(t||","),nn)},hn=function(e){var t=en.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},pn={trim:nn,isArray:Ne,is:rn,toArray:Me,makeMap:on,each:Ie,map:Be,grep:Le,inArray:ze,hasOwn:an,extend:cn,create:sn,walk:un,createNS:ln,resolve:dn,explode:fn,_addCacheSuffix:hn},gn=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return bn(r.childNodes[0])},mn=function(e,t){var n=t||document,r=n.createElement(e);return bn(r)},vn=function(e,t){var n=t||document,r=n.createTextNode(e);return bn(r)},bn=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},yn=function(e,t,n){return V.from(e.dom.elementFromPoint(t,n)).map(bn)},xn={fromHtml:gn,fromTag:mn,fromText:vn,fromDom:bn,fromPoint:yn},_n=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},i=t(e);do{i=i.bind(r)}while(i.isSome());return n},wn=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Dn=function(e,t){return wn(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Cn=8,kn=9,Tn=11,Sn=1,An=3,En=function(e,t){var n=e.dom;if(n.nodeType!==Sn)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Un=function(e){return e.nodeType!==Sn&&e.nodeType!==kn&&e.nodeType!==Tn||0===e.childElementCount},On=function(e,t){var n=void 0===t?document:t.dom;return Un(n)?[]:J(n.querySelectorAll(e),xn.fromDom)},Fn=function(e,t){var n=void 0===t?document:t.dom;return Un(n)?V.none():V.from(n.querySelector(e)).map(xn.fromDom)},Pn=function(e,t){return e.dom===t.dom},Rn=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},Nn=function(e,t){return Dn(e.dom,t.dom)},Mn=function(e,t){return qt().browser.isIE()?Nn(e,t):Rn(e,t)};"undefined"!==typeof window?window:Function("return this;")();var In=function(e){var t=e.dom.nodeName;return t.toLowerCase()},Bn=function(e){return e.dom.nodeType},Ln=function(e){return function(t){return Bn(t)===e}},zn=function(e){return Bn(e)===Cn||"#comment"===In(e)},Wn=Ln(Sn),jn=Ln(An),Hn=Ln(kn),Vn=Ln(Tn),qn=function(e){return function(t){return Wn(t)&&In(t)===e}},$n=function(e){return xn.fromDom(e.dom.ownerDocument)},Gn=function(e){return Hn(e)?e:$n(e)},Xn=function(e){return xn.fromDom(Gn(e).dom.documentElement)},Yn=function(e){return xn.fromDom(Gn(e).dom.defaultView)},Kn=function(e){return V.from(e.dom.parentNode).map(xn.fromDom)},Zn=function(e,t){var n=k(t)?t:B,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=xn.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},Jn=function(e){var t=function(t){return ne(t,(function(t){return!Pn(e,t)}))};return Kn(e).map(rr).map(t).getOr([])},Qn=function(e){return V.from(e.dom.previousSibling).map(xn.fromDom)},er=function(e){return V.from(e.dom.nextSibling).map(xn.fromDom)},tr=function(e){return de(_n(e,Qn))},nr=function(e){return _n(e,er)},rr=function(e){return J(e.dom.childNodes,xn.fromDom)},ir=function(e,t){var n=e.dom.childNodes;return V.from(n[t]).map(xn.fromDom)},or=function(e){return ir(e,0)},ar=function(e){return ir(e,e.dom.childNodes.length-1)},sr=function(e){return e.dom.childNodes.length},cr=function(e){var t=e.dom.head;if(null===t||void 0===t)throw new Error("Head is not available yet");return xn.fromDom(t)},ur=function(e){return Vn(e)&&C(e.dom.host)},lr=k(Element.prototype.attachShadow)&&k(Node.prototype.getRootNode),dr=U(lr),fr=lr?function(e){return xn.fromDom(e.dom.getRootNode())}:Gn,hr=function(e){return ur(e)?e:cr(Gn(e))},pr=function(e){var t=fr(e);return ur(t)?V.some(t):V.none()},gr=function(e){return xn.fromDom(e.dom.host)},mr=function(e){if(dr()&&C(e.target)){var t=xn.fromDom(e.target);if(Wn(t)&&vr(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return me(n)}}return V.from(e.target)},vr=function(e){return C(e.dom.shadowRoot)},br=function(e,t){var n=Kn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},yr=function(e,t){var n=er(e);n.fold((function(){var n=Kn(e);n.each((function(e){_r(e,t)}))}),(function(e){br(e,t)}))},xr=function(e,t){var n=or(e);n.fold((function(){_r(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},_r=function(e,t){e.dom.appendChild(t.dom)},wr=function(e,t){br(e,t),_r(t,e)},Dr=function(e,t){Q(t,(function(t){br(e,t)}))},Cr=function(e,t){Q(t,(function(t){_r(e,t)}))},kr=function(e){e.dom.textContent="",Q(rr(e),(function(e){Tr(e)}))},Tr=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Sr=function(e){var t=rr(e);t.length>0&&Dr(e,t),Tr(e)},Ar=function(e){var t=jn(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return pr(xn.fromDom(t)).fold((function(){return n.body.contains(t)}),E(Ar,gr))},Er=function(e,t){var n=function(n,r){return Er(e+n,t+r)};return{left:e,top:t,translate:n}},Ur=Er,Or=function(e){var t=e.getBoundingClientRect();return Ur(t.left,t.top)},Fr=function(e,t){return void 0!==e?e:void 0!==t?t:0},Pr=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return Ur(n.offsetLeft,n.offsetTop);var o=Fr(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=Fr(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=Fr(i.clientTop,n.clientTop),c=Fr(i.clientLeft,n.clientLeft);return Rr(e).translate(a-c,o-s)},Rr=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Ur(r.offsetLeft,r.offsetTop):Ar(e)?Or(t):Ur(0,0)},Nr=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Ur(n,r)},Mr=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(e,t)},Ir=function(e,t){var n=qt().browser.isSafari();n&&k(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},Br=function(e){var t=void 0===e?window:e;return qt().browser.isFirefox()?V.none():V.from(t["visualViewport"])},Lr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},zr=function(e){var t=void 0===e?window:e,n=t.document,r=Nr(xn.fromDom(n));return Br(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return Lr(r.left,r.top,n,i)}),(function(e){return Lr(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},Wr=function(e){return function(t){return!!t&&t.nodeType===e}},jr=function(e){return!!e&&!Object.getPrototypeOf(e)},Hr=Wr(1),Vr=function(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return K(t,n)}return!1}},qr=function(e,t){var n=t.toLowerCase().split(" ");return function(t){if(Hr(t))for(var r=0;r<n.length;r++){var i=t.ownerDocument.defaultView.getComputedStyle(t,null),o=i?i.getPropertyValue(e):null;if(o===n[r])return!0}return!1}},$r=function(e){return function(t){return Hr(t)&&t.hasAttribute(e)}},Gr=function(e,t){return function(n){return Hr(n)&&n.getAttribute(e)===t}},Xr=function(e){return Hr(e)&&e.hasAttribute("data-mce-bogus")},Yr=function(e){return Hr(e)&&"all"===e.getAttribute("data-mce-bogus")},Kr=function(e){return Hr(e)&&"TABLE"===e.tagName},Zr=function(e){return function(t){if(Hr(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},Jr=Vr(["textarea","input"]),Qr=Wr(3),ei=Wr(8),ti=Wr(9),ni=Wr(11),ri=Vr(["br"]),ii=Vr(["img"]),oi=Zr("true"),ai=Zr("false"),si=Vr(["td","th"]),ci=Vr(["video","audio","object","embed"]),ui=function(e,t,n){return void 0===n&&(n=F),e.exists((function(e){return n(e,t)}))},li=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},di=function(e,t,n){return e.isSome()&&t.isSome()?V.some(n(e.getOrDie(),t.getOrDie())):V.none()},fi=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?V.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):V.none()},hi=function(e,t){return e?V.some(t):V.none()},pi=function(e){return void 0!==e.style&&k(e.style.getPropertyValue)},gi=function(e,t,n){if(!(v(n)||_(n)||T(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},mi=function(e,t,n){gi(e.dom,t,n)},vi=function(e,t){var n=e.dom;we(t,(function(e,t){gi(n,t,e)}))},bi=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},yi=function(e,t){return V.from(bi(e,t))},xi=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},_i=function(e,t){e.dom.removeAttribute(t)},wi=function(e){return ie(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},Di=function(e,t,n){if(!v(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);pi(e)&&e.style.setProperty(t,n)},Ci=function(e,t){var n=e.dom;we(t,(function(e,t){Di(n,t,e)}))},ki=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||Ar(e)?i:Ti(n,t)},Ti=function(e,t){return pi(e)?e.style.getPropertyValue(t):""},Si=function(e,t){var n=e.dom,r=Ti(n,t);return V.from(r).filter((function(e){return e.length>0}))},Ai=function(e){var t={},n=e.dom;if(pi(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);t[i]=n.style[i]}return t},Ei=function(e){return e.dom.offsetWidth},Ui=qt().browser,Oi=function(e){return ae(e,Wn)},Fi=function(e){return Ui.isFirefox()&&"table"===In(e)?Oi(rr(e)).filter((function(e){return"caption"===In(e)})).bind((function(e){return Oi(nr(e)).map((function(t){var n=t.dom.offsetTop,r=e.dom.offsetTop,i=e.dom.offsetHeight;return n<=r?-i:0}))})).getOr(0):0},Pi=function(e,t){return e.children&&K(e.children,t)},Ri=function(e,t,n){var r=0,i=0,o=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===ki(xn.fromDom(e),"position")){var a=t.getBoundingClientRect();return r=a.left+(o.documentElement.scrollLeft||e.scrollLeft)-o.documentElement.clientLeft,i=a.top+(o.documentElement.scrollTop||e.scrollTop)-o.documentElement.clientTop,{x:r,y:i}}var s=t;while(s&&s!==n&&s.nodeType&&!Pi(s,n)){var c=s;r+=c.offsetLeft||0,i+=c.offsetTop||0,s=c.offsetParent}s=t.parentNode;while(s&&s!==n&&s.nodeType&&!Pi(s,n))r-=s.scrollLeft||0,i-=s.scrollTop||0,s=s.parentNode;i+=Fi(xn.fromDom(t))}return{x:r,y:i}},Ni={},Mi={exports:Ni};(function(e,n,r,i){(function(t,i){"object"===typeof n&&"undefined"!==typeof r?r.exports=i():"function"===typeof e&&e.amd?e(i):(t="undefined"!==typeof globalThis?globalThis:t||self,t.EphoxContactWrapper=i())})(this,(function(){var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},n={exports:{}};(function(t){(function(e){var n=setTimeout;function r(){}function i(e,t){return function(){e.apply(t,arguments)}}function o(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void c(t.promise,i)}s(t.promise,r)}else(1===e._state?s:c)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void u(e);if("function"===typeof n)return void d(i(n,t),e)}e._state=1,e._value=t,u(e)}catch(r){c(e,r)}}function c(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(r){if(n)return;n=!0,c(t,r)}}o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},o.all=function(e){var t=Array.prototype.slice.call(e);return new o((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(c){n(c)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},o.resolve=function(e){return e&&"object"===typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},o._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},o._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},t.exports?t.exports=o:e.Promise||(e.Promise=o)})(e)})(n);var r=n.exports,i=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),o={boltExport:i.Promise||r};return o}))})(void 0,Ni,Mi);var Ii=Mi.exports.boltExport,Bi=function(e){var t=V.none(),n=[],r=function(e){return Bi((function(t){i((function(n){t(e(n))}))}))},i=function(e){a()?c(e):n.push(e)},o=function(e){a()||(t=V.some(e),s(n),n=[])},a=function(){return t.isSome()},s=function(e){Q(e,c)},c=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(o),{get:i,map:r,isReady:a}},Li=function(e){return Bi((function(t){t(e)}))},zi={nu:Bi,pure:Li},Wi=function(e){setTimeout((function(){throw e}),0)},ji=function(e){var t=function(t){e().then(t,Wi)},n=function(t){return ji((function(){return e().then(t)}))},r=function(t){return ji((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return ji((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return zi.nu(t)},a=function(){var t=null;return ji((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},Hi=function(e){return ji((function(){return new Ii(e)}))},Vi=function(e){return ji((function(){return Ii.resolve(e)}))},qi={nu:Hi,pure:Vi},$i=function(e,t){return t((function(t){var n=[],r=0,i=function(i){return function(o){n[i]=o,r++,r>=e.length&&t(n)}};0===e.length?t([]):Q(e,(function(e,t){e.get(i(t))}))}))},Gi=function(e){return $i(e,qi.nu)},Xi=function(e){var t=function(t){return Xi(e)},n=function(t){return Xi(e)},r=function(t){return Xi(t(e))},i=function(t){return Xi(e)},o=function(t){t(e)},a=function(t){return t(e)},s=function(t,n){return n(e)},c=function(t){return t(e)},u=function(t){return t(e)},l=function(){return V.some(e)};return{isValue:L,isError:B,getOr:U(e),getOrThunk:U(e),getOrDie:U(e),or:t,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:c,forall:u,toOptional:l}},Yi=function(e){var t=function(e){return e()},n=function(){return N(String(e))()},r=O,i=function(e){return e()},o=function(t){return Yi(e)},a=function(t){return Yi(t(e))},s=function(t){return Yi(e)},c=function(t,n){return t(e)};return{isValue:B,isError:L,getOr:O,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:c,map:o,mapError:a,each:S,bind:s,exists:B,forall:L,toOptional:V.none}},Ki=function(e,t){return e.fold((function(){return Yi(t)}),Xi)},Zi={value:Xi,error:Yi,fromOption:Ki},Ji=function(e){if(!y(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return Q(e,(function(r,i){var o=xe(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!y(s))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+o);var c=function(e){var r=xe(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=le(t,(function(e){return K(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:c,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},Qi={generate:Ji};Qi.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var eo=function(e){return e.fold(O,O)};function to(e,t,n,r,i){return e(n,r)?V.some(n):k(i)&&i(n)?V.none():t(n,r,i)}var no,ro,io,oo,ao,so,co,uo,lo,fo,ho,po,go,mo,vo,bo,yo,xo,_o,wo=function(e,t,n){var r=e.dom,i=k(n)?n:B;while(r.parentNode){r=r.parentNode;var o=xn.fromDom(r);if(t(o))return V.some(o);if(i(o))break}return V.none()},Do=function(e,t,n){var r=function(e,t){return t(e)};return to(r,wo,e,t,n)},Co=function(e,t){var n=e.dom;return n.parentNode?ko(xn.fromDom(n.parentNode),(function(n){return!Pn(e,n)&&t(n)})):V.none()},ko=function(e,t){var n=function(e){return t(xn.fromDom(e))},r=ae(e.dom.childNodes,n);return r.map(xn.fromDom)},To=function(e,t,n){return wo(e,(function(e){return En(e,t)}),n)},So=function(e,t){return Fn(t,e)},Ao=function(e,t,n){var r=function(e,t){return En(e,t)};return to(r,To,e,t,n)},Eo=window.Promise?window.Promise:Ii,Uo=function(e,t){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],i=function(e){window.setTimeout(e,0)},o=0;o<r.length&&!n;o++)n=window[r[o]+"RequestAnimationFrame"];n||(n=i),n(e,t)},Oo=function(e,t){return"number"!==typeof t&&(t=0),setTimeout(e,t)},Fo=function(e,t){return"number"!==typeof t&&(t=1),setInterval(e,t)},Po=function(e){return clearTimeout(e)},Ro=function(e){return clearInterval(e)},No=function(e,t){var n,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];clearTimeout(n),n=Oo((function(){e.apply(this,r)}),t)};return r.stop=function(){clearTimeout(n)},r},Mo={requestAnimationFrame:function(e,t){no?no.then(e):no=new Eo((function(e){t||(t=document.body),Uo(e,t)})).then(e)},setTimeout:Oo,setInterval:Fo,setEditorTimeout:function(e,t,n){return Oo((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,n){var r=Fo((function(){e.removed?clearInterval(r):t()}),n);return r},debounce:No,throttle:No,clearInterval:Ro,clearTimeout:Po},Io=function(e,t){void 0===t&&(t={});var n=0,r={},i=xn.fromDom(e),o=Gn(i),a=t.maxLoadTime||5e3,s=function(e){t.referrerPolicy=e},c=function(e){_r(hr(i),e)},u=function(e){var t=hr(i);So(t,"#"+e).each(Tr)},l=function(e){return Oe(r,e).getOrThunk((function(){return{id:"mce-u"+n++,passed:[],failed:[],count:0}}))},d=function(n,i,s){var u,d=pn._addCacheSuffix(n),f=l(d);r[d]=f,f.count++;var h=function(e,t){var n=e.length;while(n--)e[n]();f.status=t,f.passed=[],f.failed=[],u&&(u.onload=null,u.onerror=null,u=null)},p=function(){return h(f.passed,2)},g=function(){return h(f.failed,3)},m=function(e,t){e()||(Date.now()-y<a?Mo.setTimeout(t):g())},v=function(){m((function(){var t=e.styleSheets,n=t.length;while(n--){var r=t[n],i=r.ownerNode;if(i&&i.id===u.id)return p(),!0}return!1}),v)};if(i&&f.passed.push(i),s&&f.failed.push(s),1!==f.status)if(2!==f.status)if(3!==f.status){f.status=1;var b=xn.fromTag("link",o.dom);vi(b,{rel:"stylesheet",type:"text/css",id:f.id});var y=Date.now();t.contentCssCors&&mi(b,"crossOrigin","anonymous"),t.referrerPolicy&&mi(b,"referrerpolicy",t.referrerPolicy),u=b.dom,u.onload=v,u.onerror=g,c(b),mi(b,"href",d)}else g();else p()},f=function(e){return qi.nu((function(t){d(e,A(t,U(Zi.value(e))),A(t,U(Zi.error(e))))}))},h=function(e,t,n){Gi(J(e,f)).get((function(e){var r=te(e,(function(e){return e.isValue()}));r.fail.length>0?n(r.fail.map(eo)):t(r.pass.map(eo))}))},p=function(e){var t=pn._addCacheSuffix(e);Oe(r,t).each((function(e){var n=--e.count;0===n&&(delete r[t],u(e.id))}))},g=function(e){Q(e,(function(e){p(e)}))};return{load:d,loadAll:h,unload:p,unloadAll:g,_setReferrerPolicy:s}},Bo=function(){var e=new WeakMap,t=function(t,n){var r=fr(t),i=r.dom;return V.from(e.get(i)).getOrThunk((function(){var t=Io(i,n);return e.set(i,t),t}))};return{forElement:t}},Lo=Bo(),zo=function(){function e(e,t){this.node=e,this.rootNode=t,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(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var i,o;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(i=e[n],i)return i;for(o=e.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[n],i)return i}}},e.prototype.findPreviousNode=function(e,t,n,r){var i,o,a;if(e){if(i=e[n],this.rootNode&&i===this.rootNode)return;if(i){if(!r)for(a=i[t];a;a=a[t])if(!a[t])return a;return i}if(o=e.parentNode,o&&o!==this.rootNode)return o}},e}(),Wo=["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"],jo=["td","th"],Ho=["thead","tbody","tfoot"],Vo=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],qo=["h1","h2","h3","h4","h5","h6"],$o=["li","dd","dt"],Go=["ul","ol","dl"],Xo=["pre","script","textarea","style"],Yo=function(e){var t;return function(n){return t=t||he(e,L),Fe(t,In(n))}},Ko=Yo(qo),Zo=Yo(Wo),Jo=function(e){return"table"===In(e)},Qo=function(e){return Wn(e)&&!Zo(e)},ea=function(e){return Wn(e)&&"br"===In(e)},ta=Yo(Vo),na=Yo(Go),ra=Yo($o),ia=Yo(Ho),oa=Yo(jo),aa=Yo(Xo),sa=function(e,t,n){return To(e,t,n).isSome()},ca="\ufeff",ua=" ",la=function(e){return e===ca},da=function(e){return e.replace(/\uFEFF/g,"")},fa=ca,ha=la,pa=da,ga=Hr,ma=Qr,va=function(e){return ma(e)&&(e=e.parentNode),ga(e)&&e.hasAttribute("data-mce-caret")},ba=function(e){return ma(e)&&ha(e.data)},ya=function(e){return va(e)||ba(e)},xa=function(e){return e.firstChild!==e.lastChild||!ri(e.firstChild)},_a=function(e,t){var n=e.ownerDocument,r=n.createTextNode(fa),i=e.parentNode;if(t){o=e.previousSibling;if(ma(o)){if(ya(o))return o;if(Sa(o))return o.splitText(o.data.length-1)}i.insertBefore(r,e)}else{var o=e.nextSibling;if(ma(o)){if(ya(o))return o;if(Ta(o))return o.splitText(1),o}e.nextSibling?i.insertBefore(r,e.nextSibling):i.appendChild(r)}return r},wa=function(e){var t=e.container();return!!Qr(t)&&(t.data.charAt(e.offset())===fa||e.isAtStart()&&ba(t.previousSibling))},Da=function(e){var t=e.container();return!!Qr(t)&&(t.data.charAt(e.offset()-1)===fa||e.isAtEnd()&&ba(t.nextSibling))},Ca=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},ka=function(e,t,n){var r=t.ownerDocument,i=r.createElement(e);i.setAttribute("data-mce-caret",n?"before":"after"),i.setAttribute("data-mce-bogus","all"),i.appendChild(Ca());var o=t.parentNode;return n?o.insertBefore(i,t):t.nextSibling?o.insertBefore(i,t.nextSibling):o.appendChild(i),i},Ta=function(e){return ma(e)&&e.data[0]===fa},Sa=function(e){return ma(e)&&e.data[e.data.length-1]===fa},Aa=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];Xr(n)&&n.parentNode.removeChild(n)},Ea=function(e){return e&&e.hasAttribute("data-mce-caret")?(Aa(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},Ua=function(e){return va(e.startContainer)},Oa=oi,Fa=ai,Pa=ri,Ra=Qr,Na=Vr(["script","style","textarea"]),Ma=Vr(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Ia=Vr(["table"]),Ba=ya,La=function(e){return!Ba(e)&&(Ra(e)?!Na(e.parentNode):Ma(e)||Pa(e)||Ia(e)||Wa(e))},za=function(e){return Hr(e)&&"true"===e.getAttribute("unselectable")},Wa=function(e){return!1===za(e)&&Fa(e)},ja=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(Wa(e))return!1;if(Oa(e))return!0}return!0},Ha=function(e){return!!Wa(e)&&!0!==ie(be(e.getElementsByTagName("*")),(function(e,t){return e||Oa(t)}),!1)},Va=function(e){return Ma(e)||Ha(e)},qa=function(e,t){return La(e)&&ja(e,t)},$a=/^[ \t\r\n]*$/,Ga=function(e){return $a.test(e)},Xa=function(e,t){var n=xn.fromDom(t),r=xn.fromDom(e);return sa(r,"pre,code",P(Pn,n))},Ya=function(e,t){return Qr(e)&&Ga(e.data)&&!1===Xa(e,t)},Ka=function(e){return Hr(e)&&"A"===e.nodeName&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},Za=function(e,t){return La(e)&&!1===Ya(e,t)||Ka(e)||Ja(e)},Ja=$r("data-mce-bookmark"),Qa=$r("data-mce-bogus"),es=Gr("data-mce-bogus","all"),ts=function(e,t){var n=0;if(Za(e,e))return!1;var r=e.firstChild;if(!r)return!0;var i=new zo(r,e);do{if(t){if(es(r)){r=i.next(!0);continue}if(Qa(r)){r=i.next();continue}}if(ri(r))n++,r=i.next();else{if(Za(r,e))return!1;r=i.next()}}while(r);return n<=1},ns=function(e,t){return void 0===t&&(t=!0),ts(e.dom,t)},rs=function(e){return"span"===e.nodeName.toLowerCase()},is=function(e,t){return C(e)&&(Za(e,t)||Qo(xn.fromDom(e)))},os=function(e,t){var n=new zo(e,t).prev(!1),r=new zo(e,t).next(!1),i=w(n)||is(n,t),o=w(r)||is(r,t);return i&&o},as=function(e){return rs(e)&&"bookmark"===e.getAttribute("data-mce-type")},ss=function(e,t){return Qr(e)&&e.data.length>0&&os(e,t)},cs=function(e){return!!Hr(e)&&e.childNodes.length>0},us=function(e){return ni(e)||ti(e)},ls=function(e,t,n){var r=n||t;if(Hr(t)&&as(t))return t;for(var i=t.childNodes,o=i.length-1;o>=0;o--)ls(e,i[o],r);if(Hr(t)){var a=t.childNodes;1===a.length&&as(a[0])&&t.parentNode.insertBefore(a[0],t)}return us(t)||Za(t,r)||cs(t)||ss(t,r)||e.remove(t),t},ds=pn.makeMap,fs=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hs=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ps=/[<>&\"\']/g,gs=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,ms={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},vs={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},bs={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},ys=function(e){var t=xn.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},xs=function(e,t){var n,r,i,o={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),vs[r]||(i="&"+e[n+1]+";",o[r]=i,o[i]=r);return o}},_s=xs("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),ws=function(e,t){return e.replace(t?fs:hs,(function(e){return vs[e]||e}))},Ds=function(e){return(""+e).replace(ps,(function(e){return vs[e]||e}))},Cs=function(e,t){return e.replace(t?fs:hs,(function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":vs[e]||"&#"+e.charCodeAt(0)+";"}))},ks=function(e,t,n){return n=n||_s,e.replace(t?fs:hs,(function(e){return vs[e]||n[e]||e}))},Ts=function(e,t){var n=xs(t)||_s,r=function(e,t){return e.replace(t?fs:hs,(function(e){return void 0!==vs[e]?vs[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))},i=function(e,t){return ks(e,t,n)},o=ds(e.replace(/\+/g,","));return o.named&&o.numeric?r:o.named?t?i:ks:o.numeric?Cs:ws},Ss=function(e){return e.replace(gs,(function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):ms[t]||String.fromCharCode(t)):bs[e]||_s[e]||ys(e)}))},As={encodeRaw:ws,encodeAllRaw:Ds,encodeNumeric:Cs,encodeNamed:ks,getEncodeFunc:Ts,decode:Ss},Es={},Us={},Os=pn.makeMap,Fs=pn.each,Ps=pn.extend,Rs=pn.explode,Ns=pn.inArray,Ms=function(e,t){return e=pn.trim(e),e?e.split(t||" "):[]},Is=function(e,t){var n=Os(e," ",Os(e.toUpperCase()," "));return Ps(n,t)},Bs=function(e){return Is("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},Ls=function(e){var t,n,r,i,o,a,s={},c=function(e,n,r){var i,o,a,c=function(e,t){var n,r,i={};for(n=0,r=e.length;n<r;n++)i[e[n]]=t||{};return i};r=r||[],n=n||"","string"===typeof r&&(r=Ms(r));var u=Ms(e);i=u.length;while(i--)o=Ms([t,n].join(" ")),a={attributes:c(o),attributesOrder:o,children:c(r,Us)},s[u[i]]=a},u=function(e,t){var n,r,i,o,a=Ms(e);n=a.length;var c=Ms(t);while(n--)for(r=s[a[n]],i=0,o=c.length;i<o;i++)r.attributes[c[i]]={},r.attributesOrder.push(c[i])};return Es[e]?Es[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),Fs(Ms(a),(function(e){c(e,"",r)})),o="center dir isindex noframes",n=[n,o].join(" "),i=[n,r].join(" "),Fs(Ms(o),(function(e){c(e,"",i)}))),i=i||[n,r].join(" "),c("html","manifest","head body"),c("head","","base command link meta noscript script style title"),c("title hr noscript br"),c("base","href target"),c("link","href rel media hreflang type sizes hreflang"),c("meta","name http-equiv content charset"),c("style","media type scoped"),c("script","src async defer type charset"),c("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",i),c("address dt dd div caption","",i),c("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),c("blockquote","cite",i),c("ol","reversed start type","li"),c("ul","","li"),c("li","value",i),c("dl","","dt dd"),c("a","href target rel media hreflang type",r),c("q","cite",r),c("ins del","cite datetime",i),c("img","src sizes srcset alt usemap ismap width height"),c("iframe","src name width height",i),c("embed","src type width height"),c("object","data type typemustmatch name usemap form width height",[i,"param"].join(" ")),c("param","name value"),c("map","name",[i,"area"].join(" ")),c("area","alt coords shape href target rel media hreflang type"),c("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),c("colgroup","span","col"),c("col","span"),c("tbody thead tfoot","","tr"),c("tr","","td th"),c("td","colspan rowspan headers",i),c("th","colspan rowspan headers scope abbr",i),c("form","accept-charset action autocomplete enctype method name novalidate target",i),c("fieldset","disabled form name",[i,"legend"].join(" ")),c("label","form for",r),c("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),c("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?i:r),c("select","disabled form multiple name required size","option optgroup"),c("optgroup","disabled label","option"),c("option","disabled label selected value"),c("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),c("menu","type label",[i,"li"].join(" ")),c("noscript","",i),"html4"!==e&&(c("wbr"),c("ruby","",[r,"rt rp"].join(" ")),c("figcaption","",i),c("mark rt rp summary bdi","",r),c("canvas","width height",i),c("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[i,"track source"].join(" ")),c("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[i,"track source"].join(" ")),c("picture","","img source"),c("source","src srcset type media sizes"),c("track","kind src srclang label default"),c("datalist","",[r,"option"].join(" ")),c("article section nav aside main header footer","",i),c("hgroup","","h1 h2 h3 h4 h5 h6"),c("figure","",[i,"figcaption"].join(" ")),c("time","datetime",r),c("dialog","open",i),c("command","type label icon disabled checked radiogroup command"),c("output","for form name",r),c("progress","value max",r),c("meter","value min max low high optimum",r),c("details","open",[i,"summary"].join(" ")),c("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(u("script","language xml:space"),u("style","xml:space"),u("object","declare classid code codebase codetype archive standby align border hspace vspace"),u("embed","align name hspace vspace"),u("param","valuetype type"),u("a","charset name rev shape coords"),u("br","clear"),u("applet","codebase archive code object alt name width height align hspace vspace"),u("img","name longdesc align border hspace vspace"),u("iframe","longdesc frameborder marginwidth marginheight scrolling align"),u("font basefont","size color face"),u("input","usemap align"),u("select"),u("textarea"),u("h1 h2 h3 h4 h5 h6 div p legend caption","align"),u("ul","type compact"),u("li","type"),u("ol dl menu dir","compact"),u("pre","width xml:space"),u("hr","align noshade size width"),u("isindex","prompt"),u("table","summary width frame rules cellspacing cellpadding align bgcolor"),u("col","width align char charoff valign"),u("colgroup","width align char charoff valign"),u("thead","align char charoff valign"),u("tr","align char charoff valign bgcolor"),u("th","axis align char charoff valign nowrap bgcolor width height"),u("form","accept"),u("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),u("tfoot","align char charoff valign"),u("tbody","align char charoff valign"),u("area","nohref"),u("body","background bgcolor text link vlink alink")),"html4"!==e&&(u("input button select textarea","autofocus"),u("input textarea","placeholder"),u("a","download"),u("link script img","crossorigin"),u("img","loading"),u("iframe","sandbox seamless allowfullscreen loading")),Fs(Ms("a form meter progress dfn"),(function(e){s[e]&&delete s[e].children[e]})),delete s.caption.children.table,delete s.script,Es[e]=s,s)},zs=function(e,t){var n;return e&&(n={},"string"===typeof e&&(e={"*":e}),Fs(e,(function(e,r){n[r]=n[r.toUpperCase()]="map"===t?Os(e,/[, ]/):Rs(e,/[, ]/)}))),n},Ws=function(e){var t={},n={},r=[],i={},o={},a=function(t,n,r){var i=e[t];return i?i=Os(i,/[, ]/,Os(i.toUpperCase(),/[, ]/)):(i=Es[t],i||(i=Is(n,r),Es[t]=i)),i};e=e||{};var s=Ls(e.schema);!1===e.verify_html&&(e.valid_elements="*[*]");var c=zs(e.valid_styles),u=zs(e.invalid_styles,"map"),l=zs(e.valid_classes,"map"),d=a("whitespace_elements","pre script noscript style textarea video audio iframe object code"),f=a("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),h=a("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),p=a("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),g="td th iframe video audio object script code",m=a("non_empty_elements",g+" pre",h),v=a("move_caret_before_on_enter_elements",g+" table",h),b=a("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),y=a("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",b),x=a("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp");Fs((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(e){o[e]=new RegExp("</"+e+"[^>]*>","gi")}));var _=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},w=function(e){var n,i,o,a,s,c,u,l,d,f,h,p,g,m,v,b,y,x,w=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,D=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,C=/[*?+]/;if(e){var k=Ms(e,",");for(t["@"]&&(b=t["@"].attributes,y=t["@"].attributesOrder),n=0,i=k.length;n<i;n++)if(s=w.exec(k[n]),s){if(m=s[1],d=s[2],v=s[3],l=s[5],p={},g=[],c={attributes:p,attributesOrder:g},"#"===m&&(c.paddEmpty=!0),"-"===m&&(c.removeEmpty=!0),"!"===s[4]&&(c.removeEmptyAttrs=!0),b&&(we(b,(function(e,t){p[t]=e})),g.push.apply(g,y)),l)for(l=Ms(l,"|"),o=0,a=l.length;o<a;o++)if(s=D.exec(l[o]),s){if(u={},h=s[1],f=s[2].replace(/[\\:]:/g,":"),m=s[3],x=s[4],"!"===h&&(c.attributesRequired=c.attributesRequired||[],c.attributesRequired.push(f),u.required=!0),"-"===h){delete p[f],g.splice(Ns(g,f),1);continue}m&&("="===m&&(c.attributesDefault=c.attributesDefault||[],c.attributesDefault.push({name:f,value:x}),u.defaultValue=x),":"===m&&(c.attributesForced=c.attributesForced||[],c.attributesForced.push({name:f,value:x}),u.forcedValue=x),"<"===m&&(u.validValues=Os(x,"?"))),C.test(f)?(c.attributePatterns=c.attributePatterns||[],u.pattern=_(f),c.attributePatterns.push(u)):(p[f]||g.push(f),p[f]=u)}b||"@"!==d||(b=p,y=g),v&&(c.outputName=d,t[v]=c),C.test(d)?(c.pattern=_(d),r.push(c)):t[d]=c}}},D=function(e){t={},r=[],w(e),Fs(s,(function(e,t){n[t]=e.children}))},C=function(e){var r=/^(~)?(.+)$/;e&&(Es.text_block_elements=Es.block_elements=null,Fs(Ms(e,","),(function(e){var o=r.exec(e),a="~"===o[1],s=a?"span":"div",c=o[2];if(n[c]=n[s],i[c]=s,a||(y[c.toUpperCase()]={},y[c]={}),!t[c]){var u=t[s];u=Ps({},u),delete u.removeEmptyAttrs,delete u.removeEmpty,t[c]=u}Fs(n,(function(e,t){e[s]&&(n[t]=e=Ps({},n[t]),e[c]=e[s])}))})))},k=function(t){var r=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;Es[e.schema]=null,t&&Fs(Ms(t,","),(function(e){var t,i,o=r.exec(e);o&&(i=o[1],t=i?n[o[2]]:n[o[2]]={"#comment":{}},t=n[o[2]],Fs(Ms(o[3],"|"),(function(e){"-"===i?delete t[e]:t[e]={}})))}))},T=function(e){var n,i=t[e];if(i)return i;n=r.length;while(n--)if(i=r[n],i.pattern.test(e))return i};e.valid_elements?D(e.valid_elements):(Fs(s,(function(e,r){t[r]={attributes:e.attributes,attributesOrder:e.attributesOrder},n[r]=e.children})),"html5"!==e.schema&&Fs(Ms("strong/b em/i"),(function(e){var n=Ms(e,"/");t[n[1]].outputName=n[0]})),Fs(x,(function(n,r){t[r]&&(e.padd_empty_block_inline_children&&(t[r].paddInEmptyBlock=!0),t[r].removeEmpty=!0)})),Fs(Ms("ol ul blockquote a table tbody"),(function(e){t[e]&&(t[e].removeEmpty=!0)})),Fs(Ms("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){t[e].paddEmpty=!0})),Fs(Ms("span"),(function(e){t[e].removeEmptyAttrs=!0}))),C(e.custom_elements),k(e.valid_children),w(e.extended_valid_elements),k("+ol[ul|ol],+ul[ul|ol]"),Fs({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(function(e,n){t[n]&&(t[n].parentsRequired=Ms(e))})),e.invalid_elements&&Fs(Rs(e.invalid_elements),(function(e){t[e]&&delete t[e]})),T("span")||w("span[!data-mce-type|*]");var S=U(c),A=U(u),E=U(l),O=U(p),F=U(y),P=U(b),R=U(x),N=U(h),M=U(f),I=U(m),B=U(v),L=U(d),z=U(o),W=function(e,t){var r=n[e.toLowerCase()];return!(!r||!r[t.toLowerCase()])},j=function(e,t){var n,r,i=T(e);if(i){if(!t)return!0;if(i.attributes[t])return!0;if(n=i.attributePatterns,n){r=n.length;while(r--)if(n[r].pattern.test(e))return!0}}return!1},H=U(i);return{children:n,elements:t,getValidStyles:S,getValidClasses:E,getBlockElements:F,getInvalidStyles:A,getShortEndedElements:N,getTextBlockElements:P,getTextInlineElements:R,getBoolAttrs:O,getElementRule:T,getSelfClosingElements:M,getNonEmptyElements:I,getMoveCaretBeforeOnEnterElements:B,getWhiteSpaceElements:L,getSpecialElements:z,isValidChild:W,isValid:j,getCustomElements:H,addValidElements:w,setValidElements:D,addCustomElements:C,addValidChildren:k}},js=function(e,t,n,r){var i=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+i(t)+i(n)+i(r)},Hs=function(e,t){var n,r,i,o=this,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,s=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,c=/\s*([^:]+):\s*([^;]+);?/g,u=/\s+$/,l={},d=ca;e=e||{},t&&(r=t.getValidStyles(),i=t.getInvalidStyles());var f=("\\\" \\' \\; \\: ; : "+d).split(" ");for(n=0;n<f.length;n++)l[f[n]]=d+n,l[d+n]=f[n];return{toHex:function(e){return e.replace(a,js)},parse:function(t){var r,i,f,h,p={},g=e.url_converter,m=e.url_converter_scope||o,v=function(e,t,r){var i=p[e+"-top"+t];if(i){var o=p[e+"-right"+t];if(o){var a=p[e+"-bottom"+t];if(a){var s=p[e+"-left"+t];if(s){var c=[i,o,a,s];n=c.length-1;while(n--)if(c[n]!==c[n+1])break;n>-1&&r||(p[e+t]=-1===n?c[0]:c.join(" "),delete p[e+"-top"+t],delete p[e+"-right"+t],delete p[e+"-bottom"+t],delete p[e+"-left"+t])}}}}},b=function(e){var t,n=p[e];if(n){n=n.split(" "),t=n.length;while(t--)if(n[t]!==n[0])return!1;return p[e]=n[0],!0}},y=function(e,t,n,r){b(t)&&b(n)&&b(r)&&(p[e]=p[t]+" "+p[n]+" "+p[r],delete p[t],delete p[n],delete p[r])},x=function(e){return h=!0,l[e]},_=function(e,t){return h&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return l[e]}))),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},w=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},D=function(e){return e.replace(/\\[0-9a-f]+/gi,w)},C=function(t,n,r,i,o,a){if(o=o||a,o)return o=_(o),"'"+o.replace(/\'/g,"\\'")+"'";if(n=_(n||r||i),!e.allow_script_urls){var s=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(s))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(s))return""}return g&&(n=g.call(m,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,x).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,x)}));while(r=c.exec(t))if(c.lastIndex=r.index+r[0].length,i=r[1].replace(u,"").toLowerCase(),f=r[2].replace(u,""),i&&f){if(i=D(i),f=D(f),-1!==i.indexOf(d)||-1!==i.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===i||/expression\s*\(|\/\*|\*\//.test(f)))continue;"font-weight"===i&&"700"===f?f="bold":"color"!==i&&"background-color"!==i||(f=f.toLowerCase()),f=f.replace(a,js),f=f.replace(s,C),p[i]=h?_(f,!0):f}v("border","",!0),v("border","-width"),v("border","-color"),v("border","-style"),v("padding",""),v("margin",""),y("border","border-width","border-style","border-color"),"medium none"===p.border&&delete p.border,"none"===p["border-image"]&&delete p["border-image"]}return p},serialize:function(e,t){var n="",o=function(t){var i,o=r[t];if(o)for(var a=0,s=o.length;a<s;a++)t=o[a],i=e[t],i&&(n+=(n.length>0?" ":"")+t+": "+i+";")},a=function(e,t){var n=i["*"];return(!n||!n[e])&&(n=i[t],!(n&&n[e]))};return t&&r?(o("*"),o(t)):we(e,(function(e,r){!e||i&&!a(r,t)||(n+=(n.length>0?" ":"")+r+": "+e+";")})),n}}},Vs={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},qs=function(e){return e instanceof Event||k(e.initEvent)},$s=function(e){return e.isDefaultPrevented===L||e.isDefaultPrevented===B},Gs=function(e){return D(e.preventDefault)||qs(e)},Xs=function(e,t){var n=null!==t&&void 0!==t?t:{};for(var r in e)Fe(Vs,r)||(n[r]=e[r]);return C(n.composedPath)&&(n.composedPath=function(){return e.composedPath()}),n},Ys=function(e,t,n,r){var i,o=Xs(t,r);return o.type=e,D(o.target)&&(o.target=null!==(i=o.srcElement)&&void 0!==i?i:n),Gs(t)&&(o.preventDefault=function(){o.defaultPrevented=!0,o.isDefaultPrevented=L,k(t.preventDefault)?t.preventDefault():qs(t)&&(t.returnValue=!1)},o.stopPropagation=function(){o.cancelBubble=!0,o.isPropagationStopped=L,k(t.stopPropagation)?t.stopPropagation():qs(t)&&(t.cancelBubble=!0)},o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=L,o.stopPropagation()},$s(o)||(o.isDefaultPrevented=!0===o.defaultPrevented?L:B,o.isPropagationStopped=!0===o.cancelBubble?L:B,o.isImmediatePropagationStopped=B)),o},Ks="mce-data-",Zs=/^(?:mouse|contextmenu)|click/,Js=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Qs=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},ec=function(e){return C(e)&&Zs.test(e.type)},tc=function(e,t){var n=Ys(e.type,e,document,t);if(ec(e)&&w(e.pageX)&&!w(e.clientX)){var r=n.target.ownerDocument||document,i=r.documentElement,o=r.body,a=n;a.pageX=e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),a.pageY=e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)}return w(n.metaKey)&&(n.metaKey=!1),n},nc=function(e,t,n){var r=e.document,i={type:"ready"};if(n.domLoaded)t(i);else{var o=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){Qs(e,"DOMContentLoaded",a),Qs(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(i)),e=null};o()?a():Js(e,"DOMContentLoaded",a),n.domLoaded||Js(e,"load",a)}},rc=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Ks+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return e.prototype.bind=function(e,t,n,r){var i,o,a,s,c,u,l,d=this,f=window,h=function(e){d.executeHandlers(tc(e||f.event),i)};if(e&&3!==e.nodeType&&8!==e.nodeType){e[d.expando]?i=e[d.expando]:(i=d.count++,e[d.expando]=i,d.events[i]={}),r=r||e;var p=t.split(" ");a=p.length;while(a--)s=p[a],u=h,c=l=!1,"DOMContentLoaded"===s&&(s="ready"),d.domLoaded&&"ready"===s&&"complete"===e.readyState?n.call(r,tc({type:s})):(d.hasMouseEnterLeave||(c=d.mouseEnterLeave[s],c&&(u=function(e){var t=e.currentTarget,n=e.relatedTarget;if(n&&t.contains)n=t.contains(n);else while(n&&n!==t)n=n.parentNode;n||(e=tc(e||f.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,d.executeHandlers(e,i))})),d.hasFocusIn||"focusin"!==s&&"focusout"!==s||(l=!0,c="focusin"===s?"focus":"blur",u=function(e){e=tc(e||f.event),e.type="focus"===e.type?"focusin":"focusout",d.executeHandlers(e,i)}),o=d.events[i][s],o?"ready"===s&&d.domLoaded?n(tc({type:s})):o.push({func:n,scope:r}):(d.events[i][s]=o=[{func:n,scope:r}],o.fakeName=c,o.capture=l,o.nativeHandler=u,"ready"===s?nc(e,u,d):Js(e,c||s,u,l)));return e=o=null,n}},e.prototype.unbind=function(e,t,n){var r,i,o,a,s;if(!e||3===e.nodeType||8===e.nodeType)return this;var c=e[this.expando];if(c){if(s=this.events[c],t){var u=t.split(" ");i=u.length;while(i--)if(a=u[i],r=s[a],r){if(n){o=r.length;while(o--)if(r[o].func===n){var l=r.nativeHandler,d=r.fakeName,f=r.capture;r=r.slice(0,o).concat(r.slice(o+1)),r.nativeHandler=l,r.fakeName=d,r.capture=f,s[a]=r}}n&&0!==r.length||(delete s[a],Qs(e,r.fakeName||a,r.nativeHandler,r.capture))}}else we(s,(function(t,n){Qs(e,t.fakeName||n,t.nativeHandler,t.capture)})),s={};for(a in s)if(Fe(s,a))return this;delete this.events[c];try{delete e[this.expando]}catch(h){e[this.expando]=null}}return this},e.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var i=tc({type:t,target:e},n);do{r=e[this.expando],r&&this.executeHandlers(i,r),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!i.isPropagationStopped());return this},e.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName){this.unbind(e),n=e.getElementsByTagName("*"),t=n.length;while(t--)e=n[t],e[this.expando]&&this.unbind(e)}return this},e.prototype.destroy=function(){this.events={}},e.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},e.prototype.executeHandlers=function(e,t){var n=this.events[t],r=n&&n[e.type];if(r)for(var i=0,o=r.length;i<o;i++){var a=r[i];if(a&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}},e.Event=new e,e}(),ic="sizzle"+-new Date,oc=window.document,ac=0,sc=0,cc=jc(),uc=jc(),lc=jc(),dc=function(e,t){return e===t&&(ho=!0),0},fc="undefined",hc=1<<31,pc={}.hasOwnProperty,gc=[],mc=gc.pop,vc=gc.push,bc=gc.push,yc=gc.slice,xc=gc.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},_c="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",wc="[\\x20\\t\\r\\n\\f]",Dc="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Cc="\\["+wc+"*("+Dc+")(?:"+wc+"*([*^$|!~]?=)"+wc+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Dc+"))|)"+wc+"*\\]",kc=":("+Dc+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Cc+")*)|.*)\\)|)",Tc=new RegExp("^"+wc+"+|((?:^|[^\\\\])(?:\\\\.)*)"+wc+"+$","g"),Sc=new RegExp("^"+wc+"*,"+wc+"*"),Ac=new RegExp("^"+wc+"*([>+~]|"+wc+")"+wc+"*"),Ec=new RegExp("="+wc+"*([^\\]'\"]*?)"+wc+"*\\]","g"),Uc=new RegExp(kc),Oc=new RegExp("^"+Dc+"$"),Fc={ID:new RegExp("^#("+Dc+")"),CLASS:new RegExp("^\\.("+Dc+")"),TAG:new RegExp("^("+Dc+"|[*])"),ATTR:new RegExp("^"+Cc),PSEUDO:new RegExp("^"+kc),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+wc+"*(even|odd|(([+-]|)(\\d*)n|)"+wc+"*(?:([+-]|)"+wc+"*(\\d+)|))"+wc+"*\\)|)","i"),bool:new RegExp("^(?:"+_c+")$","i"),needsContext:new RegExp("^"+wc+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+wc+"*((?:-\\d)?\\d*)"+wc+"*\\)|)(?=[^-]|$)","i")},Pc=/^(?:input|select|textarea|button)$/i,Rc=/^h\d$/i,Nc=/^[^{]+\{\s*\[native \w/,Mc=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ic=/[+~]/,Bc=/'|\\/g,Lc=new RegExp("\\\\([\\da-f]{1,6}"+wc+"?|("+wc+")|.)","ig"),zc=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{bc.apply(gc=yc.call(oc.childNodes),oc.childNodes),gc[oc.childNodes.length].nodeType}catch(UW){bc={apply:gc.length?function(e,t){vc.apply(e,yc.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}var Wc=function(e,t,n,r){var i,o,a,s,c,u,l,d,f,h;if((t?t.ownerDocument||t:oc)!==go&&po(t),t=t||go,n=n||[],!e||"string"!==typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(vo&&!r){if(i=Mc.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&_o(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return bc.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&ro.getElementsByClassName)return bc.apply(n,t.getElementsByClassName(a)),n}if(ro.qsa&&(!bo||!bo.test(e))){if(d=l=ic,f=t,h=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){u=so(e),(l=t.getAttribute("id"))?d=l.replace(Bc,"\\$&"):t.setAttribute("id",d),d="[id='"+d+"'] ",c=u.length;while(c--)u[c]=d+Kc(u[c]);f=Ic.test(e)&&Xc(t.parentNode)||t,h=u.join(",")}if(h)try{return bc.apply(n,f.querySelectorAll(h)),n}catch(p){}finally{l||t.removeAttribute("id")}}}return uo(e.replace(Tc,"$1"),t,n,r)};function jc(){var e=[];function t(n,r){return e.push(n+" ")>io.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function Hc(e){return e[ic]=!0,e}function Vc(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||hc)-(~e.sourceIndex||hc);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function qc(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function $c(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function Gc(e){return Hc((function(t){return t=+t,Hc((function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function Xc(e){return e&&typeof e.getElementsByTagName!==fc&&e}function Yc(){}function Kc(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Zc(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=sc++;return t.first?function(t,n,o){while(t=t[r])if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,c,u=[ac,o];if(a){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,a))return!0}else while(t=t[r])if(1===t.nodeType||i){if(c=t[ic]||(t[ic]={}),(s=c[r])&&s[0]===ac&&s[1]===o)return u[2]=s[2];if(c[r]=u,u[2]=e(t,n,a))return!0}}}function Jc(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Qc(e,t,n){for(var r=0,i=t.length;r<i;r++)Wc(e,t[r],n);return n}function eu(e,t,n,r,i){for(var o,a=[],s=0,c=e.length,u=null!=t;s<c;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function tu(e,t,n,r,i,o){return r&&!r[ic]&&(r=tu(r)),i&&!i[ic]&&(i=tu(i,o)),Hc((function(o,a,s,c){var u,l,d,f=[],h=[],p=a.length,g=o||Qc(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:eu(g,f,e,s,c),v=n?i||(o?e:p||r)?[]:a:m;if(n&&n(m,v,s,c),r){u=eu(v,h),r(u,[],s,c),l=u.length;while(l--)(d=u[l])&&(v[h[l]]=!(m[h[l]]=d))}if(o){if(i||e){if(i){u=[],l=v.length;while(l--)(d=v[l])&&u.push(m[l]=d);i(null,v=[],u,c)}l=v.length;while(l--)(d=v[l])&&(u=i?xc.call(o,d):f[l])>-1&&(o[u]=!(a[u]=d))}}else v=eu(v===a?v.splice(p,v.length):v),i?i(null,a,v,c):bc.apply(a,v)}))}function nu(e){for(var t,n,r,i=e.length,o=io.relative[e[0].type],a=o||io.relative[" "],s=o?1:0,c=Zc((function(e){return e===t}),a,!0),u=Zc((function(e){return xc.call(t,e)>-1}),a,!0),l=[function(e,n,r){var i=!o&&(r||n!==lo)||((t=n).nodeType?c(e,n,r):u(e,n,r));return t=null,i}];s<i;s++)if(n=io.relative[e[s].type])l=[Zc(Jc(l),n)];else{if(n=io.filter[e[s].type].apply(null,e[s].matches),n[ic]){for(r=++s;r<i;r++)if(io.relative[e[r].type])break;return tu(s>1&&Jc(l),s>1&&Kc(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Tc,"$1"),n,s<r&&nu(e.slice(s,r)),r<i&&nu(e=e.slice(r)),r<i&&Kc(e))}l.push(n)}return Jc(l)}function ru(e,t){var n=t.length>0,r=e.length>0,i=function(i,o,a,s,c){var u,l,d,f=0,h="0",p=i&&[],g=[],m=lo,v=i||r&&io.find.TAG("*",c),b=ac+=null==m?1:Math.random()||.1,y=v.length;for(c&&(lo=o!==go&&o);h!==y&&null!=(u=v[h]);h++){if(r&&u){l=0;while(d=e[l++])if(d(u,o,a)){s.push(u);break}c&&(ac=b)}n&&((u=!d&&u)&&f--,i&&p.push(u))}if(f+=h,n&&h!==f){l=0;while(d=t[l++])d(p,g,o,a);if(i){if(f>0)while(h--)p[h]||g[h]||(g[h]=mc.call(s));g=eu(g)}bc.apply(s,g),c&&!i&&g.length>0&&f+t.length>1&&Wc.uniqueSort(s)}return c&&(ac=b,lo=m),p};return n?Hc(i):i}ro=Wc.support={},ao=Wc.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},po=Wc.setDocument=function(e){var t,n=e?e.ownerDocument||e:oc,r=n.defaultView;function i(e){try{return e.top}catch(t){}return null}return n!==go&&9===n.nodeType&&n.documentElement?(go=n,mo=n.documentElement,vo=!ao(n),r&&r!==i(r)&&(r.addEventListener?r.addEventListener("unload",(function(){po()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){po()}))),ro.attributes=!0,ro.getElementsByTagName=!0,ro.getElementsByClassName=Nc.test(n.getElementsByClassName),ro.getById=!0,io.find.ID=function(e,t){if(typeof t.getElementById!==fc&&vo){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},io.filter.ID=function(e){var t=e.replace(Lc,zc);return function(e){return e.getAttribute("id")===t}},io.find.TAG=ro.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==fc)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},io.find.CLASS=ro.getElementsByClassName&&function(e,t){if(vo)return t.getElementsByClassName(e)},yo=[],bo=[],ro.disconnectedMatch=!0,bo=bo.length&&new RegExp(bo.join("|")),yo=yo.length&&new RegExp(yo.join("|")),t=Nc.test(mo.compareDocumentPosition),_o=t||Nc.test(mo.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},dc=t?function(e,t){if(e===t)return ho=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!ro.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===oc&&_o(oc,e)?-1:t===n||t.ownerDocument===oc&&_o(oc,t)?1:fo?xc.call(fo,e)-xc.call(fo,t):0:4&r?-1:1)}:function(e,t){if(e===t)return ho=!0,0;var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],c=[t];if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:fo?xc.call(fo,e)-xc.call(fo,t):0;if(o===a)return Vc(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)c.unshift(r);while(s[i]===c[i])i++;return i?Vc(s[i],c[i]):s[i]===oc?-1:c[i]===oc?1:0},n):go},Wc.matches=function(e,t){return Wc(e,null,null,t)},Wc.matchesSelector=function(e,t){if((e.ownerDocument||e)!==go&&po(e),t=t.replace(Ec,"='$1']"),ro.matchesSelector&&vo&&(!yo||!yo.test(t))&&(!bo||!bo.test(t)))try{var n=xo.call(e,t);if(n||ro.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(UW){}return Wc(t,go,null,[e]).length>0},Wc.contains=function(e,t){return(e.ownerDocument||e)!==go&&po(e),_o(e,t)},Wc.attr=function(e,t){(e.ownerDocument||e)!==go&&po(e);var n=io.attrHandle[t.toLowerCase()],r=n&&pc.call(io.attrHandle,t.toLowerCase())?n(e,t,!vo):void 0;return void 0!==r?r:ro.attributes||!vo?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},Wc.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Wc.uniqueSort=function(e){var t,n=[],r=0,i=0;if(ho=!ro.detectDuplicates,fo=!ro.sortStable&&e.slice(0),e.sort(dc),ho){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return fo=null,e},oo=Wc.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=oo(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=oo(t);return n},io=Wc.selectors={cacheLength:50,createPseudo:Hc,match:Fc,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Lc,zc),e[3]=(e[3]||e[4]||e[5]||"").replace(Lc,zc),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Wc.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Wc.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Fc.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Uc.test(n)&&(t=so(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Lc,zc).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=cc[e+" "];return t||(t=new RegExp("(^|"+wc+")"+e+"("+wc+"|$)"))&&cc(e,(function(e){return t.test("string"===typeof e.className&&e.className||typeof e.getAttribute!==fc&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=Wc.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var u,l,d,f,h,p,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),b=!c&&!s;if(m){if(o){while(g){d=t;while(d=d[g])if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&b){l=m[ic]||(m[ic]={}),u=l[e]||[],h=u[0]===ac&&u[1],f=u[0]===ac&&u[2],d=h&&m.childNodes[h];while(d=++h&&d&&d[g]||(f=h=0)||p.pop())if(1===d.nodeType&&++f&&d===t){l[e]=[ac,h,f];break}}else if(b&&(u=(t[ic]||(t[ic]={}))[e])&&u[0]===ac)f=u[1];else while(d=++h&&d&&d[g]||(f=h=0)||p.pop())if((s?d.nodeName.toLowerCase()===v:1===d.nodeType)&&++f&&(b&&((d[ic]||(d[ic]={}))[e]=[ac,f]),d===t))break;return f-=i,f===r||f%r===0&&f/r>=0}}},PSEUDO:function(e,t){var n,r=io.pseudos[e]||io.setFilters[e.toLowerCase()]||Wc.error("unsupported pseudo: "+e);return r[ic]?r(t):r.length>1?(n=[e,e,"",t],io.setFilters.hasOwnProperty(e.toLowerCase())?Hc((function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=xc.call(e,o[a]),e[i]=!(n[i]=o[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:Hc((function(e){var t=[],n=[],r=co(e.replace(Tc,"$1"));return r[ic]?Hc((function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:Hc((function(e){return function(t){return Wc(e,t).length>0}})),contains:Hc((function(e){return e=e.replace(Lc,zc),function(t){return(t.textContent||t.innerText||oo(t)).indexOf(e)>-1}})),lang:Hc((function(e){return Oc.test(e||"")||Wc.error("unsupported lang: "+e),e=e.replace(Lc,zc).toLowerCase(),function(t){var n;do{if(n=vo?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===mo},focus:function(e){return e===go.activeElement&&(!go.hasFocus||go.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!io.pseudos.empty(e)},header:function(e){return Rc.test(e.nodeName)},input:function(e){return Pc.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:Gc((function(){return[0]})),last:Gc((function(e,t){return[t-1]})),eq:Gc((function(e,t,n){return[n<0?n+t:n]})),even:Gc((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:Gc((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:Gc((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:Gc((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},io.pseudos.nth=io.pseudos.eq,Q(["radio","checkbox","file","password","image"],(function(e){io.pseudos[e]=qc(e)})),Q(["submit","reset"],(function(e){io.pseudos[e]=$c(e)})),Yc.prototype=io.filters=io.pseudos,io.setFilters=new Yc,so=Wc.tokenize=function(e,t){var n,r,i,o,a,s,c,u=uc[e+" "];if(u)return t?0:u.slice(0);a=e,s=[],c=io.preFilter;while(a){for(o in n&&!(r=Sc.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=Ac.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(Tc," ")}),a=a.slice(n.length)),io.filter)io.filter.hasOwnProperty(o)&&(!(r=Fc[o].exec(a))||c[o]&&!(r=c[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?Wc.error(e):uc(e,s).slice(0)},co=Wc.compile=function(e,t){var n,r=[],i=[],o=lc[e+" "];if(!o){t||(t=so(e)),n=t.length;while(n--)o=nu(t[n]),o[ic]?r.push(o):i.push(o);o=lc(e,ru(i,r)),o.selector=e}return o},uo=Wc.select=function(e,t,n,r){var i,o,a,s,c,u="function"===typeof e&&e,l=!r&&so(e=u.selector||e);if(n=n||[],1===l.length){if(o=l[0]=l[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&ro.getById&&9===t.nodeType&&vo&&io.relative[o[1].type]){if(t=(io.find.ID(a.matches[0].replace(Lc,zc),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=Fc.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],io.relative[s=a.type])break;if((c=io.find[s])&&(r=c(a.matches[0].replace(Lc,zc),Ic.test(o[0].type)&&Xc(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&Kc(o),!e)return bc.apply(n,r),n;break}}}return(u||co(e,l))(r,t,!vo,n,Ic.test(e)&&Xc(t.parentNode)||t),n},ro.sortStable=ic.split("").sort(dc).join("")===ic,ro.detectDuplicates=!!ho,po(),ro.sortDetached=!0;var iu=document,ou=Array.prototype.push,au=Array.prototype.slice,su=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,cu=rc.Event,uu=pn.makeMap("children,contents,next,prev"),lu=function(e){return"undefined"!==typeof e},du=function(e){return"string"===typeof e},fu=function(e){return e&&e===e.window},hu=function(e,t){t=t||iu;var n,r=t.createElement("div"),i=t.createDocumentFragment();r.innerHTML=e;while(n=r.firstChild)i.appendChild(n);return i},pu=function(e,t,n,r){var i;if(du(t))t=hu(t,Eu(e[0]));else if(t.length&&!t.nodeType){if(t=Pu.makeArray(t),r)for(i=t.length-1;i>=0;i--)pu(e,t[i],n,r);else for(i=0;i<t.length;i++)pu(e,t[i],n,r);return e}if(t.nodeType){i=e.length;while(i--)n.call(e[i],t)}return e},gu=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},mu=function(e,t,n){var r,i;return t=Pu(t)[0],e.each((function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,i=t.cloneNode(!1),e.parentNode.insertBefore(i,e)),i.appendChild(e)})),e},vu=pn.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),bu=pn.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),yu={for:"htmlFor",class:"className",readonly:"readOnly"},xu={float:"cssFloat"},_u={},wu={},Du=function(e,t){return new Pu.fn.init(e,t)},Cu=function(e,t){var n;if(t.indexOf)return t.indexOf(e);n=t.length;while(n--)if(t[n]===e)return n;return-1},ku=/^\s*|\s*$/g,Tu=function(e){return null===e||void 0===e?"":(""+e).replace(ku,"")},Su=function(e,t){var n,r,i,o;if(e)if(n=e.length,void 0===n){for(r in e)if(e.hasOwnProperty(r)&&(o=e[r],!1===t.call(o,r,o)))break}else for(i=0;i<n;i++)if(o=e[i],!1===t.call(o,i,o))break;return e},Au=function(e,t){var n=[];return Su(e,(function(e,r){t(r,e)&&n.push(r)})),n},Eu=function(e){return e?9===e.nodeType?e:e.ownerDocument:iu};Du.fn=Du.prototype={constructor:Du,selector:"",context:null,length:0,init:function(e,t){var n,r,i=this;if(!e)return i;if(e.nodeType)return i.context=i[0]=e,i.length=1,i;if(t&&t.nodeType)i.context=t;else{if(t)return Pu(e).attr(t);i.context=t=document}if(du(e)){if(i.selector=e,n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:su.exec(e),!n)return Pu(t).find(e);if(n[1]){r=hu(e,Eu(t)).firstChild;while(r)ou.call(i,r),r=r.nextSibling}else{if(r=Eu(t).getElementById(n[2]),!r)return i;if(r.id!==n[2])return i.find(e);i.length=1,i[0]=r}}else this.add(e,!1);return i},toArray:function(){return pn.toArray(this)},add:function(e,t){var n,r,i=this;if(du(e))return i.add(Pu(e));if(!1!==t)for(n=Pu.unique(i.toArray().concat(Pu.makeArray(e))),i.length=n.length,r=0;r<n.length;r++)i[r]=n[r];else ou.apply(i,Pu.makeArray(e));return i},attr:function(e,t){var n,r=this;if("object"===typeof e)Su(e,(function(e,t){r.attr(e,t)}));else{if(!lu(t)){if(r[0]&&1===r[0].nodeType){if(n=_u[e],n&&n.get)return n.get(r[0],e);if(bu[e])return r.prop(e)?e:void 0;t=r[0].getAttribute(e,2),null===t&&(t=void 0)}return t}this.each((function(){var n;if(1===this.nodeType){if(n=_u[e],n&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}}))}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if(e=yu[e]||e,"object"===typeof e)Su(e,(function(e,t){n.prop(e,t)}));else{if(!lu(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each((function(){1===this.nodeType&&(this[e]=t)}))}return n},css:function(e,t){var n,r,i=this,o=function(e){return e.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()}))},a=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e}))};if("object"===typeof e)Su(e,(function(e,t){i.css(e,t)}));else if(lu(t))e=o(e),"number"!==typeof t||vu[e]||(t=t.toString()+"px"),i.each((function(){var n=this.style;if(r=wu[e],r&&r.set)r.set(this,t);else{try{this.style[xu[e]||e]=t}catch(i){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(a(e)):n.removeAttribute(e))}}));else{if(n=i[0],r=wu[e],r&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[o(e)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(e))}catch(s){return}}return i},remove:function(){var e,t=this,n=this.length;while(n--)e=t[n],cu.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){var e,t=this,n=this.length;while(n--){e=t[n];while(e.firstChild)e.removeChild(e.firstChild)}return this},html:function(e){var t,n=this;if(lu(e)){t=n.length;try{while(t--)n[t].innerHTML=e}catch(r){Pu(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(lu(e)){t=n.length;while(t--)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return pu(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return pu(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)}),!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?pu(e,arguments,(function(e){this.parentNode.insertBefore(e,this)})):e},after:function(){var e=this;return e[0]&&e[0].parentNode?pu(e,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):e},appendTo:function(e){return Pu(e).append(this),this},prependTo:function(e){return Pu(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return mu(this,e)},wrapAll:function(e){return mu(this,e,!0)},wrapInner:function(e){return this.each((function(){Pu(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){Pu(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),Pu(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!==typeof e||(-1!==e.indexOf(" ")?Su(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,r){var i=gu(r,e);if(i!==t){var o=r.className;i?r.className=Tu((" "+o+" ").replace(" "+e+" "," ")):r.className+=o?" "+e:e}}))),n},hasClass:function(e){return gu(this[0],e)},each:function(e){return Su(this,e)},on:function(e,t){return this.each((function(){cu.bind(this,e,t)}))},off:function(e,t){return this.each((function(){cu.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"===typeof e?cu.fire(this,e.type,e):cu.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return Pu(au.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)Pu.find(e,this[t],r);return Pu(r)},filter:function(e){return Pu("function"===typeof e?Au(this.toArray(),(function(t,n){return e(n,t)})):Pu.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Pu&&(e=e[0]),this.each((function(n,r){while(r){if("string"===typeof e&&Pu(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}})),Pu(t)},offset:function(e){var t,n,r,i,o=0,a=0;return e?this.css(e):(t=this[0],t&&(n=t.ownerDocument,r=n.documentElement,t.getBoundingClientRect&&(i=t.getBoundingClientRect(),o=i.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=i.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:o,top:a})},push:ou,sort:Array.prototype.sort,splice:Array.prototype.splice},pn.extend(Du,{extend:pn.extend,makeArray:function(e){return fu(e)||e.nodeType?[e]:pn.toArray(e)},inArray:Cu,isArray:pn.isArray,each:Su,trim:Tu,grep:Au,find:Wc,expr:Wc.selectors,unique:Wc.uniqueSort,text:Wc.getText,contains:Wc.contains,filter:function(e,t,n){var r=t.length;n&&(e=":not("+e+")");while(r--)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?Pu.find.matchesSelector(t[0],e)?[t[0]]:[]:Pu.find.matches(e,t),t}});var Uu=function(e,t,n){var r=[],i=e[t];"string"!==typeof n&&n instanceof Pu&&(n=n[0]);while(i&&9!==i.nodeType){if(void 0!==n){if(i===n)break;if("string"===typeof n&&Pu(i).is(n))break}1===i.nodeType&&r.push(i),i=i[t]}return r},Ou=function(e,t,n,r){var i=[];for(r instanceof Pu&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"===typeof r&&Pu(e).is(r))break}i.push(e)}return i},Fu=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};Su({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Uu(e,"parentNode")},next:function(e){return Fu(e,"nextSibling",1)},prev:function(e){return Fu(e,"previousSibling",1)},children:function(e){return Ou(e.firstChild,"nextSibling",1)},contents:function(e){return pn.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){Du.fn[e]=function(n){var r=this,i=[];r.each((function(){var e=t.call(i,this,n,i);e&&(Pu.isArray(e)?i.push.apply(i,e):i.push(e))})),this.length>1&&(uu[e]||(i=Pu.unique(i)),0===e.indexOf("parents")&&(i=i.reverse()));var o=Pu(i);return n?o.filter(n):o}})),Su({parentsUntil:function(e,t){return Uu(e,"parentNode",t)},nextUntil:function(e,t){return Ou(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Ou(e,"previousSibling",1,t).slice(1)}},(function(e,t){Du.fn[e]=function(n,r){var i=this,o=[];i.each((function(){var e=t.call(o,this,n,o);e&&(Pu.isArray(e)?o.push.apply(o,e):o.push(e))})),this.length>1&&(o=Pu.unique(o),0!==e.indexOf("parents")&&"prevUntil"!==e||(o=o.reverse()));var a=Pu(o);return r?a.filter(r):a}})),Du.fn.is=function(e){return!!e&&this.filter(e).length>0},Du.fn.init.prototype=Du.fn,Du.overrideDefaults=function(e){var t,n=function(r,i){return t=t||e(),0===arguments.length&&(r=t.element),i||(i=t.context),new n.fn.init(r,i)};return Pu.extend(n,this),n},Du.attrHooks=_u,Du.cssHooks=wu;var Pu=Du,Ru=pn.each,Nu=pn.grep,Mu=en.ie,Iu=/^([a-z0-9],?)+$/i,Bu=function(e,t,n){var r=t.keep_values,i={set:function(e,r,i){t.url_converter&&null!==r&&(r=t.url_converter.call(t.url_converter_scope||n(),r,i,e[0])),e.attr("data-mce-"+i,r).attr(i,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},o={style:{set:function(t,n){null===n||"object"!==typeof n?(r&&t.attr("data-mce-style",n),null!==n&&"string"===typeof n?(t.removeAttr("style"),t.css(e.parse(n))):t.attr("style",n)):t.css(n)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName),n}}};return r&&(o.href=o.src=i),o},Lu=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},zu=function(e,t){var n,r,i=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(i++,n=r);return i},Wu=function(e,t){void 0===t&&(t={});var n={},r=window,i={},o=0,a=!0,s=!0,c=Lo.forElement(xn.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),u=[],l=t.schema?t.schema:Ws({}),d=Hs({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),f=t.ownEvents?new rc:rc.Event,h=l.getBlockElements(),p=Pu.overrideDefaults((function(){return{context:e,element:Oe.getRoot()}})),g=function(e){if("string"===typeof e)return!!h[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!h[e.nodeName])}return!1},m=function(t){return t&&e&&v(t)?e.getElementById(t):t},b=function(e){return p("string"===typeof e?m(e):e)},y=function(e,t,n){var r,i,o=b(e);return o.length&&(r=Fe[t],i=r&&r.get?r.get(o,t):o.attr(t)),"undefined"===typeof i&&(i=n||""),i},x=function(e){var t=m(e);return t?t.attributes:[]},_=function(e,n,r){""===r&&(r=null);var i=b(e),o=i.attr(n);if(i.length){var a=Fe[n];a&&a.set?a.set(i,r,n):i.attr(n,r),o!==r&&t.onSetAttrib&&t.onSetAttrib({attrElm:i,attrName:n,attrValue:r})}},w=function(t,n){if(!Mu||1!==t.nodeType||n)return t.cloneNode(n);var r=e.createElement(t.nodeName);return Ru(x(t),(function(e){_(r,e.nodeName,y(t,e.nodeName))})),r},C=function(){return t.root_element||e.body},k=function(e){var t=zr(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},T=function(t,n){return Ri(e.body,m(t),n)},A=function(e,n,r){var i=v(n)?b(e).css(n,r):b(e).css(n);t.update_styles&&Lu(d,i)},E=function(e,n){var r=b(e).css(n);t.update_styles&&Lu(d,r)},O=function(e,t,n){var r=b(e);return n?r.css(t):(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})),"float"===t&&(t=en.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},F=function(e){var t,n;return e=m(e),t=O(e,"width"),n=O(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},P=function(e){e=m(e);var t=T(e),n=F(e);return{x:t.x,y:t.y,w:n.w,h:n.h}},R=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(Iu.test(t)){var r=t.toLowerCase().split(/,/),i=e.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===i)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var o=Array.isArray(e)?e:[e];return Wc(t,o[0].ownerDocument||o[0],null,o).length>0},N=function(e,t,n,r){var i,o=[],a=m(e);r=void 0===r,n=n||("BODY"!==C().nodeName?C().parentNode:null),pn.is(t,"string")&&(i=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return R(e,i)});while(a){if(a===n||D(a.nodeType)||ti(a)||ni(a))break;if(!t||"function"===typeof t&&t(a)){if(!r)return[a];o.push(a)}a=a.parentNode}return r?o:null},M=function(e,t,n){var r=N(e,t,n,!1);return r&&r.length>0?r[0]:null},I=function(e,t,n){var r=t;if(e)for("string"===typeof t&&(r=function(e){return R(e,t)}),e=e[n];e;e=e[n])if("function"===typeof r&&r(e))return e;return null},B=function(e,t){return I(e,t,"nextSibling")},L=function(e,t){return I(e,t,"previousSibling")},z=function(n,r){return Wc(n,m(r)||t.root_element||e,[])},W=function(e,t,n){var r,i="string"===typeof e?m(e):e;if(!i)return!1;if(pn.isArray(i)&&(i.length||0===i.length))return r=[],Ru(i,(function(e,i){e&&r.push(t.call(n,"string"===typeof e?m(e):e,i))})),r;var o=n||this;return t.call(o,i)},j=function(e,t){b(e).each((function(e,n){Ru(t,(function(e,t){_(n,t,e)}))}))},H=function(e,t){var n=b(e);Mu?n.each((function(e,n){if(!1!==n.canHaveHTML){while(n.firstChild)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(r){Pu("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)},V=function(t,n,r,i,o){return W(t,(function(t){var a="string"===typeof n?e.createElement(n):n;return j(a,r),i&&("string"!==typeof i&&i.nodeType?a.appendChild(i):"string"===typeof i&&H(a,i)),o?a:t.appendChild(a)}))},q=function(t,n,r){return V(e.createElement(t),t,n,r,!0)},$=As.decode,G=As.encodeAllRaw,X=function(e,t,n){var r,i="";for(r in i+="<"+e,t)Pe(t,r)&&(i+=" "+r+'="'+G(t[r])+'"');return"undefined"!==typeof n?i+">"+n+"</"+e+">":i+" />"},Y=function(t){var n,r=e.createElement("div"),i=e.createDocumentFragment();i.appendChild(r),t&&(r.innerHTML=t);while(n=r.firstChild)i.appendChild(n);return i.removeChild(r),i},K=function(e,t){var n=b(e);return t?n.each((function(){var e;while(e=this.firstChild)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)})).remove():n.remove(),n.length>1?n.toArray():n[0]},Z=function(e){return W(e,(function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))}))},J=function(e){return d.parse(e)},ee=function(e,t){return d.serialize(e,t)},te=function(t){var r,i;if(Oe!==Wu.DOM&&e===document){if(n[t])return;n[t]=!0}i=e.getElementById("mceDefaultStyles"),i||(i=e.createElement("style"),i.id="mceDefaultStyles",i.type="text/css",r=e.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i)),i.styleSheet?i.styleSheet.cssText+=t:i.appendChild(e.createTextNode(t))},ne=function(e){e||(e=""),Q(e.split(","),(function(e){i[e]=!0,c.load(e,S)}))},re=function(e,t,n){b(e).toggleClass(t,n).each((function(){""===this.className&&Pu(this).attr("class",null)}))},ie=function(e,t){b(e).addClass(t)},oe=function(e,t){re(e,t,!1)},ae=function(e,t){return b(e).hasClass(t)},se=function(e){b(e).show()},ce=function(e){b(e).hide()},ue=function(e){return"none"===b(e).css("display")},le=function(e){return(e||"mce_")+o++},de=function(e){var t="string"===typeof e?m(e):e;return Hr(t)?t.outerHTML:Pu("<div></div>").append(Pu(t).clone()).html()},fe=function(e,t){b(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}K(Pu(this).html(t),!0)}))},he=function(e,t){var n=m(t);return W(e,(function(e){var t=n.parentNode,r=n.nextSibling;return r?t.insertBefore(e,r):t.appendChild(e),e}))},pe=function(e,t,n){return W(t,(function(t){return pn.is(t,"array")&&(e=e.cloneNode(!0)),n&&Ru(Nu(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))},ge=function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=q(t),Ru(x(e),(function(t){_(n,t.nodeName,y(e,t.nodeName))})),pe(n,e,!0)),n||e},me=function(e,t){var n,r=e;while(r){n=t;while(n&&r!==n)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},ve=function(e){return d.toHex(pn.trim(e))},be=function(e){if(Hr(e)){var t="a"===e.nodeName.toLowerCase()&&!y(e,"href")&&y(e,"id");if(y(e,"name")||y(e,"data-mce-bookmark")||t)return!0}return!1},ye=function(e,t){var n,r,i=0;if(be(e))return!1;if(e=e.firstChild,e){var o=new zo(e,e.parentNode),a=l?l.getWhiteSpaceElements():{};t=t||(l?l.getNonEmptyElements():null);do{if(n=e.nodeType,Hr(e)){var s=e.getAttribute("data-mce-bogus");if(s){e=o.next("all"===s);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"===r){i++,e=o.next();continue}return!1}if(be(e))return!1}if(8===n)return!1;if(3===n&&!Ga(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&Ga(e.nodeValue))return!1;e=o.next()}while(e)}return i<=1},xe=function(){return e.createRange()},_e=function(e,t,n){var r,i,o,a=xe();if(e&&t)return a.setStart(e.parentNode,zu(e)),a.setEnd(t.parentNode,zu(t)),r=a.extractContents(),a=xe(),a.setStart(t.parentNode,zu(t)+1),a.setEnd(e.parentNode,zu(e)+1),i=a.extractContents(),o=e.parentNode,o.insertBefore(ls(Oe,r),e),n?o.insertBefore(n,e):o.insertBefore(t,e),o.insertBefore(ls(Oe,i),e),K(e),n||t},De=function(n,i,o,a){if(pn.isArray(n)){var s=n.length,c=[];while(s--)c[s]=De(n[s],i,o,a);return c}!t.collect||n!==e&&n!==r||u.push([n,i,o,a]);var l=f.bind(n,i,o,a||Oe);return l},Ce=function(t,n,i){if(pn.isArray(t)){var o=t.length,a=[];while(o--)a[o]=Ce(t[o],n,i);return a}if(u.length>0&&(t===e||t===r)){o=u.length;while(o--){var s=u[o];t!==s[0]||n&&n!==s[1]||i&&i!==s[2]||f.unbind(s[0],s[1],s[2])}}return f.unbind(t,n,i)},ke=function(e,t,n){return f.fire(e,t,n)},Te=function(e){if(e&&Hr(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},Se=function(e){for(var t=C(),n=null;e&&e!==t;e=e.parentNode)if(n=Te(e),null!==n)break;return n},Ae=function(){if(u.length>0){var e=u.length;while(e--){var t=u[e];f.unbind(t[0],t[1],t[2])}}we(i,(function(e,t){c.unload(t),delete i[t]})),Wc.setDocument&&Wc.setDocument()},Ee=function(e,t){if(Mu){while(e){if(t===e)return!0;e=e.parentNode}return!1}return e===t||t.contains(e)},Ue=function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},Oe={doc:e,settings:t,win:r,files:i,stdMode:a,boxModel:s,styleSheetLoader:c,boundEvents:u,styles:d,schema:l,events:f,isBlock:g,$:p,$$:b,root:null,clone:w,getRoot:C,getViewPort:k,getRect:P,getSize:F,getParent:M,getParents:N,get:m,getNext:B,getPrev:L,select:z,is:R,add:V,create:q,createHTML:X,createFragment:Y,remove:K,setStyle:A,getStyle:O,setStyles:E,removeAllAttribs:Z,setAttrib:_,setAttribs:j,getAttrib:y,getPos:T,parseStyle:J,serializeStyle:ee,addStyle:te,loadCSS:ne,addClass:ie,removeClass:oe,hasClass:ae,toggleClass:re,show:se,hide:ce,isHidden:ue,uniqueId:le,setHTML:H,getOuterHTML:de,setOuterHTML:fe,decode:$,encode:G,insertAfter:he,replace:pe,rename:ge,findCommonAncestor:me,toHex:ve,run:W,getAttribs:x,isEmpty:ye,createRng:xe,nodeIndex:zu,split:_e,bind:De,unbind:Ce,fire:ke,getContentEditable:Te,getContentEditableParent:Se,destroy:Ae,isChildOf:Ee,dumpRng:Ue},Fe=Bu(d,t,U(Oe));return Oe};Wu.DOM=Wu(document),Wu.nodeIndex=zu;var ju=Wu.DOM,Hu=pn.each,Vu=pn.grep,qu=0,$u=1,Gu=2,Xu=3,Yu=function(){function e(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}return e.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},e.prototype.loadScript=function(e,t,n){var r,i=ju,o=function(){i.remove(c),r&&(r.onerror=r.onload=r=null)},a=function(){o(),t()},s=function(){o(),k(n)?n():"undefined"!==typeof console&&console.log&&console.log("Failed to load script: "+e)},c=i.uniqueId();r=document.createElement("script"),r.id=c,r.type="text/javascript",r.src=pn._addCacheSuffix(e),this.settings.referrerPolicy&&i.setAttrib(r,"referrerpolicy",this.settings.referrerPolicy),r.onload=a,r.onerror=s,(document.getElementsByTagName("head")[0]||document.body).appendChild(r)},e.prototype.isDone=function(e){return this.states[e]===Gu},e.prototype.markDone=function(e){this.states[e]=Gu},e.prototype.add=function(e,t,n,r){var i=this.states[e];this.queue.push(e),void 0===i&&(this.states[e]=qu),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},e.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},e.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},e.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},e.prototype.loadScripts=function(e,t,n,r){var i=this,o=[],a=function(e,t){Hu(i.scriptLoadedCallbacks[t],(function(t){k(t[e])&&t[e].call(t.scope)})),i.scriptLoadedCallbacks[t]=void 0};i.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this});var s=function(){var t=Vu(e);if(e.length=0,Hu(t,(function(e){i.states[e]!==Gu?i.states[e]!==Xu?i.states[e]!==$u&&(i.states[e]=$u,i.loading++,i.loadScript(e,(function(){i.states[e]=Gu,i.loading--,a("success",e),s()}),(function(){i.states[e]=Xu,i.loading--,o.push(e),a("failure",e),s()}))):a("failure",e):a("success",e)})),!i.loading){var n=i.queueLoadedCallbacks.slice(0);i.queueLoadedCallbacks.length=0,Hu(n,(function(e){0===o.length?k(e.success)&&e.success.call(e.scope):k(e.failure)&&e.failure.call(e.scope,o)}))}};s()},e.ScriptLoader=new e,e}(),Ku=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Zu=function(e){return b(e)&&Fe(e,"raw")},Ju=function(e){return y(e)&&e.length>1},Qu={},el=Ku("en"),tl=function(){return Oe(Qu,el.get())},nl=function(){return De(Qu,(function(e){return Ve({},e)}))},rl=function(e){e&&el.set(e)},il=function(){return el.get()},ol=function(e,t){var n=Qu[e];n||(Qu[e]=n={}),we(t,(function(e,t){n[t.toLowerCase()]=e}))},al=function(e){var t=tl().getOr({}),n=function(e){return k(e)?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||void 0===e},i=function(e){var r=n(e);return Oe(t,r.toLowerCase()).map(n).getOr(r)},o=function(e){return e.replace(/{context:\w+}$/,"")};if(r(e))return"";if(Zu(e))return n(e.raw);if(Ju(e)){var a=e.slice(1),s=i(e[0]).replace(/\{([0-9]+)\}/g,(function(e,t){return Fe(a,t)?n(a[t]):e}));return o(s)}return o(i(e))},sl=function(){return tl().bind((function(e){return Oe(e,"_dir")})).exists((function(e){return"rtl"===e}))},cl=function(e){return Fe(Qu,e)},ul={getData:nl,setCode:rl,getCode:il,add:ol,translate:al,isRtl:sl,hasCode:cl},ll=function(){var e=[],t={},n={},r=[],i=function(e,t){var n=ne(r,(function(n){return n.name===e&&n.state===t}));Q(n,(function(e){return e.callback()}))},o=function(e){if(n[e])return n[e].instance},a=function(e){var t;return n[e]&&(t=n[e].dependencies),t||[]},s=function(e,n){!1!==ll.languageLoad&&p(e,(function(){var r=ul.getCode(),i=","+(n||"")+",";!r||n&&-1===i.indexOf(","+r+",")||Yu.ScriptLoader.add(t[e]+"/langs/"+r+".js")}),"loaded")},c=function(t,r,o){var a=r;return e.push(a),n[t]={instance:a,dependencies:o},i(t,"added"),a},u=function(e){delete t[e],delete n[e]},l=function(e,t){return"object"===typeof t?t:"string"===typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},d=function(e,n){var r=t[e];Q(n,(function(e){Yu.ScriptLoader.add(r+"/"+e)}))},f=function(e,t,n,r){var i=a(e);Q(i,(function(e){var n=l(t,e);h(n.resource,n,void 0,void 0)})),n&&(r?n.call(r):n.call(Yu))},h=function(e,r,o,a,s){if(!t[e]){var c="string"===typeof r?r:r.prefix+r.resource+r.suffix;0!==c.indexOf("/")&&-1===c.indexOf("://")&&(c=ll.baseURL+"/"+c),t[e]=c.substring(0,c.lastIndexOf("/"));var u=function(){i(e,"loaded"),f(e,r,o,a)};n[e]?u():Yu.ScriptLoader.add(c,u,a,s)}},p=function(e,i,o){void 0===o&&(o="added"),Fe(n,e)&&"added"===o||Fe(t,e)&&"loaded"===o?i():r.push({name:e,state:o,callback:i})};return{items:e,urls:t,lookup:n,_listeners:r,get:o,dependencies:a,requireLangPack:s,add:c,remove:u,createUrl:l,addComponents:d,load:h,waitFor:p}};ll.languageLoad=!0,ll.baseURL="",ll.PluginManager=ll(),ll.ThemeManager=ll();var dl=function(e){var t=Ku(V.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(V.none())},i=function(){return t.get().isSome()},o=function(){return t.get()},a=function(e){n(),t.set(V.some(e))};return{clear:r,isSet:i,get:o,set:a}},fl=function(){var e=dl(S),t=function(t){return e.get().each(t)};return Ve(Ve({},e),{on:t})},hl=function(e,t){var n=null,r=function(){x(n)||(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];x(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))};return{cancel:r,throttle:i}},pl=function(e,t){var n=null,r=function(){x(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},gl=function(e,t){var n=bi(e,t);return void 0===n||""===n?[]:n.split(" ")},ml=function(e,t,n){var r=gl(e,t),i=r.concat([n]);return mi(e,t,i.join(" ")),!0},vl=function(e,t,n){var r=ne(gl(e,t),(function(e){return e!==n}));return r.length>0?mi(e,t,r.join(" ")):_i(e,t),!1},bl=function(e){return void 0!==e.dom.classList},yl=function(e){return gl(e,"class")},xl=function(e,t){return ml(e,"class",t)},_l=function(e,t){return vl(e,"class",t)},wl=function(e,t){bl(e)?e.dom.classList.add(t):xl(e,t)},Dl=function(e){var t=bl(e)?e.dom.classList:yl(e);0===t.length&&_i(e,"class")},Cl=function(e,t){if(bl(e)){var n=e.dom.classList;n.remove(t)}else _l(e,t);Dl(e)},kl=function(e,t){return bl(e)&&e.dom.classList.contains(t)},Tl=function(e,t){var n=[];return Q(rr(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Tl(e,t))})),n},Sl=function(e,t){return On(t,e)},Al=U("mce-annotation"),El=U("data-mce-annotation"),Ul=U("data-mce-annotation-uid"),Ol=function(e,t){var n=e.selection.getRng(),r=xn.fromDom(n.startContainer),i=xn.fromDom(e.getBody()),o=t.fold((function(){return"."+Al()}),(function(e){return"["+El()+'="'+e+'"]'})),a=ir(r,n.startOffset).getOr(r),s=Ao(a,o,(function(e){return Pn(e,i)})),c=function(e,t){return xi(e,t)?V.some(bi(e,t)):V.none()};return s.bind((function(t){return c(t,""+Ul()).bind((function(n){return c(t,""+El()).map((function(t){var r=Pl(e,n);return{uid:n,name:t,elements:r}}))}))}))},Fl=function(e){return Wn(e)&&kl(e,Al())},Pl=function(e,t){var n=xn.fromDom(e.getBody());return Sl(n,"["+Ul()+'="'+t+'"]')},Rl=function(e,t){var n=xn.fromDom(e.getBody()),r=Sl(n,"["+El()+'="'+t+'"]'),i={};return Q(r,(function(e){var t=bi(e,Ul()),n=Oe(i,t).getOr([]);i[t]=n.concat([e])})),i},Nl=function(e,t){var n=Ku({}),r=function(){return{listeners:[],previous:fl()}},i=function(e,t){o(e,(function(e){return t(e),e}))},o=function(e,t){var i=n.get(),o=Oe(i,e).getOrThunk(r),a=t(o);i[e]=a,n.set(i)},a=function(e,t,n){i(e,(function(r){Q(r.listeners,(function(r){return r(!0,e,{uid:t,nodes:J(n,(function(e){return e.dom}))})}))}))},s=function(e){i(e,(function(t){Q(t.listeners,(function(t){return t(!1,e)}))}))},c=pl((function(){var t=n.get(),r=pe(xe(t));Q(r,(function(t){o(t,(function(n){var r=n.previous.get();return Ol(e,V.some(t)).fold((function(){r.isSome()&&(s(t),n.previous.clear())}),(function(e){var t=e.uid,i=e.name,o=e.elements;ui(r,t)||(a(i,t,o),n.previous.set(t))})),{previous:n.previous,listeners:n.listeners}}))}))}),30);e.on("remove",(function(){c.cancel()})),e.on("NodeChange",(function(){c.throttle()}));var u=function(e,t){o(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))};return{addListener:u}},Ml=function(e,t){var n=function(e){return V.from(e.attr(El())).bind(t.lookup)};e.on("init",(function(){e.serializer.addNodeFilter("span",(function(e){Q(e,(function(e){n(e).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}))},Il=function(){var e={},t=function(t,n){e[t]={name:t,settings:n}},n=function(t){return Oe(e,t).map((function(e){return e.settings}))};return{register:t,lookup:n}},Bl=0,Ll=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Bl++,e+"_"+r+Bl+String(n)},zl=function(e,t){Q(t,(function(t){wl(e,t)}))},Wl=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,rr(xn.fromDom(r))},jl=function(e){return J(e,xn.fromDom)},Hl=function(e){return e.dom.innerHTML},Vl=function(e,t){var n=$n(e),r=n.dom,i=xn.fromDom(r.createDocumentFragment()),o=Wl(t,r);Cr(i,o),kr(e),_r(e,i)},ql=function(e,t){return xn.fromDom(e.dom.cloneNode(t))},$l=function(e){return ql(e,!1)},Gl=function(e){return ql(e,!0)},Xl=function(e,t,n){void 0===n&&(n=B);var r=new zo(e,t),i=function(e){var t;do{t=r[e]()}while(t&&!Qr(t)&&!n(t));return V.from(t).filter(Qr)};return{current:function(){return V.from(r.current()).filter(Qr)},next:function(){return i("next")},prev:function(){return i("prev")},prev2:function(){return i("prev2")}}},Yl=function(e,t){var n=t||function(t){return e.isBlock(t)||ri(t)||ai(t)},r=function(e,t,n,i){if(Qr(e)){var o=i(e,t,e.data);if(-1!==o)return V.some({container:e,offset:o})}return n().bind((function(e){return r(e.container,e.offset,n,i)}))},i=function(e,t,i,o){var a=Xl(e,o,n);return r(e,t,(function(){return a.prev().map((function(e){return{container:e,offset:e.length}}))}),i).getOrNull()},o=function(e,t,i,o){var a=Xl(e,o,n);return r(e,t,(function(){return a.next().map((function(e){return{container:e,offset:0}}))}),i).getOrNull()};return{backwards:i,forwards:o}},Kl=Math.round,Zl=function(e){return e?{left:Kl(e.left),top:Kl(e.top),bottom:Kl(e.bottom),right:Kl(e.right),width:Kl(e.width),height:Kl(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Jl=function(e,t){return e=Zl(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},Ql=function(e,t){return e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right},ed=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},td=function(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&ed(t.top-e.bottom,e,t)},nd=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&ed(t.bottom-e.top,e,t)},rd=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},id=function(e,t,n){return Math.min(Math.max(e,t),n)},od=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},ad=function(e,t){if(Hr(e)&&e.hasChildNodes()){var n=e.childNodes,r=id(t,0,n.length-1);return n[r]}return e},sd=function(e,t){return t<0&&Hr(e)&&e.hasChildNodes()?void 0:ad(e,t)},cd=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︯ﾞ-ﾟ]"),ud=function(e){return"string"===typeof e&&e.charCodeAt(0)>=768&&cd.test(e)},ld=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(e[n](t))return!0;return!1}},dd=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(!e[n](t))return!1;return!0}},fd=Hr,hd=La,pd=qr("display","block table"),gd=qr("float","left right"),md=dd(fd,hd,R(gd)),vd=R(qr("white-space","pre pre-line pre-wrap")),bd=Qr,yd=ri,xd=Wu.nodeIndex,_d=sd,wd=function(e){return"createRange"in e?e.createRange():Wu.DOM.createRng()},Dd=function(e){return e&&/[\r\n\t ]/.test(e)},Cd=function(e){return!!e.setStart&&!!e.setEnd},kd=function(e){var t=e.startContainer,n=e.startOffset;if(Dd(e.toString())&&vd(t.parentNode)&&Qr(t)){var r=t.data;if(Dd(r[n-1])||Dd(r[n+1]))return!0}return!1},Td=function(e){var t=e.ownerDocument,n=wd(t),r=t.createTextNode(ua),i=e.parentNode;i.insertBefore(r,e),n.setStart(r,0),n.setEnd(r,1);var o=Zl(n.getBoundingClientRect());return i.removeChild(r),o},Sd=function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,i=e.endOffset;if(t===n&&Qr(n)&&0===r&&1===i){var o=e.cloneRange();return o.setEndAfter(n),Ed(o)}return null},Ad=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},Ed=function(e){var t,n=e.getClientRects();return t=n.length>0?Zl(n[0]):Zl(e.getBoundingClientRect()),!Cd(e)&&yd(e)&&Ad(t)?Td(e):Ad(t)&&Cd(e)?Sd(e):t},Ud=function(e,t){var n=Jl(e,t);return n.width=1,n.right=n.left+1,n},Od=function(e){var t=[],n=function(e){0!==e.height&&(t.length>0&&Ql(e,t[t.length-1])||t.push(e))},r=function(e,r){var i=wd(e.ownerDocument);if(r<e.data.length){if(ud(e.data[r]))return t;if(ud(e.data[r-1])&&(i.setStart(e,r),i.setEnd(e,r+1),!kd(i)))return n(Ud(Ed(i),!1)),t}r>0&&(i.setStart(e,r-1),i.setEnd(e,r),kd(i)||n(Ud(Ed(i),!1))),r<e.data.length&&(i.setStart(e,r),i.setEnd(e,r+1),kd(i)||n(Ud(Ed(i),!0)))},i=e.container(),o=e.offset();if(bd(i))return r(i,o),t;if(fd(i))if(e.isAtEnd()){var a=_d(i,o);bd(a)&&r(a,a.data.length),md(a)&&!yd(a)&&n(Ud(Ed(a),!1))}else{a=_d(i,o);if(bd(a)&&r(a,0),md(a)&&e.isAtEnd())return n(Ud(Ed(a),!1)),t;var s=_d(e.container(),e.offset()-1);md(s)&&!yd(s)&&(pd(s)||pd(a)||!md(a))&&n(Ud(Ed(s),!1)),md(a)&&n(Ud(Ed(a),!0))}return t},Fd=function(e,t,n){var r=function(){return bd(e),0===t},i=function(){return bd(e)?t>=e.data.length:t>=e.childNodes.length},o=function(){var n=wd(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},a=function(){return n||(n=Od(Fd(e,t))),n},s=function(){return a().length>0},c=function(n){return n&&e===n.container()&&t===n.offset()},u=function(n){return _d(e,n?t-1:t)};return{container:U(e),offset:U(t),toRange:o,getClientRects:a,isVisible:s,isAtStart:r,isAtEnd:i,isEqual:c,getNode:u}};Fd.fromRangeStart=function(e){return Fd(e.startContainer,e.startOffset)},Fd.fromRangeEnd=function(e){return Fd(e.endContainer,e.endOffset)},Fd.after=function(e){return Fd(e.parentNode,xd(e)+1)},Fd.before=function(e){return Fd(e.parentNode,xd(e))},Fd.isAbove=function(e,t){return di(me(t.getClientRects()),ve(e.getClientRects()),td).getOr(!1)},Fd.isBelow=function(e,t){return di(ve(t.getClientRects()),me(e.getClientRects()),nd).getOr(!1)},Fd.isAtStart=function(e){return!!e&&e.isAtStart()},Fd.isAtEnd=function(e){return!!e&&e.isAtEnd()},Fd.isTextPosition=function(e){return!!e&&Qr(e.container())},Fd.isElementPosition=function(e){return!1===Fd.isTextPosition(e)};var Pd,Rd=function(e,t){Qr(t)&&0===t.data.length&&e.remove(t)},Nd=function(e,t,n){t.insertNode(n),Rd(e,n.previousSibling),Rd(e,n.nextSibling)},Md=function(e,t,n){var r=V.from(n.firstChild),i=V.from(n.lastChild);t.insertNode(n),r.each((function(t){return Rd(e,t.previousSibling)})),i.each((function(t){return Rd(e,t.nextSibling)}))},Id=function(e,t,n){ni(n)?Md(e,t,n):Nd(e,t,n)},Bd=Qr,Ld=Xr,zd=Wu.nodeIndex,Wd=function(e){var t=e.parentNode;return Ld(t)?Wd(t):t},jd=function(e){return e?We(e.childNodes,(function(e,t){return Ld(t)&&"BR"!==t.nodeName?e=e.concat(jd(t)):e.push(t),e}),[]):[]},Hd=function(e,t){while(e=e.previousSibling){if(!Bd(e))break;t+=e.data.length}return t},Vd=function(e){return function(t){return e===t}},qd=function(e){var t,n;t=jd(Wd(e)),n=je(t,Vd(e),e),t=t.slice(0,n+1);var r=We(t,(function(e,n,r){return Bd(n)&&Bd(t[r-1])&&e++,e}),0);return t=Le(t,Vr([e.nodeName])),n=je(t,Vd(e),e),n-r},$d=function(e){var t;return t=Bd(e)?"text()":e.nodeName.toLowerCase(),t+"["+qd(e)+"]"},Gd=function(e,t,n){var r=[];for(t=t.parentNode;t!==e;t=t.parentNode){if(n&&n(t))break;r.push(t)}return r},Xd=function(e,t){var n,r,i,o,a,s=[];return n=t.container(),r=t.offset(),Bd(n)?i=Hd(n,r):(o=n.childNodes,r>=o.length?(i="after",r=o.length-1):i="before",n=o[r]),s.push($d(n)),a=Gd(e,n),a=Le(a,R(Xr)),s=s.concat(Be(a,(function(e){return $d(e)}))),s.reverse().join("/")+","+i},Yd=function(e,t,n){var r=jd(e);return r=Le(r,(function(e,t){return!Bd(e)||!Bd(r[t-1])})),r=Le(r,Vr([t])),r[n]},Kd=function(e,t){var n,r=e,i=0;while(Bd(r)){if(n=r.data.length,t>=i&&t<=i+n){e=r,t-=i;break}if(!Bd(r.nextSibling)){e=r,t=n;break}i+=n,r=r.nextSibling}return Bd(e)&&t>e.data.length&&(t=e.data.length),Fd(e,t)},Zd=function(e,t){var n;if(!t)return null;var r=t.split(","),i=r[0].split("/");n=r.length>1?r[1]:"before";var o=We(i,(function(e,t){var n=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return n?("text()"===n[1]&&(n[1]="#text"),Yd(e,n[1],parseInt(n[2],10))):null}),e);return o?Bd(o)?Kd(o,parseInt(n,10)):(n="after"===n?zd(o)+1:zd(o),Fd(o.parentNode,n)):null},Jd=ai,Qd=function(e,t,n){var r,i;for(i=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Qr(r);r=r.previousSibling)i+=e(r.data).length;return i},ef=function(e,t,n,r,i){var o,a=r[i?"startContainer":"endContainer"],s=r[i?"startOffset":"endOffset"],c=[],u=0,l=e.getRoot();for(Qr(a)?c.push(n?Qd(t,a,s):s):(o=a.childNodes,s>=o.length&&o.length&&(u=1,s=Math.max(0,o.length-1)),c.push(e.nodeIndex(o[s],n)+u));a&&a!==l;a=a.parentNode)c.push(e.nodeIndex(a,n));return c},tf=function(e,t,n,r){var i=t.dom,o={};return o.start=ef(i,e,n,r,!0),t.isCollapsed()||(o.end=ef(i,e,n,r,!1)),Ua(r)&&(o.isFakeCaret=!0),o},nf=function(e,t,n){var r=0;return pn.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++})),r},rf=function(e,t){var n,r,i,o=t?"start":"end";n=e[o+"Container"],r=e[o+"Offset"],Hr(n)&&"TR"===n.nodeName&&(i=n.childNodes,n=i[Math.min(t?r:r-1,i.length-1)],n&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r)))},of=function(e){return rf(e,!0),rf(e,!1),e},af=function(e,t){var n;if(Hr(e)&&(e=ad(e,t),Jd(e)))return e;if(ya(e)){if(Qr(e)&&va(e)&&(e=e.parentNode),n=e.previousSibling,Jd(n))return n;if(n=e.nextSibling,Jd(n))return n}},sf=function(e){return af(e.startContainer,e.startOffset)||af(e.endContainer,e.endOffset)},cf=function(e,t,n){var r=n.getNode(),i=r?r.nodeName:null,o=n.getRng();if(Jd(r)||"IMG"===i)return{name:i,index:nf(n.dom,i,r)};var a=sf(o);return a?(i=a.tagName,{name:i,index:nf(n.dom,i,a)}):tf(e,n,t,o)},uf=function(e){var t=e.getRng();return{start:Xd(e.dom.getRoot(),Fd.fromRangeStart(t)),end:Xd(e.dom.getRoot(),Fd.fromRangeEnd(t))}},lf=function(e){return{rng:e.getRng()}},df=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,"&#xFEFF;"):e.create("span",r)},ff=function(e,t){var n=e.dom,r=e.getRng(),i=n.uniqueId(),o=e.isCollapsed(),a=e.getNode(),s=a.nodeName;if("IMG"===s)return{name:s,index:nf(n,s,a)};var c=of(r.cloneRange());if(!o){c.collapse(!1);var u=df(n,i+"_end",t);Id(n,c,u)}r=of(r),r.collapse(!0);var l=df(n,i+"_start",t);return Id(n,r,l),e.moveToBookmark({id:i,keep:!0}),{id:i}},hf=function(e,t,n){return 2===t?cf(pa,n,e):3===t?uf(e):t?lf(e):ff(e,!1)},pf=P(cf,O,!0),gf=Wu.DOM,mf="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow",vf=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var i=e.getParam(t,"","hash");return Oe(i,e.id).getOr(n)}return r},bf=function(e){return e.getParam("iframe_attrs",{})},yf=function(e){return e.getParam("doctype","<!DOCTYPE html>")},xf=function(e){return e.getParam("document_base_url","")},_f=function(e){return vf(e,"body_id","tinymce")},wf=function(e){return vf(e,"body_class","")},Df=function(e){return e.getParam("content_security_policy","")},Cf=function(e){return e.getParam("br_in_pre",!0)},kf=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Tf=function(e){return e.getParam("forced_root_block_attrs",{})},Sf=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},Af=function(e){return e.getParam("no_newline_selector","")},Ef=function(e){return e.getParam("keep_styles",!0)},Uf=function(e){return e.getParam("end_container_on_empty_block",!1)},Of=function(e){return pn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},Ff=function(e){return pn.explode(e.getParam("font_size_classes",""))},Pf=function(e){return e.getParam("images_dataimg_filter",L,"function")},Rf=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Nf=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Mf=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},If=function(e){return e.getParam("icons","","string")},Bf=function(e){return e.getParam("icons_url","","string")},Lf=function(e){return e.getParam("images_upload_url","","string")},zf=function(e){return e.getParam("images_upload_base_path","","string")},Wf=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},jf=function(e){return e.getParam("images_upload_handler",null,"function")},Hf=function(e){return e.getParam("content_css_cors",!1,"boolean")},Vf=function(e){return e.getParam("referrer_policy","","string")},qf=function(e){return e.getParam("language","en","string")},$f=function(e){return e.getParam("language_url","","string")},Gf=function(e){return e.getParam("indent_use_margin",!1)},Xf=function(e){return e.getParam("indentation","40px","string")},Yf=function(e){var t=e.getParam("content_css");return v(t)?J(t.split(","),dt):y(t)?t:!1===t||e.inline?[]:["default"]},Kf=function(e){var t=e.getParam("font_css",[]);return y(t)?t:J(t.split(","),dt)},Zf=function(e){return e.getParam("directionality",ul.isRtl()?"rtl":void 0)},Jf=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Qf=function(e){var t=e.getParam("object_resizing");return!1!==t&&!en.iOS&&(v(t)?t:"table,img,figure.image,div,video,iframe")},eh=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},th=function(e){return e.getParam("placeholder",gf.getAttrib(e.getElement(),"placeholder"),"string")},nh=function(e){return e.getParam("event_root")},rh=function(e){return e.getParam("service_message")},ih=function(e){return e.getParam("theme")},oh=function(e){return e.getParam("validate")},ah=function(e){return!1!==e.getParam("inline_boundaries")},sh=function(e){return e.getParam("formats")},ch=function(e){var t=e.getParam("preview_styles",mf);return v(t)?t:""},uh=function(e){return e.getParam("format_empty_lines",!1,"boolean")},lh=function(e){return e.getParam("custom_ui_selector","","string")},dh=function(e){return e.getParam("theme_url")},fh=function(e){return e.getParam("inline")},hh=function(e){return e.getParam("hidden_input")},ph=function(e){return e.getParam("submit_patch")},gh=function(e){return"xml"===e.getParam("encoding")},mh=function(e){return e.getParam("add_form_submit_trigger")},vh=function(e){return e.getParam("add_unload_trigger")},bh=function(e){return""!==kf(e)},yh=function(e){return e.getParam("custom_undo_redo_levels",0,"number")},xh=function(e){return e.getParam("disable_nodechange")},_h=function(e){return e.getParam("readonly")},wh=function(e){return e.getParam("content_css_cors")},Dh=function(e){return e.getParam("plugins","","string")},Ch=function(e){return e.getParam("external_plugins")},kh=function(e){return e.getParam("block_unsupported_drop",!0,"boolean")},Th=function(e){return e.getParam("visual",!0,"boolean")},Sh=function(e){return e.getParam("visual_table_class","mce-item-table","string")},Ah=function(e){return e.getParam("visual_anchor_class","mce-item-anchor","string")},Eh=function(e){return e.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string")},Uh=Hr,Oh=Qr,Fh=function(e){var t=e.parentNode;t&&t.removeChild(e)},Ph=function(e){var t=pa(e);return{count:e.length-t.length,text:t}},Rh=function(e){var t;while(-1!==(t=e.data.lastIndexOf(fa)))e.deleteData(t,1)},Nh=function(e,t){return Wh(e),t},Mh=function(e,t){var n=Ph(e.data.substr(0,t.offset())),r=Ph(e.data.substr(t.offset())),i=n.text+r.text;return i.length>0?(Rh(e),Fd(e,t.offset()-n.count)):t},Ih=function(e,t){var n=t.container(),r=Y(be(n.childNodes),e).map((function(e){return e<t.offset()?Fd(n,t.offset()-1):t})).getOr(t);return Wh(e),r},Bh=function(e,t){return Oh(e)&&t.container()===e?Mh(e,t):Nh(e,t)},Lh=function(e,t){return t.container()===e.parentNode?Ih(e,t):Nh(e,t)},zh=function(e,t){return Fd.isTextPosition(t)?Bh(e,t):Lh(e,t)},Wh=function(e){Uh(e)&&ya(e)&&(xa(e)?e.removeAttribute("data-mce-caret"):Fh(e)),Oh(e)&&(Rh(e),0===e.data.length&&Fh(e))},jh=qt().browser,Hh=ai,Vh=ci,qh=si,$h="*[contentEditable=false],video,audio,embed,object",Gh=function(e,t,n){var r,i,o=Jl(t.getBoundingClientRect(),n);if("BODY"===e.tagName){var a=e.ownerDocument.documentElement;r=e.scrollLeft||a.scrollLeft,i=e.scrollTop||a.scrollTop}else{var s=e.getBoundingClientRect();r=e.scrollLeft-s.left,i=e.scrollTop-s.top}o.left+=r,o.right+=r,o.top+=i,o.bottom+=i,o.width=1;var c=t.offsetWidth-t.clientWidth;return c>0&&(n&&(c*=-1),o.left+=c,o.right+=c),o},Xh=function(e){for(var t=Sl(xn.fromDom(e),$h),n=0;n<t.length;n++){var r=t[n].dom,i=r.previousSibling;if(Sa(i)){var o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(o.length-1,1)}if(i=r.nextSibling,Ta(i)){o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(0,1)}}},Yh=function(e,t,n,r){var i,o,a=fl(),s=kf(e),c=s.length>0?s:"p",u=function(e,r){var i;if(l(),qh(r))return null;if(!n(r))return o=_a(r,e),i=r.ownerDocument.createRange(),Zh(o.nextSibling)?(i.setStart(o,0),i.setEnd(o,0)):(i.setStart(o,1),i.setEnd(o,1)),i;o=ka(c,r,e);var s=Gh(t,r,e);Pu(o).css("top",s.top);var u=Pu('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(Ve({},s)).appendTo(t)[0];return a.set({caret:u,element:r,before:e}),e&&Pu(u).addClass("mce-visual-caret-before"),d(),i=r.ownerDocument.createRange(),i.setStart(o,0),i.setEnd(o,0),i},l=function(){Xh(t),o&&(Wh(o),o=null),a.on((function(e){Pu(e.caret).remove(),a.clear()})),i&&(Mo.clearInterval(i),i=void 0)},d=function(){i=Mo.setInterval((function(){r()?Pu("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Pu("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")}),500)},f=function(){a.on((function(e){var n=Gh(t,e.element,e.before);Pu(e.caret).css(Ve({},n))}))},h=function(){return Mo.clearInterval(i)},p=function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"};return{show:u,hide:l,getCss:p,reposition:f,destroy:h}},Kh=function(){return jh.isIE()||jh.isEdge()||jh.isFirefox()},Zh=function(e){return Hh(e)||Vh(e)},Jh=function(e){return Zh(e)||Kr(e)&&Kh()},Qh=ai,ep=ci,tp=qr("display","block table table-cell table-caption list-item"),np=ya,rp=va,ip=Hr,op=La,ap=function(e){return e>0},sp=function(e){return e<0},cp=function(e,t){var n;while(n=e(t))if(!rp(n))return n;return null},up=function(e,t,n,r,i){var o=new zo(e,r),a=Qh(e)||rp(e);if(sp(t)){if(a&&(e=cp(o.prev.bind(o),!0),n(e)))return e;while(e=cp(o.prev.bind(o),i))if(n(e))return e}if(ap(t)){if(a&&(e=cp(o.next.bind(o),!0),n(e)))return e;while(e=cp(o.next.bind(o),i))if(n(e))return e}return null},lp=function(e,t){while(e&&e!==t){if(tp(e))return e;e=e.parentNode}return null},dp=function(e,t,n){return lp(e.container(),n)===lp(t.container(),n)},fp=function(e,t){if(!t)return null;var n=t.container(),r=t.offset();return ip(n)?n.childNodes[r+e]:null},hp=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},pp=function(e,t,n){return lp(t,e)===lp(n,e)},gp=function(e,t,n){var r=e?"previousSibling":"nextSibling";while(n&&n!==t){var i=n[r];if(np(i)&&(i=i[r]),Qh(i)||ep(i)){if(pp(t,i,n))return i;break}if(op(i))break;n=n.parentNode}return null},mp=P(hp,!0),vp=P(hp,!1),bp=function(e,t,n){var r,i=P(gp,!0,t),o=P(gp,!1,t),a=n.startContainer,s=n.startOffset;if(va(a)){ip(a)||(a=a.parentNode);var c=a.getAttribute("data-mce-caret");if("before"===c&&(r=a.nextSibling,Jh(r)))return mp(r);if("after"===c&&(r=a.previousSibling,Jh(r)))return vp(r)}if(!n.collapsed)return n;if(Qr(a)){if(np(a)){if(1===e){if(r=o(a),r)return mp(r);if(r=i(a),r)return vp(r)}if(-1===e){if(r=i(a),r)return vp(r);if(r=o(a),r)return mp(r)}return n}if(Sa(a)&&s>=a.data.length-1)return 1===e&&(r=o(a),r)?mp(r):n;if(Ta(a)&&s<=1)return-1===e&&(r=i(a),r)?vp(r):n;if(s===a.data.length)return r=o(a),r?mp(r):n;if(0===s)return r=i(a),r?vp(r):n}return n},yp=function(e,t){return V.from(fp(e?0:-1,t)).filter(Qh)},xp=function(e,t,n){var r=bp(e,t,n);return-1===e?Fd.fromRangeStart(r):Fd.fromRangeEnd(r)},_p=function(e){return V.from(e.getNode()).map(xn.fromDom)},wp=function(e){return V.from(e.getNode(!0)).map(xn.fromDom)},Dp=function(e,t){while(t=e(t))if(t.isVisible())return t;return t},Cp=function(e,t){var n=dp(e,t);return!(n||!ri(e.getNode()))||n};(function(e){e[e["Backwards"]=-1]="Backwards",e[e["Forwards"]=1]="Forwards"})(Pd||(Pd={}));var kp=ai,Tp=Qr,Sp=Hr,Ap=ri,Ep=La,Up=Va,Op=qa,Fp=function(e,t){var n=[];while(e&&e!==t)n.push(e),e=e.parentNode;return n},Pp=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},Rp=function(e,t){if(ap(e)){if(Ep(t.previousSibling)&&!Tp(t.previousSibling))return Fd.before(t);if(Tp(t))return Fd(t,0)}if(sp(e)){if(Ep(t.nextSibling)&&!Tp(t.nextSibling))return Fd.after(t);if(Tp(t))return Fd(t,t.data.length)}return sp(e)?Ap(t)?Fd.before(t):Fd.after(t):Fd.before(t)},Np=function(e,t){var n=t.nextSibling;return n&&Ep(n)?Tp(n)?Fd(n,0):Fd.before(n):Mp(Pd.Forwards,Fd.after(t),e)},Mp=function(e,t,n){var r,i,o,a;if(!Sp(n)||!t)return null;if(t.isEqual(Fd.after(n))&&n.lastChild){if(a=Fd.after(n.lastChild),sp(e)&&Ep(n.lastChild)&&Sp(n.lastChild))return Ap(n.lastChild)?Fd.before(n.lastChild):a}else a=t;var s=a.container(),c=a.offset();if(Tp(s)){if(sp(e)&&c>0)return Fd(s,--c);if(ap(e)&&c<s.length)return Fd(s,++c);r=s}else{if(sp(e)&&c>0&&(i=Pp(s,c-1),Ep(i)))return!Up(i)&&(o=up(i,e,Op,i),o)?Tp(o)?Fd(o,o.data.length):Fd.after(o):Tp(i)?Fd(i,i.data.length):Fd.before(i);if(ap(e)&&c<s.childNodes.length&&(i=Pp(s,c),Ep(i)))return Ap(i)?Np(n,i):!Up(i)&&(o=up(i,e,Op,i),o)?Tp(o)?Fd(o,0):Fd.before(o):Tp(i)?Fd(i,0):Fd.after(i);r=i||a.getNode()}if((ap(e)&&a.isAtEnd()||sp(e)&&a.isAtStart())&&(r=up(r,e,L,n,!0),Op(r,n)))return Rp(e,r);i=up(r,e,Op,n);var u=He(ne(Fp(s,n),kp));return!u||i&&u.contains(i)?i?Rp(e,i):null:(a=ap(e)?Fd.after(u):Fd.before(u),a)},Ip=function(e){return{next:function(t){return Mp(Pd.Forwards,t,e)},prev:function(t){return Mp(Pd.Backwards,t,e)}}},Bp=function(e,t,n){var r=e?Fd.before(n):Fd.after(n);return qp(e,t,r)},Lp=function(e){return ri(e)?Fd.before(e):Fd.after(e)},zp=function(e){return Fd.isTextPosition(e)?0===e.offset():La(e.getNode())},Wp=function(e){if(Fd.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return La(e.getNode(!0))},jp=function(e,t){return!Fd.isTextPosition(e)&&!Fd.isTextPosition(t)&&e.getNode()===t.getNode(!0)},Hp=function(e){return!Fd.isTextPosition(e)&&ri(e.getNode())},Vp=function(e,t,n){return e?!jp(t,n)&&!Hp(t)&&Wp(t)&&zp(n):!jp(n,t)&&zp(t)&&Wp(n)},qp=function(e,t,n){var r=Ip(t);return V.from(e?r.next(n):r.prev(n))},$p=function(e,t,n){return qp(e,t,n).bind((function(r){return dp(n,r,t)&&Vp(e,n,r)?qp(e,t,r):V.some(r)}))},Gp=function(e,t,n,r){return $p(e,t,n).bind((function(n){return r(n)?Gp(e,t,n,r):V.some(n)}))},Xp=function(e,t){var n=e?t.firstChild:t.lastChild;return Qr(n)?V.some(Fd(n,e?0:n.data.length)):n?La(n)?V.some(e?Fd.before(n):Lp(n)):Bp(e,t,n):V.none()},Yp=P(qp,!0),Kp=P(qp,!1),Zp=P(Xp,!0),Jp=P(Xp,!1),Qp="_mce_caret",eg=function(e){return Hr(e)&&e.id===Qp},tg=function(e,t){while(t&&t!==e){if(t.id===Qp)return t;t=t.parentNode}return null},ng=function(e){return v(e.start)},rg=function(e){return Fe(e,"rng")},ig=function(e){return Fe(e,"id")},og=function(e){return Fe(e,"name")},ag=function(e){return pn.isArray(e.start)},sg=function(e,t){return Hr(t)&&e.isBlock(t)&&!t.innerHTML&&!en.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},cg=function(e,t){var n,r=e.createRng();return n=Zd(e.getRoot(),t.start),r.setStart(n.container(),n.offset()),n=Zd(e.getRoot(),t.end),r.setEnd(n.container(),n.offset()),r},ug=function(e,t){var n=e.ownerDocument.createTextNode(fa);e.appendChild(n),t.setStart(n,0),t.setEnd(n,0)},lg=function(e){return!1===e.hasChildNodes()},dg=function(e,t){return Jp(e).fold(B,(function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0}))},fg=function(e,t,n){return!(!lg(t)||!tg(e,t))&&(ug(t,n),!0)},hg=function(e,t,n,r){var i,o,a,s,c=n[t?"start":"end"],u=e.getRoot();if(c){for(a=c[0],o=u,i=c.length-1;i>=1;i--){if(s=o.childNodes,fg(u,o,r))return!0;if(c[i]>s.length-1)return!!fg(u,o,r)||dg(o,r);o=s[c[i]]}3===o.nodeType&&(a=Math.min(c[0],o.nodeValue.length)),1===o.nodeType&&(a=Math.min(c[0],o.childNodes.length)),t?r.setStart(o,a):r.setEnd(o,a)}return!0},pg=function(e){return Qr(e)&&e.data.length>0},gg=function(e,t,n){var r,i,o,a,s,c,u=e.get(n.id+"_"+t),l=n.keep;if(u){if(r=u.parentNode,"start"===t?(l?u.hasChildNodes()?(r=u.firstChild,i=1):pg(u.nextSibling)?(r=u.nextSibling,i=0):pg(u.previousSibling)?(r=u.previousSibling,i=u.previousSibling.data.length):(r=u.parentNode,i=e.nodeIndex(u)+1):i=e.nodeIndex(u),s=r,c=i):(l?u.hasChildNodes()?(r=u.firstChild,i=1):pg(u.previousSibling)?(r=u.previousSibling,i=u.previousSibling.data.length):(r=u.parentNode,i=e.nodeIndex(u)):i=e.nodeIndex(u),s=r,c=i),!l){a=u.previousSibling,o=u.nextSibling,pn.each(pn.grep(u.childNodes),(function(e){Qr(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));while(u=e.get(n.id+"_"+t))e.remove(u,!0);a&&o&&a.nodeType===o.nodeType&&Qr(a)&&!en.opera&&(i=a.nodeValue.length,a.appendData(o.nodeValue),e.remove(o),s=a,c=i)}return V.some(Fd(s,c))}return V.none()},mg=function(e,t){var n=e.createRng();return hg(e,!0,t,n)&&hg(e,!1,t,n)?V.some(n):V.none()},vg=function(e,t){var n=gg(e,"start",t),r=gg(e,"end",t);return di(n,r.or(n),(function(t,n){var r=e.createRng();return r.setStart(sg(e,t.container()),t.offset()),r.setEnd(sg(e,n.container()),n.offset()),r}))},bg=function(e,t){return V.from(e.select(t.name)[t.index]).map((function(t){var n=e.createRng();return n.selectNode(t),n}))},yg=function(e,t){var n=e.dom;if(t){if(ag(t))return mg(n,t);if(ng(t))return V.some(cg(n,t));if(ig(t))return vg(n,t);if(og(t))return bg(n,t);if(rg(t))return V.some(t.rng)}return V.none()},xg=function(e,t,n){return hf(e,t,n)},_g=function(e,t){yg(e,t).each((function(t){e.setRng(t)}))},wg=function(e){return Hr(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Dg=function(e){return function(t){return e===t}},Cg=Dg(ua),kg=function(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)},Tg=function(e){return!kg(e)&&!Cg(e)},Sg=function(e){return!!e.nodeType},Ag=function(e){return e&&/^(IMG)$/.test(e.nodeName)},Eg=function(e,t,n){var r=n.startOffset,i=n.startContainer;if((i!==n.endContainer||!Ag(i.childNodes[r]))&&Hr(i)){var o=i.childNodes,a=void 0;r<o.length?(i=o[r],a=new zo(i,e.getParent(i,e.isBlock))):(i=o[o.length-1],a=new zo(i,e.getParent(i,e.isBlock)),a.next(!0));for(var s=a.current();s;s=a.next())if(Qr(s)&&!Pg(s))return n.setStart(s,0),void t.setRng(n)}},Ug=function(e,t,n){if(e){var r=t?"nextSibling":"previousSibling";for(e=n?e:e[r];e;e=e[r])if(Hr(e)||!Pg(e))return e}},Og=function(e,t){return Sg(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},Fg=function(e,t,n){return e.schema.isValidChild(t,n)},Pg=function(e,t){if(void 0===t&&(t=!1),C(e)&&Qr(e)){var n=t?e.data.replace(/ /g," "):e.data;return Ga(n)}return!1},Rg=function(e){return C(e)&&Qr(e)&&0===e.length},Ng=function(e,t){return k(e)?e=e(t):C(t)&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e},Mg=function(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},Ig=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},Bg=function(e,t,n){return Ig(e,e.getStyle(t,n),n)},Lg=function(e,t){var n;return e.getParent(t,(function(t){return n=e.getStyle(t,"text-decoration"),n&&"none"!==n})),n},zg=function(e,t,n){return e.getParents(t,n,e.getRoot())},Wg=function(e,t){var n=function(e){var t=function(e){return e.length>1&&"%"===e.charAt(0)};return Z(["styles","attributes"],(function(n){return Oe(e,n).exists((function(e){var n=y(e)?e:Ue(e);return Z(n,t)}))}))};return Z(e.formatter.get(t),n)},jg=function(e,t,n){var r=["inline","block","selector","attributes","styles","classes"],i=function(e){return Ae(e,(function(e,t){return Z(r,(function(e){return e===t}))}))};return Z(e.formatter.get(t),(function(t){var r=i(t);return Z(e.formatter.get(n),(function(e){var t=i(e);return Re(r,t)}))}))},Hg=function(e){return Pe(e,"block")},Vg=function(e){return Pe(e,"selector")},qg=function(e){return Pe(e,"inline")},$g=function(e){return Vg(e)&&qg(e)&&ui(Oe(e,"mixed"),!0)},Gg=function(e){return Vg(e)&&!1!==e.expand&&!qg(e)},Xg=wg,Yg=zg,Kg=Pg,Zg=Og,Jg=function(e){return ri(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling},Qg=function(e,t){var n=t;while(n){if(Hr(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},em=function(e,t,n,r){for(var i=t.data,o=n;e?o>=0:o<i.length;e?o--:o++)if(r(i.charAt(o)))return e?o+1:o;return-1},tm=function(e,t,n){return em(e,t,n,(function(e){return Cg(e)||kg(e)}))},nm=function(e,t,n){return em(e,t,n,Tg)},rm=function(e,t,n,r,i,o){var a,s=e.getParent(n,e.isBlock)||t,c=function(t,n,r){var o=Yl(e),c=i?o.backwards:o.forwards;return V.from(c(t,n,(function(e,t){return Xg(e.parentNode)?-1:(a=e,r(i,e,t))}),s))},u=c(n,r,tm);return u.bind((function(e){return o?c(e.container,e.offset+(i?-1:0),nm):V.some(e)})).orThunk((function(){return a?V.some({container:a,offset:i?0:a.length}):V.none()}))},im=function(e,t,n,r,i){Qr(r)&&gt(r.data)&&r[i]&&(r=r[i]);for(var o=Yg(e,r),a=0;a<o.length;a++)for(var s=0;s<t.length;s++){var c=t[s];if((!C(c.collapsed)||c.collapsed===n.collapsed)&&(Vg(c)&&e.is(o[a],c.selector)))return o[a]}return r},om=function(e,t,n,r){var i=n,o=e.dom,a=o.getRoot(),s=t[0];if(Hg(s)&&(i=s.wrapper?null:o.getParent(n,s.block,a)),!i){var c=o.getParent(n,"LI,TD,TH");i=o.getParent(Qr(n)?n.parentNode:n,(function(t){return t!==a&&Zg(e,t)}),c)}if(i&&Hg(s)&&s.wrapper&&(i=Yg(o,i,"ul,ol").reverse()[0]||i),!i){i=n;while(i[r]&&!o.isBlock(i[r]))if(i=i[r],Mg(i,"br"))break}return i||n},am=function(e,t,n,r){var i=n.parentNode;return!C(n[r])&&(!(i!==t&&!D(i)&&!e.isBlock(i))||am(e,t,i,r))},sm=function(e,t,n,r,i){var o=n,a=i?"previousSibling":"nextSibling",s=e.getRoot();if(Qr(n)&&!Kg(n)&&(i?r>0:r<n.data.length))return n;while(1){if(!t[0].block_expand&&e.isBlock(o))return o;for(var c=o[a];c;c=c[a]){var u=Qr(c)&&!am(e,s,c,a);if(!Xg(c)&&!Jg(c)&&!Kg(c,u))return o}if(o===s||o.parentNode===s){n=o;break}o=o.parentNode}return n},cm=function(e){return Xg(e.parentNode)||Xg(e)},um=function(e,t,n,r){void 0===r&&(r=!1);var i=t.startContainer,o=t.startOffset,a=t.endContainer,s=t.endOffset,c=e.dom,u=n[0];if(Hr(i)&&i.hasChildNodes()&&(i=ad(i,o),Qr(i)&&(o=0)),Hr(a)&&a.hasChildNodes()&&(a=ad(a,t.collapsed?s:s-1),Qr(a)&&(s=a.nodeValue.length)),i=Qg(c,i),a=Qg(c,a),cm(i)&&(i=Xg(i)?i:i.parentNode,i=t.collapsed?i.previousSibling||i:i.nextSibling||i,Qr(i)&&(o=t.collapsed?i.length:0)),cm(a)&&(a=Xg(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,Qr(a)&&(s=t.collapsed?0:a.length)),t.collapsed){var l=rm(c,e.getBody(),i,o,!0,r);l.each((function(e){var t=e.container,n=e.offset;i=t,o=n}));var d=rm(c,e.getBody(),a,s,!1,r);d.each((function(e){var t=e.container,n=e.offset;a=t,s=n}))}return(qg(u)||u.block_expand)&&(qg(u)&&Qr(i)&&0!==o||(i=sm(c,n,i,o,!0)),qg(u)&&Qr(a)&&s!==a.nodeValue.length||(a=sm(c,n,a,s,!1))),Gg(u)&&(i=im(c,n,t,i,"previousSibling"),a=im(c,n,t,a,"nextSibling")),(Hg(u)||Vg(u))&&(i=om(e,n,i,"previousSibling"),a=om(e,n,a,"nextSibling"),Hg(u)&&(c.isBlock(i)||(i=sm(c,n,i,o,!0)),c.isBlock(a)||(a=sm(c,n,a,s,!1)))),Hr(i)&&(o=c.nodeIndex(i),i=i.parentNode),Hr(a)&&(s=c.nodeIndex(a)+1,a=a.parentNode),{startContainer:i,startOffset:o,endContainer:a,endOffset:s}},lm=function(e,t,n){var r=t.startOffset,i=ad(t.startContainer,r),o=t.endOffset,a=ad(t.endContainer,o-1),s=function(e){var t=e[0];Qr(t)&&t===i&&r>=t.data.length&&e.splice(0,1);var n=e[e.length-1];return 0===o&&e.length>0&&n===a&&Qr(n)&&e.splice(e.length-1,1),e},c=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},u=function(t,n){return e.getParent(t,(function(e){return e.parentNode===n}),n)},l=function(e,t,r){for(var i=r?"nextSibling":"previousSibling",o=e,a=o.parentNode;o&&o!==t;o=a){a=o.parentNode;var u=c(o===e?o:o[i],i);u.length&&(r||u.reverse(),n(s(u)))}};if(i===a)return n(s([i]));var d=e.findCommonAncestor(i,a);if(e.isChildOf(i,a))return l(i,d,!0);if(e.isChildOf(a,i))return l(a,d);var f=u(i,d)||i,h=u(a,d)||a;l(i,f,!0);var p=c(f===i?f:f.nextSibling,"nextSibling",h===a?h.nextSibling:h);p.length&&n(s(p)),l(a,h)},dm=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},fm=function(e){return ue(e,(function(e){var t=od(e);return t?[xn.fromDom(t)]:[]}))},hm=function(e){return dm(e).length>1},pm=function(e){return ne(fm(e),oa)},gm=function(e){return Sl(e,"td[data-mce-selected],th[data-mce-selected]")},mm=function(e,t){var n=gm(t);return n.length>0?n:pm(e)},vm=function(e){return mm(dm(e.selection.getSel()),xn.fromDom(e.getBody()))},bm=function(e,t){return To(e,"table",t)},ym=function(e){var t=e.startContainer,n=e.startOffset;return Qr(t)?0===n?V.some(xn.fromDom(t)):V.none():V.from(t.childNodes[n]).map(xn.fromDom)},xm=function(e){var t=e.endContainer,n=e.endOffset;return Qr(t)?n===t.data.length?V.some(xn.fromDom(t)):V.none():V.from(t.childNodes[n-1]).map(xn.fromDom)},_m=function(e){return or(e).fold(U([e]),(function(t){return[e].concat(_m(t))}))},wm=function(e){return ar(e).fold(U([e]),(function(t){return"br"===In(t)?Qn(t).map((function(t){return[e].concat(wm(t))})).getOr([]):[e].concat(wm(t))}))},Dm=function(e,t){return di(ym(t),xm(t),(function(t,n){var r=ae(_m(e),P(Pn,t)),i=ae(wm(e),P(Pn,n));return r.isSome()&&i.isSome()})).getOr(!1)},Cm=function(e,t,n,r){var i=n,o=new zo(n,i),a=Ae(e.schema.getMoveCaretBeforeOnEnterElements(),(function(e,t){return!K(["td","th","table"],t.toLowerCase())}));do{if(Qr(n)&&0!==pn.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName])return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?o.next():o.prev());"BODY"===i.nodeName&&(r?t.setStart(i,0):t.setEnd(i,i.childNodes.length))},km=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0},Tm=function(e,t){var n=vm(e);n.length>0?Q(n,(function(n){var r=n.dom,i=e.dom.createRng();i.setStartBefore(r),i.setEndAfter(r),t(i,!0)})):t(e.selection.getRng(),!1)},Sm=function(e,t,n){var r=ff(e,t);n(r),e.moveToBookmark(r)},Am=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?V.from(t.dom.nodeValue):V.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},Em=Am(jn,"text"),Um=function(e){return Em.get(e)},Om=function(e){return jn(e)&&Um(e)===fa},Fm=function(e,t,n,r){return Kn(t).fold((function(){return"skipping"}),(function(i){return"br"===r||Om(t)?"valid":Fl(t)?"existing":eg(t.dom)?"caret":Fg(e,n,r)&&Fg(e,In(i),n)?"valid":"invalid-child"}))},Pm=function(e,t){var n=um(e,t,[{inline:"span"}]);t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)},Rm=function(e,t,n,r){var i=t.uid,o=void 0===i?Ll("mce-annotation"):i,a=qe(t,["uid"]),s=xn.fromTag("span",e);wl(s,Al()),mi(s,""+Ul(),o),mi(s,""+El(),n);var c=r(o,a),u=c.attributes,l=void 0===u?{}:u,d=c.classes,f=void 0===d?[]:d;return vi(s,l),zl(s,f),s},Nm=function(e,t,n,r,i){var o=[],a=Rm(e.getDoc(),i,n,r),s=fl(),c=function(){s.clear()},u=function(){return s.get().getOrThunk((function(){var e=$l(a);return o.push(e),s.set(e),e}))},l=function(e){Q(e,d)},d=function(t){var n=Fm(e,t,"span",In(t));switch(n){case"invalid-child":c();var r=rr(t);l(r),c();break;case"valid":var i=u();wr(t,i);break}},f=function(e){var t=J(e,xn.fromDom);l(t)};return lm(e.dom,t,(function(e){c(),f(e)})),o},Mm=function(e,t,n,r){e.undoManager.transact((function(){var i=e.selection,o=i.getRng(),a=vm(e).length>0;if(o.collapsed&&!a&&Pm(e,o),i.getRng().collapsed&&!a){var s=Rm(e.getDoc(),r,t,n.decorate);Vl(s,ua),i.getRng().insertNode(s.dom),i.select(s.dom)}else Sm(i,!1,(function(){Tm(e,(function(i){Nm(e,i,t,n.decorate,r)}))}))}))},Im=function(e){var t=Il();Ml(e,t);var n=Nl(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each((function(t){Mm(e,n,t,r)}))},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){Ol(e,V.some(t)).each((function(e){var t=e.elements;Q(t,Sr)}))},getAll:function(t){var n=Rl(e,t);return De(n,(function(e){return J(e,(function(e){return e.dom}))}))}}},Bm=function(e){return{getBookmark:P(xg,e),moveToBookmark:P(_g,e)}};Bm.isBookmarkNode=wg;var Lm=function(e,t){while(t&&t!==e){if(oi(t)||ai(t))return t;t=t.parentNode}return null},zm=function(e,t,n){if(n.collapsed)return!1;if(en.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Hr(r))return Z(r.getClientRects(),(function(n){return rd(n,e,t)}))}return Z(n.getClientRects(),(function(n){return rd(n,e,t)}))},Wm=function(e,t){return e.fire("PreProcess",t)},jm=function(e,t){return e.fire("PostProcess",t)},Hm=function(e){return e.fire("remove")},Vm=function(e){return e.fire("detach")},qm=function(e,t){return e.fire("SwitchMode",{mode:t})},$m=function(e,t,n,r,i){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:i})},Gm=function(e,t,n,r,i){e.fire("ObjectResized",{target:t,width:n,height:r,origin:i})},Xm=function(e){return e.fire("PreInit")},Ym=function(e){return e.fire("PostRender")},Km=function(e){return e.fire("Init")},Zm=function(e,t){return e.fire("PlaceholderToggle",{state:t})},Jm=function(e,t,n){return e.fire(t,n)},Qm=function(e,t,n,r){return e.fire("FormatApply",{format:t,node:n,vars:r})},ev=function(e,t,n,r){return e.fire("FormatRemove",{format:t,node:n,vars:r})},tv={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||tv.metaKeyPressed(e)},metaKeyPressed:function(e){return en.mac?e.metaKey:e.ctrlKey&&!e.altKey}},nv=ai,rv=function(e,t){var n,r,i,o,a,s,c,u,l,d,f,h,p,g,m,v,b,y="data-mce-selected",x=t.dom,_=pn.each,w=t.getDoc(),D=document,k=Math.abs,T=Math.round,S=t.getBody(),A={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},E=function(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))},U=function(e){return ci(e)||x.hasClass(e,"mce-preview-object")},O=function(e,t){if("longpress"===e.type||0===e.type.indexOf("touch")){var n=e.touches[0];return E(e.target)&&!zm(n.clientX,n.clientY,t)}return E(e.target)&&!zm(e.clientX,e.clientY,t)},F=function(e){var n=e.target;O(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(n)},P=function(e){return x.is(e,"figure.image")?[e.querySelector("img")]:x.hasClass(e,"mce-preview-object")&&C(e.firstElementChild)?[e,e.firstElementChild]:[e]},R=function(e){var n=Qf(t);return!!n&&("false"!==e.getAttribute("data-mce-resize")&&(e!==t.getBody()&&(x.hasClass(e,"mce-preview-object")?En(xn.fromDom(e.firstElementChild),n):En(xn.fromDom(e),n))))},N=function(e){return U(e)?x.create("img",{src:en.transparentSrc}):e.cloneNode(!0)},M=function(e,n,r){if(C(r)){var i=P(e);Q(i,(function(e){e.style[n]||!t.schema.isValid(e.nodeName.toLowerCase(),n)?x.setStyle(e,n,r):x.setAttrib(e,n,""+r)}))}},I=function(e,t,n){M(e,"width",t),M(e,"height",n)},B=function(e){var a,y,_,w,D;a=e.screenX-s,y=e.screenY-c,g=a*o[2]+d,m=y*o[3]+f,g=g<5?5:g,m=m<5?5:m,_=(E(n)||U(n))&&!1!==eh(t)?!tv.modifierPressed(e):tv.modifierPressed(e),_&&(k(a)>k(y)?(m=T(g*h),g=T(m/h)):(g=T(m/h),m=T(g*h))),I(r,g,m),w=o.startPos.x+a,D=o.startPos.y+y,w=w>0?w:0,D=D>0?D:0,x.setStyles(i,{left:w,top:D,display:"block"}),i.innerHTML=g+" &times; "+m,o[2]<0&&r.clientWidth<=g&&x.setStyle(r,"left",u+(d-g)),o[3]<0&&r.clientHeight<=m&&x.setStyle(r,"top",l+(f-m)),a=S.scrollWidth-v,y=S.scrollHeight-b,a+y!==0&&x.setStyles(i,{left:w-a,top:D-y}),p||($m(t,n,d,f,"corner-"+o.name),p=!0)},L=function(){var e=p;p=!1,e&&(M(n,"width",g),M(n,"height",m)),x.unbind(w,"mousemove",B),x.unbind(w,"mouseup",L),D!==w&&(x.unbind(D,"mousemove",B),x.unbind(D,"mouseup",L)),x.remove(r),x.remove(i),x.remove(a),z(n),e&&(Gm(t,n,g,m,"corner-"+o.name),x.setAttrib(n,"style",x.getAttrib(n,"style"))),t.nodeChanged()},z=function(e){V();var u=x.getPos(e,S),l=u.x,p=u.y,C=e.getBoundingClientRect(),k=C.width||C.right-C.left,T=C.height||C.bottom-C.top;n!==e&&(W(),n=e,g=m=0);var E=t.fire("ObjectSelected",{target:e}),U=x.getAttrib(n,y,"1");R(e)&&!E.isDefaultPrevented()?_(A,(function(e,t){var u,g=function(u){var g=P(n)[0];s=u.screenX,c=u.screenY,d=g.clientWidth,f=g.clientHeight,h=f/d,o=e,o.name=t,o.startPos={x:k*e[0]+l,y:T*e[1]+p},v=S.scrollWidth,b=S.scrollHeight,a=x.add(S,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),x.setStyles(a,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),r=N(n),x.addClass(r,"mce-clonedresizable"),x.setAttrib(r,"data-mce-bogus","all"),r.contentEditable="false",x.setStyles(r,{left:l,top:p,margin:0}),I(r,k,T),r.removeAttribute(y),S.appendChild(r),x.bind(w,"mousemove",B),x.bind(w,"mouseup",L),D!==w&&(x.bind(D,"mousemove",B),x.bind(D,"mouseup",L)),i=x.add(S,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},d+" &times; "+f)};u=x.get("mceResizeHandle"+t),u&&x.remove(u),u=x.add(S,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===en.ie&&(u.contentEditable=!1),x.bind(u,"mousedown",(function(e){e.stopImmediatePropagation(),e.preventDefault(),g(e)})),e.elm=u,x.setStyles(u,{left:k*e[0]+l-u.offsetWidth/2,top:T*e[1]+p-u.offsetHeight/2})})):W(),x.getAttrib(n,y)||n.setAttribute(y,U)},W=function(){V(),n&&n.removeAttribute(y),we(A,(function(e,t){var n=x.get("mceResizeHandle"+t);n&&(x.unbind(n),x.remove(n))}))},j=function(n){var r,i,o=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};p||t.removed||(_(x.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute(y)})),i="mousedown"===n.type?n.target:e.getNode(),i=x.$(i).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],o(i,S)&&(q(),r=e.getStart(!0),o(r,i)&&o(e.getEnd(!0),i))?z(i):W())},H=function(e){return nv(Lm(t.getBody(),e))},V=function(){we(A,(function(e){e.elm&&(x.unbind(e.elm),delete e.elm)}))},q=function(){try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(e){}};t.on("init",(function(){if(q(),en.browser.isIE()||en.browser.isEdge()){t.on("mousedown click",(function(e){var n=e.target,r=n.nodeName;p||!/^(TABLE|IMG|HR)$/.test(r)||H(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())}));var e=function(e){var n=function(e){Mo.setEditorTimeout(t,(function(){return t.selection.select(e)}))};if(H(e.target)||ci(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))};x.bind(S,"mscontrolselect",e),t.on("remove",(function(){return x.unbind(S,"mscontrolselect",e)}))}var r=Mo.throttle((function(e){t.composing||j(e)}));t.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",r),t.on("keyup compositionend",(function(e){n&&"TABLE"===n.nodeName&&r(e)})),t.on("hide blur",W),t.on("contextmenu longpress",F,!0)})),t.on("remove",V);var $=function(){n=r=a=null};return{isResizable:R,showResizeRect:z,hideResizeRect:W,updateResizeRect:j,destroy:$}},iv=function(e){return oi(e)||ai(e)},ov=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},av=function(e,t,n){var r,i=n.elementFromPoint(e,t),o=n.body.createTextRange();if(i&&"HTML"!==i.tagName||(i=n.body),o.moveToElementText(i),r=pn.toArray(o.getClientRects()),r=r.sort((function(e,n){return e=Math.abs(Math.max(e.top-t,e.bottom-t)),n=Math.abs(Math.max(n.top-t,n.bottom-t)),e-n})),r.length>0){t=(r[0].bottom+r[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(a){}}return null},sv=function(e,t){var n=e&&e.parentElement?e.parentElement():null;return ai(ov(n,t,iv))?null:e},cv=function(e,t,n){var r,i,o=n;if(o.caretPositionFromPoint)i=o.caretPositionFromPoint(e,t),i&&(r=n.createRange(),r.setStart(i.offsetNode,i.offset),r.collapse(!0));else if(o.caretRangeFromPoint)r=o.caretRangeFromPoint(e,t);else if(o.body.createTextRange){r=o.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(a){r=av(e,t,n)}return sv(r,n.body)}return r},uv=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},lv=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},dv=function(e,t,n){return null!==lv(e,t,n)},fv=function(e,t,n){return dv(e,t,(function(e){return e.nodeName===n}))},hv=function(e){return e&&"TABLE"===e.nodeName},pv=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},gv=function(e,t){return ya(e)&&!1===dv(e,t,eg)},mv=function(e,t,n){var r=new zo(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());while(t=r[n?"prev":"next"]())if(ri(t))return!0},vv=function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t},bv=function(e,t){while(t&&t!==e){if(ai(t))return!0;t=t.parentNode}return!1},yv=function(e,t,n,r,i){var o,a,s=e.getRoot(),c=e.schema.getNonEmptyElements(),u=e.getParent(i.parentNode,e.isBlock)||s;if(r&&ri(i)&&t&&e.isEmpty(u))return V.some(Fd(i.parentNode,e.nodeIndex(i)));var l=new zo(i,u);while(a=l[r?"prev":"next"]()){if("false"===e.getContentEditableParent(a)||gv(a,s))return V.none();if(Qr(a)&&a.nodeValue.length>0)return!1===fv(a,s,"A")?V.some(Fd(a,r?a.nodeValue.length:0)):V.none();if(e.isBlock(a)||c[a.nodeName.toLowerCase()])return V.none();o=a}return n&&o?V.some(Fd(o,0)):V.none()},xv=function(e,t,n,r){var i,o,a,s,c=e.getRoot(),u=!1;i=r[(n?"start":"end")+"Container"],o=r[(n?"start":"end")+"Offset"];var l=Hr(i)&&o===i.childNodes.length,d=e.schema.getNonEmptyElements();if(s=n,ya(i))return V.none();if(Hr(i)&&o>i.childNodes.length-1&&(s=!1),ti(i)&&(i=c,o=0),i===c){if(s&&(a=i.childNodes[o>0?o-1:0],a)){if(ya(a))return V.none();if(d[a.nodeName]||hv(a))return V.none()}if(i.hasChildNodes()){if(o=Math.min(!s&&o>0?o-1:o,i.childNodes.length-1),i=i.childNodes[o],o=Qr(i)&&l?i.data.length:0,!t&&i===c.lastChild&&hv(i))return V.none();if(bv(c,i)||ya(i))return V.none();if(i.hasChildNodes()&&!1===hv(i)){a=i;var f=new zo(i,c);do{if(ai(a)||ya(a)){u=!1;break}if(Qr(a)&&a.nodeValue.length>0){o=s?0:a.nodeValue.length,i=a,u=!0;break}if(d[a.nodeName.toLowerCase()]&&!pv(a)){o=e.nodeIndex(a),i=a.parentNode,s||o++,u=!0;break}}while(a=s?f.next():f.prev())}}}return t&&(Qr(i)&&0===o&&yv(e,l,t,!0,i).each((function(e){i=e.container(),o=e.offset(),u=!0})),Hr(i)&&(a=i.childNodes[o],a||(a=i.childNodes[o-1]),!a||!ri(a)||vv(a,"A")||mv(e,a,!1)||mv(e,a,!0)||yv(e,l,t,!0,a).each((function(e){i=e.container(),o=e.offset(),u=!0})))),s&&!t&&Qr(i)&&o===i.nodeValue.length&&yv(e,l,t,!1,i).each((function(e){i=e.container(),o=e.offset(),u=!0})),u?V.some(Fd(i,o)):V.none()},_v=function(e,t){var n=t.collapsed,r=t.cloneRange(),i=Fd.fromRangeStart(t);return xv(e,n,!0,r).each((function(e){n&&Fd.isAbove(i,e)||r.setStart(e.container(),e.offset())})),n||xv(e,n,!1,r).each((function(e){r.setEnd(e.container(),e.offset())})),n&&r.collapse(!0),uv(t,r)?V.none():V.some(r)},wv=function(e,t){return e.splitText(t)},Dv=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset;return t===r&&Qr(t)?n>0&&n<t.nodeValue.length&&(r=wv(t,n),t=r.previousSibling,i>n?(i-=n,t=r=wv(r,i).previousSibling,i=r.nodeValue.length,n=0):i=0):(Qr(t)&&n>0&&n<t.nodeValue.length&&(t=wv(t,n),n=0),Qr(r)&&i>0&&i<r.nodeValue.length&&(r=wv(r,i).previousSibling,i=r.nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:i}},Cv=function(e){var t=function(t,n){return lm(e,t,n)},n=Dv,r=function(t){return _v(e,t).fold(B,(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))};return{walk:t,split:n,normalize:r}};Cv.compareRanges=uv,Cv.getCaretRangeFromPoint=cv,Cv.getSelectedNode=od,Cv.getNode=ad;var kv,Tv=function(e,t){var n=function(t,n){if(!T(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;pi(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=ki(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return ie(t,(function(t,n){var r=ki(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},Sv=Tv("height",(function(e){var t=e.dom;return Ar(e)?t.getBoundingClientRect().height:t.offsetHeight})),Av=function(e){return Sv.get(e)},Ev=function(e,t){var n=e.view(t);return n.fold(U([]),(function(t){var n=e.owner(t),r=Ev(e,n);return[t].concat(r)}))},Uv=function(e,t){var n=t.owner(e);return Ev(t,n)},Ov=function(e){var t,n=e.dom===document?V.none():V.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(xn.fromDom)},Fv=function(e){return Gn(e)},Pv=Object.freeze({__proto__:null,view:Ov,owner:Fv}),Rv=function(e){var t=xn.fromDom(document),n=Nr(t),r=Uv(e,Pv),i=Rr(e),o=re(r,(function(e,t){var n=Rr(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return Ur(o.left+i.left+n.left,o.top+i.top+n.top)},Nv=function(e){return"textarea"===In(e)},Mv=function(e,t){var n=e.fire("ScrollIntoView",t);return n.isDefaultPrevented()},Iv=function(e,t){e.fire("AfterScrollIntoView",t)},Bv=function(e,t){var n=rr(e);if(0===n.length||Nv(e))return{element:e,offset:t};if(t<n.length&&!Nv(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return Nv(r)?{element:e,offset:t}:"img"===In(r)?{element:r,offset:1}:jn(r)?{element:r,offset:Um(r).length}:{element:r,offset:rr(r).length}},Lv=function(e,t){var n=Pr(e),r=Av(e);return{element:e,bottom:n.top+r,height:r,pos:n,cleanup:t}},zv=function(e,t){var n=Bv(e,t),r=xn.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">'+fa+"</span>");return br(n.element,r),Lv(r,(function(){return Tr(r)}))},Wv=function(e){return Lv(xn.fromDom(e),S)},jv=function(e,t,n,r){$v(e,(function(i,o){return Vv(e,t,n,r)}),n)},Hv=function(e,t,n,r,i){var o={elm:r.element.dom,alignToTop:i};if(!Mv(e,o)){var a=Nr(t).top;n(t,a,r,i),Iv(e,o)}},Vv=function(e,t,n,r){var i=xn.fromDom(e.getBody()),o=xn.fromDom(e.getDoc());Ei(i);var a=zv(xn.fromDom(n.startContainer),n.startOffset);Hv(e,o,t,a,r),a.cleanup()},qv=function(e,t,n,r){var i=xn.fromDom(e.getDoc());Hv(e,i,n,Wv(t),r)},$v=function(e,t,n){var r=n.startContainer,i=n.startOffset,o=n.endContainer,a=n.endOffset;t(xn.fromDom(r),xn.fromDom(o));var s=e.dom.createRng();s.setStart(r,i),s.setEnd(o,a),e.selection.setRng(n)},Gv=function(e,t,n,r){var i=e.pos;if(n)Mr(i.left,i.top,r);else{var o=i.top-t+e.height;Mr(i.left,o,r)}},Xv=function(e,t,n,r,i){var o=n+t,a=r.pos.top,s=r.bottom,c=s-a>=n;if(a<t)Gv(r,n,!1!==i,e);else if(a>o){var u=c?!1!==i:!0===i;Gv(r,n,u,e)}else s>o&&!c&&Gv(r,n,!0===i,e)},Yv=function(e,t,n,r){var i=e.dom.defaultView.innerHeight;Xv(e,t,i,n,r)},Kv=function(e,t,n,r){var i=e.dom.defaultView.innerHeight;Xv(e,t,i,n,r);var o=Rv(n.element),a=zr(window);o.top<a.y?Ir(n.element,!1!==r):o.top>a.bottom&&Ir(n.element,!0===r)},Zv=function(e,t,n){return jv(e,Yv,t,n)},Jv=function(e,t,n){return qv(e,t,Yv,n)},Qv=function(e,t,n){return jv(e,Kv,t,n)},eb=function(e,t,n){return qv(e,t,Kv,n)},tb=function(e,t,n){var r=e.inline?Jv:eb;r(e,t,n)},nb=function(e,t,n){var r=e.inline?Zv:Qv;r(e,t,n)},rb=function(){return xn.fromDom(document)},ib=function(e){return e.dom.focus()},ob=function(e){var t=fr(e).dom;return e.dom===t.activeElement},ab=function(e){return void 0===e&&(e=rb()),V.from(e.dom.activeElement).map(xn.fromDom)},sb=function(e){return ab(fr(e)).filter((function(t){return e.dom.contains(t.dom)}))},cb=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},ub={create:cb},lb=Qi.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),db=function(e,t,n,r){return e.fold(t,n,r)},fb=function(e){return e.fold(O,O,O)},hb=lb.before,pb=lb.on,gb=lb.after,mb={before:hb,on:pb,after:gb,cata:db,getStart:fb},vb=Qi.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),bb=function(e){return vb.exact(e.start,e.soffset,e.finish,e.foffset)},yb=function(e){return e.match({domRange:function(e){return xn.fromDom(e.startContainer)},relative:function(e,t){return mb.getStart(e)},exact:function(e,t,n,r){return e}})},xb=vb.domRange,_b=vb.relative,wb=vb.exact,Db=function(e){var t=yb(e);return Yn(t)},Cb=ub.create,kb={domRange:xb,relative:_b,exact:wb,exactFromRange:bb,getWin:Db,range:Cb},Tb=qt().browser,Sb=function(e,t){var n=jn(t)?Um(t).length:rr(t).length+1;return e>n?n:e<0?0:e},Ab=function(e){return kb.range(e.start,Sb(e.soffset,e.start),e.finish,Sb(e.foffset,e.finish))},Eb=function(e,t){return!jr(t.dom)&&(Mn(e,t)||Pn(e,t))},Ub=function(e){return function(t){return Eb(e,t.start)&&Eb(e,t.finish)}},Ob=function(e){return!0===e.inline||Tb.isIE()},Fb=function(e){return kb.range(xn.fromDom(e.startContainer),e.startOffset,xn.fromDom(e.endContainer),e.endOffset)},Pb=function(e){var t=e.getSelection(),n=t&&0!==t.rangeCount?V.from(t.getRangeAt(0)):V.none();return n.map(Fb)},Rb=function(e){var t=Yn(e);return Pb(t.dom).filter(Ub(e))},Nb=function(e,t){return V.from(t).filter(Ub(e)).map(Ab)},Mb=function(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),V.some(t)}catch(n){return V.none()}},Ib=function(e){var t=Ob(e)?Rb(xn.fromDom(e.getBody())):V.none();e.bookmark=t.isSome()?t:e.bookmark},Bb=function(e,t){var n=xn.fromDom(e.getBody()),r=Ob(e)?V.from(t):V.none(),i=r.map(Fb).filter(Ub(n));e.bookmark=i.isSome()?i:e.bookmark},Lb=function(e){var t=e.bookmark?e.bookmark:V.none();return t.bind((function(t){return Nb(xn.fromDom(e.getBody()),t)})).bind(Mb)},zb=function(e){Lb(e).each((function(t){return e.selection.setRng(t)}))},Wb=function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},jb={isEditorUIElement:Wb},Hb=function(e){return"nodechange"===e.type&&e.selectionChange},Vb=function(e,t){var n=function(){t.throttle()};Wu.DOM.bind(document,"mouseup",n),e.on("remove",(function(){Wu.DOM.unbind(document,"mouseup",n)}))},qb=function(e){e.on("focusout",(function(){Ib(e)}))},$b=function(e,t){e.on("mouseup touchend",(function(e){t.throttle()}))},Gb=function(e,t){var n=qt().browser;n.isIE()?qb(e):$b(e,t),e.on("keyup NodeChange",(function(t){Hb(t)||Ib(e)}))},Xb=function(e){var t=hl((function(){Ib(e)}),0);e.on("init",(function(){e.inline&&Vb(e,t),Gb(e,t)})),e.on("remove",(function(){t.cancel()}))},Yb=Wu.DOM,Kb=function(e){return jb.isEditorUIElement(e)},Zb=function(e){var t=e.classList;return void 0!==t&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"))},Jb=function(e,t){var n=lh(e),r=Yb.getParent(t,(function(t){return Kb(t)||!!n&&e.dom.is(t,n)}));return null!==r},Qb=function(e){try{var t=fr(xn.fromDom(e.getElement()));return ab(t).fold((function(){return document.body}),(function(e){return e.dom}))}catch(n){return document.body}},ey=function(e,t){var n=t.editor;Xb(n),n.on("focusin",(function(){var t=e.focusedEditor;t!==n&&(t&&t.fire("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.fire("focus",{blurredEditor:t}),n.focus(!0))})),n.on("focusout",(function(){Mo.setEditorTimeout(n,(function(){var t=e.focusedEditor;Jb(n,Qb(n))||t!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),kv||(kv=function(t){var n=e.activeEditor;n&&mr(t).each((function(t){t.ownerDocument===document&&(t===document.body||Jb(n,t)||e.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))}))},Yb.bind(document,"focusin",kv))},ty=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(Yb.unbind(document,"focusin",kv),kv=null)},ny=function(e){e.on("AddEditor",P(ey,e)),e.on("RemoveEditor",P(ty,e))},ry=function(e,t){return e.dom.getParent(t,(function(t){return"true"===e.dom.getContentEditable(t)}))},iy=function(e){return e.collapsed?V.from(ad(e.startContainer,e.startOffset)).map(xn.fromDom):V.none()},oy=function(e,t){return iy(t).bind((function(t){return ia(t)?V.some(t):!1===Mn(e,t)?V.some(e):V.none()}))},ay=function(e,t){oy(xn.fromDom(e.getBody()),t).bind((function(e){return Zp(e.dom)})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))},sy=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},cy=function(e){return ob(e)||sb(e).isSome()},uy=function(e){return e.iframeElement&&ob(xn.fromDom(e.iframeElement))},ly=function(e){var t=e.getBody();return t&&cy(xn.fromDom(t))},dy=function(e){var t=fr(xn.fromDom(e.getElement()));return ab(t).filter((function(t){return!Zb(t.dom)&&Jb(e,t.dom)})).isSome()},fy=function(e){return e.inline?ly(e):uy(e)},hy=function(e){return fy(e)||dy(e)},py=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===fy(e)&&Lb(e).each((function(t){e.selection.setRng(t),r=t}));var i=ry(e,t.getNode());if(e.$.contains(n,i))return sy(i),ay(e,r),void gy(e);e.inline||(en.opera||sy(n),e.getWin().focus()),(en.gecko||e.inline)&&(sy(n),ay(e,r)),gy(e)},gy=function(e){return e.editorManager.setActive(e)},my=function(e,t){e.removed||(t?gy(e):py(e))},vy=function(e,t,n,r,i){var o=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return V.from(o).map(xn.fromDom).map((function(e){return r&&t.collapsed?e:ir(e,i(e,a)).getOr(e)})).bind((function(e){return Wn(e)?V.some(e):Kn(e).filter(Wn)})).map((function(e){return e.dom})).getOr(e)},by=function(e,t,n){return vy(e,t,!0,n,(function(e,t){return Math.min(sr(e),t)}))},yy=function(e,t,n){return vy(e,t,!1,n,(function(e,t){return t>0?t-1:t}))},xy=function(e,t){var n=e;while(e&&Qr(e)&&0===e.length)e=t?e.nextSibling:e.previousSibling;return e||n},_y=function(e,t){var n,r,i;if(!t)return e;r=t.startContainer,i=t.endContainer;var o=t.startOffset,a=t.endOffset;return n=t.commonAncestorContainer,!t.collapsed&&(r===i&&a-o<2&&r.hasChildNodes()&&(n=r.childNodes[o]),3===r.nodeType&&3===i.nodeType&&(r=r.length===o?xy(r.nextSibling,!0):r.parentNode,i=0===a?xy(i.previousSibling,!1):i.parentNode,r&&r===i))?r:n&&3===n.nodeType?n.parentNode:n},wy=function(e,t,n,r){var i,o=[],a=e.getRoot();if(n=e.getParent(n||by(a,t,t.collapsed),e.isBlock),r=e.getParent(r||yy(a,t,t.collapsed),e.isBlock),n&&n!==a&&o.push(n),n&&r&&n!==r){i=n;var s=new zo(n,a);while((i=s.next())&&i!==r)e.isBlock(i)&&o.push(i)}return r&&n!==r&&r!==a&&o.push(r),o},Dy=function(e,t,n){return V.from(t).map((function(t){var r=e.nodeIndex(t),i=e.createRng();return i.setStart(t.parentNode,r),i.setEnd(t.parentNode,r+1),n&&(Cm(e,i,t,!0),Cm(e,i,t,!1)),i}))},Cy=function(e,t){return J(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))},ky={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Ty=function(e,t,n){var r=n?"lastChild":"firstChild",i=n?"prev":"next";if(e[r])return e[r];if(e!==t){var o=e[i];if(o)return o;for(var a=e.parent;a&&a!==t;a=a.parent)if(o=a[i],o)return o}},Sy=function(e){if(!Ga(e.value))return!1;var t=e.parent;return!t||"span"===t.name&&!t.attr("style")||!/^[ ]+$/.test(e.value)},Ay=function(e){var t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t},Ey=function(){function e(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,ky[t]||1);return n&&we(n,(function(e,t){r.attr(t,e)})),r},e.prototype.replace=function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},e.prototype.attr=function(e,t){var n,r=this;if("string"!==typeof e)return void 0!==e&&null!==e&&we(e,(function(e,t){r.attr(t,e)})),r;if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];var i=n.length;while(i--)if(n[i].name===e)return n.splice(i,1),r}return r}if(e in n.map){i=n.length;while(i--)if(n[i].name===e){n[i].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}return n.map[e]}},e.prototype.clone=function(){var t,n=this,r=new e(n.name,n.type);if(t=n.attributes){var i=[];i.map={};for(var o=0,a=t.length;o<a;o++){var s=t[o];"id"!==s.name&&(i[i.length]={name:s.name,value:s.value},i.map[s.name]=s.value)}r.attributes=i}return r.value=n.value,r.shortEnded=n.shortEnded,r},e.prototype.wrap=function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},e.prototype.unwrap=function(){for(var e=this,t=e.firstChild;t;){var n=t.next;e.insert(t,e,!0),t=n}e.remove()},e.prototype.remove=function(){var e=this,t=e.parent,n=e.next,r=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e},e.prototype.append=function(e){var t=this;e.parent&&e.remove();var n=t.lastChild;return n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},e.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},e.prototype.getAll=function(e){for(var t=this,n=[],r=t.firstChild;r;r=Ty(r,t))r.name===e&&n.push(r);return n},e.prototype.children=function(){for(var e=this,t=[],n=e.firstChild;n;n=n.next)t.push(n);return t},e.prototype.empty=function(){var e=this;if(e.firstChild){for(var t=[],n=e.firstChild;n;n=Ty(n,e))t.push(n);var r=t.length;while(r--){n=t[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return e.firstChild=e.lastChild=null,e},e.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this,i=r.firstChild;if(Ay(r))return!1;if(i)do{if(1===i.type){if(i.attr("data-mce-bogus"))continue;if(e[i.name])return!1;if(Ay(i))return!1}if(8===i.type)return!1;if(3===i.type&&!Sy(i))return!1;if(3===i.type&&i.parent&&t[i.parent.name]&&Ga(i.value))return!1;if(n&&n(i))return!1}while(i=Ty(i,r));return!0},e.prototype.walk=function(e){return Ty(this,null,e)},e}(),Uy=pn.makeMap("NOSCRIPT STYLE SCRIPT XMP IFRAME NOEMBED NOFRAMES PLAINTEXT"," "),Oy=function(e){return v(e.nodeValue)&&ct(e.nodeValue,fa)},Fy=function(e){return(0===e.length?"":J(e,(function(e){return"["+e+"]"})).join(",")+",")+'[data-mce-bogus="all"]'},Py=function(e,t){return t.querySelectorAll(Fy(e))},Ry=function(e,t,n){return document.createTreeWalker(e,t,n,!1)},Ny=function(e){return Ry(e,NodeFilter.SHOW_COMMENT,(function(e){return Oy(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}))},My=function(e){return Ry(e,NodeFilter.SHOW_TEXT,(function(e){if(Oy(e)){var t=e.parentNode;return t&&Fe(Uy,t.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_SKIP}))},Iy=function(e){return null!==Ny(e).nextNode()},By=function(e){return null!==My(e).nextNode()},Ly=function(e,t){return null!==t.querySelector(Fy(e))},zy=function(e,t){Q(Py(e,t),(function(t){var n=xn.fromDom(t);"all"===bi(n,"data-mce-bogus")?Tr(n):Q(e,(function(e){xi(n,e)&&_i(n,e)}))}))},Wy=function(e){var t=e.nextNode();while(null!==t)t.nodeValue=null,t=e.nextNode()},jy=A(Wy,Ny),Hy=A(Wy,My),Vy=function(e,t){var n=[{condition:P(Ly,t),action:P(zy,t)},{condition:Iy,action:jy},{condition:By,action:Hy}],r=e,i=!1;return Q(n,(function(t){var n=t.condition,o=t.action;n(r)&&(i||(r=e.cloneNode(!0),i=!0),o(r))})),r},qy=function(e,t){var n=kf(e),r=new RegExp("^(<"+n+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return t.replace(r,"")},$y=function(e,t){return Ve(Ve({},e),{format:t,get:!0,getInner:!0})},Gy=function(e,t,n,r){var i,o=$y(t,n),a=t.no_events?o:e.fire("BeforeGetContent",o);return i="raw"===a.format?pn.trim(pa(Vy(r,e.serializer.getTempAttrs()).innerHTML)):"text"===a.format?e.dom.isEmpty(r)?"":pa(r.innerText||r.textContent):"tree"===a.format?e.serializer.serialize(r,a):qy(e,e.serializer.serialize(r,a)),K(["text","tree"],a.format)||aa(xn.fromDom(r))?a.content=i:a.content=pn.trim(i),a.no_events?a.content:e.fire("GetContent",a).content},Xy=function(e,t,n){return V.from(e.getBody()).fold(U("tree"===t.format?new Ey("body",11):""),(function(r){return Gy(e,t,n,r)}))},Yy=pn.each,Ky=function(e){var t=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return Yy(e.getAttribs(t),(function(r){var i=r.nodeName.toLowerCase();0!==i.indexOf("_")&&"style"!==i&&0!==i.indexOf("data-")&&(n[i]=e.getAttrib(t,i))})),n},i=function(e,t){var n,r;for(r in e)if(Fe(e,r)){if(n=t[r],"undefined"===typeof n)return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(Fe(t,r))return!1;return!0};return!!i(r(t),r(n))&&(!!i(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))&&(!wg(t)&&!wg(n)))};return{compare:t}},Zy=pn.makeMap,Jy=function(e){var t=[];e=e||{};var n=e.indent,r=Zy(e.indent_before||""),i=Zy(e.indent_after||""),o=As.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format;return{start:function(e,s,c){var u,l,d,f;if(n&&r[e]&&t.length>0&&(f=t[t.length-1],f.length>0&&"\n"!==f&&t.push("\n")),t.push("<",e),s)for(u=0,l=s.length;u<l;u++)d=s[u],t.push(" ",d.name,'="',o(d.value,!0),'"');t[t.length]=!c||a?">":" />",c&&n&&i[e]&&t.length>0&&(f=t[t.length-1],f.length>0&&"\n"!==f&&t.push("\n"))},end:function(e){var r;t.push("</",e,">"),n&&i[e]&&t.length>0&&(r=t[t.length-1],r.length>0&&"\n"!==r&&t.push("\n"))},text:function(e,n){e.length>0&&(t[t.length]=n?e:o(e))},cdata:function(e){t.push("<![CDATA[",e,"]]>")},comment:function(e){t.push("\x3c!--",e,"--\x3e")},pi:function(e,r){r?t.push("<?",e," ",o(r),"?>"):t.push("<?",e,"?>"),n&&t.push("\n")},doctype:function(e){t.push("<!DOCTYPE",e,">",n?"\n":"")},reset:function(){t.length=0},getContent:function(){return t.join("").replace(/\n$/,"")}}},Qy=function(e,t){void 0===t&&(t=Ws());var n=Jy(e);e=e||{},e.validate=!("validate"in e)||e.validate;var r=function(r){var i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)do{a(e)}while(e=e.next)}};n.reset();var a=function(e){var r=o[e.type];if(r)r(e);else{var s=e.name,c=e.shortEnded,u=e.attributes;if(i&&u&&u.length>1){var l=[];l.map={};var d=t.getElementRule(e.name);if(d){for(var f=0,h=d.attributesOrder.length;f<h;f++){var p=d.attributesOrder[f];if(p in u.map){var g=u.map[p];l.map[p]=g,l.push({name:p,value:g})}}for(f=0,h=u.length;f<h;f++){p=u[f].name;if(!(p in l.map)){g=u.map[p];l.map[p]=g,l.push({name:p,value:g})}}u=l}}if(n.start(e.name,u,c),!c){if(e=e.firstChild)do{a(e)}while(e=e.next);n.end(s)}}};return 1!==r.type||e.inner?o[11](r):a(r),n.getContent()};return{serialize:r}},ex=new Set;(function(){var e=["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"];Q(e,(function(e){ex.add(e)}))})();var tx=["font","text-decoration","text-emphasis"],nx=function(e,t){return xe(e.parseStyle(e.getAttrib(t,"style")))},rx=function(e){return ex.has(e)},ix=function(e,t){return le(nx(e,t),(function(e){return!rx(e)}))},ox=function(e){return ne(e,(function(e){return Z(tx,(function(t){return ut(e,t)}))}))},ax=function(e,t,n){var r=nx(e,t),i=nx(e,n),o=function(r){var i=e.getStyle(t,r),o=e.getStyle(n,r);return pt(i)&&pt(o)&&i!==o};return Z(r,(function(e){var t=function(t){return Z(t,(function(t){return t===e}))};if(!t(i)&&t(tx)){var n=ox(i);return Z(n,o)}return o(e)}))},sx=function(e,t,n){return V.from(n.container()).filter(Qr).exists((function(r){var i=e?0:-1;return t(r.data.charAt(n.offset()+i))}))},cx=P(sx,!0,kg),ux=P(sx,!1,kg),lx=function(e){var t=e.container();return Qr(t)&&(0===t.data.length||ha(t.data)&&Bm.isBookmarkNode(t.parentNode))},dx=function(e,t){return function(n){return V.from(fp(e?0:-1,n)).filter(t).isSome()}},fx=function(e){return ii(e)&&"block"===ki(xn.fromDom(e),"display")},hx=function(e){return ai(e)&&!Yr(e)},px=dx(!0,fx),gx=dx(!1,fx),mx=dx(!0,ci),vx=dx(!1,ci),bx=dx(!0,Kr),yx=dx(!1,Kr),xx=dx(!0,hx),_x=dx(!1,hx),wx=function(e){var t=[],n=e.dom;while(n)t.push(xn.fromDom(n)),n=n.lastChild;return t},Dx=function(e){var t=Sl(e,"br"),n=ne(wx(e).slice(-1),ea);t.length===n.length&&Q(n,Tr)},Cx=function(e){kr(e),_r(e,xn.fromHtml('<br data-mce-bogus="1">'))},kx=function(e){ar(e).each((function(t){Qn(t).each((function(n){Zo(e)&&ea(t)&&Zo(n)&&Tr(t)}))}))},Tx=function(e){return e.slice(0,-1)},Sx=function(e,t,n){return Mn(t,e)?Tx(Zn(e,(function(e){return n(e)||Pn(e,t)}))):[]},Ax=function(e,t){return Sx(e,t,B)},Ex=function(e,t){return[e].concat(Ax(e,t))},Ux=function(e,t,n){return Gp(e,t,n,lx)},Ox=function(e,t){return ae(Ex(xn.fromDom(t.container()),e),Zo)},Fx=function(e,t,n){return Ux(e,t.dom,n).forall((function(e){return Ox(t,n).fold((function(){return!1===dp(e,n,t.dom)}),(function(r){return!1===dp(e,n,t.dom)&&Mn(r,xn.fromDom(e.container()))}))}))},Px=function(e,t,n){return Ox(t,n).fold((function(){return Ux(e,t.dom,n).forall((function(e){return!1===dp(e,n,t.dom)}))}),(function(t){return Ux(e,t.dom,n).isNone()}))},Rx=P(Px,!1),Nx=P(Px,!0),Mx=P(Fx,!1),Ix=P(Fx,!0),Bx=function(e){return _p(e).exists(ea)},Lx=function(e,t,n){var r=ne(Ex(xn.fromDom(n.container()),t),Zo),i=me(r).getOr(t);return qp(e,i.dom,n).filter(Bx)},zx=function(e,t){return _p(t).exists(ea)||Lx(!0,e,t).isSome()},Wx=function(e,t){return wp(t).exists(ea)||Lx(!1,e,t).isSome()},jx=P(Lx,!1),Hx=P(Lx,!0),Vx=function(e){return Fd.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},qx=function(e,t){var n=ne(Ex(xn.fromDom(t.container()),e),Zo);return me(n).getOr(e)},$x=function(e,t){return Vx(t)?ux(t):ux(t)||Kp(qx(e,t).dom,t).exists(ux)},Gx=function(e,t){return Vx(t)?cx(t):cx(t)||Yp(qx(e,t).dom,t).exists(cx)},Xx=function(e){return K(["pre","pre-wrap"],e)},Yx=function(e){return _p(e).bind((function(e){return Do(e,Wn)})).exists((function(e){return Xx(ki(e,"white-space"))}))},Kx=function(e,t){return Kp(e.dom,t).isNone()},Zx=function(e,t){return Yp(e.dom,t).isNone()},Jx=function(e,t){return Kx(e,t)||Zx(e,t)||Rx(e,t)||Nx(e,t)||Wx(e,t)||zx(e,t)},Qx=function(e,t){return!Yx(t)&&(Jx(e,t)||$x(e,t)||Gx(e,t))},e_=function(e,t){return!Yx(t)&&(Rx(e,t)||Mx(e,t)||Wx(e,t)||$x(e,t))},t_=function(e){var t=e.container(),n=e.offset();return Qr(t)&&n<t.data.length?Fd(t,n+1):e},n_=function(e,t){return!Yx(t)&&(Nx(e,t)||Ix(e,t)||zx(e,t)||Gx(e,t))},r_=function(e,t){return e_(e,t)||n_(e,t_(t))},i_=function(e,t){return Cg(e.charAt(t))},o_=function(e){var t=e.container();return Qr(t)&&ct(t.data,ua)},a_=function(e){var t=e.split("");return J(t,(function(e,n){return Cg(e)&&n>0&&n<t.length-1&&Tg(t[n-1])&&Tg(t[n+1])?" ":e})).join("")},s_=function(e,t){var n=t.data,r=Fd(t,0);return!(!i_(n,0)||r_(e,r))&&(t.data=" "+n.slice(1),!0)},c_=function(e){var t=e.data,n=a_(t);return n!==t&&(e.data=n,!0)},u_=function(e,t){var n=t.data,r=Fd(t,n.length-1);return!(!i_(n,n.length-1)||r_(e,r))&&(t.data=n.slice(0,-1)+" ",!0)},l_=function(e,t){return V.some(t).filter(o_).bind((function(t){var n=t.container(),r=s_(e,n)||c_(n)||u_(e,n);return r?V.some(t):V.none()}))},d_=function(e){var t=xn.fromDom(e.getBody());e.selection.isCollapsed()&&l_(t,Fd.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))},f_=function(e,t,n){var r=ie(e,(function(r,i){return kg(i)||Cg(i)?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+ua}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+i}}),{previousCharIsSpace:!1,str:""});return r.str},h_=function(e,t,n){if(0!==n){var r=xn.fromDom(e),i=wo(r,Zo).getOr(r),o=e.data.slice(t,t+n),a=t+n>=e.data.length&&n_(i,Fd(e,e.data.length)),s=0===t&&e_(i,Fd(e,0));e.replaceData(t,n,f_(o,s,a))}},p_=function(e,t){var n=e.data.slice(t),r=n.length-ft(n).length;h_(e,t,r)},g_=function(e,t){var n=e.data.slice(0,t),r=n.length-ht(n).length;h_(e,t-r,r)},m_=function(e,t,n,r){void 0===r&&(r=!0);var i=ht(e.data).length,o=r?e:t,a=r?t:e;return r?o.appendData(a.data):o.insertData(0,a.data),Tr(xn.fromDom(a)),n&&p_(o,i),o},v_=function(e,t){var n=e.container(),r=e.offset();return!1===Fd.isTextPosition(e)&&n===t.parentNode&&r>Fd.before(t).offset()},b_=function(e,t){return v_(t,e)?Fd(t.container(),t.offset()-1):t},y_=function(e){return Qr(e)?Fd(e,0):Fd.before(e)},x_=function(e){return Qr(e)?Fd(e,e.data.length):Fd.after(e)},__=function(e){return La(e.previousSibling)?V.some(x_(e.previousSibling)):e.previousSibling?Jp(e.previousSibling):V.none()},w_=function(e){return La(e.nextSibling)?V.some(y_(e.nextSibling)):e.nextSibling?Zp(e.nextSibling):V.none()},D_=function(e,t){var n=Fd.before(t.previousSibling?t.previousSibling:t.parentNode);return Kp(e,n).fold((function(){return Yp(e,Fd.after(t))}),V.some)},C_=function(e,t){return Yp(e,Fd.after(t)).fold((function(){return Kp(e,Fd.before(t))}),V.some)},k_=function(e,t){return __(t).orThunk((function(){return w_(t)})).orThunk((function(){return D_(e,t)}))},T_=function(e,t){return w_(t).orThunk((function(){return __(t)})).orThunk((function(){return C_(e,t)}))},S_=function(e,t,n){return e?T_(t,n):k_(t,n)},A_=function(e,t,n){return S_(e,t,n).map(P(b_,n))},E_=function(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))},U_=function(e){return function(t){return t.dom===e}},O_=function(e,t){return t&&Fe(e.schema.getBlockElements(),In(t))},F_=function(e){if(ns(e)){var t=xn.fromHtml('<br data-mce-bogus="1">');return kr(e),_r(e,t),V.some(Fd.before(t.dom))}return V.none()},P_=function(e,t,n){var r=Qn(e).filter(jn),i=er(e).filter(jn);return Tr(e),fi(r,i,t,(function(e,t,r){var i=e.dom,o=t.dom,a=i.data.length;return m_(i,o,n),r.container()===o?Fd(i,a):r})).orThunk((function(){return n&&(r.each((function(e){return g_(e.dom,e.dom.length)})),i.each((function(e){return p_(e.dom,0)}))),t}))},R_=function(e,t){return Fe(e.schema.getTextInlineElements(),In(t))},N_=function(e,t,n,r){void 0===r&&(r=!0);var i=A_(t,e.getBody(),n.dom),o=wo(n,P(O_,e),U_(e.getBody())),a=P_(n,i,R_(e,n));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):o.bind(F_).fold((function(){r&&E_(e,t,a)}),(function(n){r&&E_(e,t,V.some(n))}))},M_=function(e){return function(t){return Pn(e,t)}},I_=function(e){return Sl(e,"td,th")},B_=function(e,t){var n=function(e){return bm(xn.fromDom(e),t)},r=n(e.startContainer),i=n(e.endContainer),o=r.isSome(),a=i.isSome(),s=di(r,i,Pn).getOr(!1),c=!s&&o&&a;return{startTable:r,endTable:i,isStartInTable:o,isEndInTable:a,isSameTable:s,isMultiTable:c}},L_=function(e,t){return{start:e,end:t}},z_=function(e,t,n){return{rng:e,table:t,cells:n}},W_=Qi.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),j_=function(e,t){return Ao(xn.fromDom(e),"td,th",t)},H_=function(e){return!Pn(e.start,e.end)},V_=function(e,t){return bm(e.start,t).bind((function(n){return bm(e.end,t).bind((function(e){return hi(Pn(n,e),n)}))}))},q_=function(e,t){return!H_(e)&&V_(e,t).exists((function(e){var t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}))},$_=function(e,t){var n=j_(e.startContainer,t),r=j_(e.endContainer,t);return di(n,r,L_)},G_=function(e){return function(t){return bm(t,e).bind((function(e){return ve(I_(e)).map((function(e){return L_(t,e)}))}))}},X_=function(e){return function(t){return bm(t,e).bind((function(e){return me(I_(e)).map((function(e){return L_(e,t)}))}))}},Y_=function(e){return function(t){return V_(t,e).map((function(e){return z_(t,e,I_(e))}))}},K_=function(e,t,n,r){if(n.collapsed||!e.forall(H_))return V.none();if(t.isSameTable){var i=e.bind(Y_(r));return V.some({start:i,end:i})}var o=j_(n.startContainer,r),a=j_(n.endContainer,r),s=o.bind(G_(r)).bind(Y_(r)),c=a.bind(X_(r)).bind(Y_(r));return V.some({start:s,end:c})},Z_=function(e,t){return se(e,(function(e){return Pn(e,t)}))},J_=function(e){return di(Z_(e.cells,e.rng.start),Z_(e.cells,e.rng.end),(function(t,n){return e.cells.slice(t,n+1)}))},Q_=function(e,t,n){return e.exists((function(e){return q_(e,n)&&Dm(e.start,t)}))},ew=function(e,t){var n=t.startTable,r=t.endTable,i=e.cloneRange();return n.each((function(e){return i.setStartAfter(e.dom)})),r.each((function(e){return i.setEndBefore(e.dom)})),i},tw=function(e,t,n,r){return K_(e,t,n,r).bind((function(e){var t=e.start,n=e.end;return t.or(n)})).bind((function(e){var r=t.isSameTable,i=J_(e).getOr([]);if(r&&e.cells.length===i.length)return V.some(W_.fullTable(e.table));if(i.length>0){if(r)return V.some(W_.partialTable(i,V.none()));var o=ew(n,t);return V.some(W_.partialTable(i,V.some(Ve(Ve({},t),{rng:o}))))}return V.none()}))},nw=function(e,t,n,r){return K_(e,t,n,r).bind((function(e){var r=e.start,i=e.end,o=r.bind(J_).getOr([]),a=i.bind(J_).getOr([]);if(o.length>0&&a.length>0){var s=ew(n,t);return V.some(W_.multiTable(o,a,s))}return V.none()}))},rw=function(e,t){var n=M_(e),r=$_(t,n),i=B_(t,n);return Q_(r,t,n)?r.map((function(e){return W_.singleCellTable(t,e.start)})):i.isMultiTable?nw(r,i,t,n):tw(r,i,t,n)},iw=function(e){var t=zn(e)?Qn(e):ar(e);return t.bind(iw).orThunk((function(){return V.some(e)}))},ow=function(e){return Q(e,(function(e){_i(e,"contenteditable"),Cx(e)}))},aw=function(e,t){return V.from(e.dom.getParent(t,e.dom.isBlock)).map(xn.fromDom)},sw=function(e,t,n){n.each((function(n){t?Tr(n):(Cx(n),e.selection.setCursorLocation(n.dom,0))}))},cw=function(e,t,n,r){var i=n.cloneRange();r?(i.setStart(n.startContainer,n.startOffset),i.setEndAfter(t.dom.lastChild)):(i.setStartBefore(t.dom.firstChild),i.setEnd(n.endContainer,n.endOffset)),fw(e,i,t,!1)},uw=function(e){var t=vm(e),n=xn.fromDom(e.selection.getNode());si(n.dom)&&ns(n)?e.selection.setCursorLocation(n.dom,0):e.selection.collapse(!0),t.length>1&&Z(t,(function(e){return Pn(e,n)}))&&mi(n,"data-mce-selected","1")},lw=function(e,t,n){var r=e.selection.getRng(),i=n.bind((function(n){var i=n.rng,o=n.isStartInTable,a=aw(e,o?i.endContainer:i.startContainer);i.deleteContents(),sw(e,o,a.filter(ns));var s=o?t[0]:t[t.length-1];return cw(e,s,r,o),ns(s)?V.none():V.some(o?t.slice(1):t.slice(0,-1))})).getOr(t);return ow(i),uw(e),!0},dw=function(e,t,n,r){var i=e.selection.getRng(),o=t[0],a=n[n.length-1];cw(e,o,i,!0),cw(e,a,i,!1);var s=ns(o)?t:t.slice(1),c=ns(a)?n:n.slice(0,-1);return ow(s.concat(c)),r.deleteContents(),uw(e),!0},fw=function(e,t,n,r){void 0===r&&(r=!0),t.deleteContents();var i=iw(n).getOr(n),o=xn.fromDom(e.dom.getParent(i.dom,e.dom.isBlock));if(ns(o)&&(Cx(o),r&&e.selection.setCursorLocation(o.dom,0)),!Pn(n,o)){var a=ui(Kn(o),n)?[]:Jn(o);Q(a.concat(rr(n)),(function(e){Pn(e,o)||Mn(e,o)||!ns(e)||Tr(e)}))}return!0},hw=function(e,t){return N_(e,!1,t),!0},pw=function(e,t,n){return rw(t,n).map((function(t){return t.fold(P(fw,e),P(hw,e),P(lw,e),P(dw,e))}))},gw=function(e,t){return _w(e,t)},mw=function(e,t,n,r){return yw(t,r).fold((function(){return pw(e,t,n)}),(function(t){return gw(e,t)})).getOr(!1)},vw=function(e,t,n){var r=xn.fromDom(e.getBody()),i=e.selection.getRng();return 0!==n.length?lw(e,n,V.none()):mw(e,r,i,t)},bw=function(e,t){return ae(Ex(t,e),oa)},yw=function(e,t){return ae(Ex(t,e),qn("caption"))},xw=function(e,t,n,r,i){return $p(n,e.getBody(),i).bind((function(e){return bw(t,xn.fromDom(e.getNode())).map((function(e){return!1===Pn(e,r)}))}))},_w=function(e,t){return Cx(t),e.selection.setCursorLocation(t.dom,0),V.some(!0)},ww=function(e,t,n,r){return Zp(e.dom).bind((function(i){return Jp(e.dom).map((function(e){return t?n.isEqual(i)&&r.isEqual(e):n.isEqual(e)&&r.isEqual(i)}))})).getOr(!0)},Dw=function(e,t){return _w(e,t)},Cw=function(e,t,n){return yw(e,xn.fromDom(n.getNode())).map((function(e){return!1===Pn(e,t)}))},kw=function(e,t,n,r,i){return $p(n,e.getBody(),i).bind((function(o){return ww(r,n,i,o)?Dw(e,r):Cw(t,r,o)})).or(V.some(!0))},Tw=function(e,t,n,r){var i=Fd.fromRangeStart(e.selection.getRng());return bw(n,r).bind((function(r){return ns(r)?_w(e,r):xw(e,n,t,r,i)})).getOr(!1)},Sw=function(e,t,n,r){var i=Fd.fromRangeStart(e.selection.getRng());return ns(r)?_w(e,r):kw(e,n,t,r,i)},Aw=function(e,t){return e?bx(t):yx(t)},Ew=function(e,t){var n=Fd.fromRangeStart(e.selection.getRng());return Aw(t,n)||qp(t,e.getBody(),n).exists((function(e){return Aw(t,e)}))},Uw=function(e,t,n){var r=xn.fromDom(e.getBody());return yw(r,n).fold((function(){return Tw(e,t,r,n)||Ew(e,t)}),(function(n){return Sw(e,t,r,n).getOr(!1)}))},Ow=function(e,t){var n=xn.fromDom(e.selection.getStart(!0)),r=vm(e);return e.selection.isCollapsed()&&0===r.length?Uw(e,t,n):vw(e,n,r)},Fw=function(e,t,n,r){var i=document.createRange();return i.setStart(e,t),i.setEnd(n,r),i},Pw=function(e){var t=Fd.fromRangeStart(e),n=Fd.fromRangeEnd(e),r=e.commonAncestorContainer;return qp(!1,r,n).map((function(i){return!dp(t,n,r)&&dp(t,i,r)?Fw(t.container(),t.offset(),i.container(),i.offset()):e})).getOr(e)},Rw=function(e){return e.collapsed?e:Pw(e)},Nw=function(e){return e.firstChild&&e.firstChild===e.lastChild},Mw=function(e){return"br"===e.name||e.value===ua},Iw=function(e,t){var n=e.getBlockElements();return n[t.name]&&Nw(t)&&Mw(t.firstChild)},Bw=function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||Iw(e,t))},Lw=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),Bw(e,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},zw=function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e},Ww=function(e,t,n){var r=t.serialize(n),i=e.createFragment(r);return zw(i)},jw=function(e){return ne(e.childNodes,(function(e){return"LI"===e.nodeName}))},Hw=function(e){return e.data===ua||ri(e)},Vw=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&Hw(e.firstChild)},qw=function(e){return!e.firstChild||Vw(e)},$w=function(e){return e.length>0&&qw(e[e.length-1])?e.slice(0,-1):e},Gw=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},Xw=function(e,t){return!!Gw(e,t)},Yw=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]},Kw=function(e,t){var n=Fd.before(e),r=Ip(t),i=r.next(n);return i?i.toRange():null},Zw=function(e,t){var n=Fd.after(e),r=Ip(t),i=r.prev(n);return i?i.toRange():null},Jw=function(e,t,n,r){var i=Yw(e,r),o=e.parentNode;return o.insertBefore(i[0],e),pn.each(t,(function(t){o.insertBefore(t,e)})),o.insertBefore(i[1],e),o.removeChild(e),Zw(t[t.length-1],n)},Qw=function(e,t,n){var r=e.parentNode;return pn.each(t,(function(t){r.insertBefore(t,e)})),Kw(e,n)},eD=function(e,t,n,r){return r.insertAfter(t.reverse(),e),Zw(t[0],n)},tD=function(e,t,n,r){var i=Ww(t,e,r),o=Gw(t,n.startContainer),a=$w(jw(i.firstChild)),s=1,c=2,u=t.getRoot(),l=function(e){var r=Fd.fromRangeStart(n),i=Ip(t.getRoot()),a=e===s?i.prev(r):i.next(r);return!a||Gw(t,a.getNode())!==o};return l(s)?Qw(o,a,u):l(c)?eD(o,a,u,t):Jw(o,a,u,n)},nD=function(e,t,n){var r=xn.fromDom(e.getRoot());return n=e_(r,Fd.fromRangeStart(t))?n.replace(/^ /,"&nbsp;"):n.replace(/^&nbsp;/," "),n=n_(r,Fd.fromRangeEnd(t))?n.replace(/(&nbsp;| )(<br( \/)>)?$/,"&nbsp;"):n.replace(/&nbsp;(<br( \/)?>)?$/," "),n},rD=si,iD=function(e,t,n){if(null!==n){var r=e.getParent(t.endContainer,rD);return n===r&&Dm(xn.fromDom(n),t)}return!1},oD=function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,i=n.lastChild;!r||r===i&&"BR"===r.nodeName?e.dom.setHTML(n,t):e.selection.setContent(t)}},aD=function(e,t){V.from(e.getParent(t,"td,th")).map(xn.fromDom).each(kx)},sD=function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var i=e.getBody(),o=Ky(r);pn.each(r.select("*[data-mce-fragment]"),(function(e){var t=C(n[e.nodeName.toLowerCase()]);if(t&&ix(r,e))for(var a=e.parentNode;C(a)&&a!==i;a=a.parentNode){var s=ax(r,e,a);if(s)break;if(o.compare(a,e)){r.remove(e,!0);break}}}))}},cD=function(e){var t=e;while(t=t.walk())1===t.type&&t.attr("data-mce-fragment","1")},uD=function(e){pn.each(e.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")}))},lD=function(e){return!!e.getAttribute("data-mce-fragment")},dD=function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]},fD=function(e,t){var n,r=e.dom,i=e.selection;if(t){i.scrollIntoView(t);var o=Lm(e.getBody(),t);if("false"===r.getContentEditable(o))return r.remove(t),void i.select(o);var a=r.createRng(),s=t.previousSibling;if(Qr(s)){if(a.setStart(s,s.nodeValue.length),!en.ie){var c=t.nextSibling;Qr(c)&&(s.appendData(c.data),c.parentNode.removeChild(c))}}else a.setStartBefore(t),a.setEndBefore(t);var u=function(t){var n=Fd.fromRangeStart(t),r=Ip(e.getBody());if(n=r.next(n),n)return n.toRange()},l=r.getParent(t,r.isBlock);r.remove(t),l&&r.isEmpty(l)&&(e.$(l).empty(),a.setStart(l,0),a.setEnd(l,0),rD(l)||lD(l)||!(n=u(a))?r.add(l,r.create("br",{"data-mce-bogus":"1"})):(a=n,r.remove(l))),i.setRng(a)}},hD=function(e){var t=e.dom,n=Rw(e.selection.getRng());e.selection.setRng(n);var r=t.getParent(n.startContainer,rD);iD(t,n,r)?fw(e,n,xn.fromDom(r)):e.getDoc().execCommand("Delete",!1,null)},pD=function(e,t,n){var r,i,o,a=e.selection,s=e.dom;/^ | $/.test(t)&&(t=nD(s,a.getRng(),t));var c=e.parser,u=n.merge,l=Qy({validate:oh(e)},e.schema),d='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;</span>',f=e.fire("BeforeSetContent",{content:t,format:"html",selection:!0,paste:n.paste});if(f.isDefaultPrevented())e.fire("SetContent",{content:f.content,format:"html",selection:!0,paste:n.paste});else{t=f.content,n.preserve_zwsp||(t=pa(t)),-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,d),i=a.getRng();var h=i.startContainer||(i.parentElement?i.parentElement():null),p=e.getBody();h===p&&a.isCollapsed()&&s.isBlock(p.firstChild)&&dD(e,p.firstChild)&&s.isEmpty(p.firstChild)&&(i=s.createRng(),i.setStart(p.firstChild,0),i.setEnd(p.firstChild,0),a.setRng(i)),a.isCollapsed()||hD(e),r=a.getNode();var g={context:r.nodeName.toLowerCase(),data:n.data,insert:!0},m=c.parse(t,g);if(!0===n.paste&&Lw(e.schema,m)&&Xw(s,r))return i=tD(l,s,a.getRng(),m),a.setRng(i),void e.fire("SetContent",f);if(cD(m),o=m.lastChild,"mce_marker"===o.attr("id")){var v=o;for(o=o.prev;o;o=o.walk(!0))if(3===o.type||!s.isBlock(o.name)){e.schema.isValidChild(o.parent.name,"span")&&o.parent.insert(v,o,"br"===o.name);break}}if(e._selectionOverrides.showBlockCaretContainer(r),g.invalid){e.selection.setContent(d),r=a.getNode();var b=e.getBody();9===r.nodeType?r=o=b:o=r;while(o!==b)r=o,o=o.parentNode;t=r===b?b.innerHTML:s.getOuterHTML(r),t=l.serialize(c.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return l.serialize(m)})))),r===b?s.setHTML(b,t):s.setOuterHTML(r,t)}else t=l.serialize(m),oD(e,t,r);sD(e,u),fD(e,s.get("mce_marker")),uD(e.getBody()),aD(s,a.getStart()),e.fire("SetContent",f),e.addVisual()}},gD=function(e,t){t(e),e.firstChild&&gD(e.firstChild,t),e.next&&gD(e.next,t)},mD=function(e,t,n){var r={},i={},o=[];for(var a in n.firstChild&&gD(n.firstChild,(function(n){Q(e,(function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})})),Q(t,(function(e){"string"===typeof n.attr(e.name)&&(i[e.name]?i[e.name].nodes.push(n):i[e.name]={filter:e,nodes:[n]})}))})),r)Fe(r,a)&&o.push(r[a]);for(var s in i)Fe(i,s)&&o.push(i[s]);return o},vD=function(e,t,n){var r=mD(e,t,n);Q(r,(function(e){Q(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}))},bD="html",yD=function(e){return e instanceof Ey},xD=function(e){fy(e)&&Zp(e.getBody()).each((function(t){var n=t.getNode(),r=Kr(n)?Zp(n).getOr(t):t;e.selection.setRng(r.toRange())}))},_D=function(e,t,n){e.dom.setHTML(e.getBody(),t),!0!==n&&xD(e)},wD=function(e,t,n,r){if(n=pa(n),0===n.length||/^\s+$/.test(n)){var i='<br data-mce-bogus="1">';"TABLE"===t.nodeName?n="<tr><td>"+i+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+i+"</li>");var o=kf(e);o&&e.schema.isValidChild(t.nodeName.toLowerCase(),o.toLowerCase())?(n=i,n=e.dom.createHTML(o,Tf(e),n)):n||(n='<br data-mce-bogus="1">'),_D(e,n,r.no_selection),e.fire("SetContent",r)}else"raw"!==r.format&&(n=Qy({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=aa(xn.fromDom(t))?n:pn.trim(n),_D(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r);return r.content},DD=function(e,t,n,r){vD(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var i=Qy({validate:e.validate},e.schema).serialize(n);return r.content=pa(aa(xn.fromDom(t))?i:pn.trim(i)),_D(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r),n},CD=function(e,t){return Ve(Ve({format:bD},e),{set:!0,content:yD(t)?"":t})},kD=function(e,t,n){var r=CD(n,t),i=n.no_events?r:e.fire("BeforeSetContent",r);return yD(t)||(t=i.content),V.from(e.getBody()).fold(U(t),(function(n){return yD(t)?DD(e,n,t,i):wD(e,n,t,i)}))},TD=function(e,t){return Co(e,t).isSome()},SD=function(e){return k(e)?e:B},AD=function(e,t,n){var r=e.dom,i=SD(n);while(r.parentNode){r=r.parentNode;var o=xn.fromDom(r),a=t(o);if(a.isSome())return a;if(i(o))break}return V.none()},ED=function(e,t,n){var r=t(e),i=SD(n);return r.orThunk((function(){return i(e)?V.none():AD(e,t,i)}))},UD=Mg,OD=function(e,t,n){var r=e.formatter.get(n);if(r)for(var i=0;i<r.length;i++){var o=r[i];if(Vg(o)&&!1===o.inherit&&e.dom.is(t,o.selector))return!0}return!1},FD=function(e,t,n,r,i){var o=e.dom.getRoot();return t!==o&&(t=e.dom.getParent(t,(function(t){return!!OD(e,t,n)||(t.parentNode===o||!!ND(e,t,n,r,!0))})),!!ND(e,t,n,r,i))},PD=function(e,t,n){return!!UD(t,n.inline)||(!!UD(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0))},RD=function(e,t,n,r,i,o){var a=n[r];if(k(n.onmatch))return n.onmatch(t,n,r);if(a)if(w(a.length)){for(var s in a)if(Fe(a,s)){var c="attributes"===r?e.getAttrib(t,s):Bg(e,t,s),u=Ng(a[s],o),l=D(c)||gt(c);if(l&&D(u))continue;if(i&&l&&!n.exact)return!1;if((!i||n.exact)&&!UD(c,Ig(e,u,s)))return!1}}else for(var d=0;d<a.length;d++)if("attributes"===r?e.getAttrib(t,a[d]):Bg(e,t,a[d]))return!0;return!0},ND=function(e,t,n,r,i){var o=e.formatter.get(n),a=e.dom;if(o&&t)for(var s=0;s<o.length;s++){var c=o[s];if(PD(e.dom,t,c)&&RD(a,t,c,"attributes",i,r)&&RD(a,t,c,"styles",i,r)){var u=c.classes;if(u)for(var l=0;l<u.length;l++)if(!e.dom.hasClass(t,Ng(u[l],r)))return;return c}}},MD=function(e,t,n,r,i){if(r)return FD(e,r,t,n,i);if(r=e.selection.getNode(),FD(e,r,t,n,i))return!0;var o=e.selection.getStart();return!(o===r||!FD(e,o,t,n,i))},ID=function(e,t,n){var r=[],i={},o=e.selection.getStart();return e.dom.getParent(o,(function(o){for(var a=0;a<t.length;a++){var s=t[a];!i[s]&&ND(e,o,s,n)&&(i[s]=!0,r.push(s))}}),e.dom.getRoot()),r},BD=function(e,t){var n=function(t){return Pn(t,xn.fromDom(e.getBody()))},r=function(t,n){return ND(e,t.dom,n)?V.some(n):V.none()};return V.from(e.selection.getStart(!0)).bind((function(e){return ED(xn.fromDom(e),(function(e){return ye(t,(function(t){return r(e,t)}))}),n)})).getOrNull()},LD=function(e,t){var n=e.formatter.get(t),r=e.dom;if(n)for(var i=e.selection.getStart(),o=zg(r,i),a=n.length-1;a>=0;a--){var s=n[a];if(!Vg(s)||C(s.defaultBlock))return!0;for(var c=o.length-1;c>=0;c--)if(r.is(o[c],s.selector))return!0}return!1},zD=function(e,t,n){return ie(n,(function(n,r){var i=Wg(e,r);return e.formatter.matchNode(t,r,{},i)?n.concat([r]):n}),[])},WD=fa,jD="_mce_caret",HD=function(e,t){return e.importNode(t,!0)},VD=function(e){var t=[];while(e){if(3===e.nodeType&&e.nodeValue!==WD||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t},qD=function(e){return VD(e).length>0},$D=function(e){if(e){var t=new zo(e,e);for(e=t.current();e;e=t.next())if(Qr(e))return e}return null},GD=function(e){var t=xn.fromTag("span");return vi(t,{id:jD,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&_r(t,xn.fromText(WD)),t},XD=function(e){var t=$D(e);return t&&t.nodeValue.charAt(0)===WD&&t.deleteData(0,1),t},YD=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(qD(t))N_(e,!1,xn.fromDom(t),n);else{var o=i.getRng(),a=r.getParent(t,r.isBlock),s=o.startContainer,c=o.startOffset,u=o.endContainer,l=o.endOffset,d=XD(t);r.remove(t,!0),s===d&&c>0&&o.setStart(d,c-1),u===d&&l>0&&o.setEnd(d,l-1),a&&r.isEmpty(a)&&Cx(xn.fromDom(a)),i.setRng(o)}},KD=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(t)YD(e,t,n);else if(t=tg(e.getBody(),i.getStart()),!t)while(t=r.get(jD))YD(e,t,!1)},ZD=function(e,t,n){var r=e.dom,i=r.getParent(n,P(Og,e));i&&r.isEmpty(i)?n.parentNode.replaceChild(t,n):(Dx(xn.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},JD=function(e,t){return e.appendChild(t),t},QD=function(e,t){var n=re(e,(function(e,t){return JD(e,t.cloneNode(!1))}),t);return JD(n,n.ownerDocument.createTextNode(WD))},eC=function(e,t,n,r,i,o){var a=e.formatter,s=e.dom,c=ne(xe(a.get()),(function(e){return e!==r&&!ct(e,"removeformat")})),u=zD(e,n,c),l=ne(u,(function(t){return!jg(e,t,r)}));if(l.length>0){var d=n.cloneNode(!1);return s.add(t,d),a.remove(r,i,d,o),s.remove(d),V.some(d)}return V.none()},tC=function(e,t,n){var r,i,o=e.selection,a=o.getRng(),s=a.startOffset,c=a.startContainer,u=c.nodeValue;r=tg(e.getBody(),o.getStart()),r&&(i=$D(r));var l=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(u&&s>0&&s<u.length&&l.test(u.charAt(s))&&l.test(u.charAt(s-1))){var d=o.getBookmark();a.collapse(!0);var f=um(e,a,e.formatter.get(t));f=Dv(f),e.formatter.apply(t,n,f),o.moveToBookmark(d)}else r&&i.nodeValue===WD||(r=HD(e.getDoc(),GD(!0).dom),i=r.firstChild,a.insertNode(r),s=1),e.formatter.apply(t,n,r),o.setCursorLocation(i,s)},nC=function(e,t,n,r){var i,o,a,s=e.dom,c=e.selection,u=[],l=c.getRng(),d=l.startContainer,f=l.startOffset;o=d,3===d.nodeType&&(f!==d.nodeValue.length&&(i=!0),o=o.parentNode);while(o){if(ND(e,o,t,n,r)){a=o;break}o.nextSibling&&(i=!0),u.push(o),o=o.parentNode}if(a)if(i){var h=c.getBookmark();l.collapse(!0);var p=um(e,l,e.formatter.get(t),!0);p=Dv(p),e.formatter.remove(t,n,p,r),c.moveToBookmark(h)}else{var g=tg(e.getBody(),a),m=GD(!1).dom;ZD(e,m,null!==g?g:a);var v=eC(e,m,a,t,n,r),b=QD(u.concat(v.toArray()),m);YD(e,g,!1),c.setCursorLocation(b,1),s.isEmpty(a)&&s.remove(a)}},rC=function(e,t){var n=e.selection,r=e.getBody();KD(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==WD||KD(e,tg(r,n.getStart())),37!==t&&39!==t||KD(e,tg(r,n.getStart()))},iC=function(e){e.on("mouseup keydown",(function(t){rC(e,t.keyCode)}))},oC=function(e,t){var n=GD(!1),r=QD(t,n.dom);return br(xn.fromDom(e),n),Tr(xn.fromDom(e)),Fd(r,0)},aC=function(e,t){var n=e.schema.getTextInlineElements();return Fe(n,In(t))&&!eg(t.dom)&&!Xr(t.dom)},sC=function(e){return eg(e.dom)&&qD(e.dom)},cC={},uC=Le,lC=Ie,dC=function(e,t){var n=cC[e];n||(cC[e]=[]),cC[e].push(t)},fC=function(e,t){lC(cC[e],(function(e){e(t)}))};dC("pre",(function(e){var t,n=e.selection.getRng(),r=function(e){return o(e.previousSibling)&&-1!==ze(t,e.previousSibling)},i=function(e,t){Pu(t).remove(),Pu(e).append("<br><br>").append(t.childNodes)},o=Vr(["pre"]);n.collapsed||(t=e.selection.getSelectedBlocks(),lC(uC(uC(t,o),r),(function(e){i(e.previousSibling,e)})))}));var hC=pn.each,pC=function(e){return Hr(e)&&!wg(e)&&!eg(e)&&!Xr(e)},gC=function(e,t){for(var n=e;n;n=n[t]){if(Qr(n)&&pt(n.data))return e;if(Hr(n)&&!wg(n))return n}return e},mC=function(e,t,n){var r=Ky(e);if(t&&n&&(t=gC(t,"previousSibling"),n=gC(n,"nextSibling"),r.compare(t,n))){for(var i=t.nextSibling;i&&i!==n;){var o=i;i=i.nextSibling,t.appendChild(o)}return e.remove(n),pn.each(pn.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n},vC=function(e,t,n,r){if(r&&!1!==t.merge_siblings){var i=mC(e,Ug(r),r);mC(e,i,Ug(i,!0))}},bC=function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";hC(e.select(r,n),(function(n){pC(n)&&hC(t.styles,(function(t,r){e.setStyle(n,r,"")}))}))}},yC=function(e,t,n){hC(e.childNodes,(function(e){pC(e)&&(t(e)&&n(e),e.hasChildNodes()&&yC(e,t,n))}))},xC=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},_C=function(e,t){return function(n){return!(!n||!Bg(e,n,t))}},wC=function(e,t,n){return function(r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),xC(e,r)}},DC=Qi.generate([{keep:[]},{rename:["name"]},{removed:[]}]),CC=/^(src|href|style)$/,kC=pn.each,TC=Mg,SC=function(e){return/^(TR|TH|TD)$/.test(e.nodeName)},AC=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},EC=function(e,t,n){var r=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"];if(Hr(r)){var o=r.childNodes.length-1;!n&&i&&i--,r=r.childNodes[i>o?o:i]}return Qr(r)&&n&&i>=r.nodeValue.length&&(r=new zo(r,e.getBody()).next()||r),Qr(r)&&!n&&0===i&&(r=new zo(r,e.getBody()).prev()||r),r},UC=function(e,t){var n=t?"firstChild":"lastChild";if(SC(e)&&e[n]){var r=e[n];return"TR"===e.nodeName&&r[n]||r}return e},OC=function(e,t,n,r){var i=e.create(n,r);return t.parentNode.insertBefore(i,t),i.appendChild(t),i},FC=function(e,t,n,r,i){var o=xn.fromDom(t),a=xn.fromDom(e.create(r,i)),s=n?nr(o):tr(o);return Cr(a,s),n?(br(o,a),xr(a,o)):(yr(o,a),_r(a,o)),a.dom},PC=function(e,t,n){return!(!qg(n)||!TC(t,n.inline))||(!(!Hg(n)||!TC(t,n.block))||(Vg(n)?Hr(t)&&e.is(t,n.selector):void 0))},RC=function(e,t){return t.links&&"A"===e.nodeName},NC=function(e,t,n,r){var i=Ug(t,n,r);return D(i)||"BR"===i.nodeName||e.isBlock(i)},MC=function(e,t,n){var r,i=t.parentNode,o=e.dom,a=kf(e);Hg(n)&&(a?i===o.getRoot()&&(n.list_block&&TC(t,n.list_block)||Q(be(t.childNodes),(function(t){Fg(e,a,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=OC(o,t,a),o.setAttribs(r,e.settings.forced_root_block_attrs)):r=null}))):o.isBlock(t)&&!o.isBlock(i)&&(NC(o,t,!1)||NC(o,t.firstChild,!0,!0)||t.insertBefore(o.create("br"),t.firstChild),NC(o,t,!0)||NC(o,t.lastChild,!1,!0)||t.appendChild(o.create("br")))),$g(n)&&!TC(n.inline,t)||o.remove(t,!0)},IC=function(e,t,n,r,i){var o,a=e.dom;if(!PC(a,r,t)&&!RC(r,t))return DC.keep();var s=r;if(qg(t)&&"all"===t.remove&&y(t.preserve_attributes)){var c=ne(a.getAttribs(s),(function(e){return K(t.preserve_attributes,e.name.toLowerCase())}));if(a.removeAllAttribs(s),Q(c,(function(e){return a.setAttrib(s,e.name,e.value)})),c.length>0)return DC.rename("span")}if("all"!==t.remove){kC(t.styles,(function(e,r){e=Ig(a,Ng(e,n),r+""),T(r)&&(r=e,i=null),(t.remove_similar||!i||TC(Bg(a,i,r),e))&&a.setStyle(s,r,""),o=!0})),o&&""===a.getAttrib(s,"style")&&(s.removeAttribute("style"),s.removeAttribute("data-mce-style")),kC(t.attributes,(function(e,r){var o;if(e=Ng(e,n),T(r)&&(r=e,i=null),t.remove_similar||!i||TC(a.getAttrib(i,r),e)){if("class"===r&&(e=a.getAttrib(s,r),e&&(o="",Q(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(o+=(o?" ":"")+e)})),o)))return void a.setAttrib(s,r,o);if(CC.test(r)&&s.removeAttribute("data-mce-"+r),"style"===r&&Vr(["li"])(s)&&"none"===a.getStyle(s,"list-style-type"))return s.removeAttribute(r),void a.setStyle(s,"list-style-type","none");"class"===r&&s.removeAttribute("className"),s.removeAttribute(r)}})),kC(t.classes,(function(e){e=Ng(e,n),i&&!a.hasClass(i,e)||a.removeClass(s,e)}));for(var u=a.getAttribs(s),l=0;l<u.length;l++){var d=u[l].nodeName;if(0!==d.indexOf("_")&&0!==d.indexOf("data-"))return DC.keep()}}return"none"!==t.remove?(MC(e,s,t),DC.removed()):DC.keep()},BC=function(e,t,n,r,i){return IC(e,t,n,r,i).fold(B,(function(t){return e.dom.rename(r,t),!0}),L)},LC=function(e,t,n,r,i){var o;return Q(zg(e.dom,t.parentNode).reverse(),(function(t){if(!o&&"_start"!==t.id&&"_end"!==t.id){var a=ND(e,t,n,r,i);a&&!1!==a.split&&(o=t)}})),o},zC=function(e,t,n,r){return IC(e,t,n,r,r).fold(U(r),(function(t){var n=e.dom.createFragment();return n.appendChild(r),e.dom.rename(r,t)}),U(null))},WC=function(e,t,n,r,i,o,a,s){var c,u,l,d=e.dom;if(n){for(var f=n.parentNode,h=r.parentNode;h&&h!==f;h=h.parentNode){c=d.clone(h,!1);for(var p=0;p<t.length;p++)if(c=zC(e,t[p],s,c),null===c)break;c&&(u&&c.appendChild(u),l||(l=c),u=c)}!o||a.mixed&&d.isBlock(n)||(r=d.split(n,r)),u&&(i.parentNode.insertBefore(u,i),l.appendChild(i),qg(a)&&vC(d,a,s,u))}return r},jC=function(e,t,n,r,i){var o=e.formatter.get(t),a=o[0],s=!0,c=e.dom,u=e.selection,l=function(r){var s=LC(e,r,t,n,i);return WC(e,o,s,r,r,!0,a,n)},d=function(e){return wg(e)&&Hr(e)&&("_start"===e.id||"_end"===e.id)},f=function(t){return Z(o,(function(r){return BC(e,r,n,t,t)}))},h=function(t){var n=!0,r=!1;Hr(t)&&c.getContentEditable(t)&&(n=s,s="true"===c.getContentEditable(t),r=!0);var i=be(t.childNodes);if(s&&!r){var u=f(t),l=u||Z(o,(function(e){return PD(c,t,e)})),d=t.parentNode;!l&&C(d)&&Gg(a)&&f(d)}if(a.deep&&i.length){for(var p=0;p<i.length;p++)h(i[p]);r&&(s=n)}var g=["underline","line-through","overline"];Q(g,(function(n){Hr(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&Lg(c,t.parentNode)===n&&BC(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,t)}))},p=function(e){var t=c.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return d(n)&&(n=n[e?"firstChild":"lastChild"]),Qr(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),c.remove(t,!0),n},g=function(t){var n,r,i=um(e,t,o,t.collapsed);if(a.split){if(i=Dv(i),n=EC(e,i,!0),r=EC(e,i),n!==r){if(n=UC(n,!0),r=UC(r,!1),AC(c,n,r)){var s=V.from(n.firstChild).getOr(n);return l(FC(c,s,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void p(!0)}if(AC(c,r,n)){s=V.from(r.lastChild).getOr(r);return l(FC(c,s,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void p(!1)}n=OC(c,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=OC(c,r,"span",{id:"_end","data-mce-type":"bookmark"});var u=c.createRng();u.setStartAfter(n),u.setEndBefore(r),lm(c,u,(function(e){Q(e,(function(e){wg(e)||wg(e.parentNode)||l(e)}))})),l(n),l(r),n=p(!0),r=p()}else n=r=l(n);i.startContainer=n.parentNode?n.parentNode:n,i.startOffset=c.nodeIndex(n),i.endContainer=r.parentNode?r.parentNode:r,i.endOffset=c.nodeIndex(r)+1}lm(c,i,(function(e){Q(e,h)}))};if(r){if(Sg(r)){var m=c.createRng();m.setStartBefore(r),m.setEndAfter(r),g(m)}else g(r);ev(e,t,r,n)}else if("false"!==c.getContentEditable(u.getNode()))u.isCollapsed()&&qg(a)&&!vm(e).length?nC(e,t,n,i):(Sm(u,!0,(function(){Tm(e,g)})),qg(a)&&MD(e,t,n,u.getStart())&&Eg(c,u,u.getRng()),e.nodeChanged()),ev(e,t,r,n);else{r=u.getNode();for(var v=0;v<o.length;v++)if(o[v].ceFalseOverride&&BC(e,o[v],n,r,r))break;ev(e,t,r,n)}},HC=pn.each,VC=function(e,t,n,r){var i=function(t){if(1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType){var n=Lg(e,t.parentNode);e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null)}};t.styles&&(t.styles.color||t.styles.textDecoration)&&(pn.walk(r,i,"childNodes"),i(r))},qC=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&yC(r,_C(e,"fontSize"),wC(e,"backgroundColor",Ng(t.styles.backgroundColor,n)))},$C=function(e,t,n,r){!qg(t)||"sub"!==t.inline&&"sup"!==t.inline||(yC(r,_C(e,"fontSize"),wC(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},GC=function(e,t,n,r){HC(t,(function(t){qg(t)&&HC(e.dom.select(t.inline,r),(function(r){pC(r)&&BC(e,t,n,r,t.exact?r:null)})),bC(e.dom,t,r)}))},XC=function(e,t,n,r,i){ND(e,i.parentNode,n,r)&&BC(e,t,r,i)||t.merge_with_parents&&e.dom.getParent(i.parentNode,(function(o){if(ND(e,o,n,r))return BC(e,t,r,i),!0}))},YC=pn.each,KC=function(e){return Hr(e)&&!wg(e)&&!eg(e)&&!Xr(e)},ZC=function(e,t,n,r){if(uh(e)&&qg(t)){var i=Bs(e.schema),o=TD(xn.fromDom(n),(function(e){return eg(e.dom)}));return Pe(i,r)&&ns(xn.fromDom(n.parentNode),!1)&&!o}return!1},JC=function(e,t,n,r){var i=e.formatter.get(t),o=i[0],a=!r&&e.selection.isCollapsed(),s=e.dom,c=e.selection,u=function(e,t){if(void 0===t&&(t=o),k(t.onformat)&&t.onformat(e,t,n,r),YC(t.styles,(function(t,r){s.setStyle(e,r,Ng(t,n))})),t.styles){var i=s.getAttrib(e,"style");i&&s.setAttrib(e,"data-mce-style",i)}YC(t.attributes,(function(t,r){s.setAttrib(e,r,Ng(t,n))})),YC(t.classes,(function(t){t=Ng(t,n),s.hasClass(e,t)||s.addClass(e,t)}))},l=function(e,t){var n=!1;return YC(e,(function(e){return!!Vg(e)&&(C(e.collapsed)&&e.collapsed!==a?void 0:s.is(t,e.selector)&&!eg(t)?(u(t,e),n=!0,!1):void 0)})),n},d=function(e){if(v(e)){var t=s.create(e);return u(t),t}return null},f=function(r,a,s){var c=[],f=!0,h=o.inline||o.block,p=d(h);lm(r,a,(function(a){var d,g=function(a){var m=!1,v=f,b=a.nodeName.toLowerCase(),y=a.parentNode,x=y.nodeName.toLowerCase();if(Hr(a)&&r.getContentEditable(a)&&(v=f,f="true"===r.getContentEditable(a),m=!0),ri(a)&&!ZC(e,o,a,x))return d=null,void(Hg(o)&&r.remove(a));if(Hg(o)&&o.wrapper&&ND(e,a,t,n))d=null;else{if(f&&!m&&Hg(o)&&!o.wrapper&&Og(e,b)&&Fg(e,x,h)){var _=r.rename(a,h);return u(_),c.push(_),void(d=null)}if(Vg(o)){var w=l(i,a);if(!w&&C(y)&&Gg(o)&&(w=l(i,y)),!qg(o)||w)return void(d=null)}!f||m||!Fg(e,h,b)||!Fg(e,x,h)||!s&&Qr(a)&&ha(a.data)||eg(a)||qg(o)&&r.isBlock(a)?(d=null,Q(be(a.childNodes),g),m&&(f=v),d=null):(d||(d=r.clone(p,!1),a.parentNode.insertBefore(d,a),c.push(d)),d.appendChild(a))}};Q(a,g)})),!0===o.links&&Q(c,(function(e){var t=function(e){"A"===e.nodeName&&u(e,o),Q(be(e.childNodes),t)};t(e)})),Q(c,(function(a){var s=function(e){var t=0;return Q(e.childNodes,(function(e){Rg(e)||wg(e)||t++})),t},l=function(e){var t=ae(e.childNodes,KC).filter((function(e){return PD(r,e,o)}));return t.map((function(t){var n=r.clone(t,!1);return u(n),r.replace(n,e,!0),r.remove(t,!0),n})).getOr(e)},d=s(a);!(c.length>1)&&r.isBlock(a)||0!==d?(qg(o)||Hg(o)&&o.wrapper)&&(o.exact||1!==d||(a=l(a)),GC(e,i,n,a),XC(e,o,t,n,a),qC(r,o,n,a),VC(r,o,n,a),$C(r,o,n,a),vC(r,o,n,a)):r.remove(a,!0)}))};if("false"!==s.getContentEditable(c.getNode())){if(o){if(r)if(Sg(r)){if(!l(i,r)){var h=s.createRng();h.setStartBefore(r),h.setEndAfter(r),f(s,um(e,h,i),!0)}}else f(s,r,!0);else if(a&&qg(o)&&!vm(e).length)tC(e,t,n);else{var p=c.getNode(),g=i[0];e.settings.forced_root_block||!g.defaultBlock||s.getParent(p,s.isBlock)||JC(e,g.defaultBlock),c.setRng(Rw(c.getRng())),Sm(c,!0,(function(){Tm(e,(function(t,n){var r=n?t:um(e,t,i);f(s,r,!1)}))})),Eg(s,c,c.getRng()),e.nodeChanged()}fC(t,e)}Qm(e,t,r,n)}else{r=c.getNode();for(var m=0,b=i.length;m<b;m++){var y=i[m];if(y.ceFalseOverride&&Vg(y)&&s.is(r,y.selector)){u(r,y);break}}Qm(e,t,r,n)}},QC=function(e){return Fe(e,"vars")},ek=function(e,t){e.set({}),t.on("NodeChange",(function(n){ik(t,n.element,e.get())})),t.on("FormatApply FormatRemove",(function(n){var r=V.from(n.node).map((function(e){return Sg(e)?e:e.startContainer})).bind((function(e){return Hr(e)?V.some(e):V.from(e.parentElement)})).getOrThunk((function(){return tk(t)}));ik(t,r,e.get())}))},tk=function(e){return e.selection.getStart()},nk=function(e,t,n,r,i){var o=function(t){var o=e.formatter.matchNode(t,n,null!==i&&void 0!==i?i:{},r);return!w(o)},a=function(t){return!!OD(e,t,n)||!r&&C(e.formatter.matchNode(t,n,i,!0))};return oe(t,o,a)},rk=function(e,t){var n=null!==t&&void 0!==t?t:tk(e);return ne(zg(e.dom,n),(function(e){return Hr(e)&&!Xr(e)}))},ik=function(e,t,n){var r=rk(e,t);we(n,(function(n,i){var o=function(n){var o=nk(e,r,i,n.similar,QC(n)?n.vars:void 0),a=o.isSome();if(n.state.get()!==a){n.state.set(a);var s=o.getOr(t);QC(n)?n.callback(a,{node:s,format:i,parents:r}):Q(n.callbacks,(function(e){return e(a,{node:s,format:i,parents:r})}))}};Q([n.withSimilar,n.withoutSimilar],o),Q(n.withVars,o)}))},ok=function(e,t,n,r,i,o){var a=t.get();Q(n.split(","),(function(t){var n=Oe(a,t).getOrThunk((function(){var e={withSimilar:{state:Ku(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Ku(!1),similar:!1,callbacks:[]},withVars:[]};return a[t]=e,e})),s=function(){var n=rk(e);return nk(e,n,t,i,o).isSome()};if(w(o)){var c=i?n.withSimilar:n.withoutSimilar;c.callbacks.push(r),1===c.callbacks.length&&c.state.set(s())}else n.withVars.push({state:Ku(s()),similar:i,vars:o,callback:r})})),t.set(a)},ak=function(e,t,n){var r=e.get();Q(t.split(","),(function(e){return Oe(r,e).each((function(t){r[e]={withSimilar:Ve(Ve({},t.withSimilar),{callbacks:ne(t.withSimilar.callbacks,(function(e){return e!==n}))}),withoutSimilar:Ve(Ve({},t.withoutSimilar),{callbacks:ne(t.withoutSimilar.callbacks,(function(e){return e!==n}))}),withVars:ne(t.withVars,(function(e){return e.callback!==n}))}}))})),e.set(r)},sk=function(e,t,n,r,i,o){return null===t.get()&&ek(t,e),ok(e,t,n,r,i,o),{unbind:function(){return ak(t,n,r)}}},ck=function(e,t,n,r){var i=e.formatter.get(t);!MD(e,t,n,r)||"toggle"in i[0]&&!i[0].toggle?JC(e,t,n,r):jC(e,t,n,r)},uk=function(e,t){var n=t||document,r=n.createDocumentFragment();return Q(e,(function(e){r.appendChild(e.dom)})),xn.fromDom(r)},lk=function(e,t,n){return{element:e,width:t,rows:n}},dk=function(e,t){return{element:e,cells:t}},fk=function(e,t){return{x:e,y:t}},hk=function(e,t){var n=parseInt(bi(e,t),10);return isNaN(n)?1:n},pk=function(e,t,n,r,i){for(var o=hk(i,"rowspan"),a=hk(i,"colspan"),s=e.rows,c=n;c<n+o;c++){s[c]||(s[c]=dk(Gl(r),[]));for(var u=t;u<t+a;u++){var l=s[c].cells;l[u]=c===n&&u===t?i:$l(i)}}},gk=function(e,t,n){var r=e.rows,i=r[n]?r[n].cells:[];return!!i[t]},mk=function(e,t,n){while(gk(e,t,n))t++;return t},vk=function(e){return ie(e,(function(e,t){return t.cells.length>e?t.cells.length:e}),0)},bk=function(e,t){for(var n=e.rows,r=0;r<n.length;r++)for(var i=n[r].cells,o=0;o<i.length;o++)if(Pn(i[o],t))return V.some(fk(o,r));return V.none()},yk=function(e,t,n,r,i){for(var o=[],a=e.rows,s=n;s<=i;s++){var c=a[s].cells,u=t<r?c.slice(t,r+1):c.slice(r,t+1);o.push(dk(a[s].element,u))}return o},xk=function(e,t,n){var r=t.x,i=t.y,o=n.x,a=n.y,s=i<a?yk(e,r,i,o,a):yk(e,r,a,o,i);return lk(e.element,vk(s),s)},_k=function(e,t){var n=$l(e.element),r=xn.fromTag("tbody");return Cr(r,t),_r(n,r),n},wk=function(e){return J(e.rows,(function(e){var t=J(e.cells,(function(e){var t=Gl(e);return _i(t,"colspan"),_i(t,"rowspan"),t})),n=$l(e.element);return Cr(n,t),n}))},Dk=function(e){var t=lk($l(e),0,[]);return Q(Sl(e,"tr"),(function(e,n){Q(Sl(e,"td,th"),(function(r,i){pk(t,mk(t,i,n),n,e,r)}))})),lk(t.element,vk(t.rows),t.rows)},Ck=function(e){return _k(e,wk(e))},kk=function(e,t,n){return bk(e,t).bind((function(t){return bk(e,n).map((function(n){return xk(e,t,n)}))}))},Tk=function(e){return ae(e,(function(e){return"ul"===In(e)||"ol"===In(e)}))},Sk=function(e,t){return ae(e,(function(e){return"li"===In(e)&&Dm(e,t)})).fold(U([]),(function(t){return Tk(e).map((function(e){var t=xn.fromTag(In(e)),n=Ae(Ai(e),(function(e,t){return ut(t,"list-style")}));return Ci(t,n),[xn.fromTag("li"),t]})).getOr([])}))},Ak=function(e,t){var n=ie(t,(function(e,t){return _r(t,e),t}),e);return t.length>0?uk([n]):n},Ek=function(e){return ra(e)?Kn(e).filter(na).fold(U([]),(function(t){return[e,t]})):na(e)?[e]:[]},Uk=function(e,t){var n=xn.fromDom(t.commonAncestorContainer),r=Ex(n,e),i=ne(r,(function(e){return Qo(e)||Ko(e)})),o=Sk(r,t),a=i.concat(o.length?o:Ek(n));return J(a,$l)},Ok=function(){return uk([])},Fk=function(e,t){return Ak(xn.fromDom(t.cloneContents()),Uk(e,t))},Pk=function(e,t){return To(t,"table",P(Pn,e))},Rk=function(e,t){return Pk(e,t[0]).bind((function(e){var n=t[0],r=t[t.length-1],i=Dk(e);return kk(i,n,r).map((function(e){return uk([Ck(e)])}))})).getOrThunk(Ok)},Nk=function(e,t){return t.length>0&&t[0].collapsed?Ok():Fk(e,t[0])},Mk=function(e,t){var n=mm(t,e);return n.length>0?Rk(e,n):Nk(e,t)},Ik=function(e){return e.replace(/^[ \f\n\r\t\v]+/,"")},Bk=function(e,t){return t>=0&&t<e.length&&kg(e.charAt(t))},Lk=function(e,t){var n=pa(e.innerText);return t?Ik(n):n},zk=function(e){return e.map((function(e){return e.nodeName})).getOr("div").toLowerCase()},Wk=function(e){return V.from(e.selection.getRng()).map((function(t){var n=V.from(e.dom.getParent(t.commonAncestorContainer,e.dom.isBlock)),r=e.getBody(),i=zk(n),o=en.browser.isIE()&&"pre"!==i,a=e.dom.add(r,i,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),s=Lk(a,o),c=pa(a.textContent);if(e.dom.remove(a),Bk(c,0)||Bk(c,c.length-1)){var u=n.getOr(r),l=Lk(u,o),d=l.indexOf(s);if(-1===d)return s;var f=Bk(l,d-1),h=Bk(l,d+s.length);return(f?" ":"")+s+(h?" ":"")}return s})).getOr("")},jk=function(e,t){var n=e.selection.getRng(),r=e.dom.create("body"),i=e.selection.getSel(),o=Cy(e,dm(i)),a=t.contextual?Mk(xn.fromDom(e.getBody()),o).dom:n.cloneContents();return a&&r.appendChild(a),e.selection.serializer.serialize(r,t)},Hk=function(e,t){return Ve(Ve({},e),{format:t,get:!0,selection:!0})},Vk=function(e,t,n){void 0===n&&(n={});var r=Hk(n,t),i=e.fire("BeforeGetContent",r);if(i.isDefaultPrevented())return e.fire("GetContent",i),i.content;if("text"===i.format)return Wk(e);i.getInner=!0;var o=jk(e,i);return"tree"===i.format?o:(i.content=e.selection.isCollapsed()?"":o,e.fire("GetContent",i),i.content)},qk=0,$k=1,Gk=2,Xk=function(e,t){var n=e.length+t.length+2,r=new Array(n),i=new Array(n),o=function(e,t,n){return{start:e,end:t,diag:n}},a=function(n,r,i,o,s){var u=c(n,r,i,o);if(null===u||u.start===r&&u.diag===r-o||u.end===n&&u.diag===n-i){var l=n,d=i;while(l<r||d<o)l<r&&d<o&&e[l]===t[d]?(s.push([qk,e[l]]),++l,++d):r-n>o-i?(s.push([Gk,e[l]]),++l):(s.push([$k,t[d]]),++d)}else{a(n,u.start,i,u.start-u.diag,s);for(var f=u.start;f<u.end;++f)s.push([qk,e[f]]);a(u.end,r,u.end-u.diag,o,s)}},s=function(n,r,i,a){var s=n;while(s-r<a&&s<i&&e[s]===t[s-r])++s;return o(n,s,r)},c=function(n,o,a,c){var u=o-n,l=c-a;if(0===u||0===l)return null;var d,f,h,p,g,m=u-l,v=l+u,b=(v%2===0?v:v+1)/2;for(r[1+b]=n,i[1+b]=o+1,d=0;d<=b;++d){for(f=-d;f<=d;f+=2){h=f+b,f===-d||f!==d&&r[h-1]<r[h+1]?r[h]=r[h+1]:r[h]=r[h-1]+1,p=r[h],g=p-n+a-f;while(p<o&&g<c&&e[p]===t[g])r[h]=++p,++g;if(m%2!==0&&m-d<=f&&f<=m+d&&i[h-m]<=r[h])return s(i[h-m],f+n-a,o,c)}for(f=m-d;f<=m+d;f+=2){h=f+b-m,f===m-d||f!==m+d&&i[h+1]<=i[h-1]?i[h]=i[h+1]-1:i[h]=i[h-1],p=i[h]-1,g=p-n+a-f;while(p>=n&&g>=a&&e[p]===t[g])i[h]=p--,g--;if(m%2===0&&-d<=f&&f<=d&&i[h]<=r[h+m])return s(i[h],f+n-a,o,c)}}},u=[];return a(0,e.length,0,t.length,u),u},Yk=function(e){return Hr(e)?e.outerHTML:Qr(e)?As.encodeRaw(e.data,!1):ei(e)?"\x3c!--"+e.data+"--\x3e":""},Kk=function(e){var t,n=document.createElement("div"),r=document.createDocumentFragment();e&&(n.innerHTML=e);while(t=n.firstChild)r.appendChild(t);return r},Zk=function(e,t,n){var r=Kk(t);if(e.hasChildNodes()&&n<e.childNodes.length){var i=e.childNodes[n];i.parentNode.insertBefore(r,i)}else e.appendChild(r)},Jk=function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}},Qk=function(e,t){var n=0;Q(e,(function(e){e[0]===qk?n++:e[0]===$k?(Zk(t,e[1],n),n++):e[0]===Gk&&Jk(t,n)}))},eT=function(e,t){return ne(J(be(e.childNodes),t?A(pa,Yk):Yk),(function(e){return e.length>0}))},tT=function(e,t){var n=J(be(t.childNodes),Yk);return Qk(Xk(n,e),t),t},nT=Ge((function(){return document.implementation.createHTMLDocument("undo")})),rT=function(e){return null!==e.querySelector("iframe")},iT=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},oT=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},aT=function(e){var t=e.serializer.getTempAttrs(),n=Vy(e.getBody(),t);return rT(n)?iT(eT(n,!0)):oT(pa(n.innerHTML))},sT=function(e,t,n){var r=n?t.beforeBookmark:t.bookmark;"fragmented"===t.type?tT(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw",no_selection:!C(r)||!ag(r)||!r.isFakeCaret}),e.selection.moveToBookmark(r)},cT=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},uT=function(e){var t=xn.fromTag("body",nT());return Vl(t,cT(e)),Q(Sl(t,"*[data-mce-bogus]"),Sr),Hl(t)},lT=function(e,t){return cT(e)===cT(t)},dT=function(e,t){return uT(e)===uT(t)},fT=function(e,t){return!(!e||!t)&&(!!lT(e,t)||dT(e,t))},hT=function(e){return 0===e.get()},pT=function(e,t,n){hT(n)&&(e.typing=t)},gT=function(e,t){e.typing&&(pT(e,!1,t),e.add())},mT=function(e){e.typing&&(e.typing=!1,e.add())},vT=function(e,t,n){hT(t)&&n.set(pf(e.selection))},bT=function(e,t,n,r,i,o,a){var s=aT(e);if(o=o||{},o=pn.extend(o,s),!1===hT(r)||e.removed)return null;var c=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:o,lastLevel:c,originalEvent:a}).isDefaultPrevented())return null;if(c&&fT(c,o))return null;t.data[n.get()]&&i.get().each((function(e){t.data[n.get()].beforeBookmark=e}));var u=yh(e);if(u&&t.data.length>u){for(var l=0;l<t.data.length-1;l++)t.data[l]=t.data[l+1];t.data.length--,n.set(t.data.length)}o.bookmark=pf(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(o),n.set(t.data.length-1);var d={level:o,lastLevel:c,originalEvent:a};return n.get()>0?(e.setDirty(!0),e.fire("AddUndo",d),e.fire("change",d)):e.fire("AddUndo",d),o},yT=function(e,t,n){t.data=[],n.set(0),t.typing=!1,e.fire("ClearUndos")},xT=function(e,t,n,r,i){if(t.transact(r)){var o=t.data[n.get()].bookmark,a=t.data[n.get()-1];sT(e,a,!0),t.transact(i)&&(t.data[n.get()-1].beforeBookmark=o)}},_T=function(e,t,n){var r;return t.get()<n.length-1&&(t.set(t.get()+1),r=n[t.get()],sT(e,r,!1),e.setDirty(!0),e.fire("Redo",{level:r})),r},wT=function(e,t,n,r){var i;return t.typing&&(t.add(),t.typing=!1,pT(t,!1,n)),r.get()>0&&(r.set(r.get()-1),i=t.data[r.get()],sT(e,i,!0),e.setDirty(!0),e.fire("Undo",{level:i})),i},DT=function(e){e.clear(),e.add()},CT=function(e,t,n){return n.get()>0||t.typing&&t.data[0]&&!fT(aT(e),t.data[0])},kT=function(e,t){return t.get()<e.data.length-1&&!e.typing},TT=function(e,t,n){return gT(e,t),e.beforeChange(),e.ignore(n),e.add()},ST=function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},AT=function(e,t){var n=e.dom,r=C(t)?t:e.getBody();w(e.hasVisual)&&(e.hasVisual=Th(e)),Q(n.select("table,a",r),(function(t){switch(t.nodeName){case"TABLE":var r=Sh(e),i=n.getAttrib(t,"border");i&&"0"!==i||!e.hasVisual?n.removeClass(t,r):n.addClass(t,r);break;case"A":if(!n.getAttrib(t,"href")){var o=n.getAttrib(t,"name")||t.id,a=Ah(e);o&&e.hasVisual?n.addClass(t,a):n.removeClass(t,a)}break}})),e.fire("VisualAid",{element:t,hasVisual:e.hasVisual})},ET=function(e){return{undoManager:{beforeChange:function(t,n){return vT(e,t,n)},add:function(t,n,r,i,o,a){return bT(e,t,n,r,i,o,a)},undo:function(t,n,r){return wT(e,t,n,r)},redo:function(t,n){return _T(e,t,n)},clear:function(t,n){return yT(e,t,n)},reset:function(e){return DT(e)},hasUndo:function(t,n){return CT(e,t,n)},hasRedo:function(e,t){return kT(e,t)},transact:function(e,t,n){return TT(e,t,n)},ignore:function(e,t){return ST(e,t)},extra:function(t,n,r,i){return xT(e,t,n,r,i)}},formatter:{match:function(t,n,r,i){return MD(e,t,n,r,i)},matchAll:function(t,n){return ID(e,t,n)},matchNode:function(t,n,r,i){return ND(e,t,n,r,i)},canApply:function(t){return LD(e,t)},closest:function(t){return BD(e,t)},apply:function(t,n,r){return JC(e,t,n,r)},remove:function(t,n,r,i){return jC(e,t,n,r,i)},toggle:function(t,n,r){return ck(e,t,n,r)},formatChanged:function(t,n,r,i,o){return sk(e,t,n,r,i,o)}},editor:{getContent:function(t,n){return Xy(e,t,n)},setContent:function(t,n){return kD(e,t,n)},insertContent:function(t,n){return pD(e,t,n)},addVisual:function(t){return AT(e,t)}},selection:{getContent:function(t,n){return Vk(e,t,n)}},raw:{getModel:function(){return V.none()}}}},UT=function(e){var t=function(e){return b(e)?e:{}},n=e.undoManager,r=e.formatter,i=e.editor,o=e.selection,a=e.raw;return{undoManager:{beforeChange:n.beforeChange,add:n.add,undo:n.undo,redo:n.redo,clear:n.clear,reset:n.reset,hasUndo:n.hasUndo,hasRedo:n.hasRedo,transact:function(e,t,r){return n.transact(r)},ignore:function(e,t){return n.ignore(t)},extra:function(e,t,r,i){return n.extra(r,i)}},formatter:{match:function(e,n,i,o){return r.match(e,t(n),o)},matchAll:r.matchAll,matchNode:r.matchNode,canApply:function(e){return r.canApply(e)},closest:function(e){return r.closest(e)},apply:function(e,n,i){return r.apply(e,t(n))},remove:function(e,n,i,o){return r.remove(e,t(n))},toggle:function(e,n,i){return r.toggle(e,t(n))},formatChanged:function(e,t,n,i,o){return r.formatChanged(t,n,i,o)}},editor:{getContent:function(e,t){return i.getContent(e)},setContent:function(e,t){return i.setContent(e,t)},insertContent:function(e,t){return i.insertContent(e)},addVisual:i.addVisual},selection:{getContent:function(e,t){return o.getContent(t)}},raw:{getModel:function(){return V.some(a.getRawModel())}}}},OT=function(){var e=U(null),t=U("");return{undoManager:{beforeChange:S,add:e,undo:e,redo:e,clear:S,reset:S,hasUndo:B,hasRedo:B,transact:e,ignore:S,extra:S},formatter:{match:B,matchAll:U([]),matchNode:U(void 0),canApply:B,closest:t,apply:S,remove:S,toggle:S,formatChanged:U({unbind:S})},editor:{getContent:t,setContent:t,insertContent:S,addVisual:S},selection:{getContent:t},raw:{getModel:U(V.none())}}},FT=function(e){return Fe(e.plugins,"rtc")},PT=function(e){return Oe(e.plugins,"rtc").bind((function(e){return V.from(e.setup)}))},RT=function(e){var t=e;return PT(e).fold((function(){return t.rtcInstance=ET(e),V.none()}),(function(e){return t.rtcInstance=OT(),V.some((function(){return e().then((function(e){return t.rtcInstance=UT(e),e.rtc.isRemote}))}))}))},NT=function(e){return e.rtcInstance?e.rtcInstance:ET(e)},MT=function(e){var t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")},IT=function(e,t,n){MT(e).undoManager.beforeChange(t,n)},BT=function(e,t,n,r,i,o,a){return MT(e).undoManager.add(t,n,r,i,o,a)},LT=function(e,t,n,r){return MT(e).undoManager.undo(t,n,r)},zT=function(e,t,n){return MT(e).undoManager.redo(t,n)},WT=function(e,t,n){MT(e).undoManager.clear(t,n)},jT=function(e,t){MT(e).undoManager.reset(t)},HT=function(e,t,n){return MT(e).undoManager.hasUndo(t,n)},VT=function(e,t,n){return MT(e).undoManager.hasRedo(t,n)},qT=function(e,t,n,r){return MT(e).undoManager.transact(t,n,r)},$T=function(e,t,n){MT(e).undoManager.ignore(t,n)},GT=function(e,t,n,r,i){MT(e).undoManager.extra(t,n,r,i)},XT=function(e,t,n,r,i){return MT(e).formatter.match(t,n,r,i)},YT=function(e,t,n){return MT(e).formatter.matchAll(t,n)},KT=function(e,t,n,r,i){return MT(e).formatter.matchNode(t,n,r,i)},ZT=function(e,t){return MT(e).formatter.canApply(t)},JT=function(e,t){return MT(e).formatter.closest(t)},QT=function(e,t,n,r){MT(e).formatter.apply(t,n,r)},eS=function(e,t,n,r,i){MT(e).formatter.remove(t,n,r,i)},tS=function(e,t,n,r){MT(e).formatter.toggle(t,n,r)},nS=function(e,t,n,r,i,o){return MT(e).formatter.formatChanged(t,n,r,i,o)},rS=function(e,t,n){return NT(e).editor.getContent(t,n)},iS=function(e,t,n){return NT(e).editor.setContent(t,n)},oS=function(e,t,n){return NT(e).editor.insertContent(t,n)},aS=function(e,t,n){return MT(e).selection.getContent(t,n)},sS=function(e,t){return MT(e).editor.addVisual(t)},cS=function(e,t){void 0===t&&(t={});var n=t.format?t.format:"html";return aS(e,n,t)},uS=function(e){return 0===e.dom.length?(Tr(e),V.none()):V.some(e)},lS=function(e,t){return e.filter((function(e){return Bm.isBookmarkNode(e.dom)})).bind(t?er:Qn)},dS=function(e,t,n,r){var i=e.dom,o=t.dom,a=r?i.length:o.length;r?(m_(i,o,!1,!r),n.setStart(o,a)):(m_(o,i,!1,!r),n.setEnd(o,a))},fS=function(e,t){Kn(e).each((function(n){var r=e.dom;t&&e_(n,Fd(r,0))?p_(r,0):!t&&n_(n,Fd(r,r.length))&&g_(r,r.length)}))},hS=function(e,t,n,r){e.bind((function(e){var i=r?g_:p_;return i(e.dom,r?e.dom.length:0),t.filter(jn).map((function(t){return dS(e,t,n,r)}))})).orThunk((function(){var e=lS(t,r).or(t).filter(jn);return e.map((function(e){return fS(e,r)}))}))},pS=function(e,t){var n=V.from(t.firstChild).map(xn.fromDom),r=V.from(t.lastChild).map(xn.fromDom);e.deleteContents(),e.insertNode(t);var i=n.bind(Qn).filter(jn).bind(uS),o=r.bind(er).filter(jn).bind(uS);hS(i,n,e,!0),hS(o,r,e,!1),e.collapse(!1)},gS=function(e,t){return Ve(Ve({format:"html"},e),{set:!0,selection:!0,content:t})},mS=function(e,t){if("raw"!==t.format){var n=e.selection.getRng(),r=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),i=r?{context:r.nodeName.toLowerCase()}:{},o=e.parser.parse(t.content,Ve(Ve({isRootContent:!0,forced_root_block:!1},i),t));return Qy({validate:e.validate},e.schema).serialize(o)}return t.content},vS=function(e,t,n){void 0===n&&(n={});var r=gS(n,t),i=r;if(!r.no_events){var o=e.fire("BeforeSetContent",r);if(o.isDefaultPrevented())return void e.fire("SetContent",o);i=o}i.content=mS(e,i);var a=e.selection.getRng();pS(a,a.createContextualFragment(i.content)),e.selection.setRng(a),nb(e,a),i.no_events||e.fire("SetContent",i)},bS=function(e,t,n){if(e&&Fe(e,t)){var r=ne(e[t],(function(e){return e!==n}));0===r.length?delete e[t]:e[t]=r}};function yS(e,t){var n,r,i=function(t,n){return ae(n,(function(n){return e.is(n,t)}))},o=function(t){return e.getParents(t,null,e.getRoot())};return{selectorChangedWithUnbind:function(e,a){return n||(n={},r={},t.on("NodeChange",(function(e){var t=e.element,a=o(t),s={};pn.each(n,(function(e,t){i(t,a).each((function(n){r[t]||(Q(e,(function(e){e(!0,{node:n,selector:t,parents:a})})),r[t]=e),s[t]=e}))})),pn.each(r,(function(e,n){s[n]||(delete r[n],pn.each(e,(function(e){e(!1,{node:t,selector:n,parents:a})})))}))}))),n[e]||(n[e]=[]),n[e].push(a),i(e,o(t.selection.getStart())).each((function(){r[e]=n[e]})),{unbind:function(){bS(n,e,a),bS(r,e,a)}}}}}var xS=function(e){return!!e.select},_S=function(e){return!(!e||!e.ownerDocument)&&Mn(xn.fromDom(e.ownerDocument),xn.fromDom(e))},wS=function(e){return!!e&&(!!xS(e)||_S(e.startContainer)&&_S(e.endContainer))},DS=function(e,t,n,r){var i,o,a=yS(e,r).selectorChangedWithUnbind,s=function(t,n){var i=e.createRng();C(t)&&C(n)?(i.setStart(t,n),i.setEnd(t,n),y(i),m(!1)):(Cm(e,i,r.getBody(),!0),y(i))},c=function(e){return cS(r,e)},u=function(e,t){return vS(r,e,t)},l=function(e){return by(r.getBody(),b(),e)},d=function(e){return yy(r.getBody(),b(),e)},f=function(e,t){return P.getBookmark(e,t)},h=function(e){return P.moveToBookmark(e)},p=function(t,n){return Dy(e,t,n).each(y),t},g=function(){var e=b(),t=v();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},m=function(e){var t=b();t.collapse(!!e),y(t)},v=function(){return t.getSelection?t.getSelection():t.document.selection},b=function(){var n,a,s,c=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}},u=t.document;if(void 0!==r.bookmark&&!1===fy(r)){var l=Lb(r);if(l.isSome())return l.map((function(e){return Cy(r,[e])[0]})).getOr(u.createRange())}try{(n=v())&&!jr(n.anchorNode)&&(a=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():u.createRange(),a=Cy(r,[a])[0])}catch(d){}return a||(a=u.createRange?u.createRange():u.body.createTextRange()),a.setStart&&9===a.startContainer.nodeType&&a.collapsed&&(s=e.getRoot(),a.setStart(s,0),a.setEnd(s,0)),i&&o&&(0===c(a.START_TO_START,a,i)&&0===c(a.END_TO_END,a,i)?a=o:(i=null,o=null)),a},y=function(e,t){var n;if(wS(e)){var a=xS(e)?e:null;if(a){o=null;try{a.select()}catch(u){}}else{var s=v(),c=r.fire("SetSelectionRange",{range:e,forward:t});if(e=c.range,s){o=e;try{s.removeAllRanges(),s.addRange(e)}catch(u){}!1===t&&s.extend&&(s.collapse(e.endContainer,e.endOffset),s.extend(e.startContainer,e.startOffset)),i=s.rangeCount>0?s.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!s.setBaseAndExtent||en.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(n=e.startContainer.childNodes[e.startOffset],n&&"IMG"===n.tagName&&(s.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),s.anchorNode===e.startContainer&&s.focusNode===e.endContainer||s.setBaseAndExtent(n,0,n,1))),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},x=function(t){return u(e.getOuterHTML(t)),t},_=function(){return _y(r.getBody(),b())},w=function(t,n){return wy(e,b(),t,n)},D=function(){var t=v(),n=null===t||void 0===t?void 0:t.anchorNode,r=null===t||void 0===t?void 0:t.focusNode;if(!t||!n||!r||jr(n)||jr(r))return!0;var i=e.createRng();i.setStart(n,t.anchorOffset),i.collapse(!0);var o=e.createRng();return o.setStart(r,t.focusOffset),o.collapse(!0),i.compareBoundaryPoints(i.START_TO_START,o)<=0},k=function(){var t=b(),n=v();if(!hm(n)&&km(r)){var i=_v(e,t);return i.each((function(e){y(e,D())})),i.getOr(t)}return t},T=function(e,t){return a(e,t),F},S=function(){var t,n=e.getRoot();while(n&&"BODY"!==n.nodeName){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},A=function(e,t){C(e)?tb(r,e,t):nb(r,b(),t)},E=function(e,t){return y(cv(e,t,r.getDoc()))},U=function(){var e=b();return e.collapsed?Fd.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},O=function(){t=i=o=null,R.destroy()},F={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:m,setCursorLocation:s,getContent:c,setContent:u,getBookmark:f,moveToBookmark:h,select:p,isCollapsed:g,isForward:D,setNode:x,getNode:_,getSel:v,setRng:y,getRng:b,getStart:l,getEnd:d,getSelectedBlocks:w,normalize:k,selectorChanged:T,selectorChangedWithUnbind:a,getScrollContainer:S,scrollIntoView:A,placeCaretAt:E,getBoundingClientRect:U,destroy:O},P=Bm(F),R=rv(F,r);return F.bookmarkManager=P,F.controlSelection=R,F},CS=function(e,t){Q(t,(function(t){e.attr(t,null)}))},kS=function(e,t,n){e.addNodeFilter("font",(function(e){Q(e,(function(e){var r=t.parse(e.attr("style")),i=e.attr("color"),o=e.attr("face"),a=e.attr("size");i&&(r.color=i),o&&(r["font-family"]=o),a&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),CS(e,["color","face","size"])}))}))},TS=function(e,t){e.addNodeFilter("strike",(function(e){Q(e,(function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))}))}))},SS=function(e,t){var n=Hs();t.convert_fonts_to_spans&&kS(e,n,pn.explode(t.font_size_legacy_values)),TS(e,n)},AS=function(e,t){t.inline_styles&&SS(e,t)},ES=function(e){return new Eo((function(t,n){var r=function(){n("Cannot convert "+e+" to Blob. Resource might not exist or is inaccessible.")};try{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(){200===i.status?t(i.response):r()},i.onerror=r,i.send()}catch(o){r()}}))},US=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},OS=function(e,t){var n;try{n=atob(t)}catch(UW){return V.none()}for(var r=new Uint8Array(n.length),i=0;i<r.length;i++)r[i]=n.charCodeAt(i);return V.some(new Blob([r],{type:e}))},FS=function(e){return new Eo((function(t){var n=US(e),r=n.type,i=n.data;OS(r,i).fold((function(){return t(new Blob([]))}),t)}))},PS=function(e){return 0===e.indexOf("blob:")?ES(e):0===e.indexOf("data:")?FS(e):null},RS=function(e){return new Eo((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},NS=0,MS=function(e){return(e||"blobid")+NS++},IS=function(e,t,n,r){var i,o;if(0===t.src.indexOf("blob:"))return o=e.getByUri(t.src),void(o?n({image:t,blobInfo:o}):PS(t.src).then((function(r){RS(r).then((function(a){i=US(a).data,o=e.create(MS(),r,i),e.add(o),n({image:t,blobInfo:o})}))}),(function(e){r(e)})));var a=US(t.src),s=a.data,c=a.type;i=s,o=e.getByData(i,c),o?n({image:t,blobInfo:o}):PS(t.src).then((function(r){o=e.create(MS(),r,i),e.add(o),n({image:t,blobInfo:o})}),(function(e){r(e)}))},BS=function(e){return e?be(e.getElementsByTagName("img")):[]},LS=function(e,t){var n={},r=function(r,i){i||(i=L);var o=ne(BS(r),(function(t){var n=t.src;return!!en.fileApi&&(!t.hasAttribute("data-mce-bogus")&&(!t.hasAttribute("data-mce-placeholder")&&(!(!n||n===en.transparentSrc)&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&i(t):0===n.indexOf("data:")&&i(t)))))})),a=J(o,(function(e){if(void 0!==n[e.src])return new Eo((function(t){n[e.src].then((function(n){if("string"===typeof n)return n;t({image:e,blobInfo:n.blobInfo})}))}));var r=new Eo((function(n,r){IS(t,e,n,r)})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=r,r}));return Eo.all(a)};return{findAll:r}},zS=function(e){var t,n=/data:[^;<"'\s]+;base64,([a-z0-9\+\/=\s]+)/gi,r=[],i={},o=Ll("img"),a=0,s=0;while(t=n.exec(e)){var c=t[0],u=o+"_"+s++;i[u]=c,a<t.index&&r.push(e.substr(a,t.index-a)),r.push(u),a=t.index+c.length}var l=new RegExp(o+"_[0-9]+","g");return 0===a?{prefix:o,uris:i,html:e,re:l}:(a<e.length&&r.push(e.substr(a)),{prefix:o,uris:i,html:r.join(""),re:l})},WS=function(e,t){return e.replace(t.re,(function(e){return Oe(t.uris,e).getOr(e)}))},jS=function(e){var t=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(e);return t?V.some({type:t[1],data:decodeURIComponent(t[2])}):V.none()},HS=function(e,t,n,r){var i=e.padd_empty_with_br||t.insert;i&&n[r.name]?r.empty().append(new Ey("br",1)).shortEnded=!0:r.empty().append(new Ey("#text",3)).value=ua},VS=function(e){return qS(e,"#text")&&e.firstChild.value===ua},qS=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},$S=function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty},GS=function(e,t,n,r){return r.isEmpty(t,n,(function(t){return $S(e,t)}))},XS=function(e,t){return e&&(Fe(t,e.name)||"br"===e.name)},YS=function(e){return C(e.attr("data-mce-bogus"))},KS=function(e){return e.attr("src")===en.transparentSrc||C(e.attr("data-mce-placeholder"))},ZS=function(e,t){if(t.images_dataimg_filter){var n=new Image;return n.src=e.attr("src"),we(e.attributes.map,(function(e,t){n.setAttribute(t,e)})),t.images_dataimg_filter(n)}return!0},JS=function(e,t){var n=t.blob_cache,r=function(e){var r=e.attr("src");KS(e)||YS(e)||jS(r).filter((function(){return ZS(e,t)})).bind((function(e){var t=e.type,r=e.data;return V.from(n.getByData(r,t)).orThunk((function(){return OS(t,r).map((function(e){var t=n.create(MS(),e,r);return n.add(t),t}))}))})).each((function(t){e.attr("src",t.blobUri())}))};n&&e.addAttributeFilter("src",(function(e){return Q(e,r)}))},QS=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,r,i){var o,a,s,c,u,l,d,f,h=e.length,p=pn.extend({},n.getBlockElements()),g=n.getNonEmptyElements(),m=n.getWhiteSpaceElements();for(p.body=1,o=0;o<h;o++)if(a=e[o],s=a.parent,p[a.parent.name]&&a===s.lastChild){u=a.prev;while(u){if(l=u.name,"span"!==l||"bookmark"!==u.attr("data-mce-type")){"br"===l&&(a=null);break}u=u.prev}a&&(a.remove(),GS(n,g,m,s)&&(d=n.getElementRule(s.name),d&&(d.removeEmpty?s.remove():d.paddEmpty&&HS(t,i,p,s))))}else{c=a;while(s&&s.firstChild===c&&s.lastChild===c){if(c=s,p[s.name])break;s=s.parent}c===s&&!0!==t.padd_empty_with_br&&(f=new Ey("#text",3),f.value=ua,a.replace(f))}})),e.addAttributeFilter("href",(function(e){var n=e.length,r=function(e){var t=e.split(" ").filter((function(e){return e.length>0}));return t.concat(["noopener"]).sort().join(" ")},i=function(e){var t=e?pn.trim(e):"";return/\b(noopener)\b/g.test(t)?t:r(t)};if(!t.allow_unsafe_link_target)while(n--){var o=e[n];"a"===o.name&&"_blank"===o.attr("target")&&o.attr("rel",i(o.attr("rel")))}})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){var t,n,r,i,o=e.length;while(o--)if(i=e[o],"a"===i.name&&i.firstChild&&!i.attr("href")){r=i.parent,t=i.lastChild;do{n=t.prev,r.insert(t,i),t=n}while(t)}})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){var t,n,r=e.length;while(r--)if(t=e[r],n=t.parent,"ul"===n.name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var i=new Ey("li",1);i.attr("style","list-style-type: none"),t.wrap(i)}})),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",(function(e){var t=n.getValidClasses(),r=e.length;while(r--){for(var i=e[r],o=i.attr("class").split(" "),a="",s=0;s<o.length;s++){var c=o[s],u=!1,l=t["*"];l&&l[c]&&(u=!0),l=t[i.name],!u&&l&&l[c]&&(u=!0),u&&(a&&(a+=" "),a+=c)}a.length||(a=null),i.attr("class",a)}})),JS(e,t)},eA=pn.each,tA=pn.trim,nA="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),rA={ftp:21,http:80,https:443,mailto:25},iA=["img","video"],oA=function(e,t){return C(e)?!e:!C(t)||!K(iA,t)},aA=function(e,t,n){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?oA(e.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))},sA=function(){function e(t,n){t=tA(t),this.settings=n||{};var r=this.settings.base_uri,i=this;if(/^([\w\-]+):([^\/]{2})/i.test(t)||/^\s*#/.test(t))i.source=t;else{var o=0===t.indexOf("//");if(0!==t.indexOf("/")||o||(t=(r&&r.protocol||"http")+"://mce_host"+t),!/^[\w\-]*:?\/\//.test(t)){var a=this.settings.base_uri?this.settings.base_uri.path:new e(document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)t="//mce_host"+i.toAbsPath(a,t);else{var s=/([^#?]*)([#?]?.*)/.exec(t);t=(r&&r.protocol||"http")+"://mce_host"+i.toAbsPath(a,s[1])+s[2]}}t=t.replace(/@@/g,"(mce_at)");var c=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t);eA(nA,(function(e,t){var n=c[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),i[e]=n})),r&&(i.protocol||(i.protocol=r.protocol),i.userInfo||(i.userInfo=r.userInfo),i.port||"mce_host"!==i.host||(i.port=r.port),i.host&&"mce_host"!==i.host||(i.host=r.host),i.source=""),o&&(i.protocol="")}}return e.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},e.isDomSafe=function(e,t,n){if(void 0===n&&(n={}),n.allow_script_urls)return!0;var r=As.decode(e).replace(/[\s\u0000-\u001F]+/g,"");try{r=decodeURIComponent(r)}catch(i){r=unescape(r)}return!/((java|vb)script|mhtml):/i.test(r)&&!aA(n,r,t)},e.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},e.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},e.prototype.toRelative=function(t){var n;if("./"===t)return t;var r=new e(t,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var i=this.getURI(),o=r.getURI();return i===o||"/"===i.charAt(i.length-1)&&i.substr(0,i.length-1)===o?i:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},e.prototype.toAbsolute=function(t,n){var r=new e(t,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},e.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=rA[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},e.prototype.toRelPath=function(e,t){var n,r,i=0,o="",a=e.substring(0,e.lastIndexOf("/")).split("/"),s=t.split("/");if(a.length>=s.length)for(n=0,r=a.length;n<r;n++)if(n>=s.length||a[n]!==s[n]){i=n+1;break}if(a.length<s.length)for(n=0,r=s.length;n<r;n++)if(n>=a.length||a[n]!==s[n]){i=n+1;break}if(1===i)return t;for(n=0,r=a.length-(i-1);n<r;n++)o+="../";for(n=i-1,r=s.length;n<r;n++)o+=n!==i-1?"/"+s[n]:s[n];return o},e.prototype.toAbsPath=function(e,t){var n,r,i=0,o=[],a=/\/$/.test(t)?"/":"",s=e.split("/"),c=t.split("/");for(eA(s,(function(e){e&&o.push(e)})),s=o,n=c.length-1,o=[];n>=0;n--)0!==c[n].length&&"."!==c[n]&&(".."!==c[n]?i>0?i--:o.push(c[n]):i++);return n=s.length-i,r=n<=0?de(o).join("/"):s.slice(0,n).join("/")+"/"+de(o).join("/"),0!==r.indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},e.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},e}(),cA=pn.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),uA=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},lA=Ge((function(){return document.implementation.createHTMLDocument("parser")})),dA=function(e,t,n){var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,i=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,o=e.getShortEndedElements(),a=1,s=n;while(0!==a){r.lastIndex=s;while(1){var c=r.exec(t);if(null===c)return s;if("!"===c[1]){s=ut(c[2],"--")?hA(t,!1,c.index+"!--".length):hA(t,!0,c.index+1);break}i.lastIndex=r.lastIndex;var u=i.exec(t);if(!x(u)&&u.index===r.lastIndex){"/"===c[1]?a-=1:Fe(o,c[2])||(a+=1),s=r.lastIndex+u[0].length;break}}}return s},fA=function(e,t){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(e.substr(t))},hA=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&fA(r,n)){var i=r.indexOf("[endif]",n);return r.indexOf(">",i)}if(t){var o=r.indexOf(">",n);return-1!==o?o:r.length}var a=/--!?>/g;a.lastIndex=n;var s=a.exec(e);return s?s.index+s[0].length:r.length},pA=function(e,t){var n=e.exec(t);if(n){var r=n[1],i=n[2];return"string"===typeof r&&"data-mce-bogus"===r.toLowerCase()?i:null}return null},gA=function(e,t){void 0===t&&(t=Ws()),e=e||{};var n=lA(),r=n.createElement("form");!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var i=e.comment?e.comment:S,o=e.cdata?e.cdata:S,a=e.text?e.text:S,s=e.start?e.start:S,c=e.end?e.end:S,u=e.pi?e.pi:S,l=e.doctype?e.doctype:S,d=function(d,f){void 0===f&&(f="html");var h,p,g,m,v,b,y,x,_,w,D,C,k,T,S,A,E,U,O,F,P=d.html,R=0,N=[],M=0,I=As.decode,B=pn.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),L="html"===f?0:1,z=function(e){var t,n;t=N.length;while(t--)if(N[t].name===e)break;if(t>=0){for(n=N.length-1;n>=t;n--)e=N[n],e.valid&&c(e.name);N.length=t}},W=function(e,t){return a(WS(e,d),t)},j=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),i(WS(t,d)))},H=function(e){return WS(e,d)},V=function(e,t){var n=e||"",r=!ut(n,"--"),i=hA(P,r,t);return e=P.substr(t,i-t),j(r?n+e:e),i+1},q=function(t,i,o,a,s){if(i=i.toLowerCase(),o=H(i in K?i:I(o||a||s||"")),Z&&!x&&!1===uA(i)){var c=T[i];if(!c&&S){var u=S.length;while(u--)if(c=S[u],c.pattern.test(i))break;-1===u&&(c=null)}if(!c)return;if(c.validValues&&!(o in c.validValues))return}var l="name"===i||"id"===i;l&&t in cA&&(o in n||o in r)||B[i]&&!sA.isDomSafe(o,t,e)||x&&(i in B||0===i.indexOf("on"))||(m.map[i]=o,m.push({name:i,value:o}))},$=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'\">]+(?:\"[^\"]*\"|'[^']*'))*[^\"'>]*(?:\"[^\">]*|'[^'>]*)?|\\s*|\\/)>))","g"),G=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,X=t.getShortEndedElements(),Y=e.self_closing_elements||t.getSelfClosingElements(),K=t.getBoolAttrs(),Z=e.validate,J=e.remove_internals,Q=e.fix_self_closing,ee=t.getSpecialElements(),te=P+">";while(h=$.exec(te)){var ne=h[0];if(R<h.index&&W(I(P.substr(R,h.index-R))),p=h[7])p=p.toLowerCase(),":"===p.charAt(0)&&(p=p.substr(1)),z(p);else if(p=h[8]){if(h.index+ne.length>P.length){W(I(P.substr(h.index))),R=h.index+ne.length;continue}p=p.toLowerCase(),":"===p.charAt(0)&&(p=p.substr(1)),_=p in X,Q&&Y[p]&&N.length>0&&N[N.length-1].name===p&&z(p);var re=pA(G,h[9]);if(null!==re){if("all"===re){R=dA(t,P,$.lastIndex),$.lastIndex=R;continue}D=!1}if(!Z||(w=t.getElementRule(p))){if(D=!0,Z&&(T=w.attributes,S=w.attributePatterns),(k=h[9])?(x=-1!==k.indexOf("data-mce-type"),x&&J&&(D=!1),m=[],m.map={},k.replace(G,(function(e,t,n,r,i){return q(p,t,n,r,i),""}))):(m=[],m.map={}),Z&&!x){if(A=w.attributesRequired,E=w.attributesDefault,U=w.attributesForced,O=w.removeEmptyAttrs,O&&!m.length&&(D=!1),U){v=U.length;while(v--)C=U[v],y=C.name,F=C.value,"{$uid}"===F&&(F="mce_"+M++),m.map[y]=F,m.push({name:y,value:F})}if(E){v=E.length;while(v--)C=E[v],y=C.name,y in m.map||(F=C.value,"{$uid}"===F&&(F="mce_"+M++),m.map[y]=F,m.push({name:y,value:F}))}if(A){v=A.length;while(v--)if(A[v]in m.map)break;-1===v&&(D=!1)}if(C=m.map["data-mce-bogus"]){if("all"===C){R=dA(t,P,$.lastIndex),$.lastIndex=R;continue}D=!1}}D&&s(p,m,_)}else D=!1;if(g=ee[p]){g.lastIndex=R=h.index+ne.length,(h=g.exec(P))?(D&&(b=P.substr(R,h.index-R)),R=h.index+h[0].length):(b=P.substr(R),R=P.length),D&&(b.length>0&&W(b,!0),c(p)),$.lastIndex=R;continue}_||(k&&k.indexOf("/")===k.length-1?D&&c(p):N.push({name:p,valid:D}))}else if(p=h[1])j(p);else if(p=h[2]){var ie=1===L||e.preserve_cdata||N.length>0&&t.isValidChild(N[N.length-1].name,"#cdata");if(!ie){R=V("",h.index+2),$.lastIndex=R;continue}o(p)}else if(p=h[3])l(p);else{if((p=h[4])||"<!"===ne){R=V(p,h.index+ne.length),$.lastIndex=R;continue}if(p=h[5]){if(1!==L){R=V("?",h.index+2),$.lastIndex=R;continue}u(p,h[6])}}R=h.index+ne.length}for(R<P.length&&W(I(P.substr(R))),v=N.length-1;v>=0;v--)p=N[v],p.valid&&c(p.name)},f=function(e,t){void 0===t&&(t="html"),d(zS(e),t)};return{parse:f}};gA.findEndTag=dA;var mA=pn.makeMap,vA=pn.each,bA=pn.explode,yA=pn.extend,xA=function(e,t){void 0===t&&(t=Ws());var n={},r=[],i={},o={};e=e||{},e.validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var a=function(e){for(var n=mA("tr,td,th,tbody,thead,tfoot,table"),r=t.getNonEmptyElements(),i=t.getWhiteSpaceElements(),o=t.getTextBlockElements(),a=t.getSpecialElements(),c=function(e,n){if(void 0===n&&(n=e.parent),a[e.name])e.empty().remove();else{for(var r=e.children(),i=0,o=r;i<o.length;i++){var s=o[i];t.isValidChild(n.name,s.name)||c(s,n)}e.unwrap()}},u=0;u<e.length;u++){var l=e[u],d=void 0,f=void 0,h=void 0;if(l.parent&&!l.fixed)if(o[l.name]&&"li"===l.parent.name){var p=l.next;while(p){if(!o[p.name])break;p.name="li",p.fixed=!0,l.parent.insert(p,l.parent),p=p.next}l.unwrap()}else{var g=[l];for(d=l.parent;d&&!t.isValidChild(d.name,l.name)&&!n[d.name];d=d.parent)g.push(d);if(d&&g.length>1)if(t.isValidChild(d.name,l.name)){g.reverse(),f=s(g[0].clone());for(var m=f,v=0;v<g.length-1;v++){t.isValidChild(m.name,g[v].name)?(h=s(g[v].clone()),m.append(h)):h=m;for(var b=g[v].firstChild;b&&b!==g[v+1];){var y=b.next;h.append(b),b=y}m=h}GS(t,r,i,f)?d.insert(l,g[0],!0):(d.insert(f,g[0],!0),d.insert(l,f)),d=g[0],(GS(t,r,i,d)||qS(d,"br"))&&d.empty().remove()}else c(l);else if(l.parent){if("li"===l.name){p=l.prev;if(p&&("ul"===p.name||"ol"===p.name)){p.append(l);continue}if(p=l.next,p&&("ul"===p.name||"ol"===p.name)){p.insert(l,p.firstChild,!0);continue}l.wrap(s(new Ey("ul",1)));continue}t.isValidChild(l.parent.name,"div")&&t.isValidChild("div",l.name)?l.wrap(s(new Ey("div",1))):c(l)}}}},s=function(e){var t=e.name;if(t in n){var a=i[t];a?a.push(e):i[t]=[e]}var s=r.length;while(s--){var c=r[s].name;if(c in e.attributes.map){a=o[c];a?a.push(e):o[c]=[e]}}return e},c=function(e,t){vA(bA(e),(function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)}))},u=function(){var e=[];for(var t in n)Fe(n,t)&&e.push({name:t,callbacks:n[t]});return e},l=function(e,t){vA(bA(e),(function(e){var n;for(n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})}))},d=function(){return[].concat(r)},f=function(s,c){var u,l,d,f,h,p,g,m,v=[],b=function(e){return!1===e?"":!0===e?"p":e};c=c||{},i={},o={};var y=yA(mA("script,style,head,html,body,title,meta,param"),t.getBlockElements()),x=Bs(t),_=t.getNonEmptyElements(),w=t.children,D=e.validate,k="forced_root_block"in c?c.forced_root_block:e.forced_root_block,T=b(k),S=t.getWhiteSpaceElements(),A=/^[ \t\r\n]+/,E=/[ \t\r\n]+$/,U=/[ \t\r\n]+/g,O=/^[ \t\r\n]+$/,F=Fe(S,c.context)||Fe(S,e.root_name),P=function(){var n=L.firstChild,r=null,i=function(e){e&&(n=e.firstChild,n&&3===n.type&&(n.value=n.value.replace(A,"")),n=e.lastChild,n&&3===n.type&&(n.value=n.value.replace(E,"")))};if(t.isValidChild(L.name,T.toLowerCase())){while(n){var o=n.next;3===n.type||1===n.type&&"p"!==n.name&&!y[n.name]&&!n.attr("data-mce-type")?(r||(r=R(T,1),r.attr(e.forced_root_block_attrs),L.insert(r,n)),r.append(n)):(i(r),r=null),n=o}i(r)}},R=function(e,t){var r,o=new Ey(e,t);return e in n&&(r=i[e],r?r.push(o):i[e]=[o]),o},N=function(e){for(var n=t.getBlockElements(),r=e.prev;r&&3===r.type;){var i=r.value.replace(E,"");if(i.length>0)return void(r.value=i);var o=r.next;if(o){if(3===o.type&&o.value.length){r=r.prev;continue}if(!n[o.name]&&"script"!==o.name&&"style"!==o.name){r=r.prev;continue}}var a=r.prev;r.remove(),r=a}},M=function(e){var t={};for(var n in e)"li"!==n&&"p"!==n&&(t[n]=e[n]);return t},I=function(e){var n=e;while(C(n)){if(n.name in x)return GS(t,_,S,n);n=n.parent}return!1},B=gA({validate:D,document:e.document,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,preserve_cdata:e.preserve_cdata,self_closing_elements:M(t.getSelfClosingElements()),cdata:function(e){m.append(R("#cdata",4)).value=e},text:function(e,t){var n;F||(e=e.replace(U," "),XS(m.lastChild,y)&&(e=e.replace(A,""))),0!==e.length&&(n=R("#text",3),n.raw=!!t,m.append(n).value=e)},comment:function(e){m.append(R("#comment",8)).value=e},pi:function(e,t){m.append(R(e,7)).value=t,N(m)},doctype:function(e){var t=m.append(R("#doctype",10));t.value=e,N(m)},start:function(e,n,i){var a=D?t.getElementRule(e):{};if(a){var s=R(a.outputName||e,1);s.attributes=n,s.shortEnded=i,m.append(s);var c=w[m.name];c&&w[s.name]&&!c[s.name]&&v.push(s);var u=r.length;while(u--){var l=r[u].name;l in n.map&&(p=o[l],p?p.push(s):o[l]=[s])}y[e]&&N(s),i||(m=s),!F&&S[e]&&(F=!0)}},end:function(n){var r,i,o,a=D?t.getElementRule(n):{};if(a){if(y[n]&&!F){if(r=m.firstChild,r&&3===r.type)if(i=r.value.replace(A,""),i.length>0)r.value=i,r=r.next;else{o=r.next,r.remove(),r=o;while(r&&3===r.type)i=r.value,o=r.next,(0===i.length||O.test(i))&&(r.remove(),r=o),r=o}if(r=m.lastChild,r&&3===r.type)if(i=r.value.replace(E,""),i.length>0)r.value=i,r=r.prev;else{o=r.prev,r.remove(),r=o;while(r&&3===r.type)i=r.value,o=r.prev,(0===i.length||O.test(i))&&(r.remove(),r=o),r=o}}F&&S[n]&&(F=!1);var s=GS(t,_,S,m),u=m.parent;a.paddInEmptyBlock&&s&&I(m)?HS(e,c,y,m):a.removeEmpty&&s?y[m.name]?m.empty().remove():m.unwrap():a.paddEmpty&&(VS(m)||s)&&HS(e,c,y,m),m=u}}},t),L=m=new Ey(c.context||e.root_name,11);if(B.parse(s,c.format),D&&v.length&&(c.context?c.invalid=!0:a(v)),T&&("body"===L.name||c.isRootContent)&&P(),!c.invalid){for(g in i)if(Fe(i,g)){p=n[g],u=i[g],f=u.length;while(f--)u[f].parent||u.splice(f,1);for(l=0,d=p.length;l<d;l++)p[l](u,g,c)}for(l=0,d=r.length;l<d;l++)if(p=r[l],p.name in o){u=o[p.name],f=u.length;while(f--)u[f].parent||u.splice(f,1);for(f=0,h=p.callbacks.length;f<h;f++)p.callbacks[f](u,p.name,c)}}return L},h={schema:t,addAttributeFilter:l,getAttributeFilters:d,addNodeFilter:c,getNodeFilters:u,filterNode:s,parse:f};return QS(h,e),AS(h,e),h},_A=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",(function(e,t){var n=e.length;while(n--){var r=e[n];r.attr("tabindex",r.attr("data-mce-tabindex")),r.attr(t,null)}})),e.addAttributeFilter("src,href,style",(function(e,r){var i="data-mce-"+r,o=t.url_converter,a=t.url_converter_scope,s=e.length;while(s--){var c=e[s],u=c.attr(i);void 0!==u?(c.attr(r,u.length>0?u:null),c.attr(i,null)):(u=c.attr(r),"style"===r?u=n.serializeStyle(n.parseStyle(u),c.name):o&&(u=o.call(a,u,r,c.name)),c.attr(r,u.length>0?u:null))}})),e.addAttributeFilter("class",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("class");r&&(r=n.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),n.attr("class",r.length>0?r:null))}})),e.addAttributeFilter("data-mce-type",(function(e,t,n){var r=e.length;while(r--){var i=e[r];if("bookmark"===i.attr("data-mce-type")&&!n.cleanup){var o=V.from(i.firstChild).exists((function(e){return!ha(e.value)}));o?i.unwrap():i.remove()}}})),e.addNodeFilter("noscript",(function(e){var t=e.length;while(t--){var n=e[t].firstChild;n&&(n.value=As.decode(n.value))}})),e.addNodeFilter("script,style",(function(e,n){var r=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")},i=e.length;while(i--){var o=e[i],a=o.firstChild?o.firstChild.value:"";if("script"===n){var s=o.attr("type");s&&o.attr("type","mce-no/type"===s?null:s.replace(/^mce\-/,"")),"xhtml"===t.element_format&&a.length>0&&(o.firstChild.value="// <![CDATA[\n"+r(a)+"\n// ]]>")}else"xhtml"===t.element_format&&a.length>0&&(o.firstChild.value="\x3c!--\n"+r(a)+"\n--\x3e")}})),e.addNodeFilter("#comment",(function(e){var r=e.length;while(r--){var i=e[r];t.preserve_cdata&&0===i.value.indexOf("[CDATA[")?(i.name="#cdata",i.type=4,i.value=n.decode(i.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===i.value.indexOf("mce:protected ")&&(i.name="#text",i.type=3,i.raw=!0,i.value=unescape(i.value).substr(14))}})),e.addNodeFilter("xml:namespace,input",(function(e,t){var n=e.length;while(n--){var r=e[n];7===r.type?r.remove():1===r.type&&("input"!==t||r.attr("type")||r.attr("type","text"))}})),e.addAttributeFilter("data-mce-type",(function(t){Q(t,(function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())}))})),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)}))},wA=function(e){var t=function(e){return e&&"br"===e.name},n=e.lastChild;if(t(n)){var r=n.prev;t(r)&&(n.remove(),r.remove())}},DA=function(e,t,n){var r,i=e.dom,o=t.cloneNode(!0),a=document.implementation;if(a.createHTMLDocument){var s=a.createHTMLDocument("");pn.each("BODY"===o.nodeName?o.childNodes:[o],(function(e){s.body.appendChild(s.importNode(e,!0))})),o="BODY"!==o.nodeName?s.body.firstChild:s.body,r=i.doc,i.doc=s}return Wm(e,Ve(Ve({},n),{node:o})),r&&(i.doc=r),o},CA=function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events},kA=function(e,t,n){return CA(e,n)?DA(e,t,n):t},TA=function(e,t,n){-1===pn.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)})),t.push(n))},SA=function(e,t,n){if(!t.no_events&&e){var r=jm(e,Ve(Ve({},t),{content:n}));return r.content}return n},AA=function(e,t,n){var r=pa(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||aa(xn.fromDom(t))?r:pn.trim(r)},EA=function(e,t,n){var r=n.selection?Ve({forced_root_block:!1},n):n,i=e.parse(t,r);return wA(i),i},UA=function(e,t,n){var r=Qy(e,t);return r.serialize(n)},OA=function(e,t,n,r,i){var o=UA(t,n,r);return SA(e,i,o)},FA=function(e,t){var n=["data-mce-selected"],r=t&&t.dom?t.dom:Wu.DOM,i=t&&t.schema?t.schema:Ws(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs;var o=xA(e,i);_A(o,e,r);var a=function(n,a){void 0===a&&(a={});var s=Ve({format:"html"},a),c=kA(t,n,s),u=AA(r,c,s),l=EA(o,u,s);return"tree"===s.format?l:OA(t,e,i,l,s)};return{schema:i,addNodeFilter:o.addNodeFilter,addAttributeFilter:o.addAttributeFilter,serialize:a,addRules:i.addValidElements,setRules:i.setValidElements,addTempAttr:P(TA,o,n),getTempAttrs:U(n),getNodeFilters:o.getNodeFilters,getAttributeFilters:o.getAttributeFilters}},PA=function(e,t){var n=FA(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}},RA="html",NA=function(e,t){void 0===t&&(t={});var n=t.format?t.format:RA;return rS(e,t,n)},MA=function(e,t,n){return void 0===n&&(n={}),iS(e,t,n)},IA=Wu.DOM,BA=function(e){IA.setStyle(e.id,"display",e.orgDisplay)},LA=function(e){return V.from(e).each((function(e){return e.destroy()}))},zA=function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)},WA=function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),IA.unbind(t,"submit reset",e.formEventDelegate))},jA=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),i=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&i&&IA.remove(i.nextSibling),Hm(e),e.editorManager.remove(e),!e.inline&&r&&BA(e),Vm(e),IA.remove(e.getContainer()),LA(t),LA(n),e.destroy()}},HA=function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),LA(n),LA(r)),WA(e),zA(e),e.destroyed=!0):e.remove())},VA=function(e,t){var n=b(e)&&b(t);return n?$A(e,t):t},qA=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)Fe(o,a)&&(r[a]=e(r[a],o[a]))}return r}},$A=qA(VA),GA="autoresize_on_init,content_editable_state,convert_fonts_to_spans,inline_styles,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),XA="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),YA="imagetools,toc".split(","),KA=function(e){var t=ne(GA,(function(t){return Fe(e,t)})),n=e.forced_root_block;return!1!==n&&""!==n||t.push("forced_root_block (false only)"),pe(t)},ZA=function(e){var t=pn.makeMap(e.plugins," "),n=function(e){return Fe(t,e)},r=$e($e([],ne(XA,n),!0),ue(YA,(function(e){return n(e)?[e+" (moving to premium)"]:[]})),!0);return pe(r)},JA=function(e,t){var n=KA(e),r=ZA(t),i=r.length>0,o=n.length>0,a="mobile"===t.theme;if(i||o||a){var s="\n- ",c=a?"\n\nThemes:"+s+"mobile":"",u=i?"\n\nPlugins:"+s+r.join(s):"",l=o?"\n\nSettings:"+s+n.join(s):"";console.warn("The following deprecated features are currently enabled, these will be removed in TinyMCE 6.0. See https://www.tiny.cloud/docs/release-notes/6.0-upcoming-changes/ for more information."+c+u+l)}},QA=function(e,t){return{sections:U(e),settings:U(t)}},eE=qt().deviceType,tE=eE.isTouch(),nE=eE.isPhone(),rE=eE.isTablet(),iE=["lists","autolink","autosave"],oE={table_grid:!1,object_resizing:!1,resize:!1},aE=function(e){var t=y(e)?e.join(" "):e,n=J(v(t)?t.split(" "):[],dt);return ne(n,(function(e){return e.length>0}))},sE=function(e){return ne(e,P(K,iE))},cE=function(e,t){var n=Se(t,(function(t,n){return K(e,n)}));return QA(n.t,n.f)},uE=function(e,t,n){void 0===n&&(n={});var r=e.sections(),i=Oe(r,t).getOr({});return pn.extend({},n,i)},lE=function(e,t){return Fe(e.sections(),t)},dE=function(e,t,n){var r=e.sections();return lE(e,t)&&r[t].theme===n},fE=function(e,t){return lE(e,t)?e.sections()[t]:{}},hE=function(e,t){return Oe(e,"toolbar_mode").orThunk((function(){return Oe(e,"toolbar_drawer").map((function(e){return!1===e?"wrap":e}))})).getOr(t)},pE=function(e,t,n,r,i){var o={id:t,theme:"silver",toolbar_mode:hE(e,"floating"),plugins:"",document_base_url:n,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:i.convertURL,url_converter_scope:i};return Ve(Ve({},o),r?oE:{})},gE=function(e,t){var n={resize:!1,toolbar_mode:hE(e,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return Ve(Ve(Ve({},oE),n),t?r:{})},mE=function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?pn.extend({},e.external_plugins,n):n},vE=function(e,t){return[].concat(aE(e)).concat(aE(t))},bE=function(e,t,n,r){return e&&dE(t,"mobile","mobile")?sE(r):e&&lE(t,"mobile")?r:n},yE=function(e,t,n,r){var i=aE(n.forced_plugins),o=aE(r.plugins),a=fE(t,"mobile"),s=a.plugins?aE(a.plugins):o,c=bE(e,t,o,s),u=vE(i,c);if(en.browser.isIE()&&K(u,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return pn.extend(r,{plugins:u.join(" ")})},xE=function(e,t){return e&&lE(t,"mobile")},_E=function(e,t,n,r,i){var o=e?{mobile:gE(i.mobile||{},t)}:{},a=cE(["mobile"],$A(o,i)),s=pn.extend(n,r,a.settings(),xE(e,a)?uE(a,"mobile"):{},{validate:!0,external_plugins:mE(r,a.settings())});return yE(e,a,r,s)},wE=function(e,t,n,r,i){var o=pE(i,t,n,tE,e),a=_E(nE||rE,nE,o,r,i);return!1!==a.deprecation_warnings&&JA(i,a),a},DE=function(e,t,n){return V.from(t.settings[n]).filter(e)},CE=function(e){var t={};return"string"===typeof e?Q(e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(","),(function(e){var n=e.split("=");n.length>1?t[pn.trim(n[0])]=pn.trim(n[1]):t[pn.trim(n[0])]=pn.trim(n[0])})):t=e,t},kE=function(e){return function(t){return y(t)&&le(t,e)}},TE=function(e,t,n,r){var i=t in e.settings?e.settings[t]:n;return"hash"===r?CE(i):"string"===r?DE(v,e,t).getOr(n):"number"===r?DE(T,e,t).getOr(n):"boolean"===r?DE(_,e,t).getOr(n):"object"===r?DE(b,e,t).getOr(n):"array"===r?DE(y,e,t).getOr(n):"string[]"===r?DE(kE(v),e,t).getOr(n):"function"===r?DE(k,e,t).getOr(n):i},SE=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return e[t]?e[t]:{icons:{}}},r=function(t){return Fe(e,t)};return{add:t,get:n,has:r}},AE=SE(),EE=function(e,t){var n=t.dom;return n[e]},UE=function(e,t){return parseInt(ki(t,e),10)},OE=P(EE,"clientWidth"),FE=P(EE,"clientHeight"),PE=P(UE,"margin-top"),RE=P(UE,"margin-left"),NE=function(e){return e.dom.getBoundingClientRect()},ME=function(e,t,n){var r=OE(e),i=FE(e);return t>=0&&n>=0&&t<=r&&n<=i},IE=function(e,t,n,r){var i=NE(t),o=e?i.left+t.dom.clientLeft+RE(t):0,a=e?i.top+t.dom.clientTop+PE(t):0,s=n-o,c=r-a;return{x:s,y:c}},BE=function(e,t,n){var r=xn.fromDom(e.getBody()),i=e.inline?r:Xn(r),o=IE(e.inline,i,t,n);return ME(i,o.x,o.y)},LE=function(e){return V.from(e).map(xn.fromDom)},zE=function(e){var t=e.inline?e.getBody():e.getContentAreaContainer();return LE(t).map(Ar).getOr(!1)},WE=function(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}},jE=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():WE()},r=function(){return V.from(t[0])},i=function(e,t){return e.type===t.type&&e.text===t.text&&!e.progressBar&&!e.timeout&&!t.progressBar&&!t.timeout},o=function(){t.length>0&&n().reposition(t)},a=function(e){t.push(e)},s=function(e){se(t,(function(t){return t===e})).each((function(e){t.splice(e,1)}))},c=function(c,u){if(void 0===u&&(u=!0),!e.removed&&zE(e))return u&&e.fire("BeforeOpenNotification",{notification:c}),ae(t,(function(e){return i(n().getArgs(e),c)})).getOrThunk((function(){e.editorManager.setActive(e);var t=n().open(c,(function(){s(t),o(),r().fold((function(){return e.focus()}),(function(e){return ib(xn.fromDom(e.getEl()))}))}));return a(t),o(),e.fire("OpenNotification",{notification:Ve({},t)}),t}))},u=function(){r().each((function(e){n().close(e),s(e),o()}))},l=U(t),d=function(e){e.on("SkinLoaded",(function(){var t=rh(e);t&&c({text:t,type:"warning",timeout:0},!1),o()})),e.on("show ResizeEditor ResizeWindow NodeChange",(function(){Mo.requestAnimationFrame(o)})),e.on("remove",(function(){Q(t.slice(),(function(e){n().close(e)}))}))};return d(e),{open:c,close:u,getNotifications:l}},HE=ll.PluginManager,VE=ll.ThemeManager;function qE(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}var $E=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():qE()},r=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t?t.apply(e,n):void 0}},i=function(t){e.fire("OpenWindow",{dialog:t})},o=function(t){e.fire("CloseWindow",{dialog:t})},a=function(e){t.push(e),i(e)},s=function(n){o(n),t=ne(t,(function(e){return e!==n})),0===t.length&&e.focus()},c=function(){return V.from(t[t.length-1])},u=function(t){e.editorManager.setActive(e),Ib(e);var n=t();return a(n),n},l=function(e,t){return u((function(){return n().open(e,t,s)}))},d=function(e){return u((function(){return n().openUrl(e,s)}))},f=function(e,t,i){var o=n();o.alert(e,r(i||o,t))},h=function(e,t,i){var o=n();o.confirm(e,r(i||o,t))},p=function(){c().each((function(e){n().close(e),s(e)}))};return e.on("remove",(function(){Q(t,(function(e){n().close(e)}))})),{open:l,openUrl:d,alert:f,confirm:h,close:p}},GE=function(e,t){e.notificationManager.open({type:"error",text:t})},XE=function(e,t){e._skinLoaded?GE(e,t):e.on("SkinLoaded",(function(){GE(e,t)}))},YE=function(e,t){XE(e,ul.translate(["Failed to upload image: {0}",t]))},KE=function(e,t,n){Jm(e,t,{message:n}),console.error(n)},ZE=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},JE=function(e,t,n){KE(e,"PluginLoadError",ZE("plugin",t,n))},QE=function(e,t,n){KE(e,"IconsLoadError",ZE("icons",t,n))},eU=function(e,t,n){KE(e,"LanguageLoadError",ZE("language",t,n))},tU=function(e,t,n){var r=ul.translate(["Failed to initialize plugin: {0}",t]);Jm(e,"PluginLoadError",{message:r}),nU(r,n),XE(e,r)},nU=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=window.console;r&&(r.error?r.error.apply(r,$e([e],t,!1)):r.log.apply(r,$e([e],t,!1)))},rU=function(e){return/^[a-z0-9\-]+$/i.test(e)},iU=function(e){return aU(e,Yf(e))},oU=function(e){return aU(e,Kf(e))},aU=function(e,t){var n=e.editorManager.baseURL+"/skins/content",r=e.editorManager.suffix,i="content"+r+".css",o=!0===e.inline;return J(t,(function(t){return rU(t)&&!o?n+"/"+t+"/"+i:e.documentBaseURI.toAbsolute(t)}))},sU=function(e){e.contentCSS=e.contentCSS.concat(iU(e),oU(e))},cU=function(){var e=1,t=2,n={},r=function(e,t){return{status:e,resultUri:t}},i=function(e){return e in n},o=function(e){var t=n[e];return t?t.resultUri:null},a=function(t){return!!i(t)&&n[t].status===e},s=function(e){return!!i(e)&&n[e].status===t},c=function(t){n[t]=r(e,null)},u=function(e,i){n[e]=r(t,i)},l=function(e){delete n[e]},d=function(){n={}};return{hasBlobUri:i,getResultUri:o,isPending:a,isUploaded:s,markPending:c,markUploaded:u,removeFailed:l,destroy:d}},uU=0,lU=function(){var e=function(){return Math.round(4294967295*Math.random()).toString(36)},t=(new Date).getTime();return"s"+t.toString(36)+e()+e()+e()},dU=function(e){return e+uU+++lU()},fU=function(){var e=[],t=function(e){var t={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};return t[e.toLowerCase()]||"dat"},n=function(e,t,n,i,o){if(v(e)){var a=e;return r({id:a,name:i,filename:o,blob:t,base64:n})}if(b(e))return r(e);throw new Error("Unknown input type")},r=function(e){if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var n=e.id||dU("blobid"),r=e.name||n,i=e.blob;return{id:U(n),name:U(r),filename:U(e.filename||r+"."+t(i.type)),blob:U(i),base64:U(e.base64),blobUri:U(e.blobUri||URL.createObjectURL(i)),uri:U(e.uri)}},i=function(t){a(t.id())||e.push(t)},o=function(t){return ae(e,t).getOrUndefined()},a=function(e){return o((function(t){return t.id()===e}))},s=function(e){return o((function(t){return t.blobUri()===e}))},c=function(e,t){return o((function(n){return n.base64()===e&&n.blob().type===t}))},u=function(t){e=ne(e,(function(e){return e.blobUri()!==t||(URL.revokeObjectURL(e.blobUri()),!1)}))},l=function(){Q(e,(function(e){URL.revokeObjectURL(e.blobUri())})),e=[]};return{create:n,add:i,get:a,getByUri:s,getByData:c,findFirst:o,removeByUri:u,destroy:l}},hU=function(e,t){var n={},r=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},i=function(e,n,i,o){var a=new XMLHttpRequest;a.open("POST",t.url),a.withCredentials=t.credentials,a.upload.onprogress=function(e){o(e.loaded/e.total*100)},a.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){if(a.status<200||a.status>=300)i("HTTP Error: "+a.status);else{var e=JSON.parse(a.responseText);e&&"string"===typeof e.location?n(r(t.basePath,e.location)):i("Invalid JSON: "+a.responseText)}};var s=new FormData;s.append("file",e.blob(),e.filename()),a.send(s)},o=function(){return new Eo((function(e){e([])}))},a=function(e,t){return{url:t,blobInfo:e,status:!0}},s=function(e,t,n){return{url:"",blobInfo:e,status:!1,error:{message:t,options:n}}},c=function(e,t){pn.each(n[e],(function(e){e(t)})),delete n[e]},u=function(t,n,r){return e.markPending(t.blobUri()),new Eo((function(i){var o,u;try{var l=function(){o&&(o.close(),u=S)},d=function(n){l(),e.markUploaded(t.blobUri(),n),c(t.blobUri(),a(t,n)),i(a(t,n))},f=function(n,r){var o=r||{};l(),e.removeFailed(t.blobUri()),c(t.blobUri(),s(t,n,o)),i(s(t,n,o))};u=function(e){e<0||e>100||V.from(o).orThunk((function(){return V.from(r).map(M)})).each((function(t){o=t,t.progressBar.value(e)}))},n(t,d,f,u)}catch(h){i(s(t,h.message,{}))}}))},l=function(e){return e===i},d=function(e){var t=e.blobUri();return new Eo((function(e){n[t]=n[t]||[],n[t].push(e)}))},f=function(n,r){return n=pn.grep(n,(function(t){return!e.isUploaded(t.blobUri())})),Eo.all(pn.map(n,(function(n){return e.isPending(n.blobUri())?d(n):u(n,t.handler,r)})))},h=function(e,n){return!t.url&&l(t.handler)?o():f(e,n)};return!1===k(t.handler)&&(t.handler=i),{upload:h}},pU=function(e){return function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}},gU=function(e,t){return hU(t,{url:Lf(e),basePath:zf(e),credentials:Wf(e),handler:jf(e)})},mU=function(e){var t=cU(),n=gU(e,t);return{upload:function(t,r){return void 0===r&&(r=!0),n.upload(t,r?pU(e):void 0)}}},vU=function(e){var t=Ku(null);e.on("change AddUndo",(function(e){t.set(Ve({},e.level))}));var n=function(){var n=e.undoManager.data;ve(n).filter((function(e){return!fT(t.get(),e)})).each((function(t){e.setDirty(!0),e.fire("change",{level:t,lastLevel:ge(n,n.length-2).getOrNull()})}))};return{fireIfChanged:n}},bU=function(e){var t,n,r=fU(),i=cU(),o=[],a=vU(e),s=function(t){return function(n){return e.selection?t(n):[]}},c=function(e){return e+(-1===e.indexOf("?")?"?":"&")+(new Date).getTime()},u=function(e,t,n){var r=0;do{r=e.indexOf(t,r),-1!==r&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1)}while(-1!==r);return e},l=function(e,t,n){var r='src="'+n+'"'+(n===en.transparentSrc?' data-mce-placeholder="1"':"");return e=u(e,'src="'+t+'"',r),e=u(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"'),e},d=function(t,n){Q(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=J(e.fragments,(function(e){return l(e,t,n)})):e.content=l(e.content,t,n)}))},f=function(t,n){var r=e.convertURL(n,"src");d(t.src,n),e.$(t).attr({src:Nf(e)?c(n):n,"data-mce-src":r})},h=function(n){return t||(t=gU(e,i)),v().then(s((function(i){var o=J(i,(function(e){return e.blobInfo}));return t.upload(o,pU(e)).then(s((function(t){var o=[],s=J(t,(function(t,n){var a=i[n].blobInfo,s=i[n].image;return t.status&&Mf(e)?(r.removeByUri(s.src),FT(e)||f(s,t.url)):t.error&&(t.error.options.remove&&(d(s.getAttribute("src"),en.transparentSrc),o.push(s)),YE(e,t.error.message)),{element:s,status:t.status,uploadUri:t.url,blobInfo:a}}));return s.length>0&&a.fireIfChanged(),o.length>0&&(FT(e)?console.error("Removing images on failed uploads is currently unsupported for RTC"):e.undoManager.transact((function(){Q(o,(function(t){e.dom.remove(t),r.removeByUri(t.src)}))}))),n&&n(s),s})))})))},p=function(t){if(Rf(e))return h(t)},g=function(t){if(!1===le(o,(function(e){return e(t)})))return!1;if(0===t.getAttribute("src").indexOf("data:")){var n=Pf(e);return n(t)}return!0},m=function(e){o.push(e)},v=function(){return n||(n=LS(i,r)),n.findAll(e.getBody(),g).then(s((function(t){return t=ne(t,(function(t){return"string"!==typeof t||(XE(e,t),!1)})),FT(e)||Q(t,(function(e){d(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))},b=function(){r.destroy(),i.destroy(),n=t=null},y=function(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var o=i.getResultUri(n);if(o)return'src="'+o+'"';var a=r.getByUri(n);if(a||(a=ie(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null)),a){var s=a.blob();return'src="data:'+s.type+";base64,"+a.base64()+'"'}return t}))};return e.on("SetContent",(function(){Rf(e)?p():v()})),e.on("RawSaveContent",(function(e){e.content=y(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||"tree"===e.format||(e.content=y(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){Q(e,(function(e){var t=e.attr("src");if(!r.getByUri(t)){var n=i.getResultUri(t);n&&e.attr("src",n)}}))}))})),{blobCache:r,addFilter:m,uploadImages:h,uploadImagesAuto:p,scanForImages:v,destroy:b}},yU=function(e){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(e,t,n){return Hr(e)&&e.hasAttribute("href")},onformat:function(t,n,r){pn.each(r,(function(n,r){e.setAttrib(t,r,n)}))}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.customValue)&&void 0!==t?t:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return pn.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),(function(e){t[e]={block:e,remove:"all"}})),t},xU=function(e){var t={},n=function(e){return C(e)?t[e]:t},r=function(e){return Fe(t,e)},i=function(e,n){e&&(v(e)?(y(n)||(n=[n]),Q(n,(function(e){w(e.deep)&&(e.deep=!Vg(e)),w(e.split)&&(e.split=!Vg(e)||qg(e)),w(e.remove)&&Vg(e)&&!qg(e)&&(e.remove="none"),Vg(e)&&qg(e)&&(e.mixed=!0,e.block_expand=!0),v(e.classes)&&(e.classes=e.classes.split(/\s+/))})),t[e]=n):we(e,(function(e,t){i(t,e)})))},o=function(e){return e&&t[e]&&delete t[e],t};return i(yU(e.dom)),i(sh(e)),{get:n,has:r,register:i,unregister:o}},_U=pn.each,wU=Wu.DOM,DU=function(e,t){var n,r,i,o=t&&t.schema||Ws({}),a=function(e,t){t.classes.length&&wU.addClass(e,t.classes.join(" ")),wU.setAttribs(e,t.attrs)},s=function(e){r="string"===typeof e?{name:e,classes:[],attrs:{}}:e;var t=wU.create(r.name);return a(t,r),t},c=function(e,t){var n="string"!==typeof e?e.nodeName.toLowerCase():e,r=o.getElementRule(n),i=r&&r.parentsRequired;return!(!i||!i.length)&&(t&&-1!==pn.inArray(i,t)?t:i[0])},u=function(e,t,n){var r,i,o=t.length>0&&t[0],a=o&&o.name,l=c(e,a);if(l)a===l?(i=t[0],t=t.slice(1)):i=l;else if(o)i=t[0],t=t.slice(1);else if(!n)return e;return i&&(r=s(i),r.appendChild(e)),n&&(r||(r=wU.create("div"),r.appendChild(e)),pn.each(n,(function(t){var n=s(t);r.insertBefore(n,e)}))),u(r,t,i&&i.siblings)};return e&&e.length?(r=e[0],n=s(r),i=wU.create("div"),i.appendChild(u(n,e.slice(1),r.siblings)),i):""},CU=function(e){var t,n={classes:[],attrs:{}};return e=n.selector=pn.trim(e),"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,r,i,o){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==pn.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r);break}if("["===i){var a=o.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""}))),n.name=t||"div",n},kU=function(e){return e&&"string"===typeof e?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),pn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=pn.map(e.split(/(?:~\+|~|\+)/),CU),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[]},TU=function(e,t){var n,r,i,o="",a=ch(e);if(""===a)return"";var s=function(e){return e.replace(/%(\w+)/g,"")};if("string"===typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}if("preview"in t){var c=Oe(t,"preview");if(ui(c,!1))return"";a=c.getOr(a)}n=t.block||t.inline||"span";var u=kU(t.selector);u.length?(u[0].name||(u[0].name=n),n=t.selector,r=DU(u,e)):r=DU([n],e);var l=wU.select(n,r)[0]||r.firstChild;return _U(t.styles,(function(e,t){var n=s(e);n&&wU.setStyle(l,t,n)})),_U(t.attributes,(function(e,t){var n=s(e);n&&wU.setAttrib(l,t,n)})),_U(t.classes,(function(e){var t=s(e);wU.hasClass(l,t)||wU.addClass(l,t)})),e.fire("PreviewFormats"),wU.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),i=wU.getStyle(e.getBody(),"fontSize",!0),i=/px$/.test(i)?parseInt(i,10):0,_U(a.split(" "),(function(t){var n=wU.getStyle(l,t,!0);if(("background-color"!==t||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)||(n=wU.getStyle(e.getBody(),t,!0),"#ffffff"!==wU.toHex(n).toLowerCase()))&&("color"!==t||"#000000"!==wU.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===i)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*i+"px"}"border"===t&&n&&(o+="padding:0 2px;"),o+=t+":"+n+";"}})),e.fire("AfterPreviewFormats"),wU.remove(r),o},SU=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},AU=function(e){var t=xU(e),n=Ku(null);return SU(e),iC(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:function(t,n,r){QT(e,t,n,r)},remove:function(t,n,r,i){eS(e,t,n,r,i)},toggle:function(t,n,r){tS(e,t,n,r)},match:function(t,n,r,i){return XT(e,t,n,r,i)},closest:function(t){return JT(e,t)},matchAll:function(t,n){return YT(e,t,n)},matchNode:function(t,n,r,i){return KT(e,t,n,r,i)},canApply:function(t){return ZT(e,t)},formatChanged:function(t,r,i,o){return nS(e,n,t,r,i,o)},getCssText:P(TU,e)}},EU=function(e){switch(e.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return!0;default:return!1}},UU=function(e,t,n){var r=Ku(!1),i=function(e){pT(t,!1,n),t.add({},e)};e.on("init",(function(){t.add()})),e.on("BeforeExecCommand",(function(e){var r=e.command;EU(r)||(gT(t,n),t.beforeChange())})),e.on("ExecCommand",(function(e){var t=e.command;EU(t)||i(e)})),e.on("ObjectResizeStart cut",(function(){t.beforeChange()})),e.on("SaveContent ObjectResized blur",i),e.on("dragend",i),e.on("keyup",(function(n){var o=n.keyCode;n.isDefaultPrevented()||((o>=33&&o<=36||o>=37&&o<=40||45===o||n.ctrlKey)&&(i(),e.nodeChanged()),46!==o&&8!==o||e.nodeChanged(),r.get()&&t.typing&&!1===fT(aT(e),t.data[0])&&(!1===e.isDirty()&&(e.setDirty(!0),e.fire("change",{level:t.data[0],lastLevel:null})),e.fire("TypingUndo"),r.set(!1),e.nodeChanged()))})),e.on("keydown",(function(e){var o=e.keyCode;if(!e.isDefaultPrevented())if(o>=33&&o<=36||o>=37&&o<=40||45===o)t.typing&&i(e);else{var a=e.ctrlKey&&!e.altKey||e.metaKey;!(o<16||o>20)||224===o||91===o||t.typing||a||(t.beforeChange(),pT(t,!0,n),t.add({},e),r.set(!0))}})),e.on("mousedown",(function(e){t.typing&&i(e)}));var o=function(e){return"insertReplacementText"===e.inputType},a=function(e){return"insertText"===e.inputType&&null===e.data},s=function(e){return"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType};e.on("input",(function(e){e.inputType&&(o(e)||a(e)||s(e))&&i(e)})),e.on("AddUndo Undo Redo ClearUndos",(function(t){t.isDefaultPrevented()||e.nodeChanged()}))},OU=function(e){e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},FU=function(e){var t=fl(),n=Ku(0),r=Ku(0),i={data:[],typing:!1,beforeChange:function(){IT(e,n,t)},add:function(o,a){return BT(e,i,r,n,t,o,a)},undo:function(){return LT(e,i,n,r)},redo:function(){return zT(e,r,i.data)},clear:function(){WT(e,i,r)},reset:function(){jT(e,i)},hasUndo:function(){return HT(e,i,r)},hasRedo:function(){return VT(e,i,r)},transact:function(t){return qT(e,i,n,t)},ignore:function(t){$T(e,n,t)},extra:function(t,n){GT(e,i,r,t,n)}};return FT(e)||UU(e,i,n),OU(e),i},PU=[9,27,tv.HOME,tv.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,tv.DOWN,tv.UP,tv.LEFT,tv.RIGHT].concat(en.browser.isFirefox()?[224]:[]),RU="data-mce-placeholder",NU=function(e){return"keydown"===e.type||"keyup"===e.type},MU=function(e){var t=e.keyCode;return t===tv.BACKSPACE||t===tv.DELETE},IU=function(e){if(NU(e)){var t=e.keyCode;return!MU(e)&&(tv.metaKeyPressed(e)||e.altKey||t>=112&&t<=123||K(PU,t))}return!1},BU=function(e){return NU(e)&&!(MU(e)||"keyup"===e.type&&229===e.keyCode)},LU=function(e,t,n){if(ns(xn.fromDom(t),!1)){var r=""===n,i=t.firstElementChild;return!i||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&(r?!e.isBlock(i):n===i.nodeName.toLowerCase())}return!1},zU=function(e){var t=e.dom,n=kf(e),r=th(e),i=function(o,a){if(!IU(o)){var s=e.getBody(),c=!BU(o)&&LU(t,s,n),u=""!==t.getAttrib(s,RU);(u!==c||a)&&(t.setAttrib(s,RU,c?r:null),t.setAttrib(s,"aria-placeholder",c?r:null),Zm(e,c),e.on(c?"keydown":"keyup",i),e.off(c?"keyup":"keydown",i))}};r&&e.on("init",(function(t){i(t,!0),e.on("change SetContent ExecCommand",i),e.on("paste",(function(t){return Mo.setEditorTimeout(e,(function(){return i(t)}))}))}))},WU=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,jU=function(e){return WU.test(e)},HU=function(e,t){return En(xn.fromDom(t),Jf(e))},VU=function(e){return"rtl"===Wu.DOM.getStyle(e,"direction",!0)||jU(e.textContent)},qU=function(e,t,n){return ne(Wu.DOM.getParents(n.container(),"*",t),e)},$U=function(e,t,n){var r=qU(e,t,n);return V.from(r[r.length-1])},GU=function(e,t,n){var r=lp(t,e),i=lp(n,e);return r&&r===i},XU=function(e){return wa(e)||Da(e)},YU=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?ba(n)?Qr(n.nextSibling)?Fd(n.nextSibling,0):Fd.after(n):wa(t)?Fd(n,r+1):t:ba(n)?Qr(n.previousSibling)?Fd(n.previousSibling,n.previousSibling.data.length):Fd.before(n):Da(t)?Fd(n,r-1):t},KU=P(YU,!0),ZU=P(YU,!1),JU=function(e){return function(t){return Pn(e,xn.fromDom(t.dom.parentNode))}},QU=function(e){return ta(e)||ra(e)},eO=function(e,t){return Mn(e,t)?Do(t,QU,JU(e)):V.none()},tO=function(e){var t=e.getBody(),n=t.firstChild&&e.dom.isBlock(t.firstChild)?t.firstChild:t;e.selection.setCursorLocation(n,0)},nO=function(e){e.dom.isEmpty(e.getBody())&&(e.setContent(""),tO(e))},rO=function(e,t,n){return di(Zp(n),Jp(n),(function(r,i){var o=YU(!0,r),a=YU(!1,i),s=YU(!1,t);return e?Yp(n,s).exists((function(e){return e.isEqual(a)&&t.isEqual(o)})):Kp(n,s).exists((function(e){return e.isEqual(o)&&t.isEqual(a)}))})).getOr(!0)},iO=function(e,t){return{block:e,position:t}},oO=function(e,t){return{from:e,to:t}},aO=function(e,t){var n=xn.fromDom(e),r=xn.fromDom(t.container());return eO(n,r).map((function(e){return iO(e,t)}))},sO=function(e){return!1===Pn(e.from.block,e.to.block)},cO=function(e){return Kn(e.from.block).bind((function(t){return Kn(e.to.block).filter((function(e){return Pn(t,e)}))})).isSome()},uO=function(e){return!1===ai(e.from.block.dom)&&!1===ai(e.to.block.dom)},lO=function(e,t,n){return ri(n.position.getNode())&&!1===ns(n.block)?Xp(!1,n.block.dom).bind((function(r){return r.isEqual(n.position)?qp(t,e,r).bind((function(t){return aO(e,t)})):V.some(n)})).getOr(n):n},dO=function(e,t,n){var r=aO(e,Fd.fromRangeStart(n)),i=r.bind((function(n){return qp(t,e,n.position).bind((function(n){return aO(e,n).map((function(n){return lO(e,t,n)}))}))}));return di(r,i,oO).filter((function(e){return sO(e)&&cO(e)&&uO(e)}))},fO=function(e,t,n){return n.collapsed?dO(e,t,n):V.none()},hO=function(e){var t=rr(e);return se(t,Zo).fold(U(t),(function(e){return t.slice(0,e)}))},pO=function(e){var t=hO(e);return Q(t,Tr),t},gO=function(e,t){var n=Ex(t,e);return ae(n.reverse(),(function(e){return ns(e)})).each(Tr)},mO=function(e){return 0===ne(tr(e),(function(e){return!ns(e)})).length},vO=function(e,t,n,r){if(ns(n))return Cx(n),Zp(n.dom);mO(r)&&ns(t)&&br(r,xn.fromTag("br"));var i=Kp(n.dom,Fd.before(r.dom));return Q(pO(t),(function(e){br(r,e)})),gO(e,t),i},bO=function(e,t,n){if(ns(n))return Tr(n),ns(t)&&Cx(t),Zp(t.dom);var r=Jp(n.dom);return Q(pO(t),(function(e){_r(n,e)})),gO(e,t),r},yO=function(e,t){var n=Ex(t,e);return V.from(n[n.length-1])},xO=function(e,t){return Mn(t,e)?yO(t,e):V.none()},_O=function(e,t){Xp(e,t.dom).map((function(e){return e.getNode()})).map(xn.fromDom).filter(ea).each(Tr)},wO=function(e,t,n){return _O(!0,t),_O(!1,n),xO(t,n).fold(P(bO,e,t,n),P(vO,e,t,n))},DO=function(e,t,n,r){return t?wO(e,r,n):wO(e,n,r)},CO=function(e,t){var n=xn.fromDom(e.getBody()),r=fO(n.dom,t,e.selection.getRng()).bind((function(e){return DO(n,t,e.from.block,e.to.block)}));return r.each((function(t){e.selection.setRng(t.toRange())})),r.isSome()},kO=function(e,t){var n=t.getRng();return di(eO(e,xn.fromDom(n.startContainer)),eO(e,xn.fromDom(n.endContainer)),(function(r,i){return!1===Pn(r,i)&&(n.deleteContents(),DO(e,!0,r,i).each((function(e){t.setRng(e.toRange())})),!0)})).getOr(!1)},TO=function(e,t){var n=xn.fromDom(t),r=P(Pn,e);return wo(n,oa,r).isSome()},SO=function(e,t){return TO(e,t.startContainer)||TO(e,t.endContainer)},AO=function(e,t){var n=Kp(e.dom,Fd.fromRangeStart(t)).isNone(),r=Yp(e.dom,Fd.fromRangeEnd(t)).isNone();return!SO(e,t)&&n&&r},EO=function(e){return e.setContent(""),e.selection.setCursorLocation(),!0},UO=function(e){var t=xn.fromDom(e.getBody()),n=e.selection.getRng();return AO(t,n)?EO(e):kO(t,e.selection)},OO=function(e,t){return!e.selection.isCollapsed()&&UO(e)},FO=oi,PO=ai,RO=function(e,t,n,r,i){return V.from(t._selectionOverrides.showCaret(e,n,r,i))},NO=function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t},MO=function(e,t){var n=e.fire("BeforeObjectSelected",{target:t});return n.isDefaultPrevented()?V.none():V.some(NO(t))},IO=function(e,t,n){var r=bp(1,e.getBody(),t),i=Fd.fromRangeStart(r),o=i.getNode();if(Zh(o))return RO(1,e,o,!i.isAtEnd(),!1);var a=i.getNode(!0);if(Zh(a))return RO(1,e,a,!1,!1);var s=e.dom.getParent(i.getNode(),(function(e){return PO(e)||FO(e)}));return Zh(s)?RO(1,e,s,!1,n):V.none()},BO=function(e,t,n){return t.collapsed?IO(e,t,n).getOr(t):t},LO=function(e){return xx(e)||mx(e)},zO=function(e){return _x(e)||vx(e)},WO=function(e,t){Qr(t)&&0===t.data.length&&e.remove(t)},jO=function(e,t,n,r,i,o){return RO(r,e,o.getNode(!i),i,!0).each((function(n){if(t.collapsed){var r=t.cloneRange();i?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()}else t.deleteContents();e.selection.setRng(n)})),WO(e.dom,n),!0},HO=function(e,t){var n=e.selection.getRng();if(!Qr(n.commonAncestorContainer))return!1;var r=t?Pd.Forwards:Pd.Backwards,i=Ip(e.getBody()),o=P(Dp,t?i.next:i.prev),a=t?LO:zO,s=xp(r,e.getBody(),n),c=YU(t,o(s));if(!c||!Cp(s,c))return!1;if(a(c))return jO(e,n,s.getNode(),r,t,c);var u=o(c);return!!(u&&a(u)&&Cp(c,u))&&jO(e,n,s.getNode(),r,t,u)},VO=function(e,t){return HO(e,t)},qO=function(e){return oa(xn.fromDom(e))||ra(xn.fromDom(e))},$O=Qi.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),GO=function(e,t){var n=t.getNode(!1===e),r=e?"after":"before";return Hr(n)&&n.getAttribute("data-mce-caret")===r},XO=function(e,t,n,r){var i=function(t){return Qo(xn.fromDom(t))&&!dp(n,r,e)};return yp(!t,n).fold((function(){return yp(t,r).fold(B,i)}),i)},YO=function(e,t,n,r){var i=r.getNode(!1===t);return eO(xn.fromDom(e),xn.fromDom(n.getNode())).map((function(e){return ns(e)?$O.remove(e.dom):$O.moveToElement(i)})).orThunk((function(){return V.some($O.moveToElement(i))}))},KO=function(e,t,n){return qp(t,e,n).bind((function(r){return qO(r.getNode())||XO(e,t,n,r)?V.none():t&&ai(r.getNode())||!1===t&&ai(r.getNode(!0))?YO(e,t,n,r):t&&_x(n)||!1===t&&xx(n)?V.some($O.moveToPosition(r)):V.none()}))},ZO=function(e,t){return e&&ai(t.nextSibling)?V.some($O.moveToElement(t.nextSibling)):!1===e&&ai(t.previousSibling)?V.some($O.moveToElement(t.previousSibling)):V.none()},JO=function(e,t,n){return n.fold((function(e){return V.some($O.remove(e))}),(function(e){return V.some($O.moveToElement(e))}),(function(n){return dp(t,n,e)?V.none():V.some($O.moveToPosition(n))}))},QO=function(e,t,n){return GO(t,n)?ZO(t,n.getNode(!1===t)).fold((function(){return KO(e,t,n)}),V.some):KO(e,t,n).bind((function(t){return JO(e,n,t)}))},eF=function(e,t,n){var r=bp(t?1:-1,e,n),i=Fd.fromRangeStart(r),o=xn.fromDom(e);return!1===t&&_x(i)?V.some($O.remove(i.getNode(!0))):t&&xx(i)?V.some($O.remove(i.getNode())):!1===t&&xx(i)&&Wx(o,i)?jx(o,i).map((function(e){return $O.remove(e.getNode())})):t&&_x(i)&&zx(o,i)?Hx(o,i).map((function(e){return $O.remove(e.getNode())})):QO(e,t,i)},tF=function(e,t){return function(n){return e._selectionOverrides.hideFakeCaret(),N_(e,t,xn.fromDom(n)),!0}},nF=function(e,t){return function(n){var r=t?Fd.before(n):Fd.after(n);return e.selection.setRng(r.toRange()),!0}},rF=function(e){return function(t){return e.selection.setRng(t.toRange()),!0}},iF=function(e,t){return V.from(Lm(e.getBody(),t))},oF=function(e,t){var n=e.selection.getNode();return iF(e,n).filter(ai).fold((function(){return eF(e.getBody(),t,e.selection.getRng()).exists((function(n){return n.fold(tF(e,t),nF(e,t),rF(e))}))}),L)},aF=function(e){Q(Sl(e,".mce-offscreen-selection"),Tr)},sF=function(e,t){var n=e.selection.getNode();if(ai(n)&&!si(n)){var r=iF(e,n.parentNode).filter(ai);return r.fold((function(){return aF(xn.fromDom(e.getBody())),N_(e,t,xn.fromDom(e.selection.getNode())),nO(e),!0}),L)}return!1},cF=function(e){var t=e.dom,n=e.selection,r=Lm(e.getBody(),n.getNode());if(oi(r)&&t.isBlock(r)&&t.isEmpty(r)){var i=t.create("br",{"data-mce-bogus":"1"});t.setHTML(r,""),r.appendChild(i),n.setRng(Fd.before(i).toRange())}return!0},uF=function(e,t){return e.selection.isCollapsed()?oF(e,t):sF(e,t)},lF=function(e,t){var n=Fd.fromRangeStart(e.selection.getRng());return qp(t,e.getBody(),n).filter((function(e){return t?px(e):gx(e)})).bind((function(e){return V.from(fp(t?0:-1,e))})).exists((function(t){return e.selection.select(t),!0}))},dF=function(e,t){return!!e.selection.isCollapsed()&&lF(e,t)},fF=Qr,hF=function(e){return fF(e)&&e.data[0]===fa},pF=function(e){return fF(e)&&e.data[e.data.length-1]===fa},gF=function(e){return e.ownerDocument.createTextNode(fa)},mF=function(e){if(fF(e.previousSibling))return pF(e.previousSibling)||e.previousSibling.appendData(fa),e.previousSibling;if(fF(e))return hF(e)||e.insertData(0,fa),e;var t=gF(e);return e.parentNode.insertBefore(t,e),t},vF=function(e){if(fF(e.nextSibling))return hF(e.nextSibling)||e.nextSibling.insertData(0,fa),e.nextSibling;if(fF(e))return pF(e)||e.appendData(fa),e;var t=gF(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t},bF=function(e,t){return e?mF(t):vF(t)},yF=P(bF,!0),xF=P(bF,!1),_F=function(e,t){return Qr(e.container())?bF(t,e.container()):bF(t,e.getNode())},wF=function(e,t){var n=t.get();return n&&e.container()===n&&ba(n)},DF=function(e,t){return t.fold((function(t){Wh(e.get());var n=yF(t);return e.set(n),V.some(Fd(n,n.length-1))}),(function(t){return Zp(t).map((function(t){if(wF(t,e))return Fd(e.get(),1);Wh(e.get());var n=_F(t,!0);return e.set(n),Fd(n,1)}))}),(function(t){return Jp(t).map((function(t){if(wF(t,e))return Fd(e.get(),e.get().length-1);Wh(e.get());var n=_F(t,!1);return e.set(n),Fd(n,n.length-1)}))}),(function(t){Wh(e.get());var n=xF(t);return e.set(n),V.some(Fd(n,1))}))},CF=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return V.none()},kF=Qi.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),TF=function(e,t){var n=lp(t,e);return n||e},SF=function(e,t,n){var r=KU(n),i=TF(t,r.container());return $U(e,i,r).fold((function(){return Yp(i,r).bind(P($U,e,i)).map((function(e){return kF.before(e)}))}),V.none)},AF=function(e,t){return null===tg(e,t)},EF=function(e,t,n){return $U(e,t,n).filter(P(AF,t))},UF=function(e,t,n){var r=ZU(n);return EF(e,t,r).bind((function(e){var t=Kp(e,r);return t.isNone()?V.some(kF.start(e)):V.none()}))},OF=function(e,t,n){var r=KU(n);return EF(e,t,r).bind((function(e){var t=Yp(e,r);return t.isNone()?V.some(kF.end(e)):V.none()}))},FF=function(e,t,n){var r=ZU(n),i=TF(t,r.container());return $U(e,i,r).fold((function(){return Kp(i,r).bind(P($U,e,i)).map((function(e){return kF.after(e)}))}),V.none)},PF=function(e){return!1===VU(NF(e))},RF=function(e,t,n){var r=CF([SF,UF,OF,FF],[e,t,n]);return r.filter(PF)},NF=function(e){return e.fold(O,O,O,O)},MF=function(e){return e.fold(U("before"),U("start"),U("end"),U("after"))},IF=function(e){return e.fold(kF.before,kF.before,kF.after,kF.after)},BF=function(e){return e.fold(kF.start,kF.start,kF.end,kF.end)},LF=function(e,t){return MF(e)===MF(t)&&NF(e)===NF(t)},zF=function(e,t,n,r,i,o){return di($U(t,n,r),$U(t,n,i),(function(t,r){return t!==r&&GU(n,t,r)?kF.after(e?t:r):o})).getOr(o)},WF=function(e,t){return e.fold(L,(function(e){return!LF(e,t)}))},jF=function(e,t,n,r,i){var o=YU(e,i),a=qp(e,n,o).map(P(YU,e)),s=a.fold((function(){return r.map(IF)}),(function(i){return RF(t,n,i).map(P(zF,e,t,n,o,i)).filter(P(WF,r))}));return s.filter(PF)},HF=function(e,t){return e?t.fold(A(V.some,kF.start),V.none,A(V.some,kF.after),V.none):t.fold(V.none,A(V.some,kF.before),V.none,A(V.some,kF.end))},VF=function(e,t,n,r){var i=YU(e,r),o=RF(t,n,i);return RF(t,n,i).bind(P(HF,e)).orThunk((function(){return jF(e,t,n,o,r)}))};P(VF,!1),P(VF,!0);var qF,$F=function(e){return k(e.selection.getSel().modify)},GF=function(e,t,n){var r=e?1:-1;return t.setRng(Fd(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},XF=function(e,t){var n=t.selection.getRng(),r=e?Fd.fromRangeEnd(n):Fd.fromRangeStart(n);return!!$F(t)&&(e&&wa(r)?GF(!0,t.selection,r):!(e||!Da(r))&&GF(!1,t.selection,r))};(function(e){e[e["Br"]=0]="Br",e[e["Block"]=1]="Block",e[e["Wrap"]=2]="Wrap",e[e["Eol"]=3]="Eol"})(qF||(qF={}));var YF,KF=function(e,t){return e===Pd.Backwards?de(t):t},ZF=function(e,t,n){return e===Pd.Forwards?t.next(n):t.prev(n)},JF=function(e,t,n,r){return ri(r.getNode(t===Pd.Forwards))?qF.Br:!1===dp(n,r)?qF.Block:qF.Wrap},QF=function(e,t,n,r){var i=Ip(n),o=r,a=[];while(o){var s=ZF(t,i,o);if(!s)break;if(ri(s.getNode(!1)))return t===Pd.Forwards?{positions:KF(t,a).concat([s]),breakType:qF.Br,breakAt:V.some(s)}:{positions:KF(t,a),breakType:qF.Br,breakAt:V.some(s)};if(s.isVisible()){if(e(o,s)){var c=JF(n,t,o,s);return{positions:KF(t,a),breakType:c,breakAt:V.some(s)}}a.push(s),o=s}else o=s}return{positions:KF(t,a),breakType:qF.Eol,breakAt:V.none()}},eP=function(e,t,n,r){return t(n,r).breakAt.map((function(r){var i=t(n,r).positions;return e===Pd.Backwards?i.concat(r):[r].concat(i)})).getOr([])},tP=function(e,t){return ie(e,(function(e,n){return e.fold((function(){return V.some(n)}),(function(r){return di(me(r.getClientRects()),me(n.getClientRects()),(function(e,i){var o=Math.abs(t-e.left),a=Math.abs(t-i.left);return a<=o?n:r})).or(e)}))}),V.none())},nP=function(e,t){return me(t.getClientRects()).bind((function(t){return tP(e,t.left)}))},rP=P(QF,Fd.isAbove,-1),iP=P(QF,Fd.isBelow,1),oP=P(eP,-1,rP),aP=P(eP,1,iP),sP=function(e,t){return rP(e,t).breakAt.isNone()},cP=function(e,t){return iP(e,t).breakAt.isNone()},uP=function(e){return Zp(e).map((function(t){return[t].concat(iP(e,t).positions)})).getOr([])},lP=function(e){return Jp(e).map((function(t){return rP(e,t).positions.concat(t)})).getOr([])},dP=function(e){var t=function(t){return J(t,(function(t){var n=Zl(t);return n.node=e,n}))};if(Hr(e))return t(e.getClientRects());if(Qr(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}},fP=function(e){return ue(e,dP)};(function(e){e[e["Up"]=-1]="Up",e[e["Down"]=1]="Down"})(YF||(YF={}));var hP,pP,gP=function(e,t,n,r){while(r=up(r,e,qa,t))if(n(r))return},mP=function(e,t,n,r,i,o){var a=0,s=[],c=function(r){var o=fP([r]);-1===e&&(o=o.reverse());for(var c=0;c<o.length;c++){var l=o[c];if(!n(l,u)){if(s.length>0&&t(l,He(s))&&a++,l.line=a,i(l))return!0;s.push(l)}}},u=He(o.getClientRects());if(!u)return s;var l=o.getNode();return c(l),gP(e,r,c,l),s},vP=function(e,t){return t.line>e},bP=function(e,t){return t.line===e},yP=P(mP,YF.Up,td,nd),xP=P(mP,YF.Down,nd,td),_P=function(e,t,n,r){var i,o,a,s,c=Ip(t),u=[],l=0,d=function(e){return He(e.getClientRects())};1===e?(i=c.next,o=nd,a=td,s=Fd.after(r)):(i=c.prev,o=td,a=nd,s=Fd.before(r));var f=d(s);do{if(s.isVisible()){var h=d(s);if(!a(h,f)){u.length>0&&o(h,He(u))&&l++;var p=Zl(h);if(p.position=s,p.line=l,n(p))return u;u.push(p)}}}while(s=i(s));return u},wP=function(e){return function(t){return vP(e,t)}},DP=function(e){return function(t){return bP(e,t)}},CP=ai,kP=up,TP=function(e,t){return Math.abs(e.left-t)},SP=function(e,t){return Math.abs(e.right-t)},AP=function(e,t){return e>=t.left&&e<=t.right},EP=function(e,t){return e>=t.top&&e<=t.bottom},UP=function(e){return Pe(e,"node")},OP=function(e,t,n){return void 0===n&&(n=L),We(e,(function(e,r){if(AP(t,r))return n(r)?r:e;if(AP(t,e))return n(e)?e:r;var i=Math.min(TP(e,t),SP(e,t)),o=Math.min(TP(r,t),SP(r,t));return o===i&&UP(r)&&CP(r.node)||o<i?r:e}))},FP=function(e,t,n,r,i){var o=kP(r,e,qa,t,!i);do{if(!o||n(o))return}while(o=kP(o,e,qa,t))},PP=function(e,t,n){void 0===n&&(n=!0);var r=[],i=function(e,n){var i=ne(fP([n]),(function(n){return!e(n,t)}));return r=r.concat(i),0===i.length};return r.push(t),FP(YF.Up,e,P(i,td),t.node,n),FP(YF.Down,e,P(i,nd),t.node,n),r},RP=function(e){return ne(be(e.getElementsByTagName("*")),Jh)},NP=function(e,t){return{node:e.node,before:TP(e,t)<SP(e,t)}},MP=function(e,t,n){var r=fP(RP(e)),i=ne(r,P(EP,n)),o=function(e){return!Kr(e.node)&&!ci(e.node)},a=OP(i,t,o);if(a){var s=o(a);if(a=OP(PP(e,a,s),t,o),a&&Jh(a.node))return NP(a,t)}return null},IP=function(e,t){e.selection.setRng(t),nb(e,e.selection.getRng())},BP=function(e,t,n){return V.some(BO(e,t,n))},LP=function(e,t,n,r,i,o){var a=t===Pd.Forwards,s=Ip(e.getBody()),c=P(Dp,a?s.next:s.prev),u=a?r:i;if(!n.collapsed){var l=od(n);if(o(l))return RO(t,e,l,t===Pd.Backwards,!1)}var d=xp(t,e.getBody(),n);if(u(d))return MO(e,d.getNode(!a));var f=YU(a,c(d)),h=Ua(n);if(!f)return h?V.some(n):V.none();if(u(f))return RO(t,e,f.getNode(!a),a,!1);var p=c(f);return p&&u(p)&&Cp(f,p)?RO(t,e,p.getNode(!a),a,!1):h?BP(e,f.toRange(),!1):V.none()},zP=function(e,t,n,r,i,o){var a=xp(t,e.getBody(),n),s=He(a.getClientRects()),c=t===YF.Down;if(!s)return V.none();var u,l=c?xP:yP,d=l(e.getBody(),wP(1),a),f=ne(d,DP(1)),h=s.left,p=OP(f,h);if(p&&o(p.node)){var g=Math.abs(h-p.left),m=Math.abs(h-p.right);return RO(t,e,p.node,g<m,!1)}if(u=r(a)?a.getNode():i(a)?a.getNode(!0):od(n),u){var v=_P(t,e.getBody(),wP(1),u),b=OP(ne(v,DP(1)),h);if(b)return BP(e,b.position.toRange(),!1);if(b=He(ne(v,DP(0))),b)return BP(e,b.position.toRange(),!1)}return 0===f.length?WP(e,c).filter(c?i:r).map((function(t){return BO(e,t.toRange(),!1)})):V.none()},WP=function(e,t){var n=e.selection.getRng(),r=e.getBody();if(t){var i=Fd.fromRangeEnd(n),o=iP(r,i);return ve(o.positions)}i=Fd.fromRangeStart(n),o=rP(r,i);return me(o.positions)},jP=function(e,t,n){return WP(e,t).filter(n).exists((function(t){return e.selection.setRng(t.toRange()),!0}))},HP=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},VP=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},qP=function(e,t,n){return DF(t,n).map((function(t){return HP(e,t),n}))},$P=function(e,t,n){var r=e.getBody(),i=Fd.fromRangeStart(e.selection.getRng()),o=P(HU,e),a=VF(n,o,r,i);return a.bind((function(n){return qP(e,t,n)}))},GP=function(e,t,n){var r=J(Sl(xn.fromDom(t.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(e){return e.dom})),i=ne(r,e),o=ne(n,e);Q(fe(i,o),P(VP,!1)),Q(fe(o,i),P(VP,!0))},XP=function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=Fd.fromRangeStart(e.selection.getRng());Fd.isTextPosition(n)&&!1===XU(n)&&(HP(e,zh(t.get(),n)),t.set(null))}},YP=function(e,t,n,r){if(t.selection.isCollapsed()){var i=ne(r,e);Q(i,(function(r){var i=Fd.fromRangeStart(t.selection.getRng());RF(e,t.getBody(),i).bind((function(e){return qP(t,n,e)}))}))}},KP=function(e,t,n){return!!ah(e)&&$P(e,t,n).isSome()},ZP=function(e,t,n){return!!ah(t)&&XF(e,t)},JP=function(e){var t=Ku(null),n=P(HU,e);return e.on("NodeChange",(function(r){!ah(e)||en.browser.isIE()&&r.initial||(GP(n,e.dom,r.parents),XP(e,t),YP(n,e,t,r.parents))})),t},QP=P(ZP,!0),eR=P(ZP,!1),tR=function(e,t,n){if(ah(e)){var r=WP(e,t).getOrThunk((function(){var n=e.selection.getRng();return t?Fd.fromRangeEnd(n):Fd.fromRangeStart(n)}));return RF(P(HU,e),e.getBody(),r).exists((function(t){var r=IF(t);return DF(n,r).exists((function(t){return HP(e,t),!0}))}))}return!1},nR=function(e,t){var n=document.createRange();return n.setStart(e.container(),e.offset()),n.setEnd(t.container(),t.offset()),n},rR=function(e){return di(Zp(e),Jp(e),(function(t,n){var r=YU(!0,t),i=YU(!1,n);return Yp(e,r).forall((function(e){return e.isEqual(i)}))})).getOr(!0)},iR=function(e,t){return function(n){return DF(t,n).exists((function(t){return HP(e,t),!0}))}},oR=function(e,t,n,r){var i=e.getBody(),o=P(HU,e);e.undoManager.ignore((function(){e.selection.setRng(nR(n,r)),e.execCommand("Delete"),RF(o,i,Fd.fromRangeStart(e.selection.getRng())).map(BF).map(iR(e,t))})),e.nodeChanged()},aR=function(e,t){var n=lp(t,e);return n||e},sR=function(e,t,n,r){var i=aR(e.getBody(),r.container()),o=P(HU,e),a=RF(o,i,r);return a.bind((function(e){return n?e.fold(U(V.some(BF(e))),V.none,U(V.some(IF(e))),V.none):e.fold(V.none,U(V.some(IF(e))),V.none,U(V.some(BF(e))))})).map(iR(e,t)).getOrThunk((function(){var s=$p(n,i,r),c=s.bind((function(e){return RF(o,i,e)}));return di(a,c,(function(){return $U(o,i,r).exists((function(t){return!!rR(t)&&(N_(e,n,xn.fromDom(t)),!0)}))})).orThunk((function(){return c.bind((function(i){return s.map((function(i){return n?oR(e,t,r,i):oR(e,t,i,r),!0}))}))})).getOr(!1)}))},cR=function(e,t,n){if(e.selection.isCollapsed()&&ah(e)){var r=Fd.fromRangeStart(e.selection.getRng());return sR(e,t,n,r)}return!1},uR=function(e,t){var n=Ex(t,e);return se(n,Zo).fold(U(n),(function(e){return n.slice(0,e)}))},lR=function(e){return 1===sr(e)},dR=function(e,t,n,r){var i=P(aC,t),o=J(ne(r,i),(function(e){return e.dom}));if(0===o.length)N_(t,e,n);else{var a=oC(n.dom,o);t.selection.setRng(a.toRange())}},fR=function(e,t){var n=xn.fromDom(e.getBody()),r=xn.fromDom(e.selection.getStart()),i=ne(uR(n,r),lR);return ve(i).exists((function(n){var r=Fd.fromRangeStart(e.selection.getRng());return!(!rO(t,r,n.dom)||sC(n))&&(dR(t,e,n,i),!0)}))},hR=function(e,t){return!!e.selection.isCollapsed()&&fR(e,t)},pR=function(e,t,n){return e._selectionOverrides.hideFakeCaret(),N_(e,t,xn.fromDom(n)),!0},gR=function(e,t){var n=t?mx:vx,r=t?Pd.Forwards:Pd.Backwards,i=xp(r,e.getBody(),e.selection.getRng());return n(i)?pR(e,t,i.getNode(!t)):V.from(YU(t,i)).filter((function(e){return n(e)&&Cp(i,e)})).exists((function(n){return pR(e,t,n.getNode(!t))}))},mR=function(e,t){var n=e.selection.getNode();return!!ci(n)&&pR(e,t,n)},vR=function(e,t){return e.selection.isCollapsed()?gR(e,t):mR(e,t)},bR=function(e){return Do(e,(function(e){return oi(e.dom)||ai(e.dom)})).exists((function(e){return oi(e.dom)}))},yR=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},xR=function(e,t){var n=e||Jo(t)?"margin":"padding",r="rtl"===ki(t,"direction")?"-right":"-left";return n+r},_R=function(e,t,n,r,i,o){var a=xR(n,xn.fromDom(o));if("outdent"===t){var s=Math.max(0,yR(o.style[a])-r);e.setStyle(o,a,s?s+i:"")}else{s=yR(o.style[a])+r+i;e.setStyle(o,a,s)}},wR=function(e,t){return le(t,(function(t){var n=xR(Gf(e),t),r=Si(t,n).map(yR).getOr(0),i=e.dom.getContentEditable(t.dom);return"false"!==i&&r>0}))},DR=function(e){var t=TR(e);return!e.mode.isReadOnly()&&(t.length>1||wR(e,t))},CR=function(e){return na(e)||ra(e)},kR=function(e){return Kn(e).exists(CR)},TR=function(e){return ne(jl(e.selection.getSelectedBlocks()),(function(e){return!CR(e)&&!kR(e)&&bR(e)}))},SR=function(e,t){var n=e.dom,r=e.selection,i=e.formatter,o=Xf(e),a=/[a-z%]+$/i.exec(o)[0],s=parseInt(o,10),c=Gf(e),u=kf(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==u||n.getParent(r.getNode(),n.isBlock)||i.apply("div"),Q(TR(e),(function(e){_R(n,t,c,s,a,e.dom)}))},AR=function(e,t){if(e.selection.isCollapsed()&&DR(e)){var n=e.dom,r=e.selection.getRng(),i=Fd.fromRangeStart(r),o=n.getParent(r.startContainer,n.isBlock);if(null!==o&&Rx(xn.fromDom(o),i))return SR(e,"outdent"),!0}return!1},ER=function(e,t){e.getDoc().execCommand(t,!1,null)},UR=function(e,t){AR(e)||uF(e,!1)||VO(e,!1)||cR(e,t,!1)||CO(e,!1)||Ow(e)||dF(e,!1)||vR(e,!1)||OO(e)||hR(e,!1)||(ER(e,"Delete"),nO(e))},OR=function(e,t){uF(e,!0)||VO(e,!0)||cR(e,t,!0)||CO(e,!0)||Ow(e)||dF(e,!0)||vR(e,!0)||OO(e)||hR(e,!0)||ER(e,"ForwardDelete")},FR=function(e,t){e.addCommand("delete",(function(){UR(e,t)})),e.addCommand("forwardDelete",(function(){OR(e,t)}))},PR=5,RR=400,NR=function(e){return void 0===e.touches||1!==e.touches.length?V.none():V.some(e.touches[0])},MR=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>PR||r>PR},IR=function(e){var t=fl(),n=Ku(!1),r=pl((function(t){e.fire("longpress",Ve(Ve({},t),{type:"longpress"})),n.set(!0)}),RR);e.on("touchstart",(function(e){NR(e).each((function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:e.target};r.throttle(e),n.set(!1),t.set(o)}))}),!0),e.on("touchmove",(function(i){r.cancel(),NR(i).each((function(r){t.on((function(i){MR(r,i)&&(t.clear(),n.set(!1),e.fire("longpresscancel"))}))}))}),!0),e.on("touchend touchcancel",(function(i){r.cancel(),"touchcancel"!==i.type&&t.get().filter((function(e){return e.target.isEqualNode(i.target)})).each((function(){n.get()?i.preventDefault():e.fire("tap",Ve(Ve({},i),{type:"tap"}))}))}),!0)},BR=function(e,t){return Fe(e,t.nodeName)},LR=function(e,t){return!!Qr(t)||!!Hr(t)&&(!BR(e,t)&&!wg(t))},zR=function(e,t,n){return Z(Ax(xn.fromDom(n),xn.fromDom(t)),(function(t){return BR(e,t.dom)}))},WR=function(e,t){if(Qr(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||BR(e,t.nextSibling)))return!0}return!1},jR=function(e){var t,n,r,i=e.dom,o=e.selection,a=e.schema,s=a.getBlockElements(),c=o.getStart(),u=e.getBody(),l=kf(e);if(c&&Hr(c)&&l){var d=u.nodeName.toLowerCase();if(a.isValidChild(d,l.toLowerCase())&&!zR(s,u,c)){var f=o.getRng(),h=f.startContainer,p=f.startOffset,g=f.endContainer,m=f.endOffset,v=fy(e);c=u.firstChild;while(c)if(LR(s,c)){if(WR(s,c)){n=c,c=c.nextSibling,i.remove(n);continue}t||(t=i.create(l,Tf(e)),c.parentNode.insertBefore(t,c),r=!0),n=c,c=c.nextSibling,t.appendChild(n)}else t=null,c=c.nextSibling;r&&v&&(f.setStart(h,p),f.setEnd(g,m),o.setRng(f),e.nodeChanged())}}},HR=function(e){kf(e)&&e.on("NodeChange",P(jR,e))},VR=function(e){return So(xn.fromDom(e.getBody()),"*[data-mce-caret]").map((function(e){return e.dom})).getOrNull()},qR=function(e){e.selection.setRng(e.selection.getRng())},$R=function(e,t){t.hasAttribute("data-mce-caret")&&(Ea(t),qR(e),e.selection.scrollIntoView(t))},GR=function(e,t){var n=VR(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void $R(e,n)):void(xa(n)&&($R(e,n),e.undoManager.add()))},XR=function(e){e.on("keyup compositionstart",P(GR,e))},YR=ai,KR=function(e,t,n){return LP(t,e,n,xx,_x,YR)},ZR=function(e,t,n){var r=function(e){return xx(e)||bx(e)},i=function(e){return _x(e)||yx(e)};return zP(t,e,n,r,i,YR)},JR=function(e){var t=e.dom.create(kf(e));return(!en.ie||en.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t},QR=function(e,t,n){var r=Ip(e.getBody()),i=P(Dp,1===t?r.next:r.prev);if(n.collapsed&&bh(e)){var o=e.dom.getParent(n.startContainer,"PRE");if(!o)return;var a=i(Fd.fromRangeStart(n));if(!a){var s=JR(e);1===t?e.$(o).after(s):e.$(o).before(s),e.selection.select(s,!0),e.selection.collapse()}}},eN=function(e,t){var n=t?Pd.Forwards:Pd.Backwards,r=e.selection.getRng();return KR(n,e,r).orThunk((function(){return QR(e,n,r),V.none()}))},tN=function(e,t){var n=t?1:-1,r=e.selection.getRng();return ZR(n,e,r).orThunk((function(){return QR(e,n,r),V.none()}))},nN=function(e,t){return eN(e,t).exists((function(t){return IP(e,t),!0}))},rN=function(e,t){return tN(e,t).exists((function(t){return IP(e,t),!0}))},iN=function(e,t){var n=t?_x:xx;return jP(e,t,n)},oN=function(e){return K(["figcaption"],In(e))},aN=function(e){var t=document.createRange();return t.setStartBefore(e.dom),t.setEndBefore(e.dom),t},sN=function(e,t,n){n?_r(e,t):xr(e,t)},cN=function(e,t){var n=xn.fromTag("br");return sN(e,n,t),aN(n)},uN=function(e,t,n,r){var i=xn.fromTag(n),o=xn.fromTag("br");return vi(i,r),_r(i,o),sN(e,i,t),aN(o)},lN=function(e,t,n,r){return""===t?cN(e,r):uN(e,r,t,n)},dN=function(e,t){var n=P(Pn,t);return Do(xn.fromDom(e.container()),Zo,n).filter(oN)},fN=function(e,t,n){return t?cP(e.dom,n):sP(e.dom,n)},hN=function(e,t){var n=xn.fromDom(e.getBody()),r=Fd.fromRangeStart(e.selection.getRng()),i=kf(e),o=Tf(e);return dN(r,n).exists((function(){if(fN(n,t,r)){var a=lN(n,i,o,t);return e.selection.setRng(a),!0}return!1}))},pN=function(e,t){return!!e.selection.isCollapsed()&&hN(e,t)},gN=function(e){return J(e,(function(e){return Ve({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:S},e)}))},mN=function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},vN=function(e,t){return ue(gN(e),(function(e){return mN(e,t)?[e]:[]}))},bN=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(null,t)}},yN=function(e,t){return ae(vN(e,t),(function(e){return e.action()}))},xN=function(e,t){var n=t?Pd.Forwards:Pd.Backwards,r=e.selection.getRng();return LP(e,n,r,mx,vx,ci).exists((function(t){return IP(e,t),!0}))},_N=function(e,t){var n=t?1:-1,r=e.selection.getRng();return zP(e,n,r,mx,vx,ci).exists((function(t){return IP(e,t),!0}))},wN=function(e,t){var n=t?vx:mx;return jP(e,t,n)},DN=function(e,t){return{left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}},CN=function(e,t){return ue(t,(function(t){var n=DN(Zl(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]}))},kN=function(e,t,n){return ie(e,(function(e,r){return e.fold((function(){return V.some(r)}),(function(e){var i=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),o=Math.sqrt(Math.abs(r.x-t)+Math.abs(r.y-n));return V.some(o<i?r:e)}))}),V.none())},TN=function(e,t,n,r,i){var o=Sl(xn.fromDom(n),"td,th,caption").map((function(e){return e.dom})),a=ne(CN(e,o),(function(e){return t(e,i)}));return kN(a,r,i).map((function(e){return e.cell}))},SN=function(e){return e.bottom},AN=function(e){return e.top},EN=function(e,t){return e.y<t},UN=function(e,t){return e.y>t},ON=P(TN,SN,EN),FN=P(TN,AN,UN),PN=function(e,t){return me(t.getClientRects()).bind((function(t){return ON(e,t.left,t.top)})).bind((function(e){return nP(lP(e),t)}))},RN=function(e,t){return ve(t.getClientRects()).bind((function(t){return FN(e,t.left,t.top)})).bind((function(e){return nP(uP(e),t)}))},NN=function(e,t,n){return n.breakAt.exists((function(n){return e(t,n).breakAt.isSome()}))},MN=function(e){return e.breakType===qF.Wrap&&0===e.positions.length},IN=function(e){return e.breakType===qF.Br&&1===e.positions.length},BN=function(e,t,n){var r=e(t,n);return MN(r)||!ri(n.getNode())&&IN(r)?!NN(e,t,r):r.breakAt.isNone()},LN=P(BN,rP),zN=P(BN,iP),WN=function(e,t,n){var r=Fd.fromRangeStart(t);return Xp(!e,n).exists((function(e){return e.isEqual(r)}))},jN=function(e,t,n,r){var i=e.selection.getRng(),o=t?1:-1;return!(!Kh()||!WN(t,i,n))&&(RO(o,e,n,!t,!1).each((function(t){IP(e,t)})),!0)},HN=function(e,t,n){return PN(t,n).orThunk((function(){return me(n.getClientRects()).bind((function(n){return tP(oP(e,Fd.before(t)),n.left)}))})).getOr(Fd.before(t))},VN=function(e,t,n){return RN(t,n).orThunk((function(){return me(n.getClientRects()).bind((function(n){return tP(aP(e,Fd.after(t)),n.left)}))})).getOr(Fd.after(t))},qN=function(e,t){var n=t.getNode(e);return Hr(n)&&"TABLE"===n.nodeName?V.some(n):V.none()},$N=function(e,t,n,r){var i=kf(t);i?t.undoManager.transact((function(){var r=xn.fromTag(i);vi(r,Tf(t)),_r(r,xn.fromTag("br")),e?yr(xn.fromDom(n),r):br(xn.fromDom(n),r);var o=t.dom.createRng();o.setStart(r.dom,0),o.setEnd(r.dom,0),IP(t,o)})):IP(t,r.toRange())},GN=function(e,t,n){var r=qN(!!t,n),i=!1===t;r.fold((function(){return IP(e,n.toRange())}),(function(r){return Xp(i,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return IP(e,n.toRange())}),(function(i){return $N(t,e,r,n)}))}))},XN=function(e,t,n,r){var i=e.selection.getRng(),o=Fd.fromRangeStart(i),a=e.getBody();if(!t&&LN(r,o)){var s=HN(a,n,o);return GN(e,t,s),!0}if(t&&zN(r,o)){s=VN(a,n,o);return GN(e,t,s),!0}return!1},YN=function(e,t,n){return V.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(r){return V.from(e.dom.getParent(r,"table")).map((function(i){return n(e,t,i,r)}))})).getOr(!1)},KN=function(e,t){return YN(e,t,jN)},ZN=function(e,t){return YN(e,t,XN)},JN=function(e,t,n){var r=qt().os;yN([{keyCode:tv.RIGHT,action:bN(nN,e,!0)},{keyCode:tv.LEFT,action:bN(nN,e,!1)},{keyCode:tv.UP,action:bN(rN,e,!1)},{keyCode:tv.DOWN,action:bN(rN,e,!0)},{keyCode:tv.RIGHT,action:bN(KN,e,!0)},{keyCode:tv.LEFT,action:bN(KN,e,!1)},{keyCode:tv.UP,action:bN(ZN,e,!1)},{keyCode:tv.DOWN,action:bN(ZN,e,!0)},{keyCode:tv.RIGHT,action:bN(xN,e,!0)},{keyCode:tv.LEFT,action:bN(xN,e,!1)},{keyCode:tv.UP,action:bN(_N,e,!1)},{keyCode:tv.DOWN,action:bN(_N,e,!0)},{keyCode:tv.RIGHT,action:bN(KP,e,t,!0)},{keyCode:tv.LEFT,action:bN(KP,e,t,!1)},{keyCode:tv.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:bN(QP,e,t)},{keyCode:tv.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:bN(eR,e,t)},{keyCode:tv.UP,action:bN(pN,e,!1)},{keyCode:tv.DOWN,action:bN(pN,e,!0)}],n).each((function(e){n.preventDefault()}))},QN=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&JN(e,t,n)}))},eM=function(e,t,n){yN([{keyCode:tv.BACKSPACE,action:bN(AR,e,!1)},{keyCode:tv.BACKSPACE,action:bN(uF,e,!1)},{keyCode:tv.DELETE,action:bN(uF,e,!0)},{keyCode:tv.BACKSPACE,action:bN(VO,e,!1)},{keyCode:tv.DELETE,action:bN(VO,e,!0)},{keyCode:tv.BACKSPACE,action:bN(cR,e,t,!1)},{keyCode:tv.DELETE,action:bN(cR,e,t,!0)},{keyCode:tv.BACKSPACE,action:bN(Ow,e,!1)},{keyCode:tv.DELETE,action:bN(Ow,e,!0)},{keyCode:tv.BACKSPACE,action:bN(dF,e,!1)},{keyCode:tv.DELETE,action:bN(dF,e,!0)},{keyCode:tv.BACKSPACE,action:bN(vR,e,!1)},{keyCode:tv.DELETE,action:bN(vR,e,!0)},{keyCode:tv.BACKSPACE,action:bN(OO,e,!1)},{keyCode:tv.DELETE,action:bN(OO,e,!0)},{keyCode:tv.BACKSPACE,action:bN(CO,e,!1)},{keyCode:tv.DELETE,action:bN(CO,e,!0)},{keyCode:tv.BACKSPACE,action:bN(hR,e,!1)},{keyCode:tv.DELETE,action:bN(hR,e,!0)}],n).each((function(e){n.preventDefault()}))},tM=function(e,t){yN([{keyCode:tv.BACKSPACE,action:bN(cF,e)},{keyCode:tv.DELETE,action:bN(cF,e)}],t)},nM=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&eM(e,t,n)})),e.on("keyup",(function(t){!1===t.isDefaultPrevented()&&tM(e,t)}))},rM=function(e){while(e){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}},iM=function(e,t){var n,r=t,i=e.dom,o=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var a=rM(t.firstChild);a&&/^(UL|OL|DL)$/.test(a.nodeName)&&t.insertBefore(i.doc.createTextNode(ua),t.firstChild)}var s=i.createRng();if(t.normalize(),t.hasChildNodes()){var c=new zo(t,t);while(n=c.current()){if(Qr(n)){s.setStart(n,0),s.setEnd(n,0);break}if(o[n.nodeName.toLowerCase()]){s.setStartBefore(n),s.setEndBefore(n);break}r=n,n=c.next()}n||(s.setStart(r,0),s.setEnd(r,0))}else ri(t)?t.nextSibling&&i.isBlock(t.nextSibling)?(s.setStartBefore(t),s.setEndBefore(t)):(s.setStartAfter(t),s.setEndAfter(t)):(s.setStart(t,0),s.setEnd(t,0));e.selection.setRng(s),nb(e,s)}},oM=function(e,t){var n,r,i=e.getRoot();n=t;while(n!==i&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},aM=function(e){return V.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},sM=function(e){return aM(e).fold(U(""),(function(e){return e.nodeName.toUpperCase()}))},cM=function(e){return aM(e).filter((function(e){return ra(xn.fromDom(e))})).isSome()},uM=function(e,t){return e.firstChild&&e.firstChild.nodeName===t},lM=function(e){var t;return(null===(t=e.parentNode)||void 0===t?void 0:t.firstChild)===e},dM=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},fM=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},hM=function(e){return fM(e)&&fM(e.parentNode)},pM=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},gM=function(e,t,n){var r=e[n?"firstChild":"lastChild"];while(r){if(Hr(r))break;r=r[n?"nextSibling":"previousSibling"]}return r===t},mM=function(e,t,n,r,i){var o=e.dom,a=e.selection.getRng();if(n!==e.getBody()){hM(n)&&(i="LI");var s=i?t(i):o.create("BR");if(gM(n,r,!0)&&gM(n,r,!1))if(dM(n,"LI")){var c=pM(n);o.insertAfter(s,c),lM(n)?o.remove(c):o.remove(n)}else o.replace(s,n);else if(gM(n,r,!0))dM(n,"LI")?(o.insertAfter(s,pM(n)),s.appendChild(o.doc.createTextNode(" ")),s.appendChild(n)):n.parentNode.insertBefore(s,n),o.remove(r);else if(gM(n,r,!1))o.insertAfter(s,pM(n)),o.remove(r);else{n=pM(n);var u=a.cloneRange();u.setStartAfter(r),u.setEndAfter(n);var l=u.extractContents();"LI"===i&&uM(l,"LI")?(s=l.firstChild,o.insertAfter(l,n)):(o.insertAfter(l,n),o.insertAfter(s,n)),o.remove(r)}iM(e,s)}},vM=function(e){Q(Tl(xn.fromDom(e),jn),(function(e){var t=e.dom;t.nodeValue=pa(t.nodeValue)}))},bM=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},yM=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},xM=function(e){e.innerHTML='<br data-mce-bogus="1">'},_M=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},wM=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},DM=function(e,t,n){var r,i=n,o=[];if(i){while(i=i.firstChild){if(e.isBlock(i))return;Hr(i)&&!t[i.nodeName.toLowerCase()]&&o.push(i)}r=o.length;while(r--)i=o[r],(!i.hasChildNodes()||i.firstChild===i.lastChild&&""===i.firstChild.nodeValue||bM(e,i))&&e.remove(i)}},CM=function(e,t,n){return!1===Qr(t)?n:e?1===n&&t.data.charAt(n-1)===fa?0:n:n===t.data.length-1&&t.data.charAt(n)===fa?t.data.length:n},kM=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,CM(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,CM(!1,e.endContainer,e.endOffset)),t},TM=function(e){do{Qr(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild}while(e)},SM=function(e,t){var n,r,i=e.getRoot();n=t;while(n!==i&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},AM=function(e,t,n){var r=e.dom;V.from(n.style).map(r.parseStyle).each((function(e){var n=Ai(xn.fromDom(t)),i=Ve(Ve({},n),e);r.setStyles(t,i)}));var i=V.from(n.class).map((function(e){return e.split(/\s+/)})),o=V.from(t.className).map((function(e){return ne(e.split(/\s+/),(function(e){return""!==e}))}));di(i,o,(function(e,n){var i=ne(n,(function(t){return!K(e,t)})),o=$e($e([],e,!0),i,!0);r.setAttrib(t,"class",o.join(" "))}));var a=["style","class"],s=Ae(n,(function(e,t){return!K(a,t)}));r.setAttribs(t,s)},EM=function(e,t){var n=kf(e);if(n&&n.toLowerCase()===t.tagName.toLowerCase()){var r=Tf(e);AM(e,t,r)}},UM=function(e,t,n,r,i){var o,a,s,c,u,l,d=t||"P",f=e.dom,h=SM(f,r);if(a=f.getParent(r,f.isBlock),!a||!wM(f,a)){if(a=a||h,l=a===e.getBody()||yM(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return o=f.create(d),EM(e,o),a.appendChild(o),n.setStart(o,0),n.setEnd(o,0),o;c=r;while(c.parentNode!==a)c=c.parentNode;while(c&&!f.isBlock(c))s=c,c=c.previousSibling;if(s&&e.schema.isValidChild(l,d.toLowerCase())){o=f.create(d),EM(e,o),s.parentNode.insertBefore(o,s),c=s;while(c&&!f.isBlock(c))u=c.nextSibling,o.appendChild(c),c=u;n.setStart(r,i),n.setEnd(r,i)}}return r},OM=function(e,t){t.normalize();var n=t.lastChild;n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")},FM=function(e,t){var n,r,i,o,a,s,c,u,l,d,f=e.dom,h=e.schema,p=h.getNonEmptyElements(),g=e.selection.getRng(),m=function(t){var n,i,a,s=r,c=h.getTextInlineElements();if(n=t||"TABLE"===u||"HR"===u?f.create(t||l):o.cloneNode(!1),a=n,!1===Ef(e))f.setAttrib(n,"style",null),f.setAttrib(n,"class",null);else do{if(c[s.nodeName]){if(eg(s)||wg(s))continue;i=s.cloneNode(!1),f.setAttrib(i,"id",""),n.hasChildNodes()?(i.appendChild(n.firstChild),n.appendChild(i)):(a=i,n.appendChild(i))}}while((s=s.parentNode)&&s!==_);return EM(e,n),xM(a),n},v=function(e){var t,n,a=CM(e,r,i);if(Qr(r)&&(e?a>0:a<r.nodeValue.length))return!1;if(r.parentNode===o&&d&&!e)return!0;if(e&&Hr(r)&&r===o.firstChild)return!0;if(_M(r,"TABLE")||_M(r,"HR"))return d&&!e||!d&&e;var s=new zo(r,o);Qr(r)&&(e&&0===a?s.prev():e||a!==r.nodeValue.length||s.next());while(t=s.current()){if(Hr(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),p[n]&&"br"!==n))return!1}else if(Qr(t)&&!Ga(t.nodeValue))return!1;e?s.prev():s.next()}return!0},b=function(){a=/^(H[1-6]|PRE|FIGURE)$/.test(u)&&"HGROUP"!==w?m(l):m(),Uf(e)&&wM(f,c)&&f.isEmpty(o)?a=f.split(c,o):f.insertAfter(a,o),iM(e,a)};_v(f,g).each((function(e){g.setStart(e.startContainer,e.startOffset),g.setEnd(e.endContainer,e.endOffset)})),r=g.startContainer,i=g.startOffset,l=kf(e);var y=!(!t||!t.shiftKey),x=!(!t||!t.ctrlKey);Hr(r)&&r.hasChildNodes()&&(d=i>r.childNodes.length-1,r=r.childNodes[Math.min(i,r.childNodes.length-1)]||r,i=d&&Qr(r)?r.nodeValue.length:0);var _=SM(f,r);if(_){(l&&!y||!l&&y)&&(r=UM(e,l,g,r,i)),o=f.getParent(r,f.isBlock),c=o?f.getParent(o.parentNode,f.isBlock):null,u=o?o.nodeName.toUpperCase():"";var w=c?c.nodeName.toUpperCase():"";"LI"!==w||x||(o=c,c=c.parentNode,u=w),/^(LI|DT|DD)$/.test(u)&&f.isEmpty(o)?mM(e,m,c,o,l):l&&o===e.getBody()||(l=l||"P",va(o)?(a=Ea(o),f.isEmpty(o)&&xM(o),EM(e,a),iM(e,a)):v()?b():v(!0)?(a=o.parentNode.insertBefore(m(),o),iM(e,_M(o,"HR")?a:o)):(n=kM(g).cloneRange(),n.setEndAfter(o),s=n.extractContents(),vM(s),TM(s),a=s.firstChild,f.insertAfter(s,o),DM(f,p,a),OM(f,o),f.isEmpty(o)&&xM(o),a.normalize(),f.isEmpty(a)?(f.remove(a),b()):(EM(e,a),iM(e,a))),f.setAttrib(a,"id",""),e.fire("NewBlock",{newBlock:a}))}},PM=function(e,t,n){var r,i=new zo(t,n),o=e.getNonEmptyElements();while(r=i.next())if(o[r.nodeName.toLowerCase()]||r.length>0)return!0},RM=function(e,t,n){var r=e.dom.createRng();n?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)),e.selection.setRng(r),nb(e,r)},NM=function(e,t){var n,r,i=e.selection,o=e.dom,a=i.getRng();_v(o,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var s=a.startOffset,c=a.startContainer;if(1===c.nodeType&&c.hasChildNodes()){var u=s>c.childNodes.length-1;c=c.childNodes[Math.min(s,c.childNodes.length-1)]||c,s=u&&3===c.nodeType?c.nodeValue.length:0}var l=o.getParent(c,o.isBlock),d=l?o.getParent(l.parentNode,o.isBlock):null,f=d?d.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==f||h||(l=d),c&&3===c.nodeType&&s>=c.nodeValue.length&&(PM(e.schema,c,l)||(n=o.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=o.create("br"),Id(o,a,n),RM(e,n,r),e.undoManager.add()},MM=function(e,t){var n=xn.fromTag("br");br(xn.fromDom(t),n),e.undoManager.add()},IM=function(e,t){LM(e.getBody(),t)||yr(xn.fromDom(t),xn.fromTag("br"));var n=xn.fromTag("br");yr(xn.fromDom(t),n),RM(e,n.dom,!1),e.undoManager.add()},BM=function(e){return ri(e.getNode())},LM=function(e,t){return!!BM(Fd.after(t))||Yp(e,Fd.after(t)).map((function(e){return ri(e.getNode())})).getOr(!1)},zM=function(e){return e&&"A"===e.nodeName&&"href"in e},WM=function(e){return e.fold(B,zM,zM,B)},jM=function(e){var t=P(HU,e),n=Fd.fromRangeStart(e.selection.getRng());return RF(t,e.getBody(),n).filter(WM)},HM=function(e,t){t.fold(S,P(MM,e),P(IM,e),S)},VM=function(e,t){var n=jM(e);n.isSome()?n.each(P(HM,e)):NM(e,t)},qM=function(e,t){return aM(e).filter((function(e){return t.length>0&&En(xn.fromDom(e),t)})).isSome()},$M=function(e){return qM(e,Sf(e))},GM=function(e){return qM(e,Af(e))},XM=Qi.generate([{br:[]},{block:[]},{none:[]}]),YM=function(e,t){return GM(e)},KM=function(e){return function(t,n){var r=""===kf(t);return r===e}},ZM=function(e){return function(t,n){return cM(t)===e}},JM=function(e,t){return function(n,r){var i=sM(n)===e.toUpperCase();return i===t}},QM=function(e){return JM("pre",e)},eI=function(){return JM("summary",!0)},tI=function(e){return function(t,n){return Cf(t)===e}},nI=function(e,t){return $M(e)},rI=function(e,t){return t},iI=function(e){var t=kf(e),n=oM(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},oI=function(e,t){return function(n,r){var i=ie(e,(function(e,t){return e&&t(n,r)}),!0);return i?V.some(t):V.none()}},aI=function(e,t){return CF([oI([YM],XM.none()),oI([eI()],XM.br()),oI([QM(!0),tI(!1),rI],XM.br()),oI([QM(!0),tI(!1)],XM.block()),oI([QM(!0),tI(!0),rI],XM.block()),oI([QM(!0),tI(!0)],XM.br()),oI([ZM(!0),rI],XM.br()),oI([ZM(!0)],XM.block()),oI([KM(!0),rI,iI],XM.block()),oI([KM(!0)],XM.br()),oI([nI],XM.br()),oI([KM(!1),rI],XM.br()),oI([iI],XM.block())],[e,!(!t||!t.shiftKey)]).getOr(XM.none())},sI=function(e,t){aI(e,t).fold((function(){VM(e,t)}),(function(){FM(e,t)}),S)},cI=function(e,t){t.isDefaultPrevented()||(t.preventDefault(),mT(e.undoManager),e.undoManager.transact((function(){!1===e.selection.isCollapsed()&&e.execCommand("Delete"),sI(e,t)})))},uI=function(e){e.on("keydown",(function(t){t.keyCode===tv.ENTER&&cI(e,t)}))},lI=function(e,t,n){yN([{keyCode:tv.END,action:bN(iN,e,!0)},{keyCode:tv.HOME,action:bN(iN,e,!1)},{keyCode:tv.END,action:bN(wN,e,!0)},{keyCode:tv.HOME,action:bN(wN,e,!1)},{keyCode:tv.END,action:bN(tR,e,!0,t)},{keyCode:tv.HOME,action:bN(tR,e,!1,t)}],n).each((function(e){n.preventDefault()}))},dI=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&lI(e,t,n)}))},fI=qt().browser,hI=function(e){var t=hl((function(){e.composing||d_(e)}),0);fI.isIE()&&(e.on("keypress",(function(e){t.throttle()})),e.on("remove",(function(e){t.cancel()})))},pI=function(e){hI(e),e.on("input",(function(t){!1===t.isComposing&&d_(e)}))},gI=qt(),mI=function(e,t,n){yN([{keyCode:tv.PAGE_UP,action:bN(tR,e,!1,t)},{keyCode:tv.PAGE_DOWN,action:bN(tR,e,!0,t)}],n)},vI=function(e){return e.stopImmediatePropagation()},bI=function(e){return e.keyCode===tv.PAGE_UP||e.keyCode===tv.PAGE_DOWN},yI=function(e,t,n){n&&!e.get()?t.on("NodeChange",vI,!0):!n&&e.get()&&t.off("NodeChange",vI),e.set(n)},xI=function(e,t){if(!gI.os.isOSX()){var n=Ku(!1);e.on("keydown",(function(t){bI(t)&&yI(n,e,!0)})),e.on("keyup",(function(r){!1===r.isDefaultPrevented()&&mI(e,t,r),bI(r)&&n.get()&&(yI(n,e,!1),e.nodeChanged())}))}},_I=function(e,t){var n=t.container(),r=t.offset();return Qr(n)?(n.insertData(r,e),V.some(Fd(n,r+e.length))):_p(t).map((function(n){var r=xn.fromText(e);return t.isAtEnd()?yr(n,r):br(n,r),Fd(r.dom,e.length)}))},wI=P(_I,ua),DI=P(_I," "),CI=function(e){return function(t){return t.fold((function(t){return Kp(e.dom,Fd.before(t))}),(function(e){return Zp(e)}),(function(e){return Jp(e)}),(function(t){return Yp(e.dom,Fd.after(t))}))}},kI=function(e,t){return function(n){return Qx(e,n)?wI(t):DI(t)}},TI=function(e){return function(t){return e.selection.setRng(t.toRange()),e.nodeChanged(),!0}},SI=function(e){var t=Fd.fromRangeStart(e.selection.getRng()),n=xn.fromDom(e.getBody());if(e.selection.isCollapsed()){var r=P(HU,e),i=Fd.fromRangeStart(e.selection.getRng());return RF(r,e.getBody(),i).bind(CI(n)).bind(kI(n,t)).exists(TI(e))}return!1},AI=function(e,t){yN([{keyCode:tv.SPACEBAR,action:bN(SI,e)}],t).each((function(e){t.preventDefault()}))},EI=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&AI(e,t)}))},UI=function(e){var t=JP(e);return XR(e),QN(e,t),nM(e,t),uI(e),EI(e),pI(e),dI(e,t),xI(e,t),t},OI=function(e){return FT(e)?Ku(null):UI(e)},FI=function(){function e(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",(function(n){var r=e.selection.getRng(),i={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&uv(i,t)||e.fire("SelectionChange"),t=i})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!en.range&&e.selection.isCollapsed()||km(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&km(e)&&("IMG"===e.selection.getNode().nodeName?Mo.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}return e.prototype.nodeChanged=function(e){var t,n,r,i=this.editor.selection;this.editor.initialized&&i&&!xh(this.editor)&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),t=i.getStart(!0)||r,t.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,(function(e){if(e===r)return!0;n.push(e)})),e=e||{},e.element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e);if(n.length===this.lastPath.length){for(t=n.length;t>=0;t--)if(n[t]!==this.lastPath[t])break;if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),PI=function(e){e.on("click",(function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()}))},RI=function(e){e.parser.addNodeFilter("details",(function(e){Q(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),e.serializer.addNodeFilter("details",(function(e){Q(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",v(t)?t:null),e.attr("data-mce-open",null)}))}))},NI=function(e){PI(e),RI(e)},MI=function(e){return Hr(e)&&ta(xn.fromDom(e))},II=function(e){var t=e.selection.getRng(),n=Fd.fromRangeStart(t),r=Fd.fromRangeEnd(t);if(Fd.isElementPosition(n)){var i=n.container();MI(i)&&Zp(i).each((function(e){return t.setStart(e.container(),e.offset())}))}if(Fd.isElementPosition(r)){i=n.container();MI(i)&&Jp(i).each((function(e){return t.setEnd(e.container(),e.offset())}))}e.selection.setRng(Rw(t))},BI=function(e){e.on("click",(function(t){t.detail>=3&&II(e)}))},LI=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,i=n.defaultView;return{top:t.top+i.pageYOffset-r.clientTop,left:t.left+i.pageXOffset-r.clientLeft}},zI=function(e){return e.inline?LI(e.getBody()):{left:0,top:0}},WI=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},jI=function(e){var t=e.getBody(),n=e.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},i={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?r:i},HI=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=LI(e.getContentAreaContainer()),r=jI(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}},VI=function(e,t,n){return{pageX:n.left-e.left+t.left,pageY:n.top-e.top+t.top}},qI=function(e,t){return VI(zI(e),WI(e),HI(e,t))},$I=ai,GI=oi,XI=function(e,t){return $I(t)&&t!==e},YI=function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!$I(t)},KI=function(e){var t=e.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},ZI=function(e,t,n,r){var i=e.dom,o=t.cloneNode(!0);i.setStyles(o,{width:n,height:r}),i.setAttrib(o,"data-mce-selected",null);var a=i.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return i.setStyles(a,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),i.setStyles(o,{margin:0,boxSizing:"border-box"}),a.appendChild(o),a},JI=function(e,t){e.parentNode!==t&&t.appendChild(e)},QI=function(e,t,n,r,i,o){var a=0,s=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>i&&(a=t.pageX+n-i),t.pageY+r>o&&(s=t.pageY+r-o),e.style.width=n-a+"px",e.style.height=r-s+"px"},eB=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},tB=function(e){return 0===e.button},nB=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}},rB=function(e,t){return function(n){if(tB(n)){var r=ae(t.dom.getParents(n.target),ld($I,GI)).getOr(null);if(XI(t.getBody(),r)){var i=t.dom.getPos(r),o=t.getBody(),a=t.getDoc().documentElement;e.set({element:r,dragging:!1,screenX:n.screenX,screenY:n.screenY,maxX:(t.inline?o.scrollWidth:a.offsetWidth)-2,maxY:(t.inline?o.scrollHeight:a.offsetHeight)-2,relX:n.pageX-i.x,relY:n.pageY-i.y,width:r.offsetWidth,height:r.offsetHeight,ghost:ZI(t,r,r.offsetWidth,r.offsetHeight)})}}}},iB=function(e,t){var n=Mo.throttle((function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)}),0);return t.on("remove",n.stop),function(r){return e.on((function(e){var i=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(!e.dragging&&i>10){var o=t.fire("dragstart",{target:e.element});if(o.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){var a=nB(e,qI(t,r));JI(e.ghost,t.getBody()),QI(e.ghost,a,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}))}},oB=function(e){var t=e.getSel().getRangeAt(0),n=t.startContainer;return 3===n.nodeType?n.parentNode:n},aB=function(e,t){return function(n){e.on((function(e){if(e.dragging){if(YI(t,oB(t.selection),e.element)){var r=KI(e.element),i=t.fire("drop",{clientX:n.clientX,clientY:n.clientY});i.isDefaultPrevented()||t.undoManager.transact((function(){eB(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}t.fire("dragend")}})),cB(e)}},sB=function(e,t){return function(){e.on((function(e){e.dragging&&t.fire("dragend")})),cB(e)}},cB=function(e){e.on((function(e){eB(e.ghost)})),e.clear()},uB=function(e){var t=fl(),n=Wu.DOM,r=document,i=rB(t,e),o=iB(t,e),a=aB(t,e),s=sB(t,e);e.on("mousedown",i),e.on("mousemove",o),e.on("mouseup",a),n.bind(r,"mousemove",o),n.bind(r,"mouseup",s),e.on("remove",(function(){n.unbind(r,"mousemove",o),n.unbind(r,"mouseup",s)})),e.on("keydown",(function(e){e.keyCode===tv.ESC&&s()}))},lB=function(e){e.on("drop",(function(t){var n="undefined"!==typeof t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;($I(n)||"false"===e.dom.getContentEditableParent(n))&&t.preventDefault()}))},dB=function(e){var t=function(t){if(!t.isDefaultPrevented()){var n=t.dataTransfer;n&&(K(n.types,"Files")||n.files.length>0)&&(t.preventDefault(),"drop"===t.type&&XE(e,"Dropped file type is not supported"))}},n=function(n){Jb(e,n.target)&&t(n)},r=function(){var r=Wu.DOM,i=e.dom,o=document,a=e.inline?e.getBody():e.getDoc(),s=["drop","dragover"];Q(s,(function(e){r.bind(o,e,n),i.bind(a,e,t)})),e.on("remove",(function(){Q(s,(function(e){r.unbind(o,e,n),i.unbind(a,e,t)}))}))};e.on("init",(function(){Mo.setEditorTimeout(e,r,0)}))},fB=function(e){uB(e),lB(e),kh(e)&&dB(e)},hB=function(e){var t=hl((function(){if(!e.removed&&e.getBody().contains(document.activeElement)){var t=e.selection.getRng();if(t.collapsed){var n=BO(e,t,!1);e.selection.setRng(n)}}}),0);e.on("focus",(function(){t.throttle()})),e.on("blur",(function(){t.cancel()}))},pB=function(e){e.on("init",(function(){e.on("focusin",(function(t){var n=t.target;if(ci(n)){var r=Lm(e.getBody(),n),i=ai(r)?r:n;e.selection.getNode()!==i&&MO(e,i).each((function(t){return e.selection.setRng(t)}))}}))}))},gB=oi,mB=ai,vB=function(e,t){return Lm(e.getBody(),t)},bB=function(e){var t,n=e.selection,r=e.dom,i=r.isBlock,o=e.getBody(),a=Yh(e,o,i,(function(){return fy(e)})),s="sel-"+r.uniqueId(),c="data-mce-selected",u=function(e){return r.hasClass(e,"mce-offscreen-selection")},l=function(e){return e!==o&&(mB(e)||ci(e))&&r.isChildOf(e,o)},d=function(e){return xx(e)||_x(e)||mx(e)||vx(e)},f=function(){var e=r.get(s);return e?e.getElementsByTagName("*")[0]:e},h=function(e){e&&n.setRng(e)},p=n.getRng,g=function(t,r,i,o){void 0===o&&(o=!0);var s=e.fire("ShowCaret",{target:r,direction:t,before:i});return s.isDefaultPrevented()?null:(o&&n.scrollIntoView(r,-1===t),a.show(i,r))},m=function(e){e.hasAttribute("data-mce-caret")&&(Ea(e),h(p()),n.scrollIntoView(e))},v=function(){e.on("mouseup",(function(t){var n=p();n.collapsed&&BE(e,t.clientX,t.clientY)&&IO(e,n,!1).each(h)})),e.on("click",(function(t){var i=vB(e,t.target);i&&(mB(i)&&(t.preventDefault(),e.focus()),gB(i)&&r.isChildOf(i,n.getNode())&&k())})),e.on("blur NewBlock",k),e.on("ResizeWindow FullscreenStateChanged",a.reposition);var s=function(e){var t=e.firstChild;if(D(t))return!1;var n=Fd.before(t);if(ri(n.getNode())&&1===e.childNodes.length)return!d(n);var r=Ip(e),i=r.next(n);return i&&!d(i)},c=function(e,t){var n=r.getParent(e,i),o=r.getParent(t,i);return n===o},m=function(t,n){var o=r.getParent(t,i),a=r.getParent(n,i);return!D(o)&&(!(t===a||!r.isChildOf(o,a)||!1!==mB(vB(e,o)))||!r.isChildOf(a,o)&&!c(o,a)&&s(o))};e.on("tap",(function(t){var n=t.target,r=vB(e,n);mB(r)?(t.preventDefault(),MO(e,r).each(C)):l(n)&&MO(e,n).each(C)}),!0),e.on("mousedown",(function(t){var i=t.target;if((i===o||"HTML"===i.nodeName||r.isChildOf(i,o))&&!1!==BE(e,t.clientX,t.clientY)){var a=vB(e,i);if(a)mB(a)?(t.preventDefault(),MO(e,a).each(C)):(k(),gB(a)&&t.shiftKey||zm(t.clientX,t.clientY,n.getRng())||(S(),n.placeCaretAt(t.clientX,t.clientY)));else if(l(i))MO(e,i).each(C);else if(!1===Jh(i)){k(),S();var s=MP(o,t.clientX,t.clientY);if(s&&!m(i,s.node)){t.preventDefault();var c=g(1,s.node,s.before,!1);h(c),e.getBody().focus()}}}})),e.on("keypress",(function(e){tv.modifierPressed(e)||mB(n.getNode())&&e.preventDefault()})),e.on("GetSelectionRange",(function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);n=n.cloneRange(),n.selectNode(t),e.range=n}})),e.on("SetSelectionRange",(function(e){e.range=x(e.range);var t=C(e.range,e.forward);t&&(e.range=t)}));var v=function(e){return"mcepastebin"===e.id};e.on("AfterSetSelectionRange",(function(e){var t=e.range,n=t.startContainer.parentNode;y(t)||v(n)||S(),u(n)||k()})),e.on("copy",(function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!en.ie){var n=f();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText||n.innerText))}})),fB(e),hB(e),pB(e)},b=function(e){return ya(e)||Ta(e)||Sa(e)},y=function(e){return b(e.startContainer)||b(e.endContainer)},x=function(t){var n=e.schema.getShortEndedElements(),i=r.createRng(),o=t.startContainer,a=t.startOffset,s=t.endContainer,c=t.endOffset;return Fe(n,o.nodeName.toLowerCase())?0===a?i.setStartBefore(o):i.setStartAfter(o):i.setStart(o,a),Fe(n,s.nodeName.toLowerCase())?0===c?i.setEndBefore(s):i.setEndAfter(s):i.setEnd(s,c),i},_=function(t,i,o){var a=e.$,c=So(xn.fromDom(e.getBody()),"#"+s).fold((function(){return a([])}),(function(e){return a([e.dom])}));0===c.length&&(c=a('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",s),c.appendTo(e.getBody()));var u=r.createRng();i===o&&en.ie?(c.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(i),u.setStartAfter(c[0].firstChild.firstChild),u.setEndAfter(i)):(c.empty().append(ua).append(i).append(ua),u.setStart(c[0].firstChild,1),u.setEnd(c[0].lastChild,0)),c.css({top:r.getPos(t,e.getBody()).y}),c[0].focus();var l=n.getSel();return l.removeAllRanges(),l.addRange(u),u},w=function(n){var i=n.cloneNode(!0),o=e.fire("ObjectSelected",{target:n,targetClone:i});if(o.isDefaultPrevented())return null;var a=_(n,o.targetClone,i),s=xn.fromDom(n);return Q(Sl(xn.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){Pn(s,e)||_i(e,c)})),r.getAttrib(n,c)||n.setAttribute(c,"1"),t=n,S(),a},C=function(e,t){if(!e)return null;if(e.collapsed){if(!y(e)){var n=t?1:-1,i=xp(n,o,e),a=i.getNode(!t);if(Jh(a))return g(n,a,!!t&&!i.isAtEnd(),!1);var s=i.getNode(t);if(Jh(s))return g(n,s,!t&&!i.isAtEnd(),!1)}return null}var c=e.startContainer,u=e.startOffset,d=e.endOffset;if(3===c.nodeType&&0===u&&mB(c.parentNode)&&(c=c.parentNode,u=r.nodeIndex(c),c=c.parentNode),1!==c.nodeType)return null;if(d===u+1&&c===e.endContainer){var f=c.childNodes[u];if(l(f))return w(f)}return null},k=function(){t&&t.removeAttribute(c),So(xn.fromDom(e.getBody()),"#"+s).each(Tr),t=null},T=function(){a.destroy(),t=null},S=function(){a.hide()};return en.ceFalse&&!FT(e)&&v(),{showCaret:g,showBlockCaretContainer:m,hideFakeCaret:S,destroy:T}},yB=function(e){var t=pn.each,n=tv.BACKSPACE,r=tv.DELETE,i=e.dom,o=e.selection,a=e.parser,s=en.gecko,c=en.ie,u=en.webkit,l="data:text/mce-internal,",d=c?"Text":"URL",f=function(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},h=function(e){return e.isDefaultPrevented()},p=function(t){var n,r;t.dataTransfer&&(e.selection.isCollapsed()&&"IMG"===t.target.tagName&&o.select(t.target),n=e.selection.getContent(),n.length>0&&(r=l+escape(e.id)+","+escape(n),t.dataTransfer.setData(d,r)))},g=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(d),t&&t.indexOf(l)>=0)?(t=t.substr(l.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null},m=function(t,n){e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:t,internal:n}):e.execCommand("mceInsertContent",!1,t)},v=function(){var t=function(e){var t=i.create("body"),n=e.cloneContents();return t.appendChild(n),o.serializer.serialize(t,{format:"html"})},a=function(n){var r=t(n),o=i.createRng();o.selectNode(e.getBody());var a=t(o);return r===a};e.on("keydown",(function(t){var o,s,c=t.keyCode;if(!h(t)&&(c===r||c===n)){if(o=e.selection.isCollapsed(),s=e.getBody(),o&&!i.isEmpty(s))return;if(!o&&!a(e.selection.getRng()))return;t.preventDefault(),e.setContent(""),s.firstChild&&i.isBlock(s.firstChild)?e.selection.setCursorLocation(s.firstChild,0):e.selection.setCursorLocation(s,0),e.nodeChanged()}}))},b=function(){e.shortcuts.add("meta+a",null,"SelectAll")},y=function(){e.inline||i.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;if(t.target===e.getDoc().documentElement)if(n=o.getRng(),e.getBody().focus(),"mousedown"===t.type){if(ya(n.startContainer))return;o.placeCaretAt(t.clientX,t.clientY)}else o.setRng(n)}))},x=function(){e.on("keydown",(function(t){if(!h(t)&&t.keyCode===n){if(!e.getBody().getElementsByTagName("hr").length)return;if(o.isCollapsed()&&0===o.getRng().startOffset){var r=o.getNode(),a=r.previousSibling;if("HR"===r.nodeName)return i.remove(r),void t.preventDefault();a&&a.nodeName&&"hr"===a.nodeName.toLowerCase()&&(i.remove(a),t.preventDefault())}}}))},_=function(){Range.prototype.getClientRects||e.on("mousedown",(function(t){if(!h(t)&&"HTML"===t.target.nodeName){var n=e.getBody();n.blur(),Mo.setEditorTimeout(e,(function(){n.focus()}))}}))},w=function(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==i.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&i.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),o.select(n))}))},D=function(){var n=function(){var n=i.getAttribs(o.getStart().cloneNode(!1));return function(){var r=o.getStart();r!==e.getBody()&&(i.setAttrib(r,"style",null),t(n,(function(e){r.setAttributeNode(e.cloneNode(!0))})))}},r=function(){return!o.isCollapsed()&&i.getParent(o.getStart(),i.isBlock)!==i.getParent(o.getEnd(),i.isBlock)};e.on("keypress",(function(t){var i;if(!h(t)&&(8===t.keyCode||46===t.keyCode)&&r())return i=n(),e.getDoc().execCommand("delete",!1,null),i(),t.preventDefault(),!1})),i.bind(e.getDoc(),"cut",(function(t){var i;!h(t)&&r()&&(i=n(),Mo.setEditorTimeout(e,(function(){i()})))}))},C=function(){e.on("keydown",(function(e){if(!h(e)&&e.keyCode===n&&o.isCollapsed()&&0===o.getRng().startOffset){var t=o.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))},k=function(){e.on("keydown",(function(t){var n,r;if(!h(t)&&t.keyCode===tv.BACKSPACE){n=o.getRng();var a=n.startContainer,s=n.startOffset,c=i.getRoot();if(r=a,n.collapsed&&0===s){while(r&&r.parentNode&&r.parentNode.firstChild===r&&r.parentNode!==c)r=r.parentNode;"BLOCKQUOTE"===r.tagName&&(e.formatter.toggle("blockquote",null,r),n=i.createRng(),n.setStart(a,0),n.setEnd(a,0),o.setRng(n))}}}))},T=function(){var t=function(){f("StyleWithCSS",!1),f("enableInlineTableEditing",!1),Qf(e)||f("enableObjectResizing",!1)};_h(e)||e.on("BeforeExecCommand mousedown",t)},A=function(){var n=function(){t(i.select("a"),(function(e){var t=e.parentNode,n=i.getRoot();if(t.lastChild===e){while(t&&!i.isBlock(t)){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}i.add(t,"br",{"data-mce-bogus":1})}}))};e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||n()}))},E=function(){kf(e)&&e.on("init",(function(){f("DefaultParagraphSeparator",kf(e))}))},U=function(){e.on("keyup focusin mouseup",(function(e){tv.modifierPressed(e)||o.normalize()}),!0)},O=function(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},F=function(){e.inline||e.on("keydown",(function(){document.activeElement===document.body&&e.getWin().focus()}))},P=function(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;if("HTML"===t.target.nodeName){if(en.ie>11)return void e.getBody().focus();n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()}})))},R=function(){en.mac&&e.on("keydown",(function(t){if(tv.metaKeyPressed(t)&&!t.shiftKey&&(37===t.keyCode||39===t.keyCode)){t.preventDefault();var n=e.selection.getSel();n.modify("move",37===t.keyCode?"backward":"forward","lineboundary")}}))},N=function(){f("AutoUrlDetect",!1)},M=function(){e.on("click",(function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)})),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},I=function(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))},B=function(){a.addNodeFilter("br",(function(e){var t=e.length;while(t--)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}))},L=function(){e.on("dragstart",(function(e){p(e)})),e.on("drop",(function(t){if(!h(t)){var n=g(t);if(n&&n.id!==e.id){t.preventDefault();var r=cv(t.x,t.y,e.getDoc());o.setRng(r),m(n.html,!0)}}}))},z=S,W=function(){if(!s||e.removed)return!1;var t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount},j=function(){u&&(y(),w(),I(),b(),en.iOS&&(F(),P(),M())),s&&(_(),T(),O(),R())},H=function(){k(),v(),en.windowsPhone||U(),u&&(y(),w(),E(),I(),C(),B(),en.iOS?(F(),P(),M()):b()),en.ie>=11&&(P(),C()),en.ie&&(b(),N(),L()),s&&(x(),_(),D(),T(),A(),O(),R(),C())};return FT(e)?j():H(),{refreshContentEditable:z,isHidden:W}},xB=Wu.DOM,_B=function(e,t){var n=xn.fromDom(e.getBody()),r=hr(fr(n)),i=xn.fromTag("style");mi(i,"type","text/css"),_r(i,xn.fromText(t)),_r(r,i),e.on("remove",(function(){Tr(i)}))},wB=function(e){return e.inline?e.getElement().nodeName.toLowerCase():void 0},DB=function(e){return Ae(e,(function(e){return!1===w(e)}))},CB=function(e){var t=e.settings;return DB({block_elements:t.block_elements,boolean_attributes:t.boolean_attributes,custom_elements:t.custom_elements,extended_valid_elements:t.extended_valid_elements,invalid_elements:t.invalid_elements,invalid_styles:t.invalid_styles,move_caret_before_on_enter_elements:t.move_caret_before_on_enter_elements,non_empty_elements:t.non_empty_elements,schema:t.schema,self_closing_elements:t.self_closing_elements,short_ended_elements:t.short_ended_elements,special:t.special,text_block_elements:t.text_block_elements,text_inline_elements:t.text_inline_elements,valid_children:t.valid_children,valid_classes:t.valid_classes,valid_elements:t.valid_elements,valid_styles:t.valid_styles,verify_html:t.verify_html,whitespace_elements:t.whitespace_elements,padd_empty_block_inline_children:t.format_empty_lines})},kB=function(e){var t=e.settings,n=e.editorUpload.blobCache;return DB({allow_conditional_comments:t.allow_conditional_comments,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_html_in_named_anchor:t.allow_html_in_named_anchor,allow_script_urls:t.allow_script_urls,allow_unsafe_link_target:t.allow_unsafe_link_target,convert_fonts_to_spans:t.convert_fonts_to_spans,fix_list_elements:t.fix_list_elements,font_size_legacy_values:t.font_size_legacy_values,forced_root_block:t.forced_root_block,forced_root_block_attrs:t.forced_root_block_attrs,padd_empty_with_br:t.padd_empty_with_br,preserve_cdata:t.preserve_cdata,remove_trailing_brs:t.remove_trailing_brs,inline_styles:t.inline_styles,root_name:wB(e),validate:!0,blob_cache:n,document:e.getDoc(),images_dataimg_filter:t.images_dataimg_filter})},TB=function(e){var t=e.settings;return Ve(Ve(Ve({},kB(e)),CB(e)),DB({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope,element_format:t.element_format,entities:t.entities,entity_encoding:t.entity_encoding,indent:t.indent,indent_after:t.indent_after,indent_before:t.indent_before}))},SB=function(e){var t=xA(kB(e),e.schema);return t.addAttributeFilter("src,href,style,tabindex",(function(t,n){var r,i,o=t.length,a=e.dom,s="data-mce-"+n;while(o--)if(r=t[o],i=r.attr(n),i&&!r.attr(s)){if(0===i.indexOf("data:")||0===i.indexOf("blob:"))continue;"style"===n?(i=a.serializeStyle(a.parseStyle(i),r.name),i.length||(i=null),r.attr(s,i),r.attr(n,i)):"tabindex"===n?(r.attr(s,i),r.attr(n,null)):r.attr(s,e.convertURL(i,n,r.name))}})),t.addNodeFilter("script",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}})),e.settings.preserve_cdata&&t.addNodeFilter("#cdata",(function(t){var n=t.length;while(n--){var r=t[n];r.type=8,r.name="#comment",r.value="[CDATA["+e.dom.encode(r.value)+"]]"}})),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(t){var n=t.length,r=e.schema.getNonEmptyElements();while(n--){var i=t[n];i.isEmpty(r)&&0===i.getAll("br").length&&(i.append(new Ey("br",1)).shortEnded=!0)}})),t},AB=function(e){e.settings.auto_focus&&Mo.setEditorTimeout(e,(function(){var t;t=!0===e.settings.auto_focus?e:e.editorManager.get(e.settings.auto_focus),t.destroyed||t.focus()}),100)},EB=function(e){var t=e.dom.getRoot();e.inline||km(e)&&e.selection.getStart(!0)!==t||Zp(t).each((function(t){var n=t.getNode(),r=Kr(n)?Zp(n).getOr(t):t;en.browser.isIE()?Bb(e,r.toRange()):e.selection.setRng(r.toRange())}))},UB=function(e){e.bindPendingEventDelegates(),e.initialized=!0,Km(e),e.focus(!0),EB(e),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),AB(e)},OB=function(e){return e.inline?e.ui.styleSheetLoader:e.dom.styleSheetLoader},FB=function(e,t,n){var r=[new Eo((function(n,r){return OB(e).loadAll(t,n,r)}))];return e.inline?r:r.concat([new Eo((function(t,r){return e.ui.styleSheetLoader.loadAll(n,t,r)}))])},PB=function(e){var t=OB(e),n=Kf(e),r=e.contentCSS,i=function(){t.unloadAll(r),e.inline||e.ui.styleSheetLoader.unloadAll(n)},o=function(){e.removed?i():e.on("remove",i)};if(e.contentStyles.length>0){var a="";pn.each(e.contentStyles,(function(e){a+=e+"\r\n"})),e.dom.addStyle(a)}var s=Eo.all(FB(e,r,n)).then(o).catch(o);return e.settings.content_style&&_B(e,e.settings.content_style),s},RB=function(e){var t=e.settings,n=e.getDoc(),r=e.getBody();Xm(e),t.browser_spellcheck||t.gecko_spellcheck||(n.body.spellcheck=!1,xB.setAttrib(r,"spellcheck","false")),e.quirks=yB(e),Ym(e);var i=Zf(e);void 0!==i&&(r.dir=i),t.protect&&e.on("BeforeSetContent",(function(e){pn.each(t.protect,(function(t){e.content=e.content.replace(t,(function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"}))}))})),e.on("SetContent",(function(){e.addVisual(e.getBody())})),e.on("compositionstart compositionend",(function(t){e.composing="compositionstart"===t.type}))},NB=function(e){FT(e)||e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"})},MB=function(e){!0!==e.removed&&(NB(e),UB(e))},IB=function(e,t){var n=e.settings,r=e.getElement(),i=e.getDoc();n.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(i.open(),i.write(e.iframeHTML),i.close()),e.inline&&(xB.addClass(r,"mce-content-body"),e.contentDocument=i=document,e.contentWindow=window,e.bodyElement=r,e.contentAreaContainer=r);var o=e.getBody();o.disabled=!0,e.readonly=!!n.readonly,e.readonly||(e.inline&&"static"===xB.getStyle(o,"position",!0)&&(o.style.position="relative"),o.contentEditable=e.getParam("content_editable_state",!0)),o.disabled=!1,e.editorUpload=bU(e),e.schema=Ws(CB(e)),e.dom=Wu(i,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:Hf(e),referrerPolicy:Vf(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=SB(e),e.serializer=PA(TB(e),e),e.selection=DS(e.dom,e.getWin(),e.serializer,e),e.annotator=Im(e),e.formatter=AU(e),e.undoManager=FU(e),e._nodeChangeDispatcher=new FI(e),e._selectionOverrides=bB(e),IR(e),NI(e),FT(e)||BI(e);var a=OI(e);FR(e,a),HR(e),zU(e);var s=RT(e);RB(e),s.fold((function(){PB(e).then((function(){return MB(e)}))}),(function(t){e.setProgressState(!0),PB(e).then((function(){t().then((function(t){e.setProgressState(!1),MB(e)}),(function(t){e.notificationManager.open({type:"error",text:String(t)}),MB(e)}))}))}))},BB=Wu.DOM,LB=function(e,t){if(document.domain!==window.location.hostname&&en.browser.isIE()){var n=dU("mce");e[n]=function(){IB(e)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return BB.setAttrib(t,"src",r),!0}return!1},zB=function(e,t,n,r){var i=xn.fromTag("iframe");return vi(i,r),vi(i,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),wl(i,"tox-edit-area__iframe"),i},WB=function(e){var t=yf(e)+"<html><head>";xf(e)!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=_f(e),r=wf(e),i=e.translate(Eh(e));return Df(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+Df(e)+'" />'),t+='</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+e.id+'" aria-label="'+i+'"><br></body></html>',t},jB=function(e,t){var n=e.translate("Rich Text Area"),r=zB(e.id,n,t.height,bf(e)).dom;r.onload=function(){r.onload=null,e.fire("load")};var i=LB(e,r);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=r,e.iframeHTML=WB(e),BB.add(t.iframeContainer,r),i},HB=function(e,t){var n=jB(e,t);t.editorContainer&&(BB.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=BB.isHidden(t.editorContainer)),e.getElement().style.display="none",BB.setAttrib(e.id,"aria-hidden","true"),n||IB(e)},VB=Wu.DOM,qB=function(e,t,n){var r=HE.get(n),i=HE.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=pn.trim(n),r&&-1===pn.inArray(t,n)){if(pn.each(HE.dependencies(n),(function(n){qB(e,t,n)})),e.plugins[n])return;try{var o=new r(e,i,e.$);e.plugins[n]=o,o.init&&(o.init(e,i),t.push(n))}catch(UW){tU(e,n,UW)}}},$B=function(e){return e.replace(/^\-/,"")},GB=function(e){var t=[];pn.each(Dh(e).split(/[ ,]/),(function(n){qB(e,t,$B(n))}))},XB=function(e){var t=pn.trim(If(e)),n=e.ui.registry.getAll().icons,r=Ve(Ve({},AE.get("default").icons),AE.get(t).icons);we(r,(function(t,r){Fe(n,r)||e.ui.registry.addIcon(r,t)}))},YB=function(e){var t=ih(e);if(v(t)){e.settings.theme=$B(t);var n=VE.get(t);e.theme=new n(e,VE.urls[t]),e.theme.init&&e.theme.init(e,VE.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}},KB=function(e){return e.theme.renderUI()},ZB=function(e){var t=e.getElement(),n=ih(e),r=n(e,t);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||e.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||e.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:t.offsetHeight,r},JB=function(e){return{editorContainer:e,iframeContainer:e,api:{}}},QB=function(e){var t=VB.create("div");return VB.insertAfter(t,e),JB(t)},eL=function(e){var t=e.getElement();return e.inline?JB(null):QB(t)},tL=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,v(ih(e))?KB(e):k(ih(e))?ZB(e):eL(e)},nL=function(e,t){var n={show:V.from(t.show).getOr(S),hide:V.from(t.hide).getOr(S),disable:V.from(t.disable).getOr(S),isDisabled:V.from(t.isDisabled).getOr(B),enable:function(){e.mode.isReadOnly()||V.from(t.enable).map(I)}};e.ui=Ve(Ve({},e.ui),n)},rL=function(e){e.fire("ScriptsLoaded"),XB(e),YB(e),GB(e);var t=tL(e);nL(e,V.from(t.api).getOr({}));var n={editorContainer:t.editorContainer,iframeContainer:t.iframeContainer};return e.editorContainer=n.editorContainer?n.editorContainer:null,sU(e),e.inline?IB(e):HB(e,n)},iL=Wu.DOM,oL=function(e){return"-"===e.charAt(0)},aL=function(e,t){var n=qf(t),r=$f(t);if(!1===ul.hasCode(n)&&"en"!==n){var i=""!==r?r:t.editorManager.baseURL+"/langs/"+n+".js";e.add(i,S,void 0,(function(){eU(t,i,n)}))}},sL=function(e,t,n,r){var i=ih(t);if(v(i)){if(!oL(i)&&!Fe(VE.urls,i)){var o=dh(t);o?VE.load(i,t.documentBaseURI.toAbsolute(o)):VE.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue((function(){VE.waitFor(i,r)}))}else r()},cL=function(e){return V.from(Bf(e)).filter((function(e){return e.length>0})).map((function(e){return{url:e,name:V.none()}}))},uL=function(e,t,n){return V.from(t).filter((function(e){return e.length>0&&!AE.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons"+n+".js",name:V.some(t)}}))},lL=function(e,t,n){var r=uL(t,"default",n),i=cL(t).orThunk((function(){return uL(t,If(t),"")}));Q(li([r,i]),(function(n){e.add(n.url,S,void 0,(function(){QE(t,n.url,n.name.getOrUndefined())}))}))},dL=function(e,t){pn.each(Ch(e),(function(t,n){HE.load(n,t,S,void 0,(function(){JE(e,t,n)})),e.settings.plugins+=" "+n})),pn.each(Dh(e).split(/[ ,]/),(function(n){if(n=pn.trim(n),n&&!HE.urls[n])if(oL(n)){n=n.substr(1,n.length);var r=HE.dependencies(n);pn.each(r,(function(n){var r={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"},i=HE.createUrl(r,n);HE.load(i.resource,i,S,void 0,(function(){JE(e,i.prefix+i.resource+i.suffix,i.resource)}))}))}else{var i={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"};HE.load(n,i,S,void 0,(function(){JE(e,i.prefix+i.resource+i.suffix,n)}))}}))},fL=function(e,t){var n=Yu.ScriptLoader;sL(n,e,t,(function(){aL(n,e),lL(n,e,t),dL(e,t),n.loadQueue((function(){e.removed||rL(e)}),e,(function(){e.removed||rL(e)}))}))},hL=function(e,t){return Lo.forElement(e,{contentCssCors:wh(t),referrerPolicy:Vf(t)})},pL=function(e){var t=e.id;ul.setCode(qf(e));var n=function(){iL.unbind(window,"ready",n),e.render()};if(rc.Event.domLoaded){if(e.getElement()&&en.contentEditable){var r=xn.fromDom(e.getElement()),i=wi(r);e.on("remove",(function(){ee(r.dom.attributes,(function(e){return _i(r,e.name)})),vi(r,i)})),e.ui.styleSheetLoader=hL(r,e),fh(e)?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");var o=e.getElement().form||iL.getParent(t,"form");o&&(e.formElement=o,hh(e)&&!Jr(e.getElement())&&(iL.insertAfter(iL.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},iL.bind(o,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!ph(e)||o.submit.nodeType||o.submit.length||o._mceOldSubmit||(o._mceOldSubmit=o.submit,o.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),o._mceOldSubmit(o)})),e.windowManager=$E(e),e.notificationManager=jE(e),gh(e)&&e.on("GetContent",(function(e){e.save&&(e.content=iL.encode(e.content))})),mh(e)&&e.on("submit",(function(){e.initialized&&e.save()})),vh(e)&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),fL(e,e.suffix)}}else iL.bind(window,"ready",n)},gL=function(e,t){return sS(e,t)},mL={"font-size":"size","font-family":"face"},vL=function(e,t,n){var r=function(t){return Si(t,e).orThunk((function(){return"font"===In(t)?Oe(mL,e).bind((function(e){return yi(t,e)})):V.none()}))},i=function(e){return Pn(xn.fromDom(t),e)};return ED(xn.fromDom(n),(function(e){return r(e)}),i)},bL=function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},yL=function(e,t){return V.from(Wu.DOM.getStyle(t,e,!0))},xL=function(e){return function(t,n){return V.from(n).map(xn.fromDom).filter(Wn).bind((function(n){return vL(e,t,n.dom).or(yL(e,n.dom))})).getOr("")}},_L=xL("font-size"),wL=A(bL,xL("font-family")),DL=function(e){return Zp(e.getBody()).map((function(e){var t=e.container();return Qr(t)?t.parentNode:t}))},CL=function(e){return V.from(e.selection.getRng()).bind((function(t){var n=e.getBody(),r=t.startContainer===n&&0===t.startOffset;return r?V.none():V.from(e.selection.getStart(!0))}))},kL=function(e,t){return CL(e).orThunk(P(DL,e)).map(xn.fromDom).filter(Wn).bind(t)},TL=function(e,t){return kL(e,E(V.some,t))},SL=function(e,t){if(/^[0-9.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&n<=7){var r=Of(e),i=Ff(e);return i?i[n-1]||t:r[n-1]||t}return t}return t},AL=function(e){var t=e.split(/\s*,\s*/);return J(t,(function(e){return-1===e.indexOf(" ")||ut(e,'"')||ut(e,"'")?e:"'"+e+"'"})).join(",")},EL=function(e,t){var n=SL(e,t);e.formatter.toggle("fontname",{value:AL(n)}),e.nodeChanged()},UL=function(e){return TL(e,(function(t){return wL(e.getBody(),t.dom)})).getOr("")},OL=function(e,t){e.formatter.toggle("fontsize",{value:SL(e,t)}),e.nodeChanged()},FL=function(e){return TL(e,(function(t){return _L(e.getBody(),t.dom)})).getOr("")},PL=function(e){return TL(e,(function(t){var n=xn.fromDom(e.getBody()),r=ED(t,(function(e){return Si(e,"line-height")}),P(Pn,n)),i=function(){var e=parseFloat(ki(t,"line-height")),n=parseFloat(ki(t,"font-size"));return String(e/n)};return r.getOrThunk(i)})).getOr("")},RL=function(e,t){e.formatter.toggle("lineheight",{value:String(t)}),e.nodeChanged()},NL=function(e){if("string"!==typeof e){var t=pn.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}return{content:e,details:{}}},ML=function(e,t){var n=NL(t);oS(e,n.content,n.details)},IL=pn.each,BL=pn.map,LL=pn.inArray,zL=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(e,t,n,r){var i,o=!1,a=this;if(!a.editor.removed){if("mcefocus"!==e.toLowerCase()&&(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?zb(a.editor):a.editor.focus()),r=a.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;var s=e.toLowerCase();if(i=a.commands.exec[s])return i(s,t,n),a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(IL(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),o=!0,!1})),o)return o;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{o=a.editor.getDoc().execCommand(e,t,n)}catch(c){}return!!o&&(a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},e.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(n){}return!1}},e.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(n){}}},e.prototype.addCommands=function(e,t){void 0===t&&(t="exec");var n=this;IL(e,(function(e,r){IL(r.toLowerCase().split(","),(function(r){n.commands[t][r]=e}))}))},e.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,i,o,a){return t.call(n||r.editor,i,o,a)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(t){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(e){var t=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":S,"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},mceFocus:function(t,n,r){my(e,r)},"Cut,Copy,Paste":function(n){var r,i=e.getDoc();try{t.execNativeCommand(n)}catch(a){r=!0}if("paste"!==n||i.queryCommandEnabled(n)||(r=!0),r||!i.queryCommandSupported(n)){var o=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");en.mac&&(o=o.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:o,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),IL("left,center,right,justify".split(","),(function(t){r!==t&&e.formatter.remove("align"+t)})),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r;t.execNativeCommand(n);var i=e.dom.getParent(e.selection.getNode(),"ol,ul");i&&(r=i.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(t.storeSelection(),e.dom.split(r,i),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,{value:r})},FontName:function(t,n,r){EL(e,r)},FontSize:function(t,n,r){OL(e,r)},LineHeight:function(t,n,r){RL(e,r)},Lang:function(e,n,r){t.toggleFormat(e,{value:r.code,customValue:r.customCode})},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,i){var o=i||e.selection.getNode();o!==e.getBody()&&(t.storeSelection(),e.dom.remove(o,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var i=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&i++===r)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){ML(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var i=e.getContent();e.setContent(i.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(t,n,r){sI(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){SR(e,t)},mceRepaint:S,InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){"string"===typeof r&&(r={href:r});var i=e.dom.getParent(e.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),i&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,i)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),oi);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return VM(e,r),!0}});var n=function(t){return function(){var n=e.selection,r=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks(),i=BL(r,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==LL(i,!0)}};t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return DR(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",(function(){return UL(e)}),this),t.addQueryValueHandler("FontSize",(function(){return FL(e)}),this),t.addQueryValueHandler("LineHeight",(function(){return PL(e)}),this)},e}(),WL="data-mce-contenteditable",jL=function(e,t,n){kl(e,t)&&!1===n?Cl(e,t):n&&wl(e,t)},HL=function(e,t,n){try{e.getDoc().execCommand(t,!1,String(n))}catch(r){}},VL=function(e,t){e.dom.contentEditable=t?"true":"false"},qL=function(e){Q(Sl(e,'*[contenteditable="true"]'),(function(e){mi(e,WL,"true"),VL(e,!1)}))},$L=function(e){Q(Sl(e,"*["+WL+'="true"]'),(function(e){_i(e,WL),VL(e,!0)}))},GL=function(e){V.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")}))},XL=function(e){e.selection.setRng(e.selection.getRng())},YL=function(e,t){var n=xn.fromDom(e.getBody());jL(n,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),GL(e),e.readonly=!0,VL(n,!1),qL(n)):(e.readonly=!1,VL(n,!0),$L(n),HL(e,"StyleWithCSS",!1),HL(e,"enableInlineTableEditing",!1),HL(e,"enableObjectResizing",!1),hy(e)&&e.focus(),XL(e),e.nodeChanged())},KL=function(e){return e.readonly},ZL=function(e){e.parser.addAttributeFilter("contenteditable",(function(t){KL(e)&&Q(t,(function(e){e.attr(WL,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(WL,(function(t){KL(e)&&Q(t,(function(e){e.attr("contenteditable",e.attr(WL))}))})),e.serializer.addTempAttr(WL)},JL=function(e){e.serializer?ZL(e):e.on("PreInit",(function(){ZL(e)}))},QL=function(e){return"click"===e.type},ez=function(e,t){var n=function(t){return Pn(t,xn.fromDom(e.getBody()))};return Ao(t,"a",n).bind((function(e){return yi(e,"href")}))},tz=function(e,t){if(QL(t)&&!tv.metaKeyPressed(t)){var n=xn.fromDom(t.target);ez(e,n).each((function(n){if(t.preventDefault(),/^#/.test(n)){var r=e.dom.select(n+',[name="'+st(n,"#")+'"]');r.length&&e.selection.scrollIntoView(r[0],!0)}else window.open(n,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")}))}},nz=function(e){e.on("ShowCaret",(function(t){KL(e)&&t.preventDefault()})),e.on("ObjectSelected",(function(t){KL(e)&&t.preventDefault()}))},rz=pn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),iz=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||B}return e.isNative=function(e){return!!rz[e.toLowerCase()]},e.prototype.fire=function(e,t){var n=e.toLowerCase(),r=Ys(n,t||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(r);var i=this.bindings[n];if(i)for(var o=0,a=i.length;o<a;o++){var s=i[o];if(!s.removed){if(s.once&&this.off(n,s.func),r.isImmediatePropagationStopped())return r;if(!1===s.func.call(this.scope,r))return r.preventDefault(),r}}return r},e.prototype.on=function(e,t,n,r){if(!1===t&&(t=B),t){var i={func:t,removed:!1};r&&pn.extend(i,r);var o=e.toLowerCase().split(" "),a=o.length;while(a--){var s=o[a],c=this.bindings[s];c||(c=[],this.toggleEvent(s,!0)),c=n?$e([i],c,!0):$e($e([],c,!0),[i],!1),this.bindings[s]=c}}return this},e.prototype.off=function(e,t){var n=this;if(e){var r=e.toLowerCase().split(" "),i=r.length;while(i--){var o=r[i],a=this.bindings[o];if(!o)return we(this.bindings,(function(e,t){n.toggleEvent(t,!1),delete n.bindings[t]})),this;if(a){if(t){var s=te(a,(function(e){return e.func===t}));a=s.fail,this.bindings[o]=a,Q(s.pass,(function(e){e.removed=!0}))}else a.length=0;a.length||(this.toggleEvent(e,!1),delete this.bindings[o])}}}else we(this.bindings,(function(e,t){n.toggleEvent(t,!1)})),this.bindings={};return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),oz=function(e){return e._eventDispatcher||(e._eventDispatcher=new iz({scope:e,toggleEvent:function(t,n){iz.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},az={fire:function(e,t,n){var r=this;if(r.removed&&"remove"!==e&&"detach"!==e)return t;var i=oz(r).fire(e,t);if(!1!==n&&r.parent){var o=r.parent();while(o&&!i.isPropagationStopped())o.fire(e,i,!1),o=o.parent()}return i},on:function(e,t,n){return oz(this).on(e,t,n)},off:function(e,t){return oz(this).off(e,t)},once:function(e,t){return oz(this).once(e,t)},hasEventListeners:function(e){return oz(this).has(e)}},sz=Wu.DOM,cz=function(e,t){if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t))return e.getDoc().documentElement;var n=nh(e);return n?(e.eventRoot||(e.eventRoot=sz.select(n)[0]),e.eventRoot):e.getBody()},uz=function(e){return!e.hidden&&!KL(e)},lz=function(e,t,n){uz(e)?e.fire(t,n):KL(e)&&tz(e,n)},dz=function(e,t){var n;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed){var r=cz(e,t);if(nh(e)){if(hP||(hP={},e.editorManager.on("removeEditor",(function(){e.editorManager.activeEditor||hP&&(we(hP,(function(t,n){e.dom.unbind(cz(e,n))})),hP=null)}))),hP[t])return;n=function(n){var r=n.target,i=e.editorManager.get(),o=i.length;while(o--){var a=i[o].getBody();(a===r||sz.isChildOf(r,a))&&lz(i[o],t,n)}},hP[t]=n,sz.bind(r,t,n)}else n=function(n){lz(e,t,n)},sz.bind(r,t,n),e.delegates[t]=n}},fz=Ve(Ve({},az),{bindPendingEventDelegates:function(){var e=this;pn.each(e._pendingNativeEvents,(function(t){dz(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(n.removed||(t?n.initialized?dz(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(cz(n,e),e,n.delegates[e]),delete n.delegates[e])))},unbindAllNativeEvents:function(){var e=this,t=e.getBody(),n=e.dom;e.delegates&&(we(e.delegates,(function(t,n){e.dom.unbind(cz(e,n),n,t)})),delete e.delegates),!e.inline&&t&&n&&(t.onload=null,n.unbind(e.getWin()),n.unbind(e.getDoc())),n&&(n.unbind(t),n.unbind(e.getContainer()))}}),hz=["design","readonly"],pz=function(e,t,n,r){var i=n[t.get()],o=n[r];try{o.activate()}catch(UW){return void console.error("problem while activating editor mode "+r+":",UW)}i.deactivate(),i.editorReadOnly!==o.editorReadOnly&&YL(e,o.editorReadOnly),t.set(r),qm(e,r)},gz=function(e,t,n,r){if(r!==n.get()){if(!Fe(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?pz(e,n,t,r):e.on("init",(function(){return pz(e,n,t,r)}))}},mz=function(e,t,n){var r;if(K(hz,t))throw new Error("Cannot override default mode "+t);return Ve(Ve({},e),(r={},r[t]=Ve(Ve({},n),{deactivate:function(){try{n.deactivate()}catch(UW){console.error("problem while deactivating editor mode "+t+":",UW)}}}),r))},vz=function(e){var t=Ku("design"),n=Ku({design:{activate:S,deactivate:S,editorReadOnly:!1},readonly:{activate:S,deactivate:S,editorReadOnly:!0}});return JL(e),nz(e),{isReadOnly:function(){return KL(e)},set:function(r){return gz(e,n.get(),t,r)},get:function(){return t.get()},register:function(e,t){n.set(mz(n.get(),e,t))}}},bz=pn.each,yz=pn.explode,xz={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},_z=pn.makeMap("alt,ctrl,shift,meta,access"),wz=function(e){var t,n={};bz(yz(e.toLowerCase(),"+"),(function(e){e in _z?n[e]=!0:/^[0-9]{2,}$/.test(e)?n.keyCode=parseInt(e,10):(n.charCode=e.charCodeAt(0),n.keyCode=xz[e]||e.toUpperCase().charCodeAt(0))}));var r=[n.keyCode];for(t in _z)n[t]?r.push(t):n[t]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,en.mac?n.ctrl=!0:n.shift=!0),n.meta&&(en.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n},Dz=function(){function e(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",(function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(bz(t.shortcuts,(function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0})),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))}))}return e.prototype.add=function(e,t,n,r){var i=this,o=i.normalizeCommandFunc(n);return bz(yz(pn.trim(e)),(function(e){var n=i.createShortcut(e,t,o,r);i.shortcuts[n.id]=n})),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},e.prototype.normalizeCommandFunc=function(e){var t=this,n=e;return"string"===typeof n?function(){t.editor.execCommand(n,!1,null)}:pn.isArray(n)?function(){t.editor.execCommand(n[0],n[1],n[2])}:n},e.prototype.createShortcut=function(e,t,n,r){var i=pn.map(yz(e,">"),wz);return i[i.length-1]=pn.extend(i[i.length-1],{func:n,scope:r||this.editor}),pn.extend(i[0],{desc:this.editor.translate(t),subpatterns:i.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123},e.prototype.matchShortcut=function(e,t){return!!t&&(t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&(t.alt===e.altKey&&t.shift===e.shiftKey&&(!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0))))},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),Cz=function(){var e={},t={},n={},r={},i={},o={},a={},s=function(e,t){return function(n,r){return e[n.toLowerCase()]=Ve(Ve({},r),{type:t})}},c=function(e,t){return r[e.toLowerCase()]=t};return{addButton:s(e,"button"),addGroupToolbarButton:s(e,"grouptoolbarbutton"),addToggleButton:s(e,"togglebutton"),addMenuButton:s(e,"menubutton"),addSplitButton:s(e,"splitbutton"),addMenuItem:s(t,"menuitem"),addNestedMenuItem:s(t,"nestedmenuitem"),addToggleMenuItem:s(t,"togglemenuitem"),addAutocompleter:s(n,"autocompleter"),addContextMenu:s(i,"contextmenu"),addContextToolbar:s(o,"contexttoolbar"),addContextForm:s(o,"contextform"),addSidebar:s(a,"sidebar"),addIcon:c,getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:i,contextToolbars:o,sidebars:a}}}},kz=function(){var e=Cz();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}},Tz=Wu.DOM,Sz=pn.extend,Az=pn.each,Ez=pn.resolve,Uz=en.ie,Oz=function(){function e(e,t,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,Sz(this,fz),this.settings=wE(this,e,this.documentBaseUrl,n.defaultSettings,t),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(Yu.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Wu.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),ll.languageLoad=this.settings.language_load,ll.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new sA(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new Dz(this),this.editorCommands=new zL(this),this.settings.cache_suffix&&(en.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:kz(),styleSheetLoader:void 0,show:S,hide:S,enable:S,disable:S,isDisabled:B};var i=this,o=vz(i);this.mode=o,this.setMode=o.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Pu.overrideDefaults((function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}}))}return e.prototype.render=function(){pL(this)},e.prototype.focus=function(e){this.execCommand("mceFocus",!1,e)},e.prototype.hasFocus=function(){return fy(this)},e.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i=this,o=i.settings[e];if(o)return i.callbackLookup&&(r=i.callbackLookup[e])&&(o=r.func,r=r.scope),"string"===typeof o&&(r=o.replace(/\.\w+$/,""),r=r?Ez(r):0,o=Ez(o),i.callbackLookup=i.callbackLookup||{},i.callbackLookup[e]={func:o,scope:r}),o.apply(r||i,t)},e.prototype.translate=function(e){return ul.translate(e)},e.prototype.getParam=function(e,t,n){return TE(this,e,t,n)},e.prototype.hasPlugin=function(e,t){var n=K(Dh(this).split(/[ ,]/),e);return!!n&&(!t||void 0!==HE.get(e))},e.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},e.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},e.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},e.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},e.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},e.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},e.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},e.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},e.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},e.prototype.show=function(){var e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable="true":(Tz.show(e.getContainer()),Tz.hide(e.id)),e.load(),e.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(Uz&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(Tz.hide(e.getContainer()),Tz.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},e.prototype.load=function(e){var t,n=this,r=n.getElement();if(n.removed)return"";if(r){e=e||{},e.load=!0;var i=Jr(r)?r.value:r.innerHTML;return t=n.setContent(i,e),e.element=r,e.no_events||n.fire("LoadContent",e),e.element=r=null,t}},e.prototype.save=function(e){var t,n,r=this,i=r.getElement();if(i&&r.initialized&&!r.removed)return e=e||{},e.save=!0,e.element=i,t=e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,Jr(i)?i.value=t:(!e.is_removing&&r.inline||(i.innerHTML=t),(n=Tz.getParent(r.id,"form"))&&Az(n.elements,(function(e){if(e.name===r.id)return e.value=t,!1}))),e.element=i=null,!1!==e.set_dirty&&r.setDirty(!1),t},e.prototype.setContent=function(e,t){return MA(this,e,t)},e.prototype.getContent=function(e){return NA(this,e)},e.prototype.insertContent=function(e,t){t&&(e=Sz({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){void 0===e?MA(this,this.startContent,{format:"raw"}):MA(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},e.prototype.isDirty=function(){return!this.isNotDirty},e.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},e.prototype.getContainer=function(){var e=this;return e.container||(e.container=Tz.get(e.editorContainer||e.id+"_parent")),e.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=Tz.get(this.id)),this.targetElm},e.prototype.getWin=function(){var e,t=this;return t.contentWindow||(e=t.iframeElement,e&&(t.contentWindow=e.contentWindow)),t.contentWindow},e.prototype.getDoc=function(){var e,t=this;return t.contentDocument||(e=t.getWin(),e&&(t.contentDocument=e.document)),t.contentDocument},e.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},e.prototype.convertURL=function(e,t,n){var r=this,i=r.settings;return i.urlconverter_callback?r.execCallback("urlconverter_callback",e,n,!0,t):!i.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:i.relative_urls?r.documentBaseURI.toRelative(e):(e=r.documentBaseURI.toAbsolute(e,i.remove_script_host),e)},e.prototype.addVisual=function(e){gL(this,e)},e.prototype.remove=function(){jA(this)},e.prototype.destroy=function(e){HA(this,e)},e.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},e.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},e.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},e.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},e.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},e.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},e}(),Fz=Wu.DOM,Pz=pn.explode,Rz=pn.each,Nz=pn.extend,Mz=0,Iz=!1,Bz=[],Lz=[],zz=function(e){return"length"!==e},Wz=function(e){var t=e.type;Rz($z.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e);break}}))},jz=function(e){e!==Iz&&(e?Pu(window).on("resize scroll",Wz):Pu(window).off("resize scroll",Wz),Iz=e)},Hz=function(e){var t=Lz;delete Bz[e.id];for(var n=0;n<Bz.length;n++)if(Bz[n]===e){Bz.splice(n,1);break}return Lz=ne(Lz,(function(t){return e!==t})),$z.activeEditor===e&&($z.activeEditor=Lz.length>0?Lz[0]:null),$z.focusedEditor===e&&($z.focusedEditor=null),t.length!==Lz.length},Vz=function(e){return e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(Hz(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0,e=null),e},qz="CSS1Compat"!==document.compatMode,$z=Ve(Ve({},az),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Pu,majorVersion:"5",minorVersion:"10.9",releaseDate:"2023-11-15",editors:Bz,i18n:ul,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t,n=this,r="";t=sA.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/"));var i=window.tinymce||window.tinyMCEPreInit;if(i)e=i.base||i.baseURL,r=i.suffix;else{for(var o=document.getElementsByTagName("script"),a=0;a<o.length;a++){var s=o[a].src||"";if(""!==s){var c=s.substring(s.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(s)){-1!==c.indexOf(".min")&&(r=".min"),e=s.substring(0,s.lastIndexOf("/"));break}}}if(!e&&document.currentScript){s=document.currentScript.src;-1!==s.indexOf(".min")&&(r=".min"),e=s.substring(0,s.lastIndexOf("/"))}}n.baseURL=new sA(t).toAbsolute(e),n.documentBaseURL=t,n.baseURI=new sA(n.baseURL),n.suffix=r,ny(n)},overrideDefaults:function(e){var t=e.base_url;t&&this._setBaseUrl(t);var n=e.suffix;e.suffix&&(this.suffix=n),this.defaultSettings=e;var r=e.plugin_base_urls;void 0!==r&&we(r,(function(e,t){ll.PluginManager.urls[t]=e}))},init:function(e){var t,n=this,r=pn.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),i=function(e,t){return e.inline&&t.tagName.toLowerCase()in r},o=function(e){var t=e.id;return t||(t=Oe(e,"name").filter((function(e){return!Fz.get(e)})).getOrThunk(Fz.uniqueId),e.setAttribute("id",t)),t},a=function(t){var r=e[t];if(r)return r.apply(n,[])},s=function(e,t){return t.constructor===RegExp?t.test(e.className):Fz.hasClass(e,t)},c=function(e){var t=[];if(en.browser.isIE()&&en.browser.version.major<11)return nU("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(qz)return nU("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return Rz(e.types,(function(e){t=t.concat(Fz.select(e.selector))})),t;if(e.selector)return Fz.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":var n=e.elements||"";n.length>0&&Rz(Pz(n),(function(e){var n=Fz.get(e);n?t.push(n):Rz(document.forms,(function(n){Rz(n.elements,(function(n){n.name===e&&(e="mce_editor_"+Mz++,Fz.setAttrib(n,"id",e),t.push(n))}))}))}));break;case"textareas":case"specific_textareas":Rz(Fz.select("textarea"),(function(n){e.editor_deselector&&s(n,e.editor_deselector)||e.editor_selector&&!s(n,e.editor_selector)||t.push(n)}));break}return t},u=function(e){t=e},l=function(){var t,r=0,s=[],d=function(e,i,o){var a=new Oz(e,i,n);s.push(a),a.on("init",(function(){++r===t.length&&u(s)})),a.targetElm=a.targetElm||o,a.render()};Fz.unbind(window,"ready",l),a("onpageload"),t=Pu.unique(c(e)),e.types?Rz(e.types,(function(n){pn.each(t,(function(t){return!Fz.is(t,n.selector)||(d(o(t),Nz({},e,n),t),!1)}))})):(pn.each(t,(function(e){Vz(n.get(e.id))})),t=pn.grep(t,(function(e){return!n.get(e.id)})),0===t.length?u([]):Rz(t,(function(t){i(e,t)?nU("Could not initialize inline editor on invalid inline target element",t):d(o(t),e,t)})))};return n.settings=e,Fz.bind(window,"ready",l),new Eo((function(e){t?e(t):u=function(t){e(t)}}))},get:function(e){return 0===arguments.length?Lz.slice(0):v(e)?ae(Lz,(function(t){return t.id===e})).getOr(null):T(e)&&Lz[e]?Lz[e]:null},add:function(e){var t=this,n=Bz[e.id];return n===e||(null===t.get(e.id)&&(zz(e.id)&&(Bz[e.id]=e),Bz.push(e),Lz.push(e)),jz(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),pP||(pP=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",pP))),e},createEditor:function(e,t){return this.add(new Oz(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!v(e))return n=e,x(r.get(n.id))?null:(Hz(n)&&r.fire("RemoveEditor",{editor:n}),0===Lz.length&&window.removeEventListener("beforeunload",pP),n.remove(),jz(Lz.length>0),n);Rz(Fz.select(e),(function(e){n=r.get(e.id),n&&r.remove(n)}))}else for(t=Lz.length-1;t>=0;t--)r.remove(Lz[t])},execCommand:function(e,t,n){var r=this,i=r.get(n);switch(e){case"mceAddEditor":return r.get(n)||new Oz(n,r.settings,r).render(),!0;case"mceRemoveEditor":return i&&i.remove(),!0;case"mceToggleEditor":return i?(i.isHidden()?i.show():i.hide(),!0):(r.execCommand("mceAddEditor",!1,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(e,t,n)},triggerSave:function(){Rz(Lz,(function(e){e.save()}))},addI18n:function(e,t){ul.add(e,t)},translate:function(e){return ul.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new sA(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new sA(this.baseURL)}});$z.setup();var Gz,Xz,Yz=Math.min,Kz=Math.max,Zz=Math.round,Jz=function(e,t,n){var r=t.x,i=t.y,o=e.w,a=e.h,s=t.w,c=t.h,u=(n||"").split("");return"b"===u[0]&&(i+=c),"r"===u[1]&&(r+=s),"c"===u[0]&&(i+=Zz(c/2)),"c"===u[1]&&(r+=Zz(s/2)),"b"===u[3]&&(i-=a),"r"===u[4]&&(r-=o),"c"===u[3]&&(i-=Zz(a/2)),"c"===u[4]&&(r-=Zz(o/2)),rW(r,i,o,a)},Qz=function(e,t,n,r){var i,o;for(o=0;o<r.length;o++)if(i=Jz(e,t,r[o]),i.x>=n.x&&i.x+i.w<=n.w+n.x&&i.y>=n.y&&i.y+i.h<=n.h+n.y)return r[o];return null},eW=function(e,t,n){return rW(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},tW=function(e,t){var n=Kz(e.x,t.x),r=Kz(e.y,t.y),i=Yz(e.x+e.w,t.x+t.w),o=Yz(e.y+e.h,t.y+t.h);return i-n<0||o-r<0?null:rW(n,r,i-n,o-r)},nW=function(e,t,n){var r=e.x,i=e.y,o=e.x+e.w,a=e.y+e.h,s=t.x+t.w,c=t.y+t.h,u=Kz(0,t.x-r),l=Kz(0,t.y-i),d=Kz(0,o-s),f=Kz(0,a-c);return r+=u,i+=l,n&&(o+=u,a+=l,r-=d,i-=f),o-=d,a-=f,rW(r,i,o-r,a-i)},rW=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},iW=function(e){return rW(e.left,e.top,e.width,e.height)},oW={inflate:eW,relativePosition:Jz,findBestRelativePosition:Qz,intersect:tW,clamp:nW,create:rW,fromClientRect:iW},aW=function(e,t,n){void 0===n&&(n=1e3);var r=!1,i=null,o=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r||(r=!0,null!==i&&(clearTimeout(i),i=null),e.apply(null,t))}},a=o(e),s=o(t),c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r||null!==i||(i=setTimeout((function(){return s.apply(null,e)}),n))};return{start:c,resolve:a,reject:s}},sW=function(){var e={},t={},n=function(n,r){var i='Script at URL "'+r+'" failed to load',o='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==e[n])return e[n];var a=new Eo((function(e,a){var s=aW(e,a);t[n]=s.resolve,Yu.ScriptLoader.loadScript(r,(function(){return s.start(o)}),(function(){return s.reject(i)}))}));return e[n]=a,a},r=function(n,r){void 0!==t[n]&&(t[n](r),delete t[n]),e[n]=Eo.resolve(r)};return{load:n,add:r}},cW=sW(),uW=pn.each,lW=pn.extend,dW=function(){};dW.extend=Gz=function(e){var t=this,n=t.prototype,r=function(){var e,t,n,r=this;if(!Xz&&(r.init&&r.init.apply(r,arguments),t=r.Mixins,t)){e=t.length;while(e--)n=t[e],n.init&&n.init.apply(r,arguments)}},i=function(){return this},o=function(e,t){return function(){var r=this,i=r._super;r._super=n[e];var o=t.apply(r,arguments);return r._super=i,o}};Xz=!0;var a=new t;return Xz=!1,e.Mixins&&(uW(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),n.Mixins&&(e.Mixins=n.Mixins.concat(e.Mixins))),e.Methods&&uW(e.Methods.split(","),(function(t){e[t]=i})),e.Properties&&uW(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){var t=this;return void 0!==e?(t[n]=e,t):t[n]}})),e.Statics&&uW(e.Statics,(function(e,t){r[t]=e})),e.Defaults&&n.Defaults&&(e.Defaults=lW({},n.Defaults,e.Defaults)),we(e,(function(e,t){"function"===typeof e&&n[t]?a[t]=o(t,e):a[t]=e})),r.prototype=a,r.constructor=r,r.extend=Gz,r};var fW,hW=Math.min,pW=Math.max,gW=Math.round,mW=function(e){var t={},n=0,r=0,i=0,o=function(e,t,n){var r,i,o;r=0,i=0,o=0,e/=255,t/=255,n/=255;var a=hW(e,hW(t,n)),s=pW(e,pW(t,n));if(a===s)return o=a,{h:0,s:0,v:100*o};var c=e===a?t-n:n===a?e-t:n-e;return r=e===a?3:n===a?1:5,r=60*(r-c/(s-a)),i=(s-a)/s,o=s,{h:gW(r),s:gW(100*i),v:gW(100*o)}},a=function(e,t,o){if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,o=parseInt(o,10)/100,t=pW(0,hW(t,1)),o=pW(0,hW(o,1)),0!==t){var a=e/60,s=o*t,c=s*(1-Math.abs(a%2-1)),u=o-s;switch(Math.floor(a)){case 0:n=s,r=c,i=0;break;case 1:n=c,r=s,i=0;break;case 2:n=0,r=s,i=c;break;case 3:n=0,r=c,i=s;break;case 4:n=c,r=0,i=s;break;case 5:n=s,r=0,i=c;break;default:n=r=i=0}n=gW(255*(n+u)),r=gW(255*(r+u)),i=gW(255*(i+u))}else n=r=i=gW(255*o)},s=function(){var e=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+e(n)+e(r)+e(i)},c=function(){return{r:n,g:r,b:i}},u=function(){return o(n,r,i)},l=function(e){var o;return"object"===typeof e?"r"in e?(n=e.r,r=e.g,i=e.b):"v"in e&&a(e.h,e.s,e.v):(o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(o[1],10),r=parseInt(o[2],10),i=parseInt(o[3],10)):(o=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(o[1],16),r=parseInt(o[2],16),i=parseInt(o[3],16)):(o=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),i=parseInt(o[3]+o[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,i=i<0?0:i>255?255:i,t};return e&&l(e),t.toRgb=c,t.toHsv=u,t.toHex=s,t.parse=l,t},vW=function(e){var t=JSON.stringify(e);return v(t)?t.replace(/[\u0080-\uFFFF]/g,(function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t})):t},bW={serialize:vW,parse:function(e){try{return JSON.parse(e)}catch(t){}}},yW={callbacks:{},count:0,send:function(e){var t=this,n=Wu.DOM,r=void 0!==e.count?e.count:t.count,i="tinymce_jsonp_"+r;t.callbacks[r]=function(o){n.remove(i),delete t.callbacks[r],e.callback(o)},n.add(n.doc.body,"script",{id:i,src:e.url,type:"text/javascript"}),t.count++}},xW=Ve(Ve({},az),{send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||n++>1e4?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,n>1e4?"TIMED_OUT":"GENERAL",t,e),t=null):Mo.setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",xW.fire("beforeInitialize",{settings:e}),t=new XMLHttpRequest,t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&pn.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t=xW.fire("beforeSend",{xhr:t,settings:e}).xhr,t.send(e.data),!e.async)return r();Mo.setTimeout(r,10)}}),_W=pn.extend,wW=function(){function e(e){this.settings=_W({},e),this.count=0}return e.sendRPC=function(t){return(new e).send(t)},e.prototype.send=function(e){var t=e.error,n=e.success,r=_W(this.settings,e);r.success=function(e,i){e=bW.parse(e),"undefined"===typeof e&&(e={error:"JSON Parse error."}),e.error?t.call(r.error_scope||r.scope,e.error,i):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=bW.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",xW.send(r)},e}(),DW=function(){return function(){var e={},t=[],n={getItem:function(t){var n=e[t];return n||null},setItem:function(n,r){t.push(n),e[n]=String(r)},key:function(e){return t[e]},removeItem:function(n){t=t.filter((function(e){return e===n})),delete e[n]},clear:function(){t=[],e={}},length:0};return Object.defineProperty(n,"length",{get:function(){return t.length},configurable:!1,enumerable:!1}),n}()};try{var CW="__storage_test__";fW=window.localStorage,fW.setItem(CW,CW),fW.removeItem(CW)}catch(UW){fW=DW()}var kW=fW,TW={geom:{Rect:oW},util:{Promise:Eo,Delay:Mo,Tools:pn,VK:tv,URI:sA,Class:dW,EventDispatcher:iz,Observable:az,I18n:ul,XHR:xW,JSON:bW,JSONRequest:wW,JSONP:yW,LocalStorage:kW,Color:mW,ImageUploader:mU},dom:{EventUtils:rc,Sizzle:Wc,DomQuery:Pu,TreeWalker:zo,TextSeeker:Yl,DOMUtils:Wu,ScriptLoader:Yu,RangeUtils:Cv,Serializer:PA,StyleSheetLoader:Io,ControlSelection:rv,BookmarkManager:Bm,Selection:DS,Event:rc.Event},html:{Styles:Hs,Entities:As,Node:Ey,Schema:Ws,SaxParser:gA,DomParser:xA,Writer:Jy,Serializer:Qy},Env:en,AddOnManager:ll,Annotator:Im,Formatter:AU,UndoManager:FU,EditorCommands:zL,WindowManager:$E,NotificationManager:jE,EditorObservable:fz,Shortcuts:Dz,Editor:Oz,FocusManager:jb,EditorManager:$z,DOM:Wu.DOM,ScriptLoader:Yu.ScriptLoader,PluginManager:HE,ThemeManager:VE,IconManager:AE,Resource:cW,trim:pn.trim,isArray:pn.isArray,is:pn.is,toArray:pn.toArray,makeMap:pn.makeMap,each:pn.each,map:pn.map,grep:pn.grep,inArray:pn.inArray,extend:pn.extend,create:pn.create,walk:pn.walk,createNS:pn.createNS,resolve:pn.resolve,explode:pn.explode,_addCacheSuffix:pn._addCacheSuffix,isOpera:en.opera,isWebKit:en.webkit,isIE:en.ie,isGecko:en.gecko,isMac:en.mac},SW=pn.extend($z,TW),AW=function(t){try{e.exports=t}catch(n){}},EW=function(e){window.tinymce=e,window.tinyMCE=e};EW(SW),AW(SW)})()}).call(this,n("c8ba"))},e613:function(e,t,n){},e693:function(e,t,n){},e7f5:function(e,t,n){var r=n("210b"),i=n("e1c8");function o(e){var t=null,n=new r.DOMParser({errorHandler:function(e,n){t={level:e,message:n}}}),i=n.parseFromString(e);if(null===t)return i;throw new Error(t.level+": "+t.message)}t.parseFromString=o,t.Node=i.Node},e85a:function(e,t,n){"use strict";e.exports=function(e,t,r,i,o,a){var s=n("6df9"),c=n("8d16").TypeError,u=n("6df9").inherits,l=s.errorObj,d=s.tryCatch,f={};function h(e){setTimeout((function(){throw e}),0)}function p(e){var t=r(e);return t!==e&&"function"===typeof e._isDisposable&&"function"===typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}function g(t,n){var i=0,a=t.length,s=new e(o);function c(){if(i>=a)return s._fulfill();var o=p(t[i++]);if(o instanceof e&&o._isDisposable()){try{o=r(o._getDisposer().tryDispose(n),t.promise)}catch(u){return h(u)}if(o instanceof e)return o._then(c,h,null,null,null)}c()}return c(),s}function m(e,t,n){this._data=e,this._promise=t,this._context=n}function v(e,t,n){this.constructor$(e,t,n)}function b(e){return m.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function y(e){this.length=e,this.promise=null,this[e-1]=null}m.prototype.data=function(){return this._data},m.prototype.promise=function(){return this._promise},m.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():f},m.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=t!==f?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},m.isDisposer=function(e){return null!=e&&"function"===typeof e.resource&&"function"===typeof e.tryDispose},u(v,m),v.prototype.doDispose=function(e,t){var n=this.data();return n.call(e,e,t)},y.prototype._resultCancelled=function(){for(var t=this.length,n=0;n<t;++n){var r=this[n];r instanceof e&&r.cancel()}},e.using=function(){var n=arguments.length;if(n<2)return t("you must pass at least 2 arguments to Promise.using");var i,o=arguments[n-1];if("function"!==typeof o)return t("expecting a function but got "+s.classString(o));var c=!0;2===n&&Array.isArray(arguments[0])?(i=arguments[0],n=i.length,c=!1):(i=arguments,n--);for(var u=new y(n),f=0;f<n;++f){var h=i[f];if(m.isDisposer(h)){var p=h;h=h.promise(),h._setDisposable(p)}else{var v=r(h);v instanceof e&&(h=v._then(b,null,null,{resources:u,index:f},void 0))}u[f]=h}var x=new Array(u.length);for(f=0;f<x.length;++f)x[f]=e.resolve(u[f]).reflect();var _=e.all(x).then((function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected())return l.e=n.error(),l;if(!n.isFulfilled())return void _.cancel();e[t]=n.value()}w._pushContext(),o=d(o);var r=c?o.apply(void 0,e):o(e),i=w._popContext();return a.checkForgottenReturns(r,i,"Promise.using",w),r})),w=_.lastly((function(){var t=new e.PromiseInspection(_);return g(u,t)}));return u.promise=w,w._setOnCancel(u),w},e.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},e.prototype._isDisposable=function(){return(131072&this._bitField)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},e.prototype.disposer=function(e){if("function"===typeof e)return new v(e,this,i());throw new c}}},e8b0:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return e},n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r="\ufeff",i=function(e){return e.replace(/\uFEFF/g,"")},o=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},a="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫！-＃％-＊，-／：；？＠［-］＿｛｝｟-･]",s={aletter:"[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚﾠ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ]",midnumlet:"[-'\\.‘’․﹒＇．]",midletter:"[:··״‧︓﹕：]",midnum:"[±+*/,;;։،؍٬߸⁄︐︔﹐﹔，；]",numeric:"[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",cr:"\\r",lf:"\\n",newline:"[\v\f\u2028\u2029]",extend:"[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿‌‍⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-︦ﾞﾟ]",format:"[­؀-؃۝܏឴឵‎‏‪-‮⁠-⁤⁪-⁯\ufeff￹-￻]",katakana:"[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ｦ-ﾝ]",extendnumlet:"[=_‿⁀⁔︳︴﹍-﹏＿∀-⋿<>]",punctuation:a},c={ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},u=[new RegExp(s.aletter),new RegExp(s.midnumlet),new RegExp(s.midletter),new RegExp(s.midnum),new RegExp(s.numeric),new RegExp(s.cr),new RegExp(s.lf),new RegExp(s.newline),new RegExp(s.extend),new RegExp(s.format),new RegExp(s.katakana),new RegExp(s.extendnumlet),new RegExp("@")],l="",d=new RegExp("^"+s.punctuation+"$"),f=/^\s+$/,h=u,p=c.OTHER,g=function(e){for(var t=p,n=h.length,r=0;r<n;++r){var i=h[r];if(i&&i.test(e)){t=r;break}}return t},m=function(e){var t={};return function(n){if(t[n])return t[n];var r=e(n);return t[n]=r,r}},v=function(e){var t=m(g);return o(e,t)},b=function(e,t){var n=e[t],r=e[t+1];if(t<0||t>e.length-1&&0!==t)return!1;if(n===c.ALETTER&&r===c.ALETTER)return!1;var i=e[t+2];if(n===c.ALETTER&&(r===c.MIDLETTER||r===c.MIDNUMLET||r===c.AT)&&i===c.ALETTER)return!1;var o=e[t-1];return(n!==c.MIDLETTER&&n!==c.MIDNUMLET&&r!==c.AT||r!==c.ALETTER||o!==c.ALETTER)&&((n!==c.NUMERIC&&n!==c.ALETTER||r!==c.NUMERIC&&r!==c.ALETTER)&&((n!==c.MIDNUM&&n!==c.MIDNUMLET||r!==c.NUMERIC||o!==c.NUMERIC)&&((n!==c.NUMERIC||r!==c.MIDNUM&&r!==c.MIDNUMLET||i!==c.NUMERIC)&&(n!==c.EXTEND&&n!==c.FORMAT&&o!==c.EXTEND&&o!==c.FORMAT&&r!==c.EXTEND&&r!==c.FORMAT&&((n!==c.CR||r!==c.LF)&&(n===c.NEWLINE||n===c.CR||n===c.LF||(r===c.NEWLINE||r===c.CR||r===c.LF||(n!==c.KATAKANA||r!==c.KATAKANA)&&((r!==c.EXTENDNUMLET||n!==c.ALETTER&&n!==c.NUMERIC&&n!==c.KATAKANA&&n!==c.EXTENDNUMLET)&&((n!==c.EXTENDNUMLET||r!==c.ALETTER&&r!==c.NUMERIC&&r!==c.KATAKANA)&&n!==c.AT)))))))))},y=l,x=f,_=d,w=function(e){return"http"===e||"https"===e},D=function(e,t){var n;for(n=t;n<e.length;n++)if(x.test(e[n]))break;return n},C=function(e,t){var n=D(e,t+1),r=e.slice(t+1,n).join(y);return"://"===r.substr(0,3)?n:t},k=function(e,t,n,r){for(var i=[],o=[],a=0;a<n.length;++a)if(o.push(e[a]),b(n,a)){var s=t[a];if((r.includeWhitespace||!x.test(s))&&(r.includePunctuation||!_.test(s))){var c=a-o.length+1,u=a+1,l=t.slice(c,u).join(y);if(w(l)){var d=C(t,a),f=e.slice(u,d);Array.prototype.push.apply(o,f),a=d}i.push(o)}o=[]}return i},T=function(){return{includeWhitespace:!1,includePunctuation:!1}},S=function(e,t,i){i=n(n({},T()),i);for(var o=[],a=[],s=0;s<e.length;s++){var c=t(e[s]);c!==r&&(o.push(e[s]),a.push(c))}var u=v(a);return k(o,a,u,i)},A=S,E=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),U=function(e,t){var n=t.getBlockElements(),r=t.getShortEndedElements(),o=function(e){return n[e.nodeName]||r[e.nodeName]},a=[],s="",c=new E(e,e);while(e=c.next())3===e.nodeType?s+=i(e.data):o(e)&&s.length&&(a.push(s),s="");return s.length&&a.push(s),a},O=function(e){return e.replace(/\u200B/g,"")},F=function(e){return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length},P=function(e,n){var r=O(U(e,n).join("\n"));return A(r.split(""),t).length},R=function(e,t){var n=U(e,t).join("");return F(n)},N=function(e,t){var n=U(e,t).join("").replace(/\s/g,"");return F(n)},M=function(e,t){return function(){return t(e.getBody(),e.schema)}},I=function(e,t){return function(){return t(e.selection.getRng().cloneContents(),e.schema)}},B=function(e){return M(e,P)},L=function(e){return{body:{getWordCount:B(e),getCharacterCount:M(e,R),getCharacterCountWithoutSpaces:M(e,N)},selection:{getWordCount:I(e,P),getCharacterCount:I(e,R),getCharacterCountWithoutSpaces:I(e,N)},getCount:B(e)}},z=function(e,t){e.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(t.body.getWordCount()),String(t.selection.getWordCount())],["Characters (no spaces)",String(t.body.getCharacterCountWithoutSpaces()),String(t.selection.getCharacterCountWithoutSpaces())],["Characters",String(t.body.getCharacterCount()),String(t.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},W=function(e,t){e.addCommand("mceWordCount",(function(){return z(e,t)}))},j=tinymce.util.Tools.resolve("tinymce.util.Delay"),H=function(e,t){e.fire("wordCountUpdate",{wordCount:{words:t.body.getWordCount(),characters:t.body.getCharacterCount(),charactersWithoutSpaces:t.body.getCharacterCountWithoutSpaces()}})},V=function(e,t){H(e,t)},q=function(e,t,n){var r=j.debounce((function(){return V(e,t)}),n);e.on("init",(function(){V(e,t),j.setEditorTimeout(e,(function(){e.on("SetContent BeforeAddUndo Undo Redo ViewUpdate keyup",r)}),0)}))},$=function(e){var t=function(){return e.execCommand("mceWordCount")};e.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:t}),e.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:t})};function G(t){void 0===t&&(t=300),e.add("wordcount",(function(e){var n=L(e);return W(e,n),$(e),q(e,n,t),n}))}G()})()},eb91:function(e,t,n){"use strict";(function(t){var r;try{throw new Error}catch(d){r=d}var i=n("a623"),o=n("b9d2"),a=n("6df9");function s(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new o(16),this._normalQueue=new o(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=i}function c(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()}function u(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()}function l(e){this._normalQueue._pushOne(e),this._queueTick()}s.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},s.prototype.hasCustomScheduler=function(){return this._customScheduler},s.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},s.prototype.disableTrampolineIfNecessary=function(){a.hasDevTools&&(this._trampolineEnabled=!1)},s.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},s.prototype.fatalError=function(e,n){n?(t.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),t.exit(2)):this.throwLater(e)},s.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!==typeof setTimeout)setTimeout((function(){e(t)}),0);else try{this._schedule((function(){e(t)}))}catch(d){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")}},a.hasDevTools?(s.prototype.invokeLater=function(e,t,n){this._trampolineEnabled?c.call(this,e,t,n):this._schedule((function(){setTimeout((function(){e.call(t,n)}),100)}))},s.prototype.invoke=function(e,t,n){this._trampolineEnabled?u.call(this,e,t,n):this._schedule((function(){e.call(t,n)}))},s.prototype.settlePromises=function(e){this._trampolineEnabled?l.call(this,e):this._schedule((function(){e._settlePromises()}))}):(s.prototype.invokeLater=c,s.prototype.invoke=u,s.prototype.settlePromises=l),s.prototype._drainQueue=function(e){while(e.length()>0){var t=e.shift();if("function"===typeof t){var n=e.shift(),r=e.shift();t.call(n,r)}else t._settlePromises()}},s.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},s.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},s.prototype._reset=function(){this._isTickUsed=!1},e.exports=s,e.exports.firstLineError=r}).call(this,n("4362"))},ebf8:function(e,t,n){var r=n("c46f"),i=n("0693")();function o(){var e,t,n=new i.Promise((function(n,r){e=n,t=r}));return{resolve:e,reject:t,promise:n}}t.defer=o,t.when=i.resolve,t.resolve=i.resolve,t.all=i.all,t.props=i.props,t.reject=i.reject,t.promisify=i.promisify,t.mapSeries=i.mapSeries,t.attempt=i.attempt,t.nfcall=function(e){var t=Array.prototype.slice.call(arguments,1),n=i.promisify(e);return n.apply(null,t)},i.prototype.fail=i.prototype.caught,i.prototype.also=function(e){return this.then((function(t){var n=r.extend({},t,e(t));return i.props(n)}))}},ecbf:function(e,t,n){t.createBodyReader=u,t._readNumberingProperties=d;var r=n("2b32"),i=n("c46f"),o=n("9d83"),a=n("03e1").Result,s=n("03e1").warning,c=n("7162");function u(e){return{readXmlElement:function(t){return new l(e).readXmlElement(t)},readXmlElements:function(t){return new l(e).readXmlElements(t)}}}function l(e){var t=[],n=[],a=[],u=e.relationships,l=e.contentTypes,x=e.docxFile,_=e.files,w=e.numbering,D=e.styles;function C(e){var t=e.map(k);return y(t)}function k(e){if("element"===e.type){var t=V[e.name];if(t)return t(e);if(!Object.prototype.hasOwnProperty.call(h,e.name)){var n=s("An unrecognised element was ignored: "+e.name);return p([n])}}return g()}function T(e){return O(e).map((function(t){return{type:"paragraphProperties",styleId:t.styleId,styleName:t.name,alignment:e.firstOrEmpty("w:jc").attributes["w:val"],numbering:d(t.styleId,e.firstOrEmpty("w:numPr"),w),indent:S(e.firstOrEmpty("w:ind"))}}))}function S(e){return{start:e.attributes["w:start"]||e.attributes["w:left"],end:e.attributes["w:end"]||e.attributes["w:right"],firstLine:e.attributes["w:firstLine"],hanging:e.attributes["w:hanging"]}}function A(e){return F(e).map((function(t){var n=e.firstOrEmpty("w:sz").attributes["w:val"],r=/^[0-9]+$/.test(n)?parseInt(n,10)/2:null;return{type:"runProperties",styleId:t.styleId,styleName:t.name,verticalAlignment:e.firstOrEmpty("w:vertAlign").attributes["w:val"],font:e.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:r,isBold:U(e.first("w:b")),isUnderline:E(e.first("w:u")),isItalic:U(e.first("w:i")),isStrikethrough:U(e.first("w:strike")),isAllCaps:U(e.first("w:caps")),isSmallCaps:U(e.first("w:smallCaps"))}}))}function E(e){if(e){var t=e.attributes["w:val"];return void 0!==t&&"false"!==t&&"0"!==t&&"none"!==t}return!1}function U(e){if(e){var t=e.attributes["w:val"];return"false"!==t&&"0"!==t}return!1}function O(e){return R(e,"w:pStyle","Paragraph",D.findParagraphStyleById)}function F(e){return R(e,"w:rStyle","Run",D.findCharacterStyleById)}function P(e){return R(e,"w:tblStyle","Table",D.findTableStyleById)}function R(e,t,n,r){var i=[],o=e.first(t),a=null,s=null;if(o&&(a=o.attributes["w:val"],a)){var c=r(a);c?s=c.name:i.push(ie(n,a))}return v({styleId:a,name:s},i)}var N={type:"unknown"};function M(e){var r=e.attributes["w:fldCharType"];if("begin"===r)t.push(N),n=[];else if("end"===r)t.pop();else if("separate"===r){var i=B(n.join("")),o=null===i?N:{type:"hyperlink",options:i};t.pop(),t.push(o)}return g()}function I(){var e=i.last(t.filter((function(e){return"hyperlink"===e.type})));return e?e.options:null}function B(e){var t=/\s*HYPERLINK "(.*)"/.exec(e);if(t)return{href:t[1]};var n=/\s*HYPERLINK\s+\\l\s+"(.*)"/.exec(e);return n?{anchor:n[1]}:null}function L(e){return n.push(e.text()),g()}function z(e){var t=e.attributes["w:font"],n=e.attributes["w:char"],i=r.hex(t,n);return null==i&&/^F0..$/.test(n)&&(i=r.hex(t,n.substring(2))),null==i?p([s("A w:sym element with an unsupported character was ignored: char "+n+" in font "+t)]):m(new o.Text(i.string))}function W(e){return function(t){var n=t.attributes["w:id"];return m(new o.NoteReference({noteType:e,noteId:n}))}}function j(e){return m(o.commentReference({commentId:e.attributes["w:id"]}))}function H(e){return C(e.children)}var V={"w:p":function(e){var t=e.firstOrEmpty("w:pPr"),n=!!t.firstOrEmpty("w:rPr").first("w:del");if(n)return e.children.forEach((function(e){a.push(e)})),g();var r=e.children;return a.length>0&&(r=a.concat(r),a=[]),b.map(T(t),C(r),(function(e,t){return new o.Paragraph(t,e)})).insertExtra()},"w:r":function(e){return b.map(A(e.firstOrEmpty("w:rPr")),C(e.children),(function(e,t){var n=I();return null!==n&&(t=[new o.Hyperlink(t,n)]),new o.Run(t,e)}))},"w:fldChar":M,"w:instrText":L,"w:t":function(e){return m(new o.Text(e.text()))},"w:tab":function(e){return m(new o.Tab)},"w:noBreakHyphen":function(){return m(new o.Text("‑"))},"w:softHyphen":function(e){return m(new o.Text("­"))},"w:sym":z,"w:hyperlink":function(e){var t=e.attributes["r:id"],n=e.attributes["w:anchor"];return C(e.children).map((function(r){function a(t){var n=e.attributes["w:tgtFrame"]||null;return new o.Hyperlink(r,i.extend({targetFrame:n},t))}if(t){var s=u.findTargetByRelationshipId(t);return n&&(s=c.replaceFragment(s,n)),a({href:s})}return n?a({anchor:n}):r}))},"w:tbl":q,"w:tr":G,"w:tc":X,"w:footnoteReference":W("footnote"),"w:endnoteReference":W("endnote"),"w:commentReference":j,"w:br":function(e){var t=e.attributes["w:type"];return null==t||"textWrapping"===t?m(o.lineBreak):"page"===t?m(o.pageBreak):"column"===t?m(o.columnBreak):p([s("Unsupported break type: "+t)])},"w:bookmarkStart":function(e){var t=e.attributes["w:name"];return"_GoBack"===t?g():m(new o.BookmarkStart({name:t}))},"mc:AlternateContent":function(e){return H(e.first("mc:Fallback"))},"w:sdt":function(e){return C(e.firstOrEmpty("w:sdtContent").children)},"w:ins":H,"w:object":H,"w:smartTag":H,"w:drawing":H,"w:pict":function(e){return H(e).toExtra()},"v:roundrect":H,"v:shape":H,"v:textbox":H,"w:txbxContent":H,"wp:inline":Z,"wp:anchor":Z,"v:imagedata":te,"v:group":H,"v:rect":H};return{readXmlElement:k,readXmlElements:C};function q(e){var t=$(e.firstOrEmpty("w:tblPr"));return C(e.children).flatMap(K).flatMap((function(e){return t.map((function(t){return o.Table(e,t)}))}))}function $(e){return P(e).map((function(e){return{styleId:e.styleId,styleName:e.name}}))}function G(e){var t=e.firstOrEmpty("w:trPr"),n=!!t.first("w:tblHeader");return C(e.children).map((function(e){return o.TableRow(e,{isHeader:n})}))}function X(e){return C(e.children).map((function(t){var n=e.firstOrEmpty("w:tcPr"),r=n.firstOrEmpty("w:gridSpan").attributes["w:val"],i=r?parseInt(r,10):1,a=o.TableCell(t,{colSpan:i});return a._vMerge=Y(n),a}))}function Y(e){var t=e.first("w:vMerge");if(t){var n=t.attributes["w:val"];return"continue"===n||!n}return null}function K(e){var t=i.any(e,(function(e){return e.type!==o.types.tableRow}));if(t)return v(e,[s("unexpected non-row element in table, cell merging may be incorrect")]);var n=i.any(e,(function(e){return i.any(e.children,(function(e){return e.type!==o.types.tableCell}))}));if(n)return v(e,[s("unexpected non-cell element in table row, cell merging may be incorrect")]);var r={};return e.forEach((function(e){var t=0;e.children.forEach((function(e){e._vMerge&&r[t]?r[t].rowSpan++:(r[t]=e,e._vMerge=!1),t+=e.colSpan}))})),e.forEach((function(e){e.children=e.children.filter((function(e){return!e._vMerge})),e.children.forEach((function(e){delete e._vMerge}))})),m(e)}function Z(e){var t=e.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return y(t.map(J.bind(null,e)))}function J(e,t){var n=e.first("wp:docPr").attributes,r=Q(n.descr)?n.title:n.descr,i=ee(t);return null===i?p([s("Could not find image file for a:blip element")]):re(i,r)}function Q(e){return null==e||/^\s*$/.test(e)}function ee(e){var t=e.attributes["r:embed"],n=e.attributes["r:link"];if(t)return ne(t);if(n){var r=u.findTargetByRelationshipId(n);return{path:r,read:_.read.bind(_,r)}}return null}function te(e){var t=e.attributes["r:id"];return t?re(ne(t),e.attributes["o:title"]):p([s("A v:imagedata element without a relationship ID was ignored")])}function ne(e){var t=c.uriToZipEntryName("word",u.findTargetByRelationshipId(e));return{path:t,read:x.read.bind(x,t)}}function re(e,t){var n=l.findContentType(e.path),r=o.Image({readImage:e.read,altText:t,contentType:n}),i=f[n]?[]:s("Image of type "+n+" is unlikely to display in web browsers");return v(r,i)}function ie(e,t){return s(e+" style with ID "+t+" was referenced but not defined in the document")}}function d(e,t,n){if(null!=e){var r=n.findLevelByParagraphStyleId(e);if(null!=r)return r}var i=t.firstOrEmpty("w:ilvl").attributes["w:val"],o=t.firstOrEmpty("w:numId").attributes["w:val"];return void 0===i||void 0===o?null:n.findLevel(o,i)}var f={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},h={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function p(e){return new b(null,null,e)}function g(){return new b(null)}function m(e){return new b(e)}function v(e,t){return new b(e,null,t)}function b(e,t,n){this.value=e||[],this.extra=t||[],this._result=new a({element:this.value,extra:t},n),this.messages=this._result.messages}function y(e){var t=a.combine(i.pluck(e,"_result"));return new b(i.flatten(i.pluck(t.value,"element")),i.filter(i.flatten(i.pluck(t.value,"extra")),_),t.messages)}function x(e,t){return i.flatten([e,t])}function _(e){return e}b.prototype.toExtra=function(){return new b(null,x(this.extra,this.value),this.messages)},b.prototype.insertExtra=function(){var e=this.extra;return e&&e.length?new b(x(this.value,e),null,this.messages):this},b.prototype.map=function(e){var t=this._result.map((function(t){return e(t.element)}));return new b(t.value,this.extra,t.messages)},b.prototype.flatMap=function(e){var t=this._result.flatMap((function(t){return e(t.element)._result}));return new b(t.value.element,x(this.extra,t.value.extra),t.messages)},b.map=function(e,t,n){return new b(n(e.value,t.value),x(e.extra,t.extra),e.messages.concat(t.messages))}},eda9:function(e,t,n){n("c361")},ee54:function(e,t,n){"use strict";e.exports=function(e){var t=!1,n=[];function r(){this._trace=new r.CapturedTrace(o())}function i(){if(t)return new r}function o(){var e=n.length-1;if(e>=0)return n[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},r.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(void 0!==this._trace){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},r.CapturedTrace=null,r.create=i,r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,i=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,c=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=i,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=c,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=o,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},r}},ef1f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t){e.focus(),e.undoManager.transact((function(){e.setContent(t)})),e.selection.setCursorLocation(),e.nodeChanged()},n=function(e){return e.getContent({source_view:!0})},r=function(e){var r=n(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:r},onSubmit:function(n){t(e,n.getData().code),n.close()}})},i=function(e){e.addCommand("mceCodeEditor",(function(){r(e)}))},o=function(e){var t=function(){return e.execCommand("mceCodeEditor")};e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:t}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:t})};function a(){e.add("code",(function(e){return i(e),o(e),{}}))}a()})()},f016:function(e,t,n){(function(){var t,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;t=n("92e7"),e.exports=function(e){function t(e,n,r){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(n),r&&(this.value=this.stringify.insValue(r))}return r(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).processingInstruction(this)},t}(t)}).call(this)},f034:function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return{isFullscreen:function(){return null!==e.get()}}},r=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},i=function(e){return function(t){return r(t)===e}},o=function(e){return function(t){return typeof t===e}},a=i("string"),s=i("array"),c=o("boolean"),u=function(e){return null===e||void 0===e},l=function(e){return!u(e)},d=o("function"),f=o("number"),h=function(){},p=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},g=function(e,t){return function(n){return e(t(n))}},m=function(e){return function(){return e}},v=function(e){return e};function b(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var y=m(!1),x=m(!0),_=function(){return w},w=function(){var e=function(e){return e()},t=v,n={fold:function(e,t){return e()},isSome:y,isNone:x,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:m(null),getOrUndefined:m(void 0),or:t,orThunk:e,map:_,each:h,bind:_,exists:y,forall:x,filter:function(){return _()},toArray:function(){return[]},toString:m("none()")};return n}(),D=function(e){var t=m(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:x,isNone:y,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return D(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:w},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},C=function(e){return null===e||void 0===e?w:D(e)},k={some:D,none:_,from:C},T=function(){return T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},T.apply(this,arguments)},S=function(t){var n=e(k.none()),r=function(){return n.get().each(t)},i=function(){r(),n.set(k.none())},o=function(){return n.get().isSome()},a=function(){return n.get()},s=function(e){r(),n.set(k.some(e))};return{clear:i,isSet:o,get:a,set:s}},A=function(){return S((function(e){return e.unbind()}))},E=function(){var e=S(h),t=function(t){return e.get().each(t)};return T(T({},e),{on:t})},U=Array.prototype.push,O=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},F=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},P=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},R=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return k.some(o);if(n(o,r))break}return k.none()},N=function(e,t){return R(e,t,y)},M=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);U.apply(t,e[n])}return t},I=function(e,t){return M(O(e,t))},B=function(e,t){return t>=0&&t<e.length?k.some(e[t]):k.none()},L=function(e){return B(e,0)},z=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return k.none()},W=Object.keys,j=function(e,t){for(var n=W(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},H=function(e,t){return-1!==e.indexOf(t)},V=function(e){return void 0!==e.style&&d(e.style.getPropertyValue)},q=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return X(r.childNodes[0])},$=function(e,t){var n=t||document,r=n.createElement(e);return X(r)},G=function(e,t){var n=t||document,r=n.createTextNode(e);return X(r)},X=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},Y=function(e,t,n){return k.from(e.dom.elementFromPoint(t,n)).map(X)},K={fromHtml:q,fromTag:$,fromText:G,fromDom:X,fromPoint:Y};"undefined"!==typeof window?window:Function("return this;")();var Z=9,J=11,Q=1,ee=3,te=function(e){return e.dom.nodeType},ne=function(e){return function(t){return te(t)===e}},re=ne(Q),ie=ne(ee),oe=ne(Z),ae=ne(J),se=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},ce=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),c=i||!o&&a&&r("(min-device-width:768px)"),u=o||a&&!c,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!u&&!c&&!l;return{isiPad:m(i),isiPhone:m(o),isTablet:m(c),isPhone:m(u),isTouch:m(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:m(l),isDesktop:m(d)}},ue=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},le=function(e,t){var n=ue(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return he(r(1),r(2))},de=function(e,t){var n=String(t).toLowerCase();return 0===e.length?fe():le(e,n)},fe=function(){return he(0,0)},he=function(e,t){return{major:e,minor:t}},pe={nu:he,detect:de,unknown:fe},ge=function(e,t){return z(t.brands,(function(t){var n=t.brand.toLowerCase();return N(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:pe.nu(parseInt(t.version,10),0)}}))}))},me=function(e,t){var n=String(t).toLowerCase();return N(e,(function(e){return e.search(n)}))},ve=function(e,t){return me(e,t).map((function(e){var n=pe.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},be=function(e,t){return me(e,t).map((function(e){var n=pe.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ye=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,xe=function(e){return function(t){return H(t,e)}},_e=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return H(e,"edge/")&&H(e,"chrome")&&H(e,"safari")&&H(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ye],search:function(e){return H(e,"chrome")&&!H(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return H(e,"msie")||H(e,"trident")}},{name:"Opera",versionRegexes:[ye,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:xe("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:xe("firefox")},{name:"Safari",versionRegexes:[ye,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(H(e,"safari")||H(e,"mobile/"))&&H(e,"applewebkit")}}],we=[{name:"Windows",search:xe("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return H(e,"iphone")||H(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:xe("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:xe("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:xe("linux"),versionRegexes:[]},{name:"Solaris",search:xe("sunos"),versionRegexes:[]},{name:"FreeBSD",search:xe("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:xe("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],De={browsers:m(_e),oses:m(we)},Ce="Edge",ke="Chrome",Te="IE",Se="Opera",Ae="Firefox",Ee="Safari",Ue=function(){return Oe({current:void 0,version:pe.unknown()})},Oe=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Ce),isChrome:r(ke),isIE:r(Te),isOpera:r(Se),isFirefox:r(Ae),isSafari:r(Ee)}},Fe={unknown:Ue,nu:Oe,edge:m(Ce),chrome:m(ke),ie:m(Te),opera:m(Se),firefox:m(Ae),safari:m(Ee)},Pe="Windows",Re="iOS",Ne="Android",Me="Linux",Ie="OSX",Be="Solaris",Le="FreeBSD",ze="ChromeOS",We=function(){return je({current:void 0,version:pe.unknown()})},je=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Pe),isiOS:r(Re),isAndroid:r(Ne),isOSX:r(Ie),isLinux:r(Me),isSolaris:r(Be),isFreeBSD:r(Le),isChromeOS:r(ze)}},He={unknown:We,nu:je,windows:m(Pe),ios:m(Re),android:m(Ne),linux:m(Me),osx:m(Ie),solaris:m(Be),freebsd:m(Le),chromeos:m(ze)},Ve=function(e,t,n){var r=De.browsers(),i=De.oses(),o=t.bind((function(e){return ge(r,e)})).orThunk((function(){return ve(r,e)})).fold(Fe.unknown,Fe.nu),a=be(i,e).fold(He.unknown,He.nu),s=ce(a,o,e,n);return{browser:o,os:a,deviceType:s}},qe={detect:Ve},$e=function(e){return window.matchMedia(e).matches},Ge=se((function(){return qe.detect(navigator.userAgent,k.from(navigator.userAgentData),$e)})),Xe=function(){return Ge()},Ye=function(e,t){var n=e.dom;if(n.nodeType!==Q)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Ke=function(e){return e.nodeType!==Q&&e.nodeType!==Z&&e.nodeType!==J||0===e.childElementCount},Ze=function(e,t){var n=void 0===t?document:t.dom;return Ke(n)?[]:O(n.querySelectorAll(e),K.fromDom)},Je=function(e,t){return e.dom===t.dom},Qe=function(e){return K.fromDom(e.dom.ownerDocument)},et=function(e){return oe(e)?e:Qe(e)},tt=function(e){return k.from(e.dom.parentNode).map(K.fromDom)},nt=function(e,t){var n=d(t)?t:y,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=K.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},rt=function(e){var t=function(t){return P(t,(function(t){return!Je(e,t)}))};return tt(e).map(it).map(t).getOr([])},it=function(e){return O(e.dom.childNodes,K.fromDom)},ot=function(e){return ae(e)&&l(e.dom.host)},at=d(Element.prototype.attachShadow)&&d(Node.prototype.getRootNode),st=m(at),ct=at?function(e){return K.fromDom(e.dom.getRootNode())}:et,ut=function(e){var t=ct(e);return ot(t)?k.some(t):k.none()},lt=function(e){return K.fromDom(e.dom.host)},dt=function(e){if(st()&&l(e.target)){var t=K.fromDom(e.target);if(re(t)&&ft(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return L(n)}}return k.from(e.target)},ft=function(e){return l(e.dom.shadowRoot)},ht=function(e){var t=ie(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return ut(K.fromDom(t)).fold((function(){return n.body.contains(t)}),g(ht,lt))},pt=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return K.fromDom(t)},gt=function(e,t,n){if(!(a(n)||c(n)||f(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},mt=function(e,t,n){gt(e.dom,t,n)},vt=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},bt=function(e,t){e.dom.removeAttribute(t)},yt=function(e,t,n){if(!a(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);V(e)&&e.style.setProperty(t,n)},xt=function(e,t){var n=e.dom;j(t,(function(e,t){yt(n,t,e)}))},_t=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||ht(e)?i:wt(n,t)},wt=function(e,t){return V(e)?e.style.getPropertyValue(t):""},Dt=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},Ct=function(e){var t=K.fromDom(dt(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},i=p(r,n);return Dt(t,e.clientX,e.clientY,n,r,i,e)},kt=function(e,t){return function(n){e(n)&&t(Ct(n))}},Tt=function(e,t,n,r,i){var o=kt(n,r);return e.dom.addEventListener(t,o,i),{unbind:b(At,e,t,o,i)}},St=function(e,t,n,r){return Tt(e,t,n,r,!1)},At=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Et=x,Ut=function(e,t,n){return St(e,t,Et,n)},Ot=function(e,t){var n=function(n,r){return Ot(e+n,t+r)};return{left:e,top:t,translate:n}},Ft=Ot,Pt=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Ft(n,r)},Rt=function(e){var t=void 0===e?window:e;return Xe().browser.isFirefox()?k.none():k.from(t["visualViewport"])},Nt=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Mt=function(e){var t=void 0===e?window:e,n=t.document,r=Pt(K.fromDom(n));return Rt(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return Nt(r.left,r.top,n,i)}),(function(e){return Nt(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},It=function(e,t,n){return Rt(n).map((function(n){var r=function(e){return t(Ct(e))};return n.addEventListener(e,r),{unbind:function(){return n.removeEventListener(e,r)}}})).getOrThunk((function(){return{unbind:h}}))},Bt=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Lt=tinymce.util.Tools.resolve("tinymce.Env"),zt=tinymce.util.Tools.resolve("tinymce.util.Delay"),Wt=function(e,t){e.fire("FullscreenStateChanged",{state:t}),e.fire("ResizeEditor")},jt=function(e){return e.getParam("fullscreen_native",!1,"boolean")},Ht=function(e){var t=K.fromDom(e.getElement());return ut(t).map(lt).getOrThunk((function(){return pt(Qe(t))}))},Vt=function(e){return void 0!==e.fullscreenElement?e.fullscreenElement:void 0!==e.msFullscreenElement?e.msFullscreenElement:void 0!==e.webkitFullscreenElement?e.webkitFullscreenElement:null},qt=function(){return void 0!==document.fullscreenElement?"fullscreenchange":void 0!==document.msFullscreenElement?"MSFullscreenChange":void 0!==document.webkitFullscreenElement?"webkitfullscreenchange":"fullscreenchange"},$t=function(e){var t=e.dom;t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},Gt=function(e){var t=e.dom;t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitCancelFullScreen&&t.webkitCancelFullScreen()},Xt=function(e){return e.dom===Vt(Qe(e).dom)},Yt=function(e,t,n){return P(nt(e,n),t)},Kt=function(e,t){return P(rt(e),t)},Zt=function(e){return Ze(e)},Jt=function(e,t,n){return Yt(e,(function(e){return Ye(e,t)}),n)},Qt=function(e,t){return Kt(e,(function(e){return Ye(e,t)}))},en="data-ephox-mobile-fullscreen-style",tn="display:none!important;",nn="position:absolute!important;",rn="top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;",on="background-color:rgb(255,255,255)!important;",an=Lt.os.isAndroid(),sn=function(e){var t=_t(e,"background-color");return void 0!==t&&""!==t?"background-color:"+t+"!important":on},cn=function(e,t,n){var r=function(e){return Qt(e,"*:not(.tox-silver-sink)")},i=function(t){return function(n){var r=vt(n,"style"),i=void 0===r?"no-styles":r.trim();i!==t&&(mt(n,en,i),xt(n,e.parseStyle(t)))}},o=Jt(t,"*"),a=I(o,r),s=sn(n);F(a,i(tn)),F(o,i(nn+rn+s));var c=!0===an?"":nn;i(c+rn+s)(t)},un=function(e){var t=Zt("["+en+"]");F(t,(function(t){var n=vt(t,en);"no-styles"!==n?xt(t,e.parseStyle(n)):bt(t,"style"),bt(t,en)}))},ln=Bt.DOM,dn=function(){return Mt(window)},fn=function(e){return window.scrollTo(e.x,e.y)},hn=Rt().fold((function(){return{bind:h,unbind:h}}),(function(e){var t=E(),n=A(),r=A(),i=function(){document.body.scrollTop=0,document.documentElement.scrollTop=0},o=function(){window.requestAnimationFrame((function(){t.on((function(t){return xt(t,{top:e.offsetTop+"px",left:e.offsetLeft+"px",height:e.height+"px",width:e.width+"px"})}))}))},a=zt.throttle((function(){i(),o()}),50),s=function(e){t.set(e),a(),n.set(It("resize",a)),r.set(It("scroll",a))},c=function(){t.on((function(){n.clear(),r.clear()})),t.clear()};return{bind:s,unbind:c}})),pn=function(e,t){var n=document.body,r=document.documentElement,i=e.getContainer(),o=K.fromDom(i),a=Ht(e),s=t.get(),c=K.fromDom(e.getBody()),u=Lt.deviceType.isTouch(),l=i.style,d=e.iframeElement,f=d.style,h=function(e){e(n,"tox-fullscreen"),e(r,"tox-fullscreen"),e(i,"tox-fullscreen"),ut(o).map((function(e){return lt(e).dom})).each((function(t){e(t,"tox-fullscreen"),e(t,"tox-shadowhost")}))},p=function(){u&&un(e.dom),h(ln.removeClass),hn.unbind(),k.from(t.get()).each((function(e){return e.fullscreenChangeHandler.unbind()}))};if(s)s.fullscreenChangeHandler.unbind(),jt(e)&&Xt(a)&&Gt(Qe(a)),f.width=s.iframeWidth,f.height=s.iframeHeight,l.width=s.containerWidth,l.height=s.containerHeight,l.top=s.containerTop,l.left=s.containerLeft,p(),fn(s.scrollPos),t.set(null),Wt(e,!1),e.off("remove",p);else{var g=Ut(Qe(a),qt(),(function(n){jt(e)&&(Xt(a)||null===t.get()||pn(e,t))})),m={scrollPos:dn(),containerWidth:l.width,containerHeight:l.height,containerTop:l.top,containerLeft:l.left,iframeWidth:f.width,iframeHeight:f.height,fullscreenChangeHandler:g};u&&cn(e.dom,o,c),f.width=f.height="100%",l.width=l.height="",h(ln.addClass),hn.bind(o),e.on("remove",p),t.set(m),jt(e)&&$t(a),Wt(e,!0)}},gn=function(e,t){e.addCommand("mceFullScreen",(function(){pn(e,t)}))},mn=function(e,t){return function(n){n.setActive(null!==t.get());var r=function(e){return n.setActive(e.state)};return e.on("FullscreenStateChanged",r),function(){return e.off("FullscreenStateChanged",r)}}},vn=function(e,t){var n=function(){return e.execCommand("mceFullScreen")};e.ui.registry.addToggleMenuItem("fullscreen",{text:"Fullscreen",icon:"fullscreen",shortcut:"Meta+Shift+F",onAction:n,onSetup:mn(e,t)}),e.ui.registry.addToggleButton("fullscreen",{tooltip:"Fullscreen",icon:"fullscreen",onAction:n,onSetup:mn(e,t)})};function bn(){t.add("fullscreen",(function(t){var r=e(null);return t.inline||(gn(t,r),vn(t,r),t.addShortcut("Meta+Shift+F","","mceFullScreen")),n(r)}))}bn()})()},f1a6:function(e,t,n){e.exports=n.p+"img/dialog-avatar.77cbd740.svg"},f34b:function(e,t,n){},f8db:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return r.AnnotationLayerBuilder}}),Object.defineProperty(t,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return r.DefaultAnnotationLayerFactory}}),Object.defineProperty(t,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return i.DefaultTextLayerFactory}}),Object.defineProperty(t,"TextLayerBuilder",{enumerable:!0,get:function(){return i.TextLayerBuilder}}),Object.defineProperty(t,"EventBus",{enumerable:!0,get:function(){return o.EventBus}}),Object.defineProperty(t,"NullL10n",{enumerable:!0,get:function(){return o.NullL10n}}),Object.defineProperty(t,"ProgressBar",{enumerable:!0,get:function(){return o.ProgressBar}}),Object.defineProperty(t,"PDFLinkService",{enumerable:!0,get:function(){return a.PDFLinkService}}),Object.defineProperty(t,"SimpleLinkService",{enumerable:!0,get:function(){return a.SimpleLinkService}}),Object.defineProperty(t,"DownloadManager",{enumerable:!0,get:function(){return s.DownloadManager}}),Object.defineProperty(t,"GenericL10n",{enumerable:!0,get:function(){return c.GenericL10n}}),Object.defineProperty(t,"PDFFindController",{enumerable:!0,get:function(){return u.PDFFindController}}),Object.defineProperty(t,"PDFHistory",{enumerable:!0,get:function(){return l.PDFHistory}}),Object.defineProperty(t,"PDFPageView",{enumerable:!0,get:function(){return d.PDFPageView}}),Object.defineProperty(t,"PDFSinglePageViewer",{enumerable:!0,get:function(){return f.PDFSinglePageViewer}}),Object.defineProperty(t,"PDFViewer",{enumerable:!0,get:function(){return h.PDFViewer}});var r=n(1),i=n(8),o=n(3),a=n(7),s=n(9),c=n(11),u=n(13),l=n(15),d=n(16),f=n(18),h=n(20)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultAnnotationLayerFactory=t.AnnotationLayerBuilder=void 0;var r=n(2),i=n(3),o=n(7);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var u=function(){function e(t){var n=t.pageDiv,r=t.pdfPage,o=t.linkService,s=t.downloadManager,c=t.annotationStorage,u=void 0===c?null:c,l=t.imageResourcesPath,d=void 0===l?"":l,f=t.renderInteractiveForms,h=void 0===f||f,p=t.l10n,g=void 0===p?i.NullL10n:p;a(this,e),this.pageDiv=n,this.pdfPage=r,this.linkService=o,this.downloadManager=s,this.imageResourcesPath=d,this.renderInteractiveForms=h,this.l10n=g,this.annotationStorage=u,this.div=null,this._cancelled=!1}return c(e,[{key:"render",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"display";return this.pdfPage.getAnnotations({intent:n}).then((function(n){if(!t._cancelled&&0!==n.length){var i={viewport:e.clone({dontFlip:!0}),div:t.div,annotations:n,page:t.pdfPage,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,linkService:t.linkService,downloadManager:t.downloadManager,annotationStorage:t.annotationStorage};t.div?r.AnnotationLayer.update(i):(t.div=document.createElement("div"),t.div.className="annotationLayer",t.pageDiv.appendChild(t.div),i.div=t.div,r.AnnotationLayer.render(i),t.l10n.translate(t.div))}}))}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&this.div.setAttribute("hidden","true")}}]),e}();t.AnnotationLayerBuilder=u;var l=function(){function e(){a(this,e)}return c(e,[{key:"createAnnotationLayerBuilder",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:i.NullL10n;return new u({pageDiv:e,pdfPage:t,imageResourcesPath:r,renderInteractiveForms:a,linkService:new o.SimpleLinkService,l10n:s,annotationStorage:n})}}]),e}();t.DefaultAnnotationLayerFactory=l},function(e,t,r){"use strict";var i;i="undefined"!==typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:n("4383"),e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidRotation=Y,t.isValidScrollMode=K,t.isValidSpreadMode=Z,t.isPortraitOrientation=J,t.clamp=re,t.getPDFFileNameFromURL=$,t.noContextMenuHandler=V,t.parseQueryString=I,t.backtrackBeforeAllVisibleElements=j,t.getVisibleElements=H,t.roundToDivide=z,t.getPageSizeInches=W,t.approximateFraction=L,t.getOutputScale=R,t.scrollIntoView=N,t.watchScroll=M,t.binarySearchFirstItem=B,t.normalizeWheelEventDirection=G,t.normalizeWheelEventDelta=X,t.waitOnEventOrTimeout=ee,t.moveToEndOfArray=oe,t.WaitOnType=t.animationStarted=t.ProgressBar=t.EventBus=t.NullL10n=t.SpreadMode=t.ScrollMode=t.TextLayerMode=t.RendererType=t.PresentationModeState=t.VERTICAL_PADDING=t.SCROLLBAR_PADDING=t.MAX_AUTO_SCALE=t.UNKNOWN_SCALE=t.MAX_SCALE=t.MIN_SCALE=t.DEFAULT_SCALE=t.DEFAULT_SCALE_VALUE=t.CSS_UNITS=t.AutoPrintRegExp=void 0;var r=i(n(4));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function c(e){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){return p(e)||h(e,t)||d(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){i=!0,o=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function p(e){if(Array.isArray(e))return e}function g(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){g(o,r,i,a,s,"next",e)}function s(e){g(o,r,i,a,s,"throw",e)}a(void 0)}))}}var v=96/72;t.CSS_UNITS=v;var b="auto";t.DEFAULT_SCALE_VALUE=b;var y=1;t.DEFAULT_SCALE=y;var x=.1;t.MIN_SCALE=x;var _=10;t.MAX_SCALE=_;var w=0;t.UNKNOWN_SCALE=w;var D=1.25;t.MAX_AUTO_SCALE=D;var C=40;t.SCROLLBAR_PADDING=C;var k=5;t.VERTICAL_PADDING=k;var T={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};t.PresentationModeState=T;var S={CANVAS:"canvas",SVG:"svg"};t.RendererType=S;var A={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};t.TextLayerMode=A;var E={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};t.ScrollMode=E;var U={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};t.SpreadMode=U;var O=/\bprint\s*\(/;function F(e,t){return t?e.replace(/\{\{\s*(\w+)\s*\}\}/g,(function(e,n){return n in t?t[n]:"{{"+n+"}}"})):e}t.AutoPrintRegExp=O;var P={getLanguage:function(){return m(r["default"].mark((function e(){return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","en-us");case 1:case"end":return e.stop()}}),e)})))()},getDirection:function(){return m(r["default"].mark((function e(){return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","ltr");case 1:case"end":return e.stop()}}),e)})))()},get:function(e,t,n){return m(r["default"].mark((function e(){return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",F(n,t));case 1:case"end":return e.stop()}}),e)})))()},translate:function(e){return m(r["default"].mark((function e(){return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()}};function R(e){var t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1,r=t/n;return{sx:r,sy:r,scaled:1!==r}}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.offsetParent;if(r){var i=e.offsetTop+e.clientTop,o=e.offsetLeft+e.clientLeft;while(r.clientHeight===r.scrollHeight&&r.clientWidth===r.scrollWidth||n&&"hidden"===getComputedStyle(r).overflow)if(r.dataset._scaleY&&(i/=r.dataset._scaleY,o/=r.dataset._scaleX),i+=r.offsetTop,o+=r.offsetLeft,r=r.offsetParent,!r)return;t&&(void 0!==t.top&&(i+=t.top),void 0!==t.left&&(o+=t.left,r.scrollLeft=o)),r.scrollTop=i}else console.error("offsetParent is not set -- cannot scroll")}function M(e,t){var n=function(n){i||(i=window.requestAnimationFrame((function(){i=null;var n=e.scrollLeft,o=r.lastX;n!==o&&(r.right=n>o),r.lastX=n;var a=e.scrollTop,s=r.lastY;a!==s&&(r.down=a>s),r.lastY=a,t(r)})))},r={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:n},i=null;return e.addEventListener("scroll",n,!0),r}function I(e){for(var t=e.split("&"),n=Object.create(null),r=0,i=t.length;r<i;++r){var o=t[r].split("="),a=o[0].toLowerCase(),s=o.length>1?o[1]:null;n[decodeURIComponent(a)]=decodeURIComponent(s)}return n}function B(e,t){var n=0,r=e.length-1;if(r<0||!t(e[r]))return e.length;if(t(e[n]))return n;while(n<r){var i=n+r>>1,o=e[i];t(o)?r=i:n=i+1}return n}function L(e){if(Math.floor(e)===e)return[e,1];var t=1/e,n=8;if(t>n)return[1,n];if(Math.floor(t)===t)return[1,t];var r,i=e>1?t:e,o=0,a=1,s=1,c=1;while(1){var u=o+s,l=a+c;if(l>n)break;i<=u/l?(s=u,c=l):(o=u,a=l)}return r=i-o/a<s/c-i?i===e?[o,a]:[a,o]:i===e?[s,c]:[c,s],r}function z(e,t){var n=e%t;return 0===n?e:Math.round(e-n+t)}function W(e){var t=e.view,n=e.userUnit,r=e.rotate,i=u(t,4),o=i[0],a=i[1],s=i[2],c=i[3],l=r%180!==0,d=(s-o)/72*n,f=(c-a)/72*n;return{width:l?f:d,height:l?d:f}}function j(e,t,n){if(e<2)return e;var r=t[e].div,i=r.offsetTop+r.clientTop;i>=n&&(r=t[e-1].div,i=r.offsetTop+r.clientTop);for(var o=e-2;o>=0;--o){if(r=t[o].div,r.offsetTop+r.clientTop+r.clientHeight<=i)break;e=o}return e}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.scrollTop,o=i+e.clientHeight,a=e.scrollLeft,s=a+e.clientWidth;function c(e){var t=e.div,n=t.offsetTop+t.clientTop+t.clientHeight;return n>i}function u(e){var t=e.div,n=t.offsetLeft+t.clientLeft+t.clientWidth;return n>a}var l=[],d=t.length,f=0===d?0:B(t,r?u:c);f>0&&f<d&&!r&&(f=j(f,t,i));for(var h=r?s:-1,p=f;p<d;p++){var g=t[p],m=g.div,v=m.offsetLeft+m.clientLeft,b=m.offsetTop+m.clientTop,y=m.clientWidth,x=m.clientHeight,_=v+y,w=b+x;if(-1===h)w>=o&&(h=w);else if((r?v:b)>h)break;if(!(w<=i||b>=o||_<=a||v>=s)){var D=Math.max(0,i-b)+Math.max(0,w-o),C=Math.max(0,a-v)+Math.max(0,_-s),k=(x-D)*(y-C)*100/x/y|0;l.push({id:g.id,x:v,y:b,view:g,percent:k})}}var T=l[0],S=l[l.length-1];return n&&l.sort((function(e,t){var n=e.percent-t.percent;return Math.abs(n)>.001?-n:e.id-t.id})),{first:T,last:S,views:l}}function V(e){e.preventDefault()}function q(e){var t=0,n=e.length;while(t<n&&""===e[t].trim())t++;return"data:"===e.substring(t,t+5).toLowerCase()}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(q(e))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),t;var n=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,r=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=n.exec(e),o=r.exec(i[1])||r.exec(i[2])||r.exec(i[3]);if(o&&(o=o[0],o.includes("%")))try{o=r.exec(decodeURIComponent(o))[0]}catch(a){}return o||t}function G(e){var t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY),n=Math.atan2(e.deltaY,e.deltaX);return-.25*Math.PI<n&&n<.75*Math.PI&&(t=-t),t}function X(e){var t=G(e),n=0,r=1,i=30,o=30;return e.deltaMode===n?t/=i*o:e.deltaMode===r&&(t/=o),t}function Y(e){return Number.isInteger(e)&&e%90===0}function K(e){return Number.isInteger(e)&&Object.values(E).includes(e)&&e!==E.UNKNOWN}function Z(e){return Number.isInteger(e)&&Object.values(U).includes(e)&&e!==U.UNKNOWN}function J(e){return e.width<=e.height}t.NullL10n=P;var Q={EVENT:"event",TIMEOUT:"timeout"};function ee(e){var t=e.target,n=e.name,r=e.delay,i=void 0===r?0:r;return new Promise((function(e,r){if("object"!==c(t)||!n||"string"!==typeof n||!(Number.isInteger(i)&&i>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function o(r){t instanceof ne?t._off(n,a):t.removeEventListener(n,a),u&&clearTimeout(u),e(r)}var a=o.bind(null,Q.EVENT);t instanceof ne?t._on(n,a):t.addEventListener(n,a);var s=o.bind(null,Q.TIMEOUT),u=setTimeout(s,i)}))}t.WaitOnType=Q;var te=new Promise((function(e){window.requestAnimationFrame(e)}));t.animationStarted=te;var ne=function(){function e(t){o(this,e),this._listeners=Object.create(null)}return s(e,[{key:"on",value:function(e,t){this._on(e,t,{external:!0})}},{key:"off",value:function(e,t){this._off(e,t,{external:!0})}},{key:"dispatch",value:function(e){var t=this._listeners[e];if(t&&0!==t.length){var n,r=Array.prototype.slice.call(arguments,1);t.slice(0).forEach((function(e){var t=e.listener,i=e.external;if(i)return n||(n=[]),void n.push(t);t.apply(null,r)})),n&&(n.forEach((function(e){e.apply(null,r)})),n=null)}}},{key:"_on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this._listeners[e];r||(this._listeners[e]=r=[]),r.push({listener:t,external:!0===(n&&n.external)})}},{key:"_off",value:function(e,t){var n=this._listeners[e];if(n)for(var r=0,i=n.length;r<i;r++)if(n[r].listener===t)return void n.splice(r,1)}}]),e}();function re(e,t,n){return Math.min(Math.max(e,t),n)}t.EventBus=ne;var ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.height,i=n.width,a=n.units;o(this,e),this.visible=!0,this.div=document.querySelector(t+" .progress"),this.bar=this.div.parentNode,this.height=r||100,this.width=i||100,this.units=a||"%",this.div.style.height=this.height+this.units,this.percent=0}return s(e,[{key:"_updateBar",value:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate");var e=this.width*this._percent/100;this.div.style.width=e+this.units}},{key:"setWidth",value:function(e){if(e){var t=e.parentNode,n=t.offsetWidth-e.offsetWidth;n>0&&(this.bar.style.width="calc(100% - ".concat(n,"px)"))}}},{key:"hide",value:function(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}},{key:"show",value:function(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}},{key:"percent",get:function(){return this._percent},set:function(e){this._indeterminate=isNaN(e),this._percent=re(e,0,100),this._updateBar()}}]),e}();function oe(e,t){for(var n=[],r=e.length,i=0,o=0;o<r;++o)t(e[o])?n.push(e[o]):(e[i]=e[o],++i);for(var a=0;i<r;++a,++i)e[i]=n[a]}t.ProgressBar=ie},function(e,t,n){"use strict";e.exports=n(5)},function(e,t,n){"use strict";(function(e){function t(e){return t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var n=function(e){var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(P){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new U(r||[]);return o._invoke=T(e,n,a),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=l;var f="suspendedStart",h="suspendedYield",p="executing",g="completed",m={};function v(){}function b(){}function y(){}var x={};x[a]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(O([])));w&&w!==r&&i.call(w,a)&&(x=w);var D=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,n){function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"===t(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):n.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;function a(e,t){function i(){return new n((function(n,i){r(e,t,n,i)}))}return o=o?o.then(i,i):i()}this._invoke=a}function T(e,t,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===g){if("throw"===i)throw o;return F()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=d(e,t,n);if("normal"===c.type){if(r=n.done?g:h,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=g,n.method="throw",n.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=n,S(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=d(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,m;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function O(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){while(++r<e.length)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:F}}function F(){return{value:n,done:!0}}return b.prototype=D.constructor=y,y.constructor=b,b.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(D),e},e.awrap=function(e){return{__await:e}},C(k.prototype),k.prototype[s]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(D),u(D,c,"Generator"),D[a]=function(){return this},D.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(r){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(6)(e))},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=void 0;var r=n(3);function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.eventBus,r=t.externalLinkTarget,i=void 0===r?null:r,a=t.externalLinkRel,s=void 0===a?null:a,c=t.externalLinkEnabled,u=void 0===c||c,l=t.ignoreDestinationZoom,d=void 0!==l&&l;o(this,e),this.eventBus=n,this.externalLinkTarget=i,this.externalLinkRel=s,this.externalLinkEnabled=u,this._ignoreDestinationZoom=d,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return s(e,[{key:"setDocument",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setHistory",value:function(e){this.pdfHistory=e}},{key:"navigateTo",value:function(e){var t=this,n=function n(r){var i,o=r.namedDest,a=r.explicitDest,s=a[0];if(s instanceof Object){if(i=t._cachedPageNumber(s),null===i)return void t.pdfDocument.getPageIndex(s).then((function(e){t.cachePageRef(e+1,s),n({namedDest:o,explicitDest:a})}))["catch"]((function(){console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid page reference, for dest="'.concat(e,'".'))}))}else{if(!Number.isInteger(s))return void console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid destination reference, for dest="'.concat(e,'".'));i=s+1}!i||i<1||i>t.pagesCount?console.error('PDFLinkService.navigateTo: "'.concat(i,'" is not ')+'a valid page number, for dest="'.concat(e,'".')):(t.pdfHistory&&(t.pdfHistory.pushCurrentPosition(),t.pdfHistory.push({namedDest:o,explicitDest:a,pageNumber:i})),t.pdfViewer.scrollPageIntoView({pageNumber:i,destArray:a,ignoreDestinationZoom:t._ignoreDestinationZoom}))};new Promise((function(n,r){"string"!==typeof e?n({namedDest:"",explicitDest:e}):t.pdfDocument.getDestination(e).then((function(t){n({namedDest:e,explicitDest:t})}))})).then((function(t){Array.isArray(t.explicitDest)?n(t):console.error('PDFLinkService.navigateTo: "'.concat(t.explicitDest,'" is')+' not a valid destination array, for dest="'.concat(e,'".'))}))}},{key:"getDestinationHash",value:function(e){if("string"===typeof e)return this.getAnchorUrl("#"+escape(e));if(Array.isArray(e)){var t=JSON.stringify(e);return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(e){return(this.baseUrl||"")+e}},{key:"setHash",value:function(e){var t,n;if(e.includes("=")){var i=(0,r.parseQueryString)(e);if("search"in i&&this.eventBus.dispatch("findfromurlhash",{source:this,query:i.search.replace(/"/g,""),phraseSearch:"true"===i.phrase}),"page"in i&&(t=0|i.page||1),"zoom"in i){var o=i.zoom.split(","),a=o[0],s=parseFloat(a);a.includes("Fit")?"Fit"===a||"FitB"===a?n=[null,{name:a}]:"FitH"===a||"FitBH"===a||"FitV"===a||"FitBV"===a?n=[null,{name:a},o.length>1?0|o[1]:null]:"FitR"===a?5!==o.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:a},0|o[1],0|o[2],0|o[3],0|o[4]]:console.error('PDFLinkService.setHash: "'.concat(a,'" is not ')+"a valid zoom value."):n=[null,{name:"XYZ"},o.length>1?0|o[1]:null,o.length>2?0|o[2]:null,s?s/100:a]}n?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:n,allowNegativeOffset:!0}):t&&(this.page=t),"pagemode"in i&&this.eventBus.dispatch("pagemode",{source:this,mode:i.pagemode}),"nameddest"in i&&this.navigateTo(i.nameddest)}else{n=unescape(e);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch(c){}if("string"===typeof n||u(n))return void this.navigateTo(n);console.error('PDFLinkService.setHash: "'.concat(unescape(e),'" is not ')+"a valid destination.")}}},{key:"executeNamedAction",value:function(e){switch(e){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page<this.pagesCount&&this.page++;break;case"PrevPage":this.page>1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1;break;default:break}this.eventBus.dispatch("namedaction",{source:this,action:e})}},{key:"cachePageRef",value:function(e,t){if(t){var n=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);this._pagesRefCache[n]=e}}},{key:"_cachedPageNumber",value:function(e){var t=0===e.gen?"".concat(e.num,"R"):"".concat(e.num,"R").concat(e.gen);return this._pagesRefCache&&this._pagesRefCache[t]||null}},{key:"isPageVisible",value:function(e){return this.pdfViewer.isPageVisible(e)}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(e){this.pdfViewer.pagesRotation=e}}]),e}();function u(e){if(!Array.isArray(e))return!1;var t=e.length;if(t<2)return!1;var n=e[0];if(("object"!==i(n)||!Number.isInteger(n.num)||!Number.isInteger(n.gen))&&!(Number.isInteger(n)&&n>=0))return!1;var r=e[1];if("object"!==i(r)||"string"!==typeof r.name)return!1;var o=!0;switch(r.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;o=!1;break;default:return!1}for(var a=2;a<t;a++){var s=e[a];if(!("number"===typeof s||o&&null===s))return!1}return!0}t.PDFLinkService=c;var l=function(){function e(){o(this,e),this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}return s(e,[{key:"navigateTo",value:function(e){}},{key:"getDestinationHash",value:function(e){return"#"}},{key:"getAnchorUrl",value:function(e){return"#"}},{key:"setHash",value:function(e){}},{key:"executeNamedAction",value:function(e){}},{key:"cachePageRef",value:function(e,t){}},{key:"isPageVisible",value:function(e){return!0}},{key:"pagesCount",get:function(){return 0}},{key:"page",get:function(){return 0},set:function(e){}},{key:"rotation",get:function(){return 0},set:function(e){}}]),e}();t.SimpleLinkService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultTextLayerFactory=t.TextLayerBuilder=void 0;var r=n(2);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var s=300,c=function(){function e(t){var n=t.textLayerDiv,r=t.eventBus,o=t.pageIndex,a=t.viewport,s=t.findController,c=void 0===s?null:s,u=t.enhanceTextSelection,l=void 0!==u&&u;i(this,e),this.textLayerDiv=n,this.eventBus=r,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=o,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=a,this.textDivs=[],this.findController=c,this.textLayerRenderTask=null,this.enhanceTextSelection=l,this._onUpdateTextLayerMatches=null,this._bindMouse()}return a(e,[{key:"_finishRendering",value:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.appendChild(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}},{key:"render",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var n=document.createDocumentFragment();this.textLayerRenderTask=(0,r.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:n,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:t,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then((function(){e.textLayerDiv.appendChild(n),e._finishRendering(),e._updateMatches()}),(function(e){})),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(t){t.pageIndex!==e.pageIdx&&-1!==t.pageIndex||e._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}}},{key:"cancel",value:function(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}},{key:"setTextContentStream",value:function(e){this.cancel(),this.textContentStream=e}},{key:"setTextContent",value:function(e){this.cancel(),this.textContent=e}},{key:"_convertMatches",value:function(e,t){if(!e)return[];for(var n=this.findController,r=this.textContentItemsStr,i=0,o=0,a=r.length-1,s=n.state.query.length,c=[],u=0,l=e.length;u<l;u++){var d=e[u];while(i!==a&&d>=o+r[i].length)o+=r[i].length,i++;i===r.length&&console.error("Could not find a matching mapping");var f={begin:{divIdx:i,offset:d-o}};d+=t?t[u]:s;while(i!==a&&d>o+r[i].length)o+=r[i].length,i++;f.end={divIdx:i,offset:d-o},c.push(f)}return c}},{key:"_renderMatches",value:function(e){if(0!==e.length){var t=this.findController,n=this.pageIdx,r=this.textContentItemsStr,i=this.textDivs,o=n===t.selected.pageIdx,a=t.selected.matchIdx,s=t.state.highlightAll,c=null,u={divIdx:-1,offset:void 0},l=a,d=l+1;if(s)l=0,d=e.length;else if(!o)return;for(var f=l;f<d;f++){var h=e[f],p=h.begin,g=h.end,m=o&&f===a,v=m?" selected":"";if(m&&t.scrollMatchIntoView({element:i[p.divIdx],pageIndex:n,matchIndex:a}),c&&p.divIdx===c.divIdx?_(c.divIdx,c.offset,p.offset):(null!==c&&_(c.divIdx,c.offset,u.offset),x(p)),p.divIdx===g.divIdx)_(p.divIdx,p.offset,g.offset,"highlight"+v);else{_(p.divIdx,p.offset,u.offset,"highlight begin"+v);for(var b=p.divIdx+1,y=g.divIdx;b<y;b++)i[b].className="highlight middle"+v;x(g,"highlight end"+v)}c=g}c&&_(c.divIdx,c.offset,u.offset)}function x(e,t){var n=e.divIdx;i[n].textContent="",_(n,0,e.offset,t)}function _(e,t,n,o){var a=i[e],s=r[e].substring(t,n),c=document.createTextNode(s);if(o){var u=document.createElement("span");return u.className=o,u.appendChild(c),void a.appendChild(u)}a.appendChild(c)}}},{key:"_updateMatches",value:function(){if(this.renderingDone){for(var e=this.findController,t=this.matches,n=this.pageIdx,r=this.textContentItemsStr,i=this.textDivs,o=-1,a=0,s=t.length;a<s;a++){for(var c=t[a],u=Math.max(o,c.begin.divIdx),l=u,d=c.end.divIdx;l<=d;l++){var f=i[l];f.textContent=r[l],f.className=""}o=c.end.divIdx+1}if(e&&e.highlightMatches){var h=e.pageMatches[n]||null,p=e.pageMatchesLength[n]||null;this.matches=this._convertMatches(h,p),this._renderMatches(this.matches)}}}},{key:"_bindMouse",value:function(){var e=this,t=this.textLayerDiv,n=null;t.addEventListener("mousedown",(function(r){if(e.enhanceTextSelection&&e.textLayerRenderTask)return e.textLayerRenderTask.expandTextDivs(!0),void(n&&(clearTimeout(n),n=null));var i=t.querySelector(".endOfContent");if(i){var o=r.target!==t;if(o=o&&"none"!==window.getComputedStyle(i).getPropertyValue("-moz-user-select"),o){var a=t.getBoundingClientRect(),s=Math.max(0,(r.pageY-a.top)/a.height);i.style.top=(100*s).toFixed(2)+"%"}i.classList.add("active")}})),t.addEventListener("mouseup",(function(){if(e.enhanceTextSelection&&e.textLayerRenderTask)n=setTimeout((function(){e.textLayerRenderTask&&e.textLayerRenderTask.expandTextDivs(!1),n=null}),s);else{var r=t.querySelector(".endOfContent");r&&(r.style.top="",r.classList.remove("active"))}}))}}]),e}();t.TextLayerBuilder=c;var u=function(){function e(){i(this,e)}return a(e,[{key:"createTextLayerBuilder",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new c({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:r,eventBus:i})}}]),e}();t.DefaultTextLayerFactory=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var r=n(2),i=n(10);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function c(e,t){var n=document.createElement("a");if(!n.click)throw new Error('DownloadManager: "a.click()" is not supported.');n.href=e,n.target="_parent","download"in n&&(n.download=t),(document.body||document.documentElement).appendChild(n),n.click(),n.remove()}var u=function(){function e(){o(this,e)}return s(e,[{key:"downloadUrl",value:function(e,t){(0,r.createValidAbsoluteUrl)(e,"http://example.com")&&c(e+"#pdfjs.action=download",t)}},{key:"downloadData",value:function(e,t,n){if(navigator.msSaveBlob)navigator.msSaveBlob(new Blob([e],{type:n}),t);else{var o=(0,r.createObjectURL)(e,n,i.viewerCompatibilityParams.disableCreateObjectURL);c(o,t)}}},{key:"download",value:function(e,t,n){if(navigator.msSaveBlob)navigator.msSaveBlob(e,n)||this.downloadUrl(t,n);else if(i.viewerCompatibilityParams.disableCreateObjectURL)this.downloadUrl(t,n);else{var r=URL.createObjectURL(e);c(r,n)}}}]),e}();t.DownloadManager=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.viewerCompatibilityParams=void 0;var r=Object.create(null),i="undefined"!==typeof navigator&&navigator.userAgent||"",o="undefined"!==typeof navigator&&navigator.platform||"",a="undefined"!==typeof navigator&&navigator.maxTouchPoints||1,s=/Android/.test(i),c=/Trident/.test(i),u=/\b(iPad|iPhone|iPod)(?=;)/.test(i)||"MacIntel"===o&&a>1,l=/CriOS/.test(i);(function(){(c||l)&&(r.disableCreateObjectURL=!0)})(),function(){(u||s)&&(r.maxCanvasPixels=5242880)}();var d=Object.freeze(r);t.viewerCompatibilityParams=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0;var r=i(n(4));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,c,"next",e)}function c(e){o(a,r,i,s,c,"throw",e)}s(void 0)}))}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}n(12);var l=document.webL10n,d=function(){function e(t){s(this,e),this._lang=t,this._ready=new Promise((function(e,n){l.setLanguage(t,(function(){e(l)}))}))}return u(e,[{key:"getLanguage",value:function(){var e=a(r["default"].mark((function e(){var t;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return t=e.sent,e.abrupt("return",t.getLanguage());case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getDirection",value:function(){var e=a(r["default"].mark((function e(){var t;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return t=e.sent,e.abrupt("return",t.getDirection());case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"get",value:function(){var e=a(r["default"].mark((function e(t,n,i){var o;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return o=e.sent,e.abrupt("return",o.get(t,n,i));case 4:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"translate",value:function(){var e=a(r["default"].mark((function e(t){var n;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return n=e.sent,e.abrupt("return",n.translate(t));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}();t.GenericL10n=d},function(e,t,n){"use strict";document.webL10n=function(e,t,n){var r={},i="",o="textContent",a="",s={},c="loading",u=!0;function l(){return t.querySelectorAll('link[type="application/l10n"]')}function d(){var e=t.querySelector('script[type="application/l10n"]');return e?JSON.parse(e.innerHTML):null}function f(e){return e?e.querySelectorAll("*[data-l10n-id]"):[]}function h(e){if(!e)return{};var t=e.getAttribute("data-l10n-id"),n=e.getAttribute("data-l10n-args"),r={};if(n)try{r=JSON.parse(n)}catch(i){console.warn("could not parse arguments for #"+t)}return{id:t,args:r}}function p(e,t,n){t=t||function(e){},n=n||function(){};var r=new XMLHttpRequest;r.open("GET",e,u),r.overrideMimeType&&r.overrideMimeType("text/plain; charset=utf-8"),r.onreadystatechange=function(){4==r.readyState&&(200==r.status||0===r.status?t(r.responseText):n())},r.onerror=n,r.ontimeout=n;try{r.send(null)}catch(i){n()}}function g(e,t,n,a){var s=e.replace(/[^\/]*$/,"")||"./";function c(e){return e.lastIndexOf("\\")<0?e:e.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}function u(e,n){var r={},i=/^\s*|\s*$/,o=/^\s*#|^\s*$/,a=/^\s*\[(.*)\]\s*$/,u=/^\s*@import\s+url\((.*)\)\s*$/i,l=/^([^=\s]*)\s*=\s*(.+)$/;function d(e,n,d){var h=e.replace(i,"").split(/[\r\n]+/),p="*",g=t.split("-",1)[0],m=!1,v="";function b(){while(1){if(!h.length)return void d();var e=h.shift();if(!o.test(e)){if(n){if(v=a.exec(e),v){p=v[1].toLowerCase(),m="*"!==p&&p!==t&&p!==g;continue}if(m)continue;if(v=u.exec(e),v)return void f(s+v[1],b)}var i=e.match(l);i&&3==i.length&&(r[i[1]]=c(i[2]))}}}b()}function f(e,t){p(e,(function(e){d(e,!1,t)}),(function(){console.warn(e+" not found."),t()}))}d(e,!0,(function(){n(r)}))}p(e,(function(e){i+=e,u(e,(function(e){for(var t in e){var i,a,s=t.lastIndexOf(".");s>0?(i=t.substring(0,s),a=t.substring(s+1)):(i=t,a=o),r[i]||(r[i]={}),r[i][a]=e[t]}n&&n()}))}),a)}function m(e,t){e&&(e=e.toLowerCase()),t=t||function(){},v(),a=e;var n=l(),i=n.length;if(0!==i){var o=null,s=0;o=function(){s++,s>=i&&(t(),c="complete")};for(var u=0;u<i;u++){var f=new b(n[u]);f.load(e,o)}}else{var h=d();if(h&&h.locales&&h.default_locale){if(console.log("using the embedded JSON directory, early way out"),r=h.locales[e],!r){var p=h.default_locale.toLowerCase();for(var m in h.locales){if(m=m.toLowerCase(),m===e){r=h.locales[e];break}m===p&&(r=h.locales[p])}}t()}else console.log("no resource to load, early way out");c="complete"}function b(e){var t=e.href;this.load=function(e,n){g(t,e,n,(function(){console.warn(t+" not found."),console.warn('"'+e+'" resource not found'),a="",n()}))}}}function v(){r={},i="",a=""}function b(e){var t={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3};function n(e,t){return-1!==t.indexOf(e)}function r(e,t,n){return t<=e&&e<=n}var i={0:function(e){return"other"},1:function(e){return r(e%100,3,10)?"few":0===e?"zero":r(e%100,11,99)?"many":2==e?"two":1==e?"one":"other"},2:function(e){return 0!==e&&e%10===0?"many":2==e?"two":1==e?"one":"other"},3:function(e){return 1==e?"one":"other"},4:function(e){return r(e,0,1)?"one":"other"},5:function(e){return r(e,0,2)&&2!=e?"one":"other"},6:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"},7:function(e){return 2==e?"two":1==e?"one":"other"},8:function(e){return r(e,3,6)?"few":r(e,7,10)?"many":2==e?"two":1==e?"one":"other"},9:function(e){return 0===e||1!=e&&r(e%100,1,19)?"few":1==e?"one":"other"},10:function(e){return r(e%10,2,9)&&!r(e%100,11,19)?"few":e%10!=1||r(e%100,11,19)?"other":"one"},11:function(e){return r(e%10,2,4)&&!r(e%100,12,14)?"few":e%10===0||r(e%10,5,9)||r(e%100,11,14)?"many":e%10==1&&e%100!=11?"one":"other"},12:function(e){return r(e,2,4)?"few":1==e?"one":"other"},13:function(e){return r(e%10,2,4)&&!r(e%100,12,14)?"few":1!=e&&r(e%10,0,1)||r(e%10,5,9)||r(e%100,12,14)?"many":1==e?"one":"other"},14:function(e){return r(e%100,3,4)?"few":e%100==2?"two":e%100==1?"one":"other"},15:function(e){return 0===e||r(e%100,2,10)?"few":r(e%100,11,19)?"many":1==e?"one":"other"},16:function(e){return e%10==1&&11!=e?"one":"other"},17:function(e){return 3==e?"few":0===e?"zero":6==e?"many":2==e?"two":1==e?"one":"other"},18:function(e){return 0===e?"zero":r(e,0,2)&&0!==e&&2!=e?"one":"other"},19:function(e){return r(e,2,10)?"few":r(e,0,1)?"one":"other"},20:function(e){return!r(e%10,3,4)&&e%10!=9||r(e%100,10,19)||r(e%100,70,79)||r(e%100,90,99)?e%1e6===0&&0!==e?"many":e%10!=2||n(e%100,[12,72,92])?e%10!=1||n(e%100,[11,71,91])?"other":"one":"two":"few"},21:function(e){return 0===e?"zero":1==e?"one":"other"},22:function(e){return r(e,0,1)||r(e,11,99)?"one":"other"},23:function(e){return r(e%10,1,2)||e%20===0?"one":"other"},24:function(e){return r(e,3,10)||r(e,13,19)?"few":n(e,[2,12])?"two":n(e,[1,11])?"one":"other"}},o=t[e.replace(/-.*$/,"")];return o in i?i[o]:(console.warn("plural form unknown for ["+e+"]"),function(){return"other"})}function y(e,t,n){var i=r[e];if(!i){if(console.warn("#"+e+" is undefined."),!n)return null;i=n}var o={};for(var a in i){var s=i[a];s=x(s,t,e,a),s=_(s,t,e),o[a]=s}return o}function x(e,t,n,i){var o=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/,a=o.exec(e);if(!a||!a.length)return e;var c,u=a[1],l=a[2];if(t&&l in t?c=t[l]:l in r&&(c=r[l]),u in s){var d=s[u];e=d(e,c,n,i)}return e}function _(e,t,n){var i=/\{\{\s*(.+?)\s*\}\}/g;return e.replace(i,(function(e,i){return t&&i in t?t[i]:i in r?r[i]:(console.log("argument {{"+i+"}} for #"+n+" is undefined."),e)}))}function w(e){var n=h(e);if(n.id){var r=y(n.id,n.args);if(r){if(r[o]){if(0===D(e))e[o]=r[o];else{for(var i=e.childNodes,a=!1,s=0,c=i.length;s<c;s++)3===i[s].nodeType&&/\S/.test(i[s].nodeValue)&&(a?i[s].nodeValue="":(i[s].nodeValue=r[o],a=!0));if(!a){var u=t.createTextNode(r[o]);e.insertBefore(u,e.firstChild)}}delete r[o]}for(var l in r)e[l]=r[l]}else console.warn("#"+n.id+" is undefined.")}}function D(e){if(e.children)return e.children.length;if("undefined"!==typeof e.childElementCount)return e.childElementCount;for(var t=0,n=0;n<e.childNodes.length;n++)t+=1===e.nodeType?1:0;return t}function C(e){e=e||t.documentElement;for(var n=f(e),r=n.length,i=0;i<r;i++)w(n[i]);w(e)}return s.plural=function(e,t,n,i){var c=parseFloat(t);if(isNaN(c))return e;if(i!=o)return e;s._pluralRules||(s._pluralRules=b(a));var u="["+s._pluralRules(c)+"]";return 0===c&&n+"[zero]"in r?e=r[n+"[zero]"][i]:1==c&&n+"[one]"in r?e=r[n+"[one]"][i]:2==c&&n+"[two]"in r?e=r[n+"[two]"][i]:n+u in r?e=r[n+u][i]:n+"[other]"in r&&(e=r[n+"[other]"][i]),e},{get:function(e,t,n){var r,i=e.lastIndexOf("."),a=o;i>0&&(a=e.substring(i+1),e=e.substring(0,i)),n&&(r={},r[a]=n);var s=y(e,t,r);return s&&a in s?s[a]:"{{"+e+"}}"},getData:function(){return r},getText:function(){return i},getLanguage:function(){return a},setLanguage:function(e,t){m(e,(function(){t&&t()}))},getDirection:function(){var e=["ar","he","fa","ps","ur"],t=a.split("-",1)[0];return e.indexOf(t)>=0?"rtl":"ltr"},translate:C,getReadyState:function(){return c},ready:function(n){n&&("complete"==c||"interactive"==c?e.setTimeout((function(){n()})):t.addEventListener&&t.addEventListener("localized",(function e(){t.removeEventListener("localized",e),n()})))}}}(window,document)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindController=t.FindState=void 0;var r=n(2),i=n(14),o=n(3);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var u={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};t.FindState=u;var l=250,d=-50,f=-400,h={"‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},p=null;function g(e){if(!p){var t=Object.keys(h).join("");p=new RegExp("[".concat(t,"]"),"g")}return e.replace(p,(function(e){return h[e]}))}var m=function(){function e(t){var n=t.linkService,r=t.eventBus;a(this,e),this._linkService=n,this._eventBus=r,this._reset(),r._on("findbarclose",this._onFindBarClose.bind(this))}return c(e,[{key:"setDocument",value:function(e){this._pdfDocument&&this._reset(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}},{key:"executeCommand",value:function(e,t){var n=this;if(t){var r=this._pdfDocument;(null===this._state||this._shouldDirtyMatch(e,t))&&(this._dirtyMatch=!0),this._state=t,"findhighlightallchange"!==e&&this._updateUIState(u.PENDING),this._firstPageCapability.promise.then((function(){if(n._pdfDocument&&(!r||n._pdfDocument===r)){n._extractText();var t=!n._highlightMatches,i=!!n._findTimeout;n._findTimeout&&(clearTimeout(n._findTimeout),n._findTimeout=null),"find"===e?n._findTimeout=setTimeout((function(){n._nextMatch(),n._findTimeout=null}),l):n._dirtyMatch?n._nextMatch():"findagain"===e?(n._nextMatch(),t&&n._state.highlightAll&&n._updateAllPages()):"findhighlightallchange"===e?(i?n._nextMatch():n._highlightMatches=!0,n._updateAllPages()):n._nextMatch()}}))}}},{key:"scrollMatchIntoView",value:function(e){var t=e.element,n=void 0===t?null:t,r=e.pageIndex,i=void 0===r?-1:r,a=e.matchIndex,s=void 0===a?-1:a;if(this._scrollMatches&&n&&-1!==s&&s===this._selected.matchIdx&&-1!==i&&i===this._selected.pageIdx){this._scrollMatches=!1;var c={top:d,left:f};(0,o.scrollIntoView)(n,c,!0)}}},{key:"_reset",value:function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,r.createPromiseCapability)()}},{key:"_shouldDirtyMatch",value:function(e,t){if(t.query!==this._state.query)return!0;switch(e){case"findagain":var n=this._selected.pageIdx+1,r=this._linkService;return n>=1&&n<=r.pagesCount&&n!==r.page&&!r.isPageVisible(n);case"findhighlightallchange":return!1}return!0}},{key:"_prepareMatches",value:function(e,t,n){function r(t){var n=e[t],r=e[t+1];if(t<e.length-1&&n.match===r.match)return n.skipped=!0,!0;for(var i=t-1;i>=0;i--){var o=e[i];if(!o.skipped){if(o.match+o.matchLength<n.match)break;if(o.match+o.matchLength>=n.match+n.matchLength)return n.skipped=!0,!0}}return!1}e.sort((function(e,t){return e.match===t.match?e.matchLength-t.matchLength:e.match-t.match}));for(var i=0,o=e.length;i<o;i++)r(i)||(t.push(e[i].match),n.push(e[i].matchLength))}},{key:"_isEntireWord",value:function(e,t,n){if(t>0){var r=e.charCodeAt(t),o=e.charCodeAt(t-1);if((0,i.getCharacterType)(r)===(0,i.getCharacterType)(o))return!1}var a=t+n-1;if(a<e.length-1){var s=e.charCodeAt(a),c=e.charCodeAt(a+1);if((0,i.getCharacterType)(s)===(0,i.getCharacterType)(c))return!1}return!0}},{key:"_calculatePhraseMatch",value:function(e,t,n,r){var i=[],o=e.length,a=-o;while(1){if(a=n.indexOf(e,a+o),-1===a)break;r&&!this._isEntireWord(n,a,o)||i.push(a)}this._pageMatches[t]=i}},{key:"_calculateWordMatch",value:function(e,t,n,r){for(var i=[],o=e.match(/\S+/g),a=0,s=o.length;a<s;a++){var c=o[a],u=c.length,l=-u;while(1){if(l=n.indexOf(c,l+u),-1===l)break;r&&!this._isEntireWord(n,l,u)||i.push({match:l,matchLength:u,skipped:!1})}}this._pageMatchesLength[t]=[],this._pageMatches[t]=[],this._prepareMatches(i,this._pageMatches[t],this._pageMatchesLength[t])}},{key:"_calculateMatch",value:function(e){var t=this._pageContents[e],n=this._query,r=this._state,i=r.caseSensitive,o=r.entireWord,a=r.phraseSearch;if(0!==n.length){i||(t=t.toLowerCase(),n=n.toLowerCase()),a?this._calculatePhraseMatch(n,e,t,o):this._calculateWordMatch(n,e,t,o),this._state.highlightAll&&this._updatePage(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this._nextPageMatch());var s=this._pageMatches[e].length;s>0&&(this._matchesCountTotal+=s,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var e=this;if(!(this._extractTextPromises.length>0))for(var t=Promise.resolve(),n=function(n,i){var o=(0,r.createPromiseCapability)();e._extractTextPromises[n]=o.promise,t=t.then((function(){return e._pdfDocument.getPage(n+1).then((function(e){return e.getTextContent({normalizeWhitespace:!0})})).then((function(t){for(var r=t.items,i=[],a=0,s=r.length;a<s;a++)i.push(r[a].str);e._pageContents[n]=g(i.join("")),o.resolve(n)}),(function(t){console.error("Unable to get text content for page ".concat(n+1),t),e._pageContents[n]="",o.resolve(n)}))}))},i=0,o=this._linkService.pagesCount;i<o;i++)n(i,o)}},{key:"_updatePage",value:function(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}},{key:"_updateAllPages",value:function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}},{key:"_nextMatch",value:function(){var e=this,t=this._state.findPrevious,n=this._linkService.page-1,r=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=n,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(var i=0;i<r;i++)!0!==this._pendingFindMatches[i]&&(this._pendingFindMatches[i]=!0,this._extractTextPromises[i].then((function(t){delete e._pendingFindMatches[t],e._calculateMatch(t)})))}if(""!==this._query){if(!this._resumePageIdx){var o=this._offset;if(this._pagesToSearch=r,null!==o.matchIdx){var a=this._pageMatches[o.pageIdx].length;if(!t&&o.matchIdx+1<a||t&&o.matchIdx>0)return o.matchIdx=t?o.matchIdx-1:o.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(t)}this._nextPageMatch()}}else this._updateUIState(u.FOUND)}},{key:"_matchesReady",value:function(e){var t=this._offset,n=e.length,r=this._state.findPrevious;return n?(t.matchIdx=r?n-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(r),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}},{key:"_nextPageMatch",value:function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var e=null;do{var t=this._offset.pageIdx;if(e=this._pageMatches[t],!e){this._resumePageIdx=t;break}}while(!this._matchesReady(e))}},{key:"_advanceOffsetPage",value:function(e){var t=this._offset,n=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=n||t.pageIdx<0)&&(t.pageIdx=e?n-1:0,t.wrapped=!0)}},{key:"_updateMatch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=u.NOT_FOUND,n=this._offset.wrapped;if(this._offset.wrapped=!1,e){var r=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=n?u.WRAPPED:u.FOUND,-1!==r&&r!==this._selected.pageIdx&&this._updatePage(r)}this._updateUIState(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}},{key:"_onFindBarClose",value:function(e){var t=this,n=this._pdfDocument;this._firstPageCapability.promise.then((function(){!t._pdfDocument||n&&t._pdfDocument!==n||(t._findTimeout&&(clearTimeout(t._findTimeout),t._findTimeout=null),t._resumePageIdx&&(t._resumePageIdx=null,t._dirtyMatch=!0),t._updateUIState(u.FOUND),t._highlightMatches=!1,t._updateAllPages())}))}},{key:"_requestMatchesCount",value:function(){var e=this._selected,t=e.pageIdx,n=e.matchIdx,r=0,i=this._matchesCountTotal;if(-1!==n){for(var o=0;o<t;o++)r+=this._pageMatches[o]&&this._pageMatches[o].length||0;r+=n+1}return(r<1||r>i)&&(r=i=0),{current:r,total:i}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(e,t){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this._requestMatchesCount(),rawQuery:this._state?this._state.query:null})}},{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return this._state}},{key:"_query",get:function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=g(this._state.query)),this._normalizedQuery}}]),e}();t.PDFFindController=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCharacterType=p,t.CharacterType=void 0;var r={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};function i(e){return e<11904}function o(e){return 0===(65408&e)}function a(e){return e>=97&&e<=122||e>=65&&e<=90}function s(e){return e>=48&&e<=57}function c(e){return 32===e||9===e||13===e||10===e}function u(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}function l(e){return e>=12448&&e<=12543}function d(e){return e>=12352&&e<=12447}function f(e){return e>=65376&&e<=65439}function h(e){return 3584===(65408&e)}function p(e){return i(e)?o(e)?c(e)?r.SPACE:a(e)||s(e)||95===e?r.ALPHA_LETTER:r.PUNCT:h(e)?r.THAI_LETTER:160===e?r.SPACE:r.ALPHA_LETTER:u(e)?r.HAN_LETTER:l(e)?r.KATAKANA_LETTER:d(e)?r.HIRAGANA_LETTER:f(e)?r.HALFWIDTH_KATAKANA_LETTER:r.ALPHA_LETTER}t.CharacterType=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDestHashesEqual=y,t.isDestArraysEqual=x,t.PDFHistory=void 0;var r=n(3);function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){return l(e)||u(e,t)||s(e,t)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){i=!0,o=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function l(e){if(Array.isArray(e))return e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}var p=1e3,g=50,m=1e3;function v(){return document.location.hash}var b=function(){function e(t){var n=this,r=t.linkService,i=t.eventBus;d(this,e),this.linkService=r,this.eventBus=i,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",(function(e){n._isViewerInPresentationMode=e.active||e.switchInProgress})),this.eventBus._on("pagesinit",(function(){n._isPagesLoaded=!1;var e=function e(t){n.eventBus._off("pagesloaded",e),n._isPagesLoaded=!!t.pagesCount};n.eventBus._on("pagesloaded",e)}))}return h(e,[{key:"initialize",value:function(e){var t=e.fingerprint,n=e.resetHistory,r=void 0!==n&&n,i=e.updateUrl,o=void 0!==i&&i;if(t&&"string"===typeof t){this._initialized&&this.reset();var a=""!==this._fingerprint&&this._fingerprint!==t;this._fingerprint=t,this._updateUrl=!0===o,this._initialized=!0,this._bindEvents();var s=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=v(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(s,!0)||r){var c=this._parseCurrentHash(!0),u=c.hash,l=c.page,d=c.rotation;return!u||a||r?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:u,page:l,rotation:d},!0)}var f=s.destination;this._updateInternalState(f,s.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),void 0!==f.rotation&&(this._initialRotation=f.rotation),f.dest?(this._initialBookmark=JSON.stringify(f.dest),this._destination.page=null):f.hash?this._initialBookmark=f.hash:f.page&&(this._initialBookmark="page=".concat(f.page))}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}},{key:"reset",value:function(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}},{key:"push",value:function(e){var t=this,n=e.namedDest,r=void 0===n?null:n,i=e.explicitDest,o=e.pageNumber;if(this._initialized)if(r&&"string"!==typeof r)console.error("PDFHistory.push: "+'"'.concat(r,'" is not a valid namedDest parameter.'));else if(Array.isArray(i))if(Number.isInteger(o)&&o>0&&o<=this.linkService.pagesCount||null===o&&!this._destination){var a=r||JSON.stringify(i);if(a){var s=!1;if(this._destination&&(y(this._destination.hash,a)||x(this._destination.dest,i))){if(this._destination.page)return;s=!0}this._popStateInProgress&&!s||(this._pushOrReplaceState({dest:i,hash:a,page:o,rotation:this.linkService.rotation},s),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((function(){t._popStateInProgress=!1}))))}}else console.error("PDFHistory.push: "+'"'.concat(o,'" is not a valid pageNumber parameter.'));else console.error("PDFHistory.push: "+'"'.concat(i,'" is not a valid explicitDest parameter.'))}},{key:"pushCurrentPosition",value:function(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid<this._maxUid&&window.history.forward()}}},{key:"_pushOrReplaceState",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n||!this._destination,i={fingerprint:this._fingerprint,uid:r?this._uid:this._uid+1,destination:e};if(this._updateInternalState(e,i.uid),this._updateUrl&&e&&e.hash){var o=document.location.href.split("#")[0];o.startsWith("file://")||(t="".concat(o,"#").concat(e.hash))}r?window.history.replaceState(i,"",t):(this._maxUid=this._uid,window.history.pushState(i,"",t))}},{key:"_tryPushCurrentPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._position){var t=this._position;if(e&&(t=Object.assign(Object.create(null),this._position),t.temporary=!0),this._destination){if(this._destination.temporary)this._pushOrReplaceState(t,!0);else if(this._destination.hash!==t.hash&&(this._destination.page||!(g<=0||this._numPositionUpdates<=g))){var n=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(this._destination.dest||!this._destination.first)return;n=!0}this._pushOrReplaceState(t,n)}}else this._pushOrReplaceState(t)}}},{key:"_isValidState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return!1;if(e.fingerprint!==this._fingerprint){if(!t)return!1;if("string"!==typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1;var n=performance.getEntriesByType("navigation"),r=o(n,1),a=r[0];if(!a||"reload"!==a.type)return!1}return!(!Number.isInteger(e.uid)||e.uid<0)&&(null!==e.destination&&"object"===i(e.destination))}},{key:"_updateInternalState",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&e&&e.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=unescape(v()).substring(1),n=(0,r.parseQueryString)(t),i=n.nameddest||"",o=0|n.page;return Number.isInteger(o)&&o>0&&o<=this.linkService.pagesCount&&!(e&&i.length>0)||(o=null),{hash:t,page:o,rotation:this.linkService.rotation}}},{key:"_updateViewarea",value:function(e){var t=this,n=e.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(n.pageNumber):n.pdfOpenParams.substring(1),page:this.linkService.page,first:n.pageNumber,rotation:n.rotation},this._popStateInProgress||(g>0&&this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,m>0&&(this._updateViewareaTimeout=setTimeout((function(){t._popStateInProgress||t._tryPushCurrentPosition(!0),t._updateViewareaTimeout=null}),m)))}},{key:"_popState",value:function(e){var t=this,n=e.state,i=v(),o=this._currentHash!==i;if(this._currentHash=i,n){if(this._isValidState(n)){this._popStateInProgress=!0,o&&(this._blockHashChange++,(0,r.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:p}).then((function(){t._blockHashChange--})));var a=n.destination;this._updateInternalState(a,n.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,r.isValidRotation)(a.rotation)&&(this.linkService.rotation=a.rotation),a.dest?this.linkService.navigateTo(a.dest):a.hash?this.linkService.setHash(a.hash):a.page&&(this.linkService.page=a.page),Promise.resolve().then((function(){t._popStateInProgress=!1}))}}else{this._uid++;var s=this._parseCurrentHash(),c=s.hash,u=s.page,l=s.rotation;this._pushOrReplaceState({hash:c,page:u,rotation:l},!0)}}},{key:"_pageHide",value:function(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}},{key:"_bindEvents",value:function(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}},{key:"_unbindEvents",value:function(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}},{key:"popStateInProgress",get:function(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}},{key:"initialBookmark",get:function(){return this._initialized?this._initialBookmark:null}},{key:"initialRotation",get:function(){return this._initialized?this._initialRotation:null}}]),e}();function y(e,t){if("string"!==typeof e||"string"!==typeof t)return!1;if(e===t)return!0;var n=(0,r.parseQueryString)(e),i=n.nameddest;return i===t}function x(e,t){function n(e,t){if(i(e)!==i(t))return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!==e&&"object"===i(e)&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!n(e[r],t[r]))return!1;return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r++)if(!n(e[r],t[r]))return!1;return!0}t.PDFHistory=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPageView=void 0;var r=c(n(4)),i=n(3),o=n(2),a=n(17),s=n(10);function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}var p=s.viewerCompatibilityParams.maxCanvasPixels||16777216,g=function(){function e(t){d(this,e);var n=t.container,r=t.defaultViewport;this.id=t.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=t.scale||i.DEFAULT_SCALE,this.viewport=r,this.pdfPageRotate=r.rotation,this._annotationStorage=t.annotationStorage||null,this._optionalContentConfigPromise=t.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:i.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms="boolean"!==typeof t.renderInteractiveForms||t.renderInteractiveForms,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels||p,this.eventBus=t.eventBus,this.renderingQueue=t.renderingQueue,this.textLayerFactory=t.textLayerFactory,this.annotationLayerFactory=t.annotationLayerFactory,this.renderer=t.renderer||i.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.l10n=t.l10n||i.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=a.RenderingStates.INITIAL,this.resume=null,this.error=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;var o=document.createElement("div");o.className="page",o.style.width=Math.floor(this.viewport.width)+"px",o.style.height=Math.floor(this.viewport.height)+"px",o.setAttribute("data-page-number",this.id),this.div=o,n.appendChild(o)}return h(e,[{key:"setPdfPage",value:function(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*i.CSS_UNITS,rotation:t}),this.stats=e.stats,this.reset()}},{key:"destroy",value:function(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}},{key:"_renderAnnotationLayer",value:function(){var e=l(r["default"].mark((function e(){var t;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=null,e.prev=1,e.next=4,this.annotationLayer.render(this.viewport,"display");case 4:e.next=9;break;case 6:e.prev=6,e.t0=e["catch"](1),t=e.t0;case 9:return e.prev=9,this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:t}),e.finish(9);case 12:case"end":return e.stop()}}),e,this,[[1,6,9,12]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"_resetZoomLayer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var t=this.zoomLayer.firstChild;this.paintedViewportMap["delete"](t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.cancelRendering(t),this.renderingState=a.RenderingStates.INITIAL;var n=this.div;n.style.width=Math.floor(this.viewport.width)+"px",n.style.height=Math.floor(this.viewport.height)+"px";for(var r=n.childNodes,i=e&&this.zoomLayer||null,o=t&&this.annotationLayer&&this.annotationLayer.div||null,s=r.length-1;s>=0;s--){var c=r[s];i!==c&&o!==c&&n.removeChild(c)}n.removeAttribute("data-loaded"),o?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),i||(this.canvas&&(this.paintedViewportMap["delete"](this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap["delete"](this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",n.appendChild(this.loadingIconDiv)}},{key:"update",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.scale=e||this.scale,"undefined"!==typeof t&&(this.rotation=t),n instanceof Promise&&(this._optionalContentConfigPromise=n);var r=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*i.CSS_UNITS,rotation:r}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});var o=!1;if(this.canvas&&this.maxCanvasPixels>0){var a=this.outputScale;(Math.floor(this.viewport.width)*a.sx|0)*(Math.floor(this.viewport.height)*a.sy|0)>this.maxCanvasPixels&&(o=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&o)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});this.zoomLayer||this.canvas.hasAttribute("hidden")||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}},{key:"cancelRendering",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!e&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}},{key:"cssTransform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.viewport.width,r=this.viewport.height,i=this.div;e.style.width=e.parentNode.style.width=i.style.width=Math.floor(n)+"px",e.style.height=e.parentNode.style.height=i.style.height=Math.floor(r)+"px";var o=this.viewport.rotation-this.paintedViewportMap.get(e).rotation,a=Math.abs(o),s=1,c=1;90!==a&&270!==a||(s=r/n,c=n/r);var u="rotate("+o+"deg) scale("+s+","+c+")";if(e.style.transform=u,this.textLayer){var l=this.textLayer.viewport,d=this.viewport.rotation-l.rotation,f=Math.abs(d),h=n/l.width;90!==f&&270!==f||(h=n/l.height);var p,g,m=this.textLayer.textLayerDiv;switch(f){case 0:p=g=0;break;case 90:p=0,g="-"+m.style.height;break;case 180:p="-"+m.style.width,g="-"+m.style.height;break;case 270:p="-"+m.style.width,g=0;break;default:console.error("Bad rotation value.");break}m.style.transform="rotate("+f+"deg) scale("+h+", "+h+") translate("+p+", "+g+")",m.style.transformOrigin="0% 0%"}t&&this.annotationLayer&&this._renderAnnotationLayer()}},{key:"getPagePoint",value:function(e,t){return this.viewport.convertToPdfPoint(e,t)}},{key:"draw",value:function(){var e=this;this.renderingState!==a.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var t=this.div,n=this.pdfPage;if(!n)return this.renderingState=a.RenderingStates.FINISHED,this.loadingIconDiv&&(t.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=a.RenderingStates.RUNNING;var s=document.createElement("div");s.style.width=t.style.width,s.style.height=t.style.height,s.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?t.insertBefore(s,this.annotationLayer.div):t.appendChild(s);var c=null;if(this.textLayerMode!==i.TextLayerMode.DISABLE&&this.textLayerFactory){var u=document.createElement("div");u.className="textLayer",u.style.width=s.style.width,u.style.height=s.style.height,this.annotationLayer&&this.annotationLayer.div?t.insertBefore(u,this.annotationLayer.div):t.appendChild(u),c=this.textLayerFactory.createTextLayerBuilder(u,this.id-1,this.viewport,this.textLayerMode===i.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=c;var d=null;this.renderingQueue&&(d=function(t){if(!e.renderingQueue.isHighestPriority(e))return e.renderingState=a.RenderingStates.PAUSED,void(e.resume=function(){e.renderingState=a.RenderingStates.RUNNING,t()});t()});var f=function(){var i=l(r["default"].mark((function i(s){return r["default"].wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(h===e.paintTask&&(e.paintTask=null),!(s instanceof o.RenderingCancelledException)){r.next=4;break}return e.error=null,r.abrupt("return");case 4:if(e.renderingState=a.RenderingStates.FINISHED,e.loadingIconDiv&&(t.removeChild(e.loadingIconDiv),delete e.loadingIconDiv),e._resetZoomLayer(!0),e.error=s,e.stats=n.stats,e.eventBus.dispatch("pagerendered",{source:e,pageNumber:e.id,cssTransform:!1,timestamp:performance.now()}),!s){r.next=12;break}throw s;case 12:case"end":return r.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}(),h=this.renderer===i.RendererType.SVG?this.paintOnSvg(s):this.paintOnCanvas(s);h.onRenderContinue=d,this.paintTask=h;var p=h.promise.then((function(){return f(null).then((function(){if(c){var e=n.streamTextContent({normalizeWhitespace:!0});c.setTextContentStream(e),c.render()}}))}),(function(e){return f(e)}));return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(t,n,this._annotationStorage,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this._renderAnnotationLayer()),t.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),p}},{key:"paintOnCanvas",value:function(e){var t=(0,o.createPromiseCapability)(),n={promise:t.promise,onRenderContinue:function(e){e()},cancel:function(){b.cancel()}},r=this.viewport,a=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then((function(e){a.setAttribute("aria-label",e)})),a.setAttribute("hidden","hidden");var s=!0,c=function(){s&&(a.removeAttribute("hidden"),s=!1)};e.appendChild(a),this.canvas=a,a.mozOpaque=!0;var u=a.getContext("2d",{alpha:!1}),l=(0,i.getOutputScale)(u);if(this.outputScale=l,this.useOnlyCssZoom){var d=r.clone({scale:i.CSS_UNITS});l.sx*=d.width/r.width,l.sy*=d.height/r.height,l.scaled=!0}if(this.maxCanvasPixels>0){var f=r.width*r.height,h=Math.sqrt(this.maxCanvasPixels/f);l.sx>h||l.sy>h?(l.sx=h,l.sy=h,l.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var p=(0,i.approximateFraction)(l.sx),g=(0,i.approximateFraction)(l.sy);a.width=(0,i.roundToDivide)(r.width*l.sx,p[0]),a.height=(0,i.roundToDivide)(r.height*l.sy,g[0]),a.style.width=(0,i.roundToDivide)(r.width,p[1])+"px",a.style.height=(0,i.roundToDivide)(r.height,g[1])+"px",this.paintedViewportMap.set(a,r);var m=l.scaled?[l.sx,0,0,l.sy,0,0]:null,v={canvasContext:u,transform:m,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms,optionalContentConfigPromise:this._optionalContentConfigPromise},b=this.pdfPage.render(v);return b.onContinue=function(e){c(),n.onRenderContinue?n.onRenderContinue(e):e()},b.promise.then((function(){c(),t.resolve(void 0)}),(function(e){c(),t.reject(e)})),n}},{key:"paintOnSvg",value:function(e){var t=this,n=!1,r=function(){if(n)throw new o.RenderingCancelledException("Rendering cancelled, page ".concat(t.id),"svg")},s=this.pdfPage,c=this.viewport.clone({scale:i.CSS_UNITS}),u=s.getOperatorList().then((function(n){r();var i=new o.SVGGraphics(s.commonObjs,s.objs);return i.getSVG(n,c).then((function(n){r(),t.svg=n,t.paintedViewportMap.set(n,c),n.style.width=e.style.width,n.style.height=e.style.height,t.renderingState=a.RenderingStates.FINISHED,e.appendChild(n)}))}));return{promise:u,onRenderContinue:function(e){e()},cancel:function(){n=!0}}}},{key:"setPageLabel",value:function(e){this.pageLabel="string"===typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}}]),e}();t.PDFPageView=g},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFRenderingQueue=t.RenderingStates=void 0;var a=3e4,s={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};t.RenderingStates=s;var c=function(){function e(){r(this,e),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}return o(e,[{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setThumbnailViewer",value:function(e){this.pdfThumbnailViewer=e}},{key:"isHighestPriority",value:function(e){return this.highestPriorityPage===e.renderingId}},{key:"renderHighestPriority",value:function(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),a))}},{key:"getHighestPriority",value:function(e,t,n){var r=e.views,i=r.length;if(0===i)return null;for(var o=0;o<i;++o){var a=r[o].view;if(!this.isViewFinished(a))return a}if(n){var s=e.last.id;if(t[s]&&!this.isViewFinished(t[s]))return t[s]}else{var c=e.first.id-2;if(t[c]&&!this.isViewFinished(t[c]))return t[c]}return null}},{key:"isViewFinished",value:function(e){return e.renderingState===s.FINISHED}},{key:"renderView",value:function(e){var t=this;switch(e.renderingState){case s.FINISHED:return!1;case s.PAUSED:this.highestPriorityPage=e.renderingId,e.resume();break;case s.RUNNING:this.highestPriorityPage=e.renderingId;break;case s.INITIAL:this.highestPriorityPage=e.renderingId,e.draw()["finally"]((function(){t.renderHighestPriority()}))["catch"]((function(e){console.error('renderView: "'.concat(e,'"'))}));break}return!0}}]),e}();t.PDFRenderingQueue=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSinglePageViewer=void 0;var r=n(19),i=n(2);function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t,n){return u="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=l(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}},u(e,t,n||e)}function l(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=v(e),null===e)break;return e}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){var t=m();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e){d(n,e);var t=h(n);function n(e){var r;return a(this,n),r=t.call(this,e),r.eventBus._on("pagesinit",(function(e){r._ensurePageViewVisible()})),r}return c(n,[{key:"_resetView",value:function(){u(v(n.prototype),"_resetView",this).call(this),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}},{key:"_ensurePageViewVisible",value:function(){var e=this._pages[this._currentPageNumber-1],t=this._pages[this._previousPageNumber-1],n=this.viewer.childNodes;switch(n.length){case 0:this.viewer.appendChild(e.div);break;case 1:if(n[0]!==t.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(e===t)break;this._shadowViewer.appendChild(t.div),this.viewer.appendChild(e.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}},{key:"_scrollUpdate",value:function(){this._updateScrollDown&&this._updateScrollDown(),u(v(n.prototype),"_scrollUpdate",this).call(this)}},{key:"_scrollIntoView",value:function(e){var t=this,r=e.pageDiv,i=e.pageSpot,o=void 0===i?null:i,a=e.pageNumber,s=void 0===a?null:a;s&&this._setCurrentPageNumber(s);var c=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),u(v(n.prototype),"_scrollIntoView",this).call(this,{pageDiv:r,pageSpot:o,pageNumber:s}),this._updateScrollDown=function(){t.scroll.down=c,t._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(e){}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_viewerElement",get:function(){return(0,i.shadow)(this,"_viewerElement",this._shadowViewer)}},{key:"_isScrollModeHorizontal",get:function(){return(0,i.shadow)(this,"_isScrollModeHorizontal",!1)}}]),n}(r.BaseViewer);t.PDFSinglePageViewer=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseViewer=void 0;var r=n(3),i=n(17),o=n(1),a=n(2),s=n(16),c=n(7),u=n(8);function l(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}function d(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}var m=10;function v(e){var t=[];this.push=function(n){var r=t.indexOf(n);r>=0&&t.splice(r,1),t.push(n),t.length>e&&t.shift().destroy()},this.resize=function(n,i){if(e=n,i){for(var o=new Set,a=0,s=i.length;a<s;++a)o.add(i[a].id);(0,r.moveToEndOfArray)(t,(function(e){return o.has(e.id)}))}while(t.length>e)t.shift().destroy()}}function b(e,t){return t===e||Math.abs(t-e)<1e-15}var y=function(){function e(t){var n=this;if(h(this,e),this.constructor===e)throw new Error("Cannot initialize BaseViewer.");if(this._name=this.constructor.name,this.container=t.container,this.viewer=t.viewer||t.container.firstElementChild,!(this.container instanceof HTMLDivElement&&this.viewer instanceof HTMLDivElement))throw new Error("Invalid `container` and/or `viewer` option.");this.eventBus=t.eventBus,this.linkService=t.linkService||new c.SimpleLinkService,this.downloadManager=t.downloadManager||null,this.findController=t.findController||null,this.removePageBorders=t.removePageBorders||!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:r.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms="boolean"!==typeof t.renderInteractiveForms||t.renderInteractiveForms,this.enablePrintAutoRotate=t.enablePrintAutoRotate||!1,this.renderer=t.renderer||r.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels,this.l10n=t.l10n||r.NullL10n,this.defaultRenderingQueue=!t.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new i.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=t.renderingQueue,this.scroll=(0,r.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=r.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then((function(){n.eventBus.dispatch("baseviewerinit",{source:n})}))}return g(e,[{key:"getPageView",value:function(e){return this._pages[e]}},{key:"_setCurrentPageNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._currentPageNumber===e?(t&&this._resetCurrentPageView(),!0):0<e&&e<=this.pagesCount&&(this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:e,pageLabel:this._pageLabels&&this._pageLabels[e-1]}),t&&this._resetCurrentPageView(),!0)}},{key:"_onePageRenderedOrForceFetch",value:function(){return this.container.offsetParent&&0!==this._getVisiblePages().views.length?this._onePageRenderedCapability.promise:Promise.resolve()}},{key:"setDocument",value:function(e){var t=this;if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=e,e){var n=e.numPages,i=e.getPage(1),o=e.annotationStorage,a=e.getOptionalContentConfig();this._pagesCapability.promise.then((function(){t.eventBus.dispatch("pagesloaded",{source:t,pagesCount:n})})),this._onBeforeDraw=function(e){var n=t._pages[e.pageNumber-1];n&&t._buffer.push(n)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=function(e){e.cssTransform||t._onePageRenderedCapability.settled||(t._onePageRenderedCapability.resolve(),t.eventBus._off("pagerendered",t._onAfterDraw),t._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),i.then((function(i){t._firstPageCapability.resolve(i),t._optionalContentConfigPromise=a;for(var c=t.currentScale,u=i.getViewport({scale:c*r.CSS_UNITS}),l=t.textLayerMode!==r.TextLayerMode.DISABLE?t:null,d=1;d<=n;++d){var f=new s.PDFPageView({container:t._viewerElement,eventBus:t.eventBus,id:d,scale:c,defaultViewport:u.clone(),annotationStorage:o,optionalContentConfigPromise:a,renderingQueue:t.renderingQueue,textLayerFactory:l,textLayerMode:t.textLayerMode,annotationLayerFactory:t,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,renderer:t.renderer,enableWebGL:t.enableWebGL,useOnlyCssZoom:t.useOnlyCssZoom,maxCanvasPixels:t.maxCanvasPixels,l10n:t.l10n});t._pages.push(f)}var h=t._pages[0];h&&(h.setPdfPage(i),t.linkService.cachePageRef(1,i.ref)),t._spreadMode!==r.SpreadMode.NONE&&t._updateSpreadMode(),t._onePageRenderedOrForceFetch().then((function(){if(t.findController&&t.findController.setDocument(e),e.loadingParams.disableAutoFetch||n>7500)t._pagesCapability.resolve();else{var r=n-1;if(r<=0)t._pagesCapability.resolve();else for(var i=function(n){e.getPage(n).then((function(e){var i=t._pages[n-1];i.pdfPage||i.setPdfPage(e),t.linkService.cachePageRef(n,e.ref),0===--r&&t._pagesCapability.resolve()}),(function(e){console.error("Unable to get page ".concat(n," to initialize viewer"),e),0===--r&&t._pagesCapability.resolve()}))},o=2;o<=n;++o)i(o)}})),t.eventBus.dispatch("pagesinit",{source:t}),t.defaultRenderingQueue&&t.update()}))["catch"]((function(e){console.error("Unable to initialize viewer",e)}))}}},{key:"setPageLabels",value:function(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("".concat(this._name,".setPageLabels: Invalid page labels."))):this._pageLabels=null;for(var t=0,n=this._pages.length;t<n;t++){var r=this._pages[t],i=this._pageLabels&&this._pageLabels[t];r.setPageLabel(i)}}}},{key:"_resetView",value:function(){this._pages=[],this._currentPageNumber=1,this._currentScale=r.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new v(m),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,a.createPromiseCapability)(),this._onePageRenderedCapability=(0,a.createPromiseCapability)(),this._pagesCapability=(0,a.createPromiseCapability)(),this._scrollMode=r.ScrollMode.VERTICAL,this._spreadMode=r.SpreadMode.NONE,this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.viewer.textContent="",this._updateScrollMode()}},{key:"_scrollUpdate",value:function(){0!==this.pagesCount&&this.update()}},{key:"_scrollIntoView",value:function(e){var t=e.pageDiv,n=e.pageSpot,i=void 0===n?null:n;e.pageNumber;(0,r.scrollIntoView)(t,i)}},{key:"_setScaleUpdatePages",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._currentScaleValue=t.toString(),b(this._currentScale,e))r&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t});else{for(var i=0,o=this._pages.length;i<o;i++)this._pages[i].update(e);if(this._currentScale=e,!n){var a,s=this._currentPageNumber;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(s=this._location.pageNumber,a=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:s,destArray:a,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:r?t:void 0}),this.defaultRenderingQueue&&this.update()}}},{key:"_setScale",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=parseFloat(e);if(n>0)this._setScaleUpdatePages(n,e,t,!1);else{var i=this._pages[this._currentPageNumber-1];if(!i)return;var o=this.isInPresentationMode||this.removePageBorders,a=o?0:r.SCROLLBAR_PADDING,s=o?0:r.VERTICAL_PADDING;if(!o&&this._isScrollModeHorizontal){var c=[s,a];a=c[0],s=c[1]}var u=(this.container.clientWidth-a)/i.width*i.scale,l=(this.container.clientHeight-s)/i.height*i.scale;switch(e){case"page-actual":n=1;break;case"page-width":n=u;break;case"page-height":n=l;break;case"page-fit":n=Math.min(u,l);break;case"auto":var d=(0,r.isPortraitOrientation)(i)?u:Math.min(l,u);n=Math.min(r.MAX_AUTO_SCALE,d);break;default:return void console.error("".concat(this._name,'._setScale: "').concat(e,'" is an unknown zoom value.'))}this._setScaleUpdatePages(n,e,t,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);var e=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:e.div})}},{key:"scrollPageIntoView",value:function(e){var t=e.pageNumber,n=e.destArray,i=void 0===n?null:n,o=e.allowNegativeOffset,a=void 0!==o&&o,s=e.ignoreDestinationZoom,c=void 0!==s&&s;if(this.pdfDocument){var u=Number.isInteger(t)&&this._pages[t-1];if(u)if(!this.isInPresentationMode&&i){var l,d,f=0,h=0,p=0,g=0,m=u.rotation%180!==0,v=(m?u.height:u.width)/u.scale/r.CSS_UNITS,b=(m?u.width:u.height)/u.scale/r.CSS_UNITS,y=0;switch(i[1].name){case"XYZ":f=i[2],h=i[3],y=i[4],f=null!==f?f:0,h=null!==h?h:b;break;case"Fit":case"FitB":y="page-fit";break;case"FitH":case"FitBH":h=i[2],y="page-width",null===h&&this._location&&(f=this._location.left,h=this._location.top);break;case"FitV":case"FitBV":f=i[2],p=v,g=b,y="page-height";break;case"FitR":f=i[2],h=i[3],p=i[4]-f,g=i[5]-h;var x=this.removePageBorders?0:r.SCROLLBAR_PADDING,_=this.removePageBorders?0:r.VERTICAL_PADDING;l=(this.container.clientWidth-x)/p/r.CSS_UNITS,d=(this.container.clientHeight-_)/g/r.CSS_UNITS,y=Math.min(Math.abs(l),Math.abs(d));break;default:return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(i[1].name,'" is not a valid destination type.'))}if(c||(y&&y!==this._currentScale?this.currentScaleValue=y:this._currentScale===r.UNKNOWN_SCALE&&(this.currentScaleValue=r.DEFAULT_SCALE_VALUE)),"page-fit"!==y||i[4]){var w=[u.viewport.convertToViewportPoint(f,h),u.viewport.convertToViewportPoint(f+p,h+g)],D=Math.min(w[0][0],w[1][0]),C=Math.min(w[0][1],w[1][1]);a||(D=Math.max(D,0),C=Math.max(C,0)),this._scrollIntoView({pageDiv:u.div,pageSpot:{left:D,top:C},pageNumber:t})}else this._scrollIntoView({pageDiv:u.div,pageNumber:t})}else this._setCurrentPageNumber(t,!0);else console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(t,'" is not a valid pageNumber parameter.'))}}},{key:"_updateLocation",value:function(e){var t=this._currentScale,n=this._currentScaleValue,r=parseFloat(n)===t?Math.round(1e4*t)/100:n,i=e.id,o="#page="+i;o+="&zoom="+r;var a=this._pages[i-1],s=this.container,c=a.getPagePoint(s.scrollLeft-e.x,s.scrollTop-e.y),u=Math.round(c[0]),l=Math.round(c[1]);o+=","+u+","+l,this._location={pageNumber:i,scale:r,top:l,left:u,rotation:this._pagesRotation,pdfOpenParams:o}}},{key:"_updateHelper",value:function(e){throw new Error("Not implemented: _updateHelper")}},{key:"update",value:function(){var e=this._getVisiblePages(),t=e.views,n=t.length;if(0!==n){var r=Math.max(m,2*n+1);this._buffer.resize(r,t),this.renderingQueue.renderHighestPriority(e),this._updateHelper(t),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"containsElement",value:function(e){return this.container.contains(e)}},{key:"focus",value:function(){this.container.focus()}},{key:"_getCurrentVisiblePage",value:function(){if(!this.pagesCount)return{views:[]};var e=this._pages[this._currentPageNumber-1],t=e.div,n={id:e.id,x:t.offsetLeft+t.clientLeft,y:t.offsetTop+t.clientTop,view:e};return{first:n,last:n,views:[n]}}},{key:"_getVisiblePages",value:function(){return(0,r.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}},{key:"isPageVisible",value:function(e){return!!this.pdfDocument&&(e<1||e>this.pagesCount?(console.error("".concat(this._name,'.isPageVisible: "').concat(e,'" is out of bounds.')),!1):this._getVisiblePages().views.some((function(t){return t.id===e})))}},{key:"cleanup",value:function(){for(var e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].renderingState!==i.RenderingStates.FINISHED&&this._pages[e].reset()}},{key:"_cancelRendering",value:function(){for(var e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].cancelRendering()}},{key:"_ensurePdfPageLoaded",value:function(e){var t=this;if(e.pdfPage)return Promise.resolve(e.pdfPage);if(this._pagesRequests.has(e))return this._pagesRequests.get(e);var n=this.pdfDocument.getPage(e.id).then((function(n){return e.pdfPage||e.setPdfPage(n),t._pagesRequests["delete"](e),n}))["catch"]((function(n){console.error("Unable to get page for page view",n),t._pagesRequests["delete"](e)}));return this._pagesRequests.set(e,n),n}},{key:"forceRendering",value:function(e){var t=this,n=e||this._getVisiblePages(),r=this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,i=this.renderingQueue.getHighestPriority(n,this._pages,r);return!!i&&(this._ensurePdfPageLoaded(i).then((function(){t.renderingQueue.renderView(i)})),!0)}},{key:"createTextLayerBuilder",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new u.TextLayerBuilder({textLayerDiv:e,eventBus:i,pageIndex:t,viewport:n,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&r})}},{key:"createAnnotationLayerBuilder",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:r.NullL10n;return new o.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n,imageResourcesPath:i,renderInteractiveForms:a,linkService:this.linkService,downloadManager:this.downloadManager,l10n:s})}},{key:"getPagesOverview",value:function(){var e=this._pages.map((function(e){var t=e.pdfPage.getViewport({scale:1});return{width:t.width,height:t.height,rotation:t.rotation}}));return this.enablePrintAutoRotate?e.map((function(e){return(0,r.isPortraitOrientation)(e)?e:{width:e.height,height:e.width,rotation:(e.rotation+90)%360}})):e}},{key:"_updateScrollMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",t===r.ScrollMode.HORIZONTAL),n.classList.toggle("scrollWrapped",t===r.ScrollMode.WRAPPED),this.pdfDocument&&e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}},{key:"_updateSpreadMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var t=this.viewer,n=this._pages;if(t.textContent="",this._spreadMode===r.SpreadMode.NONE)for(var i=0,o=n.length;i<o;++i)t.appendChild(n[i].div);else for(var a=this._spreadMode-1,s=null,c=0,u=n.length;c<u;++c)null===s?(s=document.createElement("div"),s.className="spread",t.appendChild(s)):c%2===a&&(s=s.cloneNode(!1),t.appendChild(s)),s.appendChild(n[c].div);e&&(this._setCurrentPageNumber(e,!0),this.update())}}},{key:"pagesCount",get:function(){return this._pages.length}},{key:"pageViewsReady",get:function(){return!!this._pagesCapability.settled&&this._pages.every((function(e){return e&&e.pdfPage}))}},{key:"currentPageNumber",get:function(){return this._currentPageNumber},set:function(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(e,!0)||console.error("".concat(this._name,'.currentPageNumber: "').concat(e,'" is not a valid page.')))}},{key:"currentPageLabel",get:function(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]},set:function(e){if(this.pdfDocument){var t=0|e;if(this._pageLabels){var n=this._pageLabels.indexOf(e);n>=0&&(t=n+1)}this._setCurrentPageNumber(t,!0)||console.error("".concat(this._name,'.currentPageLabel: "').concat(e,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return this._currentScale!==r.UNKNOWN_SCALE?this._currentScale:r.DEFAULT_SCALE},set:function(e){if(isNaN(e))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(e,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(e){this.pdfDocument&&this._setScale(e,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(e){if(!(0,r.isValidRotation)(e))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&this._pagesRotation!==e){this._pagesRotation=e;for(var t=this._currentPageNumber,n=0,i=this._pages.length;n<i;n++){var o=this._pages[n];o.update(o.scale,e)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}}},{key:"firstPagePromise",get:function(){return this.pdfDocument?this._firstPageCapability.promise:null}},{key:"onePageRendered",get:function(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}},{key:"pagesPromise",get:function(){return this.pdfDocument?this._pagesCapability.promise:null}},{key:"_viewerElement",get:function(){throw new Error("Not implemented: _viewerElement")}},{key:"_isScrollModeHorizontal",get:function(){return!this.isInPresentationMode&&this._scrollMode===r.ScrollMode.HORIZONTAL}},{key:"isInPresentationMode",get:function(){return this.presentationModeState===r.PresentationModeState.FULLSCREEN}},{key:"isChangingPresentationMode",get:function(){return this.presentationModeState===r.PresentationModeState.CHANGING}},{key:"isHorizontalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"hasEqualPageSizes",get:function(){for(var e=this._pages[0],t=1,n=this._pages.length;t<n;++t){var r=this._pages[t];if(r.width!==e.width||r.height!==e.height)return!1}return!0}},{key:"optionalContentConfigPromise",get:function(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:this.pdfDocument.getOptionalContentConfig():Promise.resolve(null)},set:function(e){if(!(e instanceof Promise))throw new Error("Invalid optionalContentConfigPromise: ".concat(e));if(this.pdfDocument&&this._optionalContentConfigPromise){this._optionalContentConfigPromise=e;var t,n=l(this._pages);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.update(r.scale,r.rotation,e)}}catch(i){n.e(i)}finally{n.f()}this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:e})}}},{key:"scrollMode",get:function(){return this._scrollMode},set:function(e){if(this._scrollMode!==e){if(!(0,r.isValidScrollMode)(e))throw new Error("Invalid scroll mode: ".concat(e));this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber)}}},{key:"spreadMode",get:function(){return this._spreadMode},set:function(e){if(this._spreadMode!==e){if(!(0,r.isValidSpreadMode)(e))throw new Error("Invalid spread mode: ".concat(e));this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}}]),e}();t.BaseViewer=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFViewer=void 0;var r=n(19),i=n(2);function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(c)throw o}}}}function s(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function f(e,t,n){return f="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=h(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}},f(e,t,n||e)}function h(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=x(e),null===e)break;return e}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){var t=y();return function(){var n,r=x(e);if(t){var i=x(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var _=function(e){p(n,e);var t=m(n);function n(){return u(this,n),t.apply(this,arguments)}return d(n,[{key:"_scrollIntoView",value:function(e){var t=e.pageDiv,r=e.pageSpot,i=void 0===r?null:r,o=e.pageNumber,a=void 0===o?null:o;if(!i&&!this.isInPresentationMode){var s=t.offsetLeft+t.clientLeft,c=s+t.clientWidth,u=this.container,l=u.scrollLeft,d=u.clientWidth;(this._isScrollModeHorizontal||s<l||c>l+d)&&(i={left:0,top:0})}f(x(n.prototype),"_scrollIntoView",this).call(this,{pageDiv:t,pageSpot:i,pageNumber:a})}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():f(x(n.prototype),"_getVisiblePages",this).call(this)}},{key:"_updateHelper",value:function(e){if(!this.isInPresentationMode){var t,n=this._currentPageNumber,r=!1,i=a(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o.percent<100)break;if(o.id===n){r=!0;break}}}catch(s){i.e(s)}finally{i.f()}r||(n=e[0].id),this._setCurrentPageNumber(n)}}},{key:"_viewerElement",get:function(){return(0,i.shadow)(this,"_viewerElement",this.viewer)}}]),n}(r.BaseViewer);t.PDFViewer=_}])}))},fb24:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"main overflow-auto ai-knowledge"},[e.qiyeban?n("h1",{staticStyle:{"text-align":"center","margin-top":"10px"}},[e._v(" AI-Agent 插件集市")]):n("div",{staticClass:"titles1"},[n("span",{staticClass:"titles"},[e._v("此刻起，让AI改变你的工作方式")])]),e.qiyeban?n("h5",{staticStyle:{"text-align":"center",width:"100%"}},[e._v(" 众多开发者提供了多行业、多场景下的小插件，您可以直接点击使用。也可以创建一个新应用，供他人来使用并赚取一定的奖励")]):n("h5",{staticStyle:{"text-align":"center",width:"100%","margin-top":"20px"}},[e._v(" 提供了"),n("span",{staticStyle:{"font-size":"30px",color:"#1890ff"}},[e._v(" 97 ")]),e._v("个行业的"),n("span",{staticStyle:{"font-size":"30px",color:"#1890ff"}},[e._v(" 1200+ ")]),e._v("场景办公工具")]),e.qiyeban?e._e():n("div",{staticStyle:{width:"100%","text-align":"center",padding:"10px"}},[n("div",{staticStyle:{width:"90%","text-align":"center","margin-left":"5%","margin-top":"10px"}},[n("a-input-search",{staticStyle:{width:"20%"},attrs:{placeholder:"搜索工具","enter-button":""},on:{search:e.onSearch}}),n("a-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary",icon:"code"},on:{click:function(t){e.formshow=!0}}},[e._v(" 创建应用 ")]),n("a-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"danger",icon:"star"},on:{click:e.getmygptClassify}},[e._v(" 我的应用 ")])],1),n("br")]),n("br"),e.qiyeban?n("div",{staticStyle:{width:"100%","text-align":"center",padding:"10px"}},[n("a-button",{attrs:{type:"primary",icon:"code"},on:{click:function(t){e.formshow=!0}}},[e._v(" 创建应用 ")]),n("a-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"danger",icon:"star"},on:{click:e.getmygptClassify}},[e._v(" 我的应用 ")])],1):e._e(),e.qiyeban?n("div",{staticStyle:{width:"30%","text-align":"center","margin-left":"35%","margin-top":"20px"}},[n("a-input-search",{attrs:{placeholder:"搜索小应用","enter-button":""},on:{search:e.onSearch}}),n("br")],1):e._e(),e.qiyeban?n("div",{staticStyle:{width:"90%","text-align":"left","margin-top":"20px","margin-left":"5%"}},[n("a-card",{staticClass:"header-solid h-full",attrs:{bordered:!1,bodyStyle:{padding:"24px"}}},[n("a-row",{attrs:{type:"flex",align:"middle",justify:"space-between"}},[n("a-col",{attrs:{span:24}},[n("a-radio-group",{attrs:{size:"small"},on:{change:e.getSecondClassify},model:{value:e.classifySelected,callback:function(t){e.classifySelected=t},expression:"classifySelected"}},e._l(e.classifyData,(function(t,r){return n("a-radio-button",{key:"classify_"+t.id,attrs:{value:t.id}},[e._v(e._s(t.title))])})),1)],1)],1),e._l(e.classifyData,(function(t,r){return n("div",{key:"first_"+t.id,staticStyle:{"margin-top":"20px"}},[t.id==e.classifySelected?n("a-row",{attrs:{gutter:[24,24]}},e._l(t.children,(function(r,i){return n("a-col",{key:"second_"+r.id,attrs:{span:24,sm:12,md:8,lg:8,xl:6},on:{click:function(t){return e.classifyItem(r.id)}}},[n("div",{staticClass:"footer_box"},[n("span",{staticClass:"icon"},[n("img",{staticStyle:{width:"32px",height:"32px"},attrs:{src:r.image,alt:""}})]),n("h6",[e._v(e._s(r.title))]),n("p",{staticClass:"c-line-2",staticStyle:{"-webkit-line-clamp":"1"}},[e._v(e._s(r.desc))]),"mygpt"!=e.classifySelected?n("div",[e.token?n("div",{staticClass:"collect",on:{click:function(n){return n.stopPropagation(),e.collectWriteItem(t.id,r.id,r.isVote)}}},[n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"#1890ff"}},[n("a-icon",{attrs:{type:"star",theme:"twoTone"}}),e._v("收藏")],1)]):e._e(),n("a-button",{attrs:{type:"link"}},[n("a-icon",{attrs:{type:"eye",theme:"twoTone"}}),e._v(e._s(65*r.views))],1)],1):n("div",[n("div",{staticClass:"collect"},[2==r.status?n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"orange",border:"1px solid orange"}},[e._v("审核中")]):e._e(),1==r.status?n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"limegreen",border:"1px solid limegreen"}},[e._v("审核通过")]):e._e(),3==r.status?n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"red",border:"1px solid red"}},[e._v("审核驳回")]):e._e()]),n("a-button",{staticStyle:{width:"50px"},attrs:{type:"link"}},[n("a-icon",{staticStyle:{"margin-left":"-20px"},attrs:{type:"right-square",theme:"twoTone"}}),e._v(e._s(r.usages))],1),3==r.status&&e.token?n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"red"},on:{click:function(t){return t.stopPropagation(),e.collectdelectItem(r.id)}}},[n("a-icon",{attrs:{type:"delete",theme:"twoTone",twoToneColor:"red"}}),e._v("删除")],1):e._e(),2==r.status&&e.token?n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"#1890ff"},on:{click:function(t){return t.stopPropagation(),e.collecteditItem(r.id)}}},[n("a-icon",{attrs:{type:"edit",theme:"twoTone"}}),e._v("编辑")],1):e._e(),1==r.status&&e.token?n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"#1890ff"},on:{click:function(t){return t.stopPropagation(),e.copyShareLink(r.id)}}},[n("a-icon",{attrs:{type:"tag",theme:"twoTone"}}),e._v("分享")],1):e._e()],1),n("a-button",{staticStyle:{float:"right",height:"30px","margin-top":"-35px"},attrs:{type:"primary",icon:"play-circle"}},[e._v("运行")])],1)])})),1):e._e()],1)}))],2)],1):n("div",{staticStyle:{width:"90%","text-align":"left","margin-left":"5%"}},[n("a-card",{staticClass:"header-solid h-full",attrs:{bordered:!1,bodyStyle:{padding:"24px"}}},[n("a-row",{attrs:{type:"flex",align:"middle",justify:"space-between"}},[n("a-col",{attrs:{span:24}},[n("a-radio-group",{attrs:{size:"small"},on:{change:e.getSecondClassify},model:{value:e.classifySelected,callback:function(t){e.classifySelected=t},expression:"classifySelected"}},e._l(e.classifyData,(function(t,r){return n("a-radio-button",{key:"classify_"+t.id,attrs:{value:t.id}},[e._v(e._s(t.title))])})),1),n("a-tree-select",{staticStyle:{width:"20%",float:"right"},attrs:{"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":e.treeData,placeholder:"请选择行业"},model:{value:e.hyvalue,callback:function(t){e.hyvalue=t},expression:"hyvalue"}})],1)],1),e._l(e.classifyData,(function(t,r){return n("div",{key:"first_"+t.id,staticStyle:{"margin-top":"20px"}},[t.id==e.classifySelected?n("a-row",{attrs:{gutter:[24,24]}},e._l(t.children,(function(r,i){return n("a-col",{key:"second_"+r.id,attrs:{span:24,sm:12,md:8,lg:8,xl:6},on:{click:function(t){return e.classifyItem(r.id)}}},[n("div",{staticClass:"footer_box"},[n("span",{staticClass:"icon"},[n("img",{staticStyle:{width:"32px",height:"32px"},attrs:{src:r.image,alt:""}})]),n("h6",[e._v(e._s(r.title))]),n("p",{staticClass:"c-line-2",staticStyle:{"-webkit-line-clamp":"1"}},[e._v(e._s(r.desc))]),"mygpt"!=e.classifySelected?n("div",[e.token?n("div",{staticClass:"collect",on:{click:function(n){return n.stopPropagation(),e.collectWriteItem(t.id,r.id,r.isVote)}}},[n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"#1890ff"}},[n("a-icon",{attrs:{type:"star",theme:"twoTone"}}),e._v("收藏")],1)]):e._e(),n("a-button",{attrs:{type:"link"}},[n("a-icon",{attrs:{type:"eye",theme:"twoTone"}}),e._v(e._s(65*r.views))],1)],1):n("div",[n("div",{staticClass:"collect"},[2==r.status?n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"orange",border:"1px solid orange"}},[e._v("审核中")]):e._e(),1==r.status?n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"limegreen",border:"1px solid limegreen"}},[e._v("审核通过")]):e._e(),3==r.status?n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"red",border:"1px solid red"}},[e._v("审核驳回")]):e._e()]),n("a-button",{staticStyle:{width:"50px"},attrs:{type:"link"}},[n("a-icon",{staticStyle:{"margin-left":"-20px"},attrs:{type:"right-square",theme:"twoTone"}}),e._v(e._s(r.usages))],1),3==r.status&&e.token?n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"red"},on:{click:function(t){return t.stopPropagation(),e.collectdelectItem(r.id)}}},[n("a-icon",{attrs:{type:"delete",theme:"twoTone",twoToneColor:"red"}}),e._v("删除")],1):e._e(),2==r.status&&e.token?n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"#1890ff"},on:{click:function(t){return t.stopPropagation(),e.collecteditItem(r.id)}}},[n("a-icon",{attrs:{type:"edit",theme:"twoTone"}}),e._v("编辑")],1):e._e(),1==r.status&&e.token?n("span",{staticStyle:{padding:"5px 10px","border-radius":"5px",color:"#1890ff"},on:{click:function(t){return t.stopPropagation(),e.copyShareLink(r.id)}}},[n("a-icon",{attrs:{type:"tag",theme:"twoTone"}}),e._v("分享")],1):e._e()],1),n("a-button",{staticStyle:{float:"right",height:"30px","margin-top":"-35px"},attrs:{type:"primary",icon:"play-circle"}},[e._v("运行")])],1)])})),1):e._e()],1)}))],2)],1),e.qiyeban?n("div",{staticClass:"qas"},[e._m(0)]):e._e(),n("div",{staticStyle:{height:"30px"}}),n("a-modal",{attrs:{title:"创建应用",centered:!0,maskClosable:!1,cancelText:"取消",okText:"立即创建",confirmLoading:e.formloading},on:{ok:e.cdkeyConfirm},model:{value:e.formshow,callback:function(t){e.formshow=t},expression:"formshow"}},[n("div",{staticClass:"cdkey_modal"},[n("a-form-model",{staticStyle:{height:"600px","overflow-y":"auto"},attrs:{model:e.form,"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[n("a-form-model-item",{attrs:{label:"应用图标:"}},[n("a-upload",{staticClass:"avatar-uploader",attrs:{name:"file","list-type":"picture-card","show-upload-list":!1,action:e.upload.action,headers:e.upload.headers,accept:e.upload.accept,"before-upload":e.uploadPictureBefore},on:{change:e.uploadPictureChange}},[e.imageUrl?n("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.imageUrl,alt:"avatar"}}):n("div",[n("a-icon",{attrs:{type:e.upload.loading?"loading":"plus"}}),n("div",{staticClass:"ant-upload-text"},[e._v(" 上传图标（200*200） ")])],1)])],1),n("a-form-model-item",{attrs:{label:"应用名称:"}},[n("a-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),n("a-form-model-item",{attrs:{label:"应用简介:"}},[n("a-input",{model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1),n("a-form-model-item",{attrs:{label:"请选择分类"}},[n("a-select",{attrs:{placeholder:"请选择分类"},model:{value:e.form.fenlei,callback:function(t){e.$set(e.form,"fenlei",t)},expression:"form.fenlei"}},e._l(e.formclass,(function(t,r){return n("a-select-option",{staticStyle:{width:"200px"},attrs:{value:t.id}},[e._v(" "+e._s(t.title)+" ")])})),1)],1),n("a-form-model-item",{attrs:{label:"模板内容:"}},[n("a-input",{attrs:{type:"textarea",placeholder:"例:请你扮演[变量1]角色,回答[变量2]问题"},model:{value:e.form.text,callback:function(t){e.$set(e.form,"text",t)},expression:"form.text"}})],1),e._l(e.formbian,(function(t,r){return n("div",{staticStyle:{"background-color":"#f6f6f6","border-bottom":"2px solid #fff",padding:"5px"}},[n("a-button",{staticStyle:{"margin-left":"85%","margin-top":"5px"},attrs:{type:"danger"},on:{click:function(t){return e.deleteMainSku(r)}}},[e._v(" 删除 ")]),n("a-form-model-item",{attrs:{label:"变量名称:"}},[n("a-input",{model:{value:e.formbian[r].title,callback:function(t){e.$set(e.formbian[r],"title",t)},expression:"formbian[indexx].title"}})],1),n("a-form-model-item",{attrs:{label:"提示语:"}},[n("a-input",{model:{value:e.formbian[r].tip,callback:function(t){e.$set(e.formbian[r],"tip",t)},expression:"formbian[indexx].tip"}})],1),n("a-form-model-item",{attrs:{label:"变量参数:"}},[n("a-input",{attrs:{placeholder:"英文字符"},model:{value:e.formbian[r].name,callback:function(t){e.$set(e.formbian[r],"name",t)},expression:"formbian[indexx].name"}})],1),n("a-form-model-item",{attrs:{label:"变量类型:"}},[n("a-select",{attrs:{placeholder:"请选择分类"},model:{value:e.formbian[r].field,callback:function(t){e.$set(e.formbian[r],"field",t)},expression:"formbian[indexx].field"}},[n("a-select-option",{attrs:{value:"string"}},[e._v(" 字符 ")]),n("a-select-option",{attrs:{value:"number"}},[e._v(" 数字 ")]),n("a-select-option",{attrs:{value:"textarea"}},[e._v(" 文本 ")]),n("a-select-option",{attrs:{value:"select"}},[e._v(" 下拉框 ")])],1)],1),"select"==e.formbian[r].field?n("a-form-model-item",{attrs:{label:"下拉框内容"}},[n("a-input",{attrs:{type:"textarea",placeholder:"(每个选项以逗号,隔开):value1,value2,..."},model:{value:e.formbian[r].selects,callback:function(t){e.$set(e.formbian[r],"selects",t)},expression:"formbian[indexx].selects"}})],1):e._e()],1)})),n("a-button",{staticStyle:{"margin-top":"10px"},attrs:{type:"primary"},on:{click:function(t){return e.addMainSku()}}},[e._v("添加变量")])],2),n("span",{staticStyle:{color:"red","font-size":"12px","margin-top":"5px"}},[e._v("*提示：您点击创建后我们将会在24小时内审核您的应用，审核通过后会展示在应用中心")])],1)])],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mt-20"},[n("dl",{staticClass:"space-y-16 sm:grid sm:grid-cols-2 sm:gap-x-6 sm:gap-y-16 sm:space-y-0 lg:grid-cols-3 lg:gap-x-10",staticStyle:{width:"95%",position:"relative",height:"240px",padding:"30px","margin-left":"3%"}},[n("div",[n("dt",{staticClass:"text-base font-semibold leading-7 text-gray-900"},[e._v("*如何发布小应用?")]),n("dd",{staticClass:"mt-2 text-base leading-7 text-gray-600"},[e._v("用户需要先注册账号，登录后根据要求验证邮箱或手机号，然后点击创建按钮，填写相关信息，测试后创建，然后等待审核通过即可上线。")])]),n("div",[n("dt",{staticClass:"text-base font-semibold leading-7 text-gray-900"},[e._v("*如何推广我的小应用？")]),n("dd",{staticClass:"mt-2 text-base leading-7 text-gray-600"},[e._v("小应用的质量决定了受欢迎程度，您可以将应用分享链接发送给好友，平台也会给小应用带来一定流量")])]),n("div",[n("dt",{staticClass:"text-base font-semibold leading-7 text-gray-900"},[e._v("*开发者奖励政策?")]),n("dd",{staticClass:"mt-2 text-base leading-7 text-gray-600"},[e._v("我们希望和广大的开发者和爱好者共建GPT-Store,为客户带来更多优质的小应用。为此我们设立了奖励计划，用户在使用小应用的过程中消耗的积分将会按照一定比例的佣金奖励给开发者")])])])])}],o=n("2f62"),a=n("4ec3");var s={components:{},data(){return{formbian:[],labelCol:{span:5},wrapperCol:{span:14},classifyData:[],formclass:[],classifySelected:"",formloading:!1,formshow:!1,form:{text:"",fenlei:"",desc:"",name:""},xiugai:0,loading:!1,imageUrl:"",upload:{loading:!1,action:a["a"].common.upload.url,headers:{token:""},accept:"image/png, image/jpeg",data:{is_user_image:1}},hyvalue:"请选择行业",treeData:[],qiyeban:1}},computed:{...Object(o["c"])("user",["token","qiyeban"])},created(){this.upload.headers.token=this.token,this.getFirstClassify(),!this.qiyeban&&this.gethangye()},methods:{...Object(o["b"])("user",["getUserInfo"]),hyvalue(e){console.log(e)},gethangye(){this.$http("write.gethangye").then(e=>{1===e.code&&(this.treeData=e.data)})},async copyShareLink(e){const t="https://www.osaigc.com/pc/#/write/create?id="+e;try{await navigator.clipboard.writeText(t),this.$message.success("已复制分享链接，快去分享给您的好友吧")}catch(n){this.$message.error("复制失败")}},collectdelectItem(e){this.$http("write.mydelete",{id:e}).then(e=>{1===e.code?(this.$message.info("删除成功"),this.getmygptClassify()):(this.$message.info(e.msg),this.getmygptClassify())})},collecteditItem(e){this.$http("write.myedit",{id:e}).then(t=>{1===t.code?(this.imageUrl=t.data.image,this.form.fenlei=t.data.topic_id,this.form.name=t.data.title,this.form.text=t.data.prompt,this.form.desc=t.data.desc,this.formbian=t.data.extend,this.xiugai=e,this.formshow=!0):this.$message.info(t.msg)})},addMainSku(){this.formbian.push({title:"",field:"",selects:[],name:"",type:"replace",tip:"",value:"",require:1,text:""})},deleteMainSku(e){this.formbian.splice(e,1)},cdkeyConfirm(){this.form.fenlei?this.form.name?this.form.text?this.form.desc?this.imageUrl?this.formbian?(this.formloading=!0,console.log(this.datas),this.xiugai?this.$http("write.edit_prompts",{id:this.xiugai,form:this.form,img:this.imageUrl,formbian:this.formbian}).then(e=>{1===e.code?(this.$message.info("提交成功请等待审核"),this.formloading=!1,this.formshow=!1,this.getmygptClassify()):(this.$message.info(e.msg),this.formloading=!1)}):this.$http("write.add",{form:this.form,img:this.imageUrl,formbian:this.formbian}).then(e=>{1===e.code?(this.$message.info("提交成功请等待审核"),this.formloading=!1,this.formshow=!1):(this.$message.info(e.msg),this.formloading=!1)})):this.$message.info("请设置变量参数"):this.$message.info("请上传应用图标"):this.$message.info("请填写应用简介"):this.$message.info("请填写模板内容"):this.$message.info("请填写应用名称"):this.$message.info("请选择分类")},onSearch(e){this.$http("write.search",{search:e}).then(e=>{1===e.code&&this.classifyData.map((t,n)=>{t.id==this.classifySelected&&(t.children=e.data.map(({id:e,title:t,desc:n,image:r,isVote:i,status:o,openstore:a,usages:s,votes:c,views:u})=>({id:e,title:t,desc:n,image:r,isVote:i,status:o,openstore:a,usages:s,votes:c,views:u})))})})},getCollectClassify(){this.$http("write.collectList").then(e=>{if(1===e.code){let t=[];e.data.map(e=>{const{prompt:{id:n,title:r,desc:i,image:o,isVote:a,status:s,openstore:c,usages:u,votes:l,views:d}}=e;t.push({id:n,title:r,desc:i,image:o,isVote:a,status:s,openstore:c,usages:u,votes:l,views:d})}),this.classifyData.map(e=>{"collect"===e.id&&(e.children=t)})}})},getmygptClassify(){this.classifySelected="mygpt",this.$http("write.mygpt").then(e=>{if(1===e.code){let t=[];e.data.map(e=>{const{prompt:{id:n,title:r,desc:i,image:o,isVote:a,status:s,openstore:c,usages:u,votes:l,views:d}}=e;t.push({id:n,title:r,desc:i,image:o,isVote:a,status:s,openstore:c,usages:u,votes:l,views:d})}),this.classifyData.map(e=>{"mygpt"===e.id&&(e.children=t)})}})},collectWriteItem(e,t,n){this.$http("write.collect",{prompt_id:t}).then(r=>{1===r.code&&(this.classifyData.map(r=>{r.id==e&&r.children.map(e=>{e.id==t&&(e.isVote=0==n?1:0)})}),this.$message.success(r.msg))})},classifyItem(e){this.$router.push("/write/create?id="+e)},getFirstClassify(){this.$http("write.first").then(e=>{if(1===e.code&&e.data.length){let t=[];e.data.map((e,n)=>{t.push({id:e.id,title:e.title,children:[]})}),this.classifyData=t,this.classifySelected=t[0].id,this.formclass=e.data,console.log(t),this.getSecondClassify(),this.token&&(this.classifyData.unshift({id:"collect",title:"收藏",children:[]},{id:"mygpt",title:"我的应用",children:[]}),this.getCollectClassify())}})},getSecondClassify(){"collect"===this.classifySelected&&this.token?this.getCollectClassify():"mygpt"===this.classifySelected&&this.token?this.getmygptClassify():this.$http("write.second",{topic_id:this.classifySelected}).then(e=>{1===e.code&&this.classifyData.map((t,n)=>{t.id==this.classifySelected&&(t.children=e.data.map(({id:e,title:t,desc:n,image:r,isVote:i,status:o,openstore:a,usages:s,votes:c,views:u})=>({id:e,title:t,desc:n,image:r,isVote:i,status:o,openstore:a,usages:s,votes:c,views:u})))})})},uploadPictureChange(e){if("uploading"!==e.file.status)return 1!=e.file.response.code?(this.upload.loading=!1,void this.$message.error(e.file.response.msg)):void("done"===e.file.status&&(this.upload.loading=!1,console.log(e.file.response.data.fullurl),this.imageUrl=e.file.response.data.fullurl,this.loading=!1));this.upload.loading=!0},uploadPictureBefore(e){const t="image/jpeg"===e.type||"image/png"===e.type;t||this.$message.error("仅支持JPG、PNG格式!");const n=e.size/1024/1024<5;return n||this.$message.error("图片大小超过5MB!"),t&&n}}},c=s,u=(n("02c63"),n("2877")),l=Object(u["a"])(c,r,i,!1,null,"d630a828",null);t["default"]=l.exports},fc39:function(e,t){tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 01-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 00-1 1z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="M15.7 2l1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 01-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2zM18 12l-4.5-4L9 12h9zM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 01-2-2v-5h2zm8-7V4h6a2 2 0 012 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1l.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="M13 11l-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="M18.4 8l1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 01-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8zm1.6 7l-3-3-3 3h6z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 01-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 010-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 010-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 010-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 010-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 010-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 01-1-1v-2H7V9H5a1 1 0 110-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zm8.5-7.1h-11v2h11v-2z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0119 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 002.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 002-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 00-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 00-.8.8.8.8 0 01-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 012.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 110 18 9 9 0 010-18zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 003.2-2.1l-.2-.2a6 6 0 00-1-.6zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 01-2-2.8zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 01-.3-2zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1zm3-1.4l-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 00-1.3-3.5zm-9 0l2 .2V5.5a9 9 0 00-2 2.2zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 00-2-2.3zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 011.9-2.5zm4.4 0l.1.1a10 10 0 011.8 2.4l1.1-.7a7.5 7.5 0 00-3-1.8z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 110-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 01-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 012.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 11-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2 0l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V8H5a1 1 0 110-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V13H5a1 1 0 010-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 010-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 00-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 01-.7-.3 1 1 0 01-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 017 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 010 2H5a1 1 0 010-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 00-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 01-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8zm-2 2H5v5h6V6z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 012 2v7h-8v-2h6V6h-6V4z" opacity=".2"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v7h-8v7H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8-7h-6v5h6V6zm-8 0H5v5h6V6z"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 00-2 2v13c0 1.1.9 2 2 2h12a2 2 0 002-2V6a2 2 0 00-2-2H6zm0 12h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 11h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 6h8v3H6V6zm11 0c.6 0 1 .4 1 1v1a1 1 0 11-2 0V7c0-.6.4-1 1-1z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 012 2v13a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2h12zm0 12h-8v3h8v-3zM7 16a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8v-3zM7 11a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8V6zM7 6a1 1 0 00-1 1v1a1 1 0 102 0V7c0-.6-.4-1-1-1z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 01-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 011.2 1.5l-.1.1-4.1 3-4-3a1 1 0 011-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8l4 2.9a1 1 0 01-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 01-1-1v-4l-2 1.3a1 1 0 01-1.2-.1l-.1-.1a1 1 0 01.1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}})},fd09:function(e,t,n){"use strict";e.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.isFulfilled=function(){return 0!==(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!==(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0===(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!==(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!==(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536===(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!==(8454144&this._target()._bitField)},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},ff3a:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"wrap"},[r("div",{staticClass:"left"},[r("div",[r("div",{staticClass:"pdf_upload_box"},[r("a-upload",{staticClass:"pdf_upload_btn",attrs:{name:"file",multiple:!1,action:"/addons/chatgpt/web/pdf_upload",headers:e.headers,accept:".pdf,.docx,.txt",beforeUpload:e.beforeUpload,showUploadList:!0},on:{change:e.handleChange2}},[r("a-button",[r("a-icon",{attrs:{type:"upload"}}),e._v(" 新建文档问答 ")],1)],1)],1),r("div",{staticClass:"pdf_search"},[r("a-input-search",{staticStyle:{width:"100%",opacity:"0.5",background:"#fff","border-radius":"4px"},attrs:{placeholder:"搜索文档"},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1)]),0!=e.history_data.length?r("div",{staticClass:"history"},[e._l(e.history_data,(function(t,n){return e.is_search(t.pdf_name,e.keyword)?r("div",{key:n,staticClass:"history_box",on:{click:function(r){return e.upload_xfyun(t.id,n)},mouseenter:function(t){return e.handleMouseEnter(n)},mouseleave:function(t){return e.handleMouseLeave(n)}}},[e._m(0,!0),r("div",{staticClass:"hb_right"},[t.is_edit?e._e():r("div",{staticClass:"limited-text"},[e._v(e._s(t.pdf_name))]),t.is_edit?r("div",{staticClass:"pdf_name"},[r("a-input",{model:{value:t.pdf_name,callback:function(n){e.$set(t,"pdf_name",n)},expression:"value.pdf_name"}})],1):e._e(),r("div",[e._v(e._s(t.created_at))])]),t.show?r("div",{staticClass:"icon"},[r("div",[t.is_edit?e._e():r("a-icon",{staticStyle:{"font-size":"18px"},attrs:{type:"edit"},on:{click:function(t){return t.stopPropagation(),e.edit_icon(n)}}}),t.is_edit?r("a-icon",{staticStyle:{"font-size":"18px"},attrs:{type:"check"},on:{click:function(r){return r.stopPropagation(),e.edit_pdf_name(n,t.id)}}}):e._e()],1),r("div",[r("a-icon",{staticStyle:{"font-size":"18px"},attrs:{type:"delete"},on:{click:function(n){return n.stopPropagation(),e.showModal(t.id)}}})],1)]):e._e()]):e._e()})),r("a-modal",{attrs:{title:"删除文档？",visible:e.visible,"confirm-loading":e.confirmLoading,"ok-text":"确定","cancel-text":"取消"},on:{ok:function(t){return e.handleOk(e.del_id)},cancel:e.handleCancel}},[r("p",[e._v(e._s(e.ModalText))])])],2):e._e()]),r("div",{staticClass:"right"},[r("div",{staticClass:"right_main",class:{hide:""!=e.fileIds}},[e._m(1),r("div",[r("a-upload-dragger",{attrs:{name:"file",multiple:!1,action:"/addons/chatgpt/web/pdf_upload",headers:e.headers,accept:".pdf,.docx,.txt",beforeUpload:e.beforeUpload},on:{change:e.handleChange}},[r("p",{staticClass:"ant-upload-drag-icon"},[r("a-icon",{attrs:{type:"inbox"}})],1),r("p",{staticClass:"ant-upload-text"},[e._v(" 上传文档发起提问 ")]),r("p",{staticClass:"ant-upload-hint"},[e._v(" 支持pdf,docx,txt等格式的文档，单文件不超过20MB/100万字 ")])])],1)]),r("div",{staticClass:"qa_mian",class:{hide:""==e.fileIds}},[2==this.fileType?r("div",{staticClass:"word"},[2==this.fileType?r("div",{ref:"childRef",staticClass:"childRef",attrs:{id:"wordView"}}):e._e()]):e._e(),3==this.fileType?r("div",{staticClass:"txt"},[r("div",[r("pre",{staticStyle:{"white-space":"pre-line","font-family":"inherit"}},[e._v(e._s(e.txtContent))])])]):e._e(),1==this.fileType?r("div",{staticClass:"pdf"},[1==this.fileType?r("div",{staticClass:"onlineHelp cg-box"},[r("div",{staticClass:"tools"},[r("div",{staticClass:"page"},[e._v("第 "+e._s(e.pageNum)+" /"+e._s(e.pageTotalNum)+"页 ")]),r("el-input",{staticStyle:{width:"70px","margin-right":"8px"},model:{value:e.goPageNum,callback:function(t){e.goPageNum=e._n(t)},expression:"goPageNum"}}),r("el-button",{attrs:{type:"success"},on:{click:function(t){return t.stopPropagation(),e.goPage.apply(null,arguments)}}},[e._v(" 前往")]),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.prePage.apply(null,arguments)}}},[e._v(" 上一页")]),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.nextPage.apply(null,arguments)}}},[e._v(" 下一页")])],1),1==this.fileType?r("div",{staticClass:"pdf-box"},[r("pdf",{ref:"pdf",attrs:{src:e.url,page:e.pageNum},on:{progress:function(t){e.loadedRatio=t},"page-loaded":function(t){return e.pageLoaded(t)},"num-pages":function(t){e.pageTotalNum=t},error:function(t){return e.pdfError(t)},"link-clicked":function(t){e.page=t}}})],1):e._e()]):e._e()]):e._e(),r("div",{staticClass:"qa_content"},[r("div",{staticClass:"qa_top"},[r("div",[e._v("对话窗口")]),r("a-button",{attrs:{loading:e.iconLoading},on:{click:e.sum_up}},[e._v("文档总结"),e.sumup_open?r("a-icon",{attrs:{type:"caret-up"}}):e._e(),e.sumup_open?e._e():r("a-icon",{attrs:{type:"caret-down"}})],1)],1),e.sumup_open?r("div",{staticClass:"sumup"},[e._m(2),r("div",{staticClass:"sumup_text"},[r("div",[e._v(e._s(e.sumup_text))])])]):e._e(),r("div",{staticClass:"qa_box"},e._l(e.dialogue,(function(t,i){return r("div",{staticClass:"user dialogue_box",class:t.role},["user"==t.role?r("div",{staticClass:"avatar"},[r("img",{attrs:{src:e.userInfo.avatar}})]):e._e(),"user"!=t.role?r("div",{staticClass:"avatar"},[r("img",{attrs:{src:n("ede7")}})]):e._e(),r("div",{staticClass:"content_box"},["user"==t.role?r("div",[e._v(e._s(t.time)),r("v-md-editor",{attrs:{mode:"preview"},model:{value:t.content,callback:function(n){e.$set(t,"content",n)},expression:"item.content"}})],1):e._e(),"ai"==t.role&&1==t.status?r("div",[e._v(e._s(t.time)),r("v-md-editor",{attrs:{mode:"preview"},model:{value:e.answer,callback:function(t){e.answer=t},expression:"answer"}})],1):e._e(),"ai"==t.role&&2==t.status?r("div",[e._v(e._s(t.time)),r("v-md-editor",{attrs:{mode:"preview"},model:{value:t.content,callback:function(n){e.$set(t,"content",n)},expression:"item.content"}})],1):e._e(),r("div",{staticClass:"copy1",staticStyle:{"margin-top":"10px","font-size":"12px","margin-right":"220px",float:"right"},on:{click:function(n){return e.messageCopy(t.content)}}},[r("img",{staticStyle:{width:"16px"},attrs:{src:n("1ae3")}}),e._v(" 复制 ")]),r("div",{staticStyle:{"font-size":"12px","margin-top":"10px"}})])])})),0),r("div",{staticClass:"qa_bottom",staticStyle:{"margin-top":"10px"}},[r("div",{staticClass:"question"},[r("img",{attrs:{src:n("5b6e")},on:{click:function(t){return e.send()}}}),r("a-input",{staticStyle:{width:"85%"},attrs:{placeholder:"请输入问题(40积分/次*会员免费)"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.send()}},model:{value:e.question,callback:function(t){e.question=t},expression:"question"}})],1)])])])])])},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"hb_left"},[r("img",{attrs:{src:n("9626")}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"right_main_desc"},[n("div",[n("h3",[e._v("OS-AIGC知识库 "),n("span",{staticStyle:{color:"#5a81fe"}},[e._v("文档问答")])])]),n("div",[e._v("基于大模型构建文档知识库,高效检索文档信息,准确回答专业问题")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"sumup_title"},[r("div",[r("img",{attrs:{src:n("f1a6")}}),e._v(" 以下是该文档的总结/概要信息:")]),r("div",{staticClass:"copy"},[r("img",{attrs:{src:n("1ae3")}}),e._v("复制")])])}],o=n("2f62"),a=n("b311"),s=n.n(a),c=n("858e"),u=(n("c343"),n("376d")),l={components:{pdf:c["a"]},data(){return{del_id:"",socket:null,connectionStatus:"Disconnected",headers:{authorization:"authorization-text",Token:""},num:0,question:"",answer:"",eg:"",currentTime:"",wss:"",dialogue:[],history_default:"https://osaigcimg.su.bcebos.com/ppt/ppt_default.png",fileIds:"",desc:"",loading:!1,btn_loading:!1,history_data:[],is_fetch:!1,is_edit:!1,ModalText:"删除后不可找回，确认删除当前会话？",visible:!1,confirmLoading:!1,pdf_id:0,sumup_status:1,sumup_text:"",sumup_open:!1,iconLoading:!1,url:"",pageNum:1,pageTotalNum:1,loadedRatio:0,curPageNum:0,goPageNum:1,arr:[1],keyword:"",wordText:"",fileType:"",txtContent:"",previewImages:[{src:"",alt:"Text File"}]}},watch:{keyword(e,t){}},created(){this.getUserPdf(),this.getwss()},mounted(){const e=new s.a(".copy",{text:()=>this.sumup_text});e.on("success",e=>{this.copiedText=this.clipboardText,e.clearSelection(),this.$message.success("复制成功",1)})},computed:{...Object(o["c"])("user",["token","userInfo"])},methods:{...Object(o["b"])("user",["getUserInfo"]),getwss(){this.$http("role.getwss",{fileId:this.fileIds}).then(e=>{1==e.code&&(this.wss=e.data.url,this.eg=e.data.eg,this.connectToServer())})},async messageCopy(e){try{await navigator.clipboard.writeText(e),this.$message.success("已复制到剪切板")}catch(t){this.$message.error("复制失败")}},previewDocxFile(e){const t=new XMLHttpRequest;t.open("get",e,!0),t.responseType="arraybuffer",t.onload=()=>{this.wordText=t.response;let e=document.getElementsByClassName("childRef");Object(u["renderAsync"])(this.wordText,e[0]).then(e=>{})},t.send()},prePage(){var e=this.pageNum;e=e>1?e-1:this.pageTotalNum,this.pageNum=e},nextPage(){var e=this.pageNum;e=e<this.pageTotalNum?e+1:1,this.pageNum=e},goPage(){!this.goPageNum||/\D/.test(this.goPageNum)||this.goPageNum<1||this.goPageNum>this.pageTotalNum?this.$message.warning("输入页码有误"):this.pageNum=this.goPageNum},pageLoaded(e){this.curPageNum=e,this.arr=this.generateArray(this.pageTotalNum)},pdfError(e){},is_search(e,t){return!!e.includes(t)},showModal(e){this.del_id=e,this.visible=!0},handleOk(e){this.confirmLoading=!0,this.$http("role.del_pdf",{id:e}).then(e=>{1==e.code&&(this.getUserPdf(),this.visible=!1,this.confirmLoading=!1,this.$message.success("文件删除成功"))})},handleCancel(e){this.visible=!1},edit_icon(e){this.history_data[e].is_edit=!0},sum_up(){this.iconLoading=!0,this.$http("role.sum_up",{id:this.pdf_id}).then(e=>{1==e.code&&(this.sumup_status=e.data.status,this.sumup_text=e.data.sumup_text,1==this.sumup_status||2==this.sumup_status?this.$notification.open({message:"信息",description:"生成中，请稍后再试",onClick:()=>{}}):this.sumup_open=!this.sumup_open,this.iconLoading=!1)})},edit_pdf_name(e,t){this.$http("role.edit_name",{id:t,pdf_name:this.history_data[e].pdf_name}).then(t=>{1==t.code&&(this.history_data[e].is_edit=!1)})},handleMouseEnter(e){this.history_data[e].show=!0},handleMouseLeave(e){this.history_data[e].show=!1},connectToServer(){this.socket=new WebSocket(this.wss),this.socket.addEventListener("open",()=>{this.connectionStatus="Connected"}),this.socket.addEventListener("message",e=>{let t=new Object;if(t=JSON.parse(e.data),1==t.status&&this.num++,1==this.num){this.getCurrentTime();let e=new Object;e.role="ai",e.content="",e.time=this.currentTime,e.status=1,this.dialogue.push(e)}void 0!=this.answer&&(this.answer+=t.content,this.answer=this.answer.replace("undefined","")),2==t.status&&(this.num=0,this.dialogue[this.dialogue.length-1].content=this.answer,this.dialogue[this.dialogue.length-1].status=2,this.answer="",this.$http("role.save_dialogue",{dialogue:this.dialogue,fileIds:this.fileIds}).then(e=>{}))}),this.socket.addEventListener("close",()=>{this.connectionStatus="Disconnected"})},send(){if(""==this.question)return this.$message.error("请输入问题"),!1;this.$http("role.zsk_kf_pdf").then(e=>{if(1==e.code){this.getCurrentTime();let e=this.eg,t=new Object,n=new Object;t.role="user",t.content=this.question,t.time=this.currentTime,this.dialogue.push(t),n=JSON.parse(e),n.fileIds[0]=this.fileIds,n.messages[0].content=this.question,n.messages[0].role=t.role;let r=JSON.stringify(n);this.socket&&this.socket.readyState===WebSocket.OPEN&&this.socket.send(r),this.question=""}})},beforeUpload(e,t){this.headers.Token=this.token;const n=e.size/1024/1024<20;if(!n)return this.$message.error(e.name+"文件大小不能超过20M"),!1},handleChange(e){const t=e.file.status;"done"===t?(e.file.response.data&&(this.history_data=e.file.response.data),1==e.file.response.code?(this.getUserPdf(),this.upload_xfyun(this.history_data[0].id,0),this.$message.success(e.file.name+" 文件上传成功")):this.$message.error(e.file.response.msg)):"error"===t&&this.$message.error(e.file.name+" 文件上传失败.")},handleChange2(e){e.file.status,"done"===e.file.status?(e.file.response.data&&(this.history_data=e.file.response.data),1==e.file.response.code?(this.getUserPdf(),this.upload_xfyun(this.history_data[0].id,0),this.$message.success(e.file.name+" 文件上传成功")):this.$message.error(e.file.response.msg)):"error"===e.file.status&&this.$message.error(e.file.name+" 文件上传失败.")},upload_xfyun(e,t){if(this.pdf_id!=e){if(this.loading=!0,this.pdf_show=!1,this.pdf_id=e,this.$http("role.upload_xfyun",{id:e}).then(e=>{if(1==e.code)if(this.fileIds=e.data.fileIds,this.txtContent=e.data.txt,null!=e.data.dialogue){const t=setTimeout(()=>{this.dialogue=JSON.parse(e.data.dialogue),this.loading=!1,clearTimeout(t)},500)}else this.loading=!1,this.dialogue=[];else this.loading=!1,this.dialogue=[]}),this.fileType=this.history_data[t]["file_type"],2==this.fileType)this.previewDocxFile(this.history_data[t]["url"]);else if(3==this.fileType)this.previewImages[0].src=this.history_data[t]["url"];else if(1==this.fileType){this.url=this.history_data[t]["url"];for(var n=document.querySelectorAll("div.docx-wrapper"),r=0;r<n.length;r++)n[r].parentNode.removeChild(n[r])}this.sumup_open=!1}},getUserPdf(){this.$http("role.getpdf").then(e=>{1==e.code&&(this.history_data=e.data)})},getCurrentTime(){const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate(),i=e.getHours(),o=e.getMinutes(),a=e.getSeconds();this.currentTime=`${t}-${n}-${r} ${i}:${o}:${a}`},generateArray(e){let t=[];for(let n=1;n<=e;n++)t.push(n);return t}}},d=l,f=(n("a4ba"),n("6b7d"),n("a967"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"5ed171a9",null);t["default"]=h.exports},ffbe:function(e,t,n){n("8ce1")},ffc2:function(e,t){function n(e){return"function"==typeof e?e():e}t.none=Object.create({value:function(){throw new Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return t.none},flatMap:function(){return t.none},filter:function(){return t.none},toArray:function(){return[]},orElse:n,valueOrElse:n}),t.some=function(e){return new r(e)};var r=function(e){this._value=e};r.prototype.value=function(){return this._value},r.prototype.isNone=function(){return!1},r.prototype.isSome=function(){return!0},r.prototype.map=function(e){return new r(e(this._value))},r.prototype.flatMap=function(e){return e(this._value)},r.prototype.filter=function(e){return e(this._value)?this:t.none},r.prototype.toArray=function(){return[this._value]},r.prototype.orElse=function(e){return this},r.prototype.valueOrElse=function(e){return this._value},t.isOption=function(e){return e===t.none||e instanceof r},t.fromNullable=function(e){return null==e?t.none:new r(e)}},ffe4:function(e,t,n){"use strict";e.exports=function(e,t,r,i){var o=n("6df9"),a=function(e){return e.then((function(t){return s(t,e)}))};function s(n,s){var c=r(n);if(c instanceof e)return a(c);if(n=o.asArray(n),null===n)return i("expecting an array or an iterable object but got "+o.classString(n));var u=new e(t);void 0!==s&&u._propagateFrom(s,3);for(var l=u._fulfill,d=u._reject,f=0,h=n.length;f<h;++f){var p=n[f];(void 0!==p||f in n)&&e.cast(p)._then(l,d,void 0,u,null)}return u}e.race=function(e){return s(e,void 0)},e.prototype.race=function(){return s(this,void 0)}}}}]);
//# sourceMappingURL=dashboard.859b086d.js.map