scrivito_sdk 1.19.0.rc1 → 1.19.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see scrivito_with_js_sdk.js.LICENSE.txt */
2
- (()=>{var t={94707:(t,e,n)=>{var r,i,o,a,s,u;i=n(95894),r=n(66302),o=i.extensions.anchor.extend({name:"scrivito_anchor",proxy:null,contentDefault:'<i class="scrivito_customer_icon sci_link"></i>',init:function(){var t;return i.extensions.anchor.prototype.init.apply(this,arguments),this.targetCheckbox=null!=(t=this.getEditorOption("anchor"))?t.targetCheckbox:void 0},showForm:function(t){return i.extensions.anchor.prototype.showForm.call(this,t),this.updateRelUi(t)},handleClick:function(t){var e,n,r,o,a,s;return t.preventDefault(),t.stopPropagation(),this.proxy.edQuery(".scrivito_medium_link_collapse").removeClass("show"),this.isDisplayed()||(a=i.selection.getSelectionRange(this.document),o=i.selection.getSelectedParentElement(a),e=s=r=null,(n=i.util.getClosestTag(o,"a"))&&(e=(n=this.proxy.edQuery(n)).attr("href")||null,s=n.attr("target")||null,r=n.attr("rel")||null),this.showForm({value:e,target:s,rel:r})),!1},getTemplate:function(){var t,e;return e="",t="scrivito_target_checkbox_not_available",this.targetCheckbox&&(e="<div class='medium-editor-toolbar-form-row medium-editor-toolbar-anchor-target-toggle'>\n <label>\n <input type='checkbox' class='medium-editor-toolbar-anchor-target'>\n <i class='scrivito_icon scrivito_link_icon scrivito_icon_new_window scrivito_active_open_in_new_tab ' title='Open link in new tab'></i>\n <i class='scrivito_icon scrivito_link_icon scrivito_icon_new_window' title='Open link in new tab'></i>\n </label>\n</div>",t=""),("<i class='medium-editor-toolbar-browse scrivito_customer_icon sci_collection' title='Open Content Browser'></i>\n<input type='text' class='medium-editor-toolbar-input "+t+"' placeholder='"+this.placeholderText+"'>\n<div class='medium-editor-toolbar-form-wrapper'>\n "+e+"\n <i class='scrivito_icon scrivito_icon_gear' data-scrivito-medium-editor=\"rel_button\" title='SEO settings'></i>\n <span class='medium-editor-toolbar-save'>Save</span>\n <i class='medium-editor-toolbar-close scrivito_customer_icon sci_cross' style='display: none'></i>\n</div>\n<div class='scrivito_medium_link_collapse'>\n <div class='scrivito_medium_link_collapse_body'>\n <div class='scrivito_medium_detail_label'>Rel attribute value</div>\n <div class='scrivito_medium_notice_body'>\n Search engines use a link's rel attribute to determine how to handle the linked document or resource.\n </div>\n <ul class='scrivito_enum_attribute scrivito_multi'>\n <li data-scrivito-rel=\"noindex\">noindex</li>\n <li data-scrivito-rel=\"nofollow\">nofollow</li>\n <li data-scrivito-rel=\"noarchive\">noarchive</li>\n <li data-scrivito-rel=\"nosnippet\">nosnippet</li>\n <li data-scrivito-rel=\"noopener\">noopener</li>\n <li data-scrivito-rel=\"noreferrer\">noreferrer</li>\n <li data-scrivito-rel=\"notranslate\">notranslate</li>\n </ul>\n </div>\n</div>").replace(/\n\s*/g,"")},attachFormEvents:function(t){var e,n;return i.extensions.anchor.prototype.attachFormEvents.call(this,t),t=this.proxy.edQuery(t),e=t.find(".medium-editor-toolbar-input"),t.find("[data-scrivito-rel]").on("click",(n=this,function(t){return n.onRelSelectionButtonClick(t)})),t.find(".scrivito_icon_gear").on("click",function(e){return function(){return e.onToggleRelPanelButtonClick(t)}}(this)),t.find(".medium-editor-toolbar-browse").on("click",function(t){return function(){return t.onContentBrowserButtonClick(e)}}(this))},completeFormSave:function(t){return this.base.restoreSelection(),t.value?(this.execAction(this.action,t),this.updateRelAttribute(t)):this.execAction("unlink"),this.base.checkSelection()},getFormOpts:function(){var t;return(t=i.extensions.anchor.prototype.getFormOpts.call(this)).rel=this.selectedRelValues(),t},relButtons:function(){return this.proxy.edQuery(this.getForm()).find(".scrivito_enum_attribute.scrivito_multi [data-scrivito-rel]")},selectedRelValues:function(){return this.relButtons().filter(".scrivito_enum_attribute_active").toArray().map((function(t){return t.attributes["data-scrivito-rel"].value})).join(" ")},updateRelIndicator:function(){var t,e;return e=this.proxy.edQuery(this.getForm().querySelector(".scrivito_icon_gear")),t="scrivito_active_rel_selected",this.relButtons().hasClass("scrivito_enum_attribute_active")?e.addClass(t):e.removeClass(t)},updateRelAttribute:function(t){var e,n,r,o;return o=i.selection.getSelectionRange(this.document),r=i.selection.getSelectedParentElement(o),n=this.proxy.edQuery(i.util.getClosestTag(r,"a")),t.rel?n.attr("rel",t.rel):n.removeAttr("rel"),e=this.getEditorElements()[0],this.base.trigger("editableInput",{},e)},updateRelUi:function(t){var e,n;return e=null!=(n=t.rel)?n.split(/\s+/):void 0,this.relButtons().each((function(t,n){return e&&-1!==e.indexOf(n.getAttribute("data-scrivito-rel"))?n.className="scrivito_enum_attribute_active":n.className=""})),this.updateRelIndicator()},onToggleRelPanelButtonClick:function(t){return this.proxy.edQuery(t.find(".scrivito_medium_link_collapse")).toggleClass("show")},onRelSelectionButtonClick:function(t){return this.proxy.edQuery(t.target).toggleClass("scrivito_enum_attribute_active"),this.updateRelIndicator()},onContentBrowserButtonClick:function(t){var e,n,r;return n=(e=this.proxy.idFromPath(t.val()))?[e]:[],scrivito.openContentBrowser({selection:n,selectionMode:"single"}).catch((function(e){throw t.focus(),e})).then((r=this,function(e){var n,i;return n=e.isSelected,i=e.selection,n&&(t.focus(),i.length?t.val(r.proxy.pathForId(i[0])):t.val("")),!1}))}}),s=function(){var t,e;return t=["bold","italic","scrivito_anchor","h2","h3","unorderedlist","orderedlist"],("undefined"!=typeof ScrivitoEditors&&null!==ScrivitoEditors&&null!=(e=ScrivitoEditors._config)?e.showHtmlEditorCodeButton:void 0)&&t.splice(2,0,"scrivito_code"),t},u=function(){return{anchor:{targetCheckbox:!0},anchorPreview:!1,extensions:{scrivito_anchor:new o,scrivito_code:new r({label:'<i class="scrivito_customer_icon sci_code"></i>',start:"<code>",end:"</code>"}),imageDragging:{}},placeholder:!1,toolbar:{buttons:s(),standardizeSelectionStart:!0}}},a=function(t){var e,n,r;return e=t.jQueryElement(),null!=(r=(n=u()).extensions.scrivito_anchor)&&(r.proxy=t),new i(e,n).subscribe("editableInput",(function(){return t.save(e.html())}))},t.exports=a},66302:(t,e)=>{"use strict";function n(t){if(void 0!==t.label&&/\S{1}/.test(t.label)&&void 0!==t.start&&/\S{1}/.test(t.start)&&void 0!==t.end&&/\S{1}/.test(t.end)||void 0!==t.label&&/\S{1}/.test(t.label)&&void 0!==t.action&&/\S{1}/.test(t.action)){t.start=void 0===t.start?"":t.start,t.end=void 0===t.end?"":t.end;var e=this;this.options=t,this.button=document.createElement("button"),this.button.className="medium-editor-action",this.button.innerHTML=t.label,this.button.onclick=function(){var n,i,o=r(),a=window.getSelection(),s=a.anchorNode.parentElement;if(void 0===t.start||-1==o.indexOf(t.start)&&-1==o.indexOf(t.end)?(null!=t.action&&(o=t.action(o,!0,s)),o=t.start+o+t.end):(null!=t.action&&(o=t.action(o,!1,s)),o=String(o).split(t.start).join(""),o=String(o).split(t.end).join("")),a.getRangeAt&&a.rangeCount){if((n=window.getSelection().getRangeAt(0)).deleteContents(),n.createContextualFragment)i=n.createContextualFragment(o);else{var u=document.createElement("div");for(u.innerHTML=o,i=document.createDocumentFragment();child=u.firstChild;)i.appendChild(child)}var l=i.firstChild,c=i.lastChild;n.insertNode(i),l&&(n.setStartBefore(l),n.setEndAfter(c)),a.removeAllRanges(),a.addRange(n)}e.base.checkContentChanged()}}else console.error('[Custom-Button] You need to specify "label", "start" and "end" OR "label" and "action"')}function r(){var t,e="";if(void 0!==window.getSelection){if((t=window.getSelection()).rangeCount){for(var n=document.createElement("div"),r=0,i=t.rangeCount;r<i;++r)n.appendChild(t.getRangeAt(r).cloneContents());e=n.innerHTML}}else void 0!==document.selection&&"Text"==document.selection.type&&(e=document.selection.createRange().htmlText);return e}n.prototype.getButton=function(){return this.button},n.prototype.checkState=function(t){var e=r();""!=this.options.start&&e.indexOf(this.options.start)>-1&&e.indexOf(this.options.end)>-1?this.button.classList.add("medium-editor-button-active"):this.button.classList.remove("medium-editor-button-active")},t.exports&&(e=t.exports=n),e.MediumButton=n},95894:function(t,e,n){var r;"classList"in document.createElement("_")||function(t){"use strict";if("Element"in t){var e="classList",n="prototype",r=t.Element[n],i=Object,o=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},s=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},u=function(t,e){if(""===e)throw new s("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new s("INVALID_CHARACTER_ERR","String contains an invalid character");return a.call(t,e)},l=function(t){for(var e=o.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,i=n.length;r<i;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},c=l[n]=[],f=function(){return new l(this)};if(s[n]=Error[n],c.item=function(t){return this[t]||null},c.contains=function(t){return-1!==u(this,t+="")},c.add=function(){var t,e=arguments,n=0,r=e.length,i=!1;do{-1===u(this,t=e[n]+"")&&(this.push(t),i=!0)}while(++n<r);i&&this._updateClassName()},c.remove=function(){var t,e,n=arguments,r=0,i=n.length,o=!1;do{for(e=u(this,t=n[r]+"");-1!==e;)this.splice(e,1),o=!0,e=u(this,t)}while(++r<i);o&&this._updateClassName()},c.toggle=function(t,e){t+="";var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},c.toString=function(){return this.join(" ")},i.defineProperty){var d={get:f,enumerable:!0,configurable:!0};try{i.defineProperty(r,e,d)}catch(t){-2146823252===t.number&&(d.enumerable=!1,i.defineProperty(r,e,d))}}else i[n].__defineGetter__&&r.__defineGetter__(e,f)}}(self),function(t){"use strict";if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return void new Blob}catch(t){}var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},r=function(t,e,n){this.data=t,this.size=t.length,this.type=e,this.encoding=n},i=n.prototype,o=r.prototype,a=t.FileReaderSync,s=function(t){this.code=this[this.name=t]},u="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),l=u.length,c=t.URL||t.webkitURL||t,f=c.createObjectURL,d=c.revokeObjectURL,p=c,h=t.btoa,v=t.atob,m=t.ArrayBuffer,g=t.Uint8Array,y=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(r.fake=o.fake=!0;l--;)s.prototype[u[l]]=l+1;return c.createObjectURL||(p=t.URL=function(t){var e,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=t,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(e=t.match(y),n.origin=e&&e[1])),n}),p.createObjectURL=function(t){var e,n=t.type;return null===n&&(n="application/octet-stream"),t instanceof r?(e="data:"+n,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):h?e+";base64,"+h(t.data):e+","+encodeURIComponent(t.data)):f?f.call(c,t):void 0},p.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&d&&d.call(c,t)},i.append=function(t){var n=this.data;if(g&&(t instanceof m||t instanceof g)){for(var i="",o=new g(t),u=0,l=o.length;u<l;u++)i+=String.fromCharCode(o[u]);n.push(i)}else if("Blob"===e(t)||"File"===e(t)){if(!a)throw new s("NOT_READABLE_ERR");var c=new a;n.push(c.readAsBinaryString(t))}else t instanceof r?"base64"===t.encoding&&v?n.push(v(t.data)):"URI"===t.encoding?n.push(decodeURIComponent(t.data)):"raw"===t.encoding&&n.push(t.data):("string"!=typeof t&&(t+=""),n.push(unescape(encodeURIComponent(t))))},i.getBlob=function(t){return arguments.length||(t=null),new r(this.data.join(""),t,"raw")},i.toString=function(){return"[object BlobBuilder]"},o.slice=function(t,e,n){var i=arguments.length;return i<3&&(n=null),new r(this.data.slice(t,i>1?e:this.data.length),n,this.encoding)},o.toString=function(){return"[object Blob]"},o.close=function(){this.size=0,delete this.data},n}(t);t.Blob=function(t,n){var r=n&&n.type||"",i=new e;if(t)for(var o=0,a=t.length;o<a;o++)Uint8Array&&t[o]instanceof Uint8Array?i.append(t[o].buffer):i.append(t[o]);var s=i.getBlob(r);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var n=Object.getPrototypeOf||function(t){return t.__proto__};t.Blob.prototype=n(new t.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(i,o){"use strict";"undefined"!=typeof process&&process&&process.versions&&process.versions.electron?void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r):t.exports=o}(0,function(){"use strict";function t(t,e){return this.init(t,e)}var e,n,r,i,o,a,s,u,l,c,f;return t.extensions={},function(e){function n(t,e){var n,r=Array.prototype.slice.call(arguments,2);e=e||{};for(var i=0;i<r.length;i++){var o=r[i];if(o)for(n in o)o.hasOwnProperty(n)&&void 0!==o[n]&&(t||!1===e.hasOwnProperty(n))&&(e[n]=o[n])}return e}var r=!1;try{var i=document.createElement("div"),o=document.createTextNode(" ");i.appendChild(o),r=i.contains(o)}catch(t){}var a={isIE:"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent),isEdge:null!==/Edge\/\d+/.exec(navigator.userAgent),isFF:navigator.userAgent.toLowerCase().indexOf("firefox")>-1,isMac:e.navigator.platform.toUpperCase().indexOf("MAC")>=0,keyCode:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,K:75,M:77,V:86},isMetaCtrlKey:function(t){return!!(a.isMac&&t.metaKey||!a.isMac&&t.ctrlKey)},isKey:function(t,e){var n=a.getKeyCode(t);return!1===Array.isArray(e)?n===e:-1!==e.indexOf(n)},getKeyCode:function(t){var e=t.which;return null===e&&(e=null!==t.charCode?t.charCode:t.keyCode),e},blockContainerElementNames:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","li","ol","address","article","aside","audio","canvas","dd","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","main","nav","noscript","output","section","video","table","thead","tbody","tfoot","tr","th","td"],emptyElementNames:["br","col","colgroup","hr","img","input","source","wbr"],extend:function(){var t=[!0].concat(Array.prototype.slice.call(arguments));return n.apply(this,t)},defaults:function(){var t=[!1].concat(Array.prototype.slice.call(arguments));return n.apply(this,t)},createLink:function(t,e,n,r){var i=t.createElement("a");return a.moveTextRangeIntoElement(e[0],e[e.length-1],i),i.setAttribute("href",n),r&&("_blank"===r&&i.setAttribute("rel","noopener noreferrer"),i.setAttribute("target",r)),i},findOrCreateMatchingTextNodes:function(t,e,n){for(var r=t.createTreeWalker(e,NodeFilter.SHOW_ALL,null,!1),i=[],o=0,s=!1,u=null,l=null;null!==(u=r.nextNode());)if(!(u.nodeType>3))if(3===u.nodeType){if(!s&&n.start<o+u.nodeValue.length&&(s=!0,l=a.splitStartNodeIfNeeded(u,n.start,o)),s&&a.splitEndNodeIfNeeded(u,l,n.end,o),s&&o===n.end)break;if(s&&o>n.end+1)throw new Error("PerformLinking overshot the target!");s&&i.push(l||u),o+=u.nodeValue.length,null!==l&&(o+=l.nodeValue.length,r.nextNode()),l=null}else"img"===u.tagName.toLowerCase()&&(!s&&n.start<=o&&(s=!0),s&&i.push(u));return i},splitStartNodeIfNeeded:function(t,e,n){return e!==n?t.splitText(e-n):null},splitEndNodeIfNeeded:function(t,e,n,r){var i,o;i=r+t.nodeValue.length+(e?e.nodeValue.length:0)-1,o=n-r-(e?t.nodeValue.length:0),i>=n&&r!==i&&0!==o&&(e||t).splitText(o)},splitByBlockElements:function(e){if(3!==e.nodeType&&1!==e.nodeType)return[];var n=[],r=t.util.blockContainerElementNames.join(",");if(3===e.nodeType||0===e.querySelectorAll(r).length)return[e];for(var i=0;i<e.childNodes.length;i++){var o=e.childNodes[i];if(3===o.nodeType)n.push(o);else if(1===o.nodeType){0===o.querySelectorAll(r).length?n.push(o):n=n.concat(t.util.splitByBlockElements(o))}}return n},findAdjacentTextNodeWithContent:function(t,e,n){var r,i=!1,o=n.createNodeIterator(t,NodeFilter.SHOW_TEXT,null,!1);for(r=o.nextNode();r;){if(r===e)i=!0;else if(i&&3===r.nodeType&&r.nodeValue&&r.nodeValue.trim().length>0)break;r=o.nextNode()}return r},findPreviousSibling:function(t){if(!t||a.isMediumEditorElement(t))return!1;for(var e=t.previousSibling;!e&&!a.isMediumEditorElement(t.parentNode);)e=(t=t.parentNode).previousSibling;return e},isDescendant:function(t,e,n){if(!t||!e)return!1;if(t===e)return!!n;if(1!==t.nodeType)return!1;if(r||3!==e.nodeType)return t.contains(e);for(var i=e.parentNode;null!==i;){if(i===t)return!0;i=i.parentNode}return!1},isElement:function(t){return!(!t||1!==t.nodeType)},throttle:function(t,e){var n,r,i,o=null,a=0,s=function(){a=Date.now(),o=null,i=t.apply(n,r),o||(n=r=null)};return e||0===e||(e=50),function(){var u=Date.now(),l=e-(u-a);return n=this,r=arguments,l<=0||l>e?(o&&(clearTimeout(o),o=null),a=u,i=t.apply(n,r),o||(n=r=null)):o||(o=setTimeout(s,l)),i}},traverseUp:function(t,e){if(!t)return!1;do{if(1===t.nodeType){if(e(t))return t;if(a.isMediumEditorElement(t))return!1}t=t.parentNode}while(t);return!1},htmlEntities:function(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},insertHTMLCommand:function(e,n){var r,i,o,s,u,l,c,f=!1,d=["insertHTML",!1,n];if(!t.util.isEdge&&e.queryCommandSupported("insertHTML"))try{return e.execCommand.apply(e,d)}catch(t){}if((r=e.getSelection()).rangeCount){if(c=(i=r.getRangeAt(0)).commonAncestorContainer,a.isMediumEditorElement(c)&&!c.firstChild)i.selectNode(c.appendChild(e.createTextNode("")));else if(3===c.nodeType&&0===i.startOffset&&i.endOffset===c.nodeValue.length||3!==c.nodeType&&c.innerHTML===i.toString()){for(;!a.isMediumEditorElement(c)&&c.parentNode&&1===c.parentNode.childNodes.length&&!a.isMediumEditorElement(c.parentNode);)c=c.parentNode;i.selectNode(c)}for(i.deleteContents(),(o=e.createElement("div")).innerHTML=n,s=e.createDocumentFragment();o.firstChild;)u=o.firstChild,l=s.appendChild(u);i.insertNode(s),l&&((i=i.cloneRange()).setStartAfter(l),i.collapse(!0),t.selection.selectRange(e,i)),f=!0}return e.execCommand.callListeners&&e.execCommand.callListeners(d,f),f},execFormatBlock:function(e,n){var r=a.getTopBlockContainer(t.selection.getSelectionStart(e));if("blockquote"===n){if(r&&Array.prototype.slice.call(r.childNodes).some((function(t){return a.isBlockContainer(t)})))return e.execCommand("outdent",!1,null);if(a.isIE)return e.execCommand("indent",!1,n)}if(r&&n===r.nodeName.toLowerCase()&&(n="p"),a.isIE&&(n="<"+n+">"),r&&"blockquote"===r.nodeName.toLowerCase()){if(a.isIE&&"<p>"===n)return e.execCommand("outdent",!1,n);if((a.isFF||a.isEdge)&&"p"===n)return Array.prototype.slice.call(r.childNodes).some((function(t){return!a.isBlockContainer(t)}))&&e.execCommand("formatBlock",!1,n),e.execCommand("outdent",!1,n)}return e.execCommand("formatBlock",!1,n)},setTargetBlank:function(t,e){var n,r=e||!1;if("a"===t.nodeName.toLowerCase())t.target="_blank",t.rel="noopener noreferrer";else for(t=t.getElementsByTagName("a"),n=0;n<t.length;n+=1)!1!==r&&r!==t[n].attributes.href.value||(t[n].target="_blank",t[n].rel="noopener noreferrer")},removeTargetBlank:function(t,e){var n;if("a"===t.nodeName.toLowerCase())t.removeAttribute("target"),t.removeAttribute("rel");else for(t=t.getElementsByTagName("a"),n=0;n<t.length;n+=1)e===t[n].attributes.href.value&&(t[n].removeAttribute("target"),t[n].removeAttribute("rel"))},addClassToAnchors:function(t,e){var n,r,i=e.split(" ");if("a"===t.nodeName.toLowerCase())for(r=0;r<i.length;r+=1)t.classList.add(i[r]);else{var o=t.getElementsByTagName("a");if(0===o.length){var s=a.getClosestTag(t,"a");t=s?[s]:[]}else t=o;for(n=0;n<t.length;n+=1)for(r=0;r<i.length;r+=1)t[n].classList.add(i[r])}},isListItem:function(t){if(!t)return!1;if("li"===t.nodeName.toLowerCase())return!0;for(var e=t.parentNode,n=e.nodeName.toLowerCase();"li"===n||!a.isBlockContainer(e)&&"div"!==n;){if("li"===n)return!0;if(!(e=e.parentNode))return!1;n=e.nodeName.toLowerCase()}return!1},cleanListDOM:function(e,n){if("li"===n.nodeName.toLowerCase()){var r=n.parentElement;"p"===r.parentElement.nodeName.toLowerCase()&&(a.unwrap(r.parentElement,e),t.selection.moveCursor(e,n.firstChild,n.firstChild.textContent.length))}},splitOffDOMTree:function(t,e,n){for(var r=e,i=null,o=!n;r!==t;){var a,s=r.parentNode,u=s.cloneNode(!1),l=o?r:s.firstChild;for(i&&(o?u.appendChild(i):a=i),i=u;l;){var c=l.nextSibling;l===r?(l.hasChildNodes()?l=l.cloneNode(!1):l.parentNode.removeChild(l),l.textContent&&i.appendChild(l),l=o?c:null):(l.parentNode.removeChild(l),(l.hasChildNodes()||l.textContent)&&i.appendChild(l),l=c)}a&&i.appendChild(a),r=s}return i},moveTextRangeIntoElement:function(t,e,n){if(!t||!e)return!1;var r=a.findCommonRoot(t,e);if(!r)return!1;if(e===t){var i=t.parentNode,o=t.nextSibling;return i.removeChild(t),n.appendChild(t),o?i.insertBefore(n,o):i.appendChild(n),n.hasChildNodes()}for(var s,u,l,c=[],f=0;f<r.childNodes.length;f++)if(l=r.childNodes[f],s){if(a.isDescendant(l,e,!0)){u=l;break}c.push(l)}else a.isDescendant(l,t,!0)&&(s=l);var d=u.nextSibling,p=r.ownerDocument.createDocumentFragment();return s===t?(s.parentNode.removeChild(s),p.appendChild(s)):p.appendChild(a.splitOffDOMTree(s,t)),c.forEach((function(t){t.parentNode.removeChild(t),p.appendChild(t)})),u===e?(u.parentNode.removeChild(u),p.appendChild(u)):p.appendChild(a.splitOffDOMTree(u,e,!0)),n.appendChild(p),u.parentNode===r?r.insertBefore(n,u):d?r.insertBefore(n,d):r.appendChild(n),n.hasChildNodes()},depthOfNode:function(t){for(var e=0,n=t;null!==n.parentNode;)n=n.parentNode,e++;return e},findCommonRoot:function(t,e){for(var n=a.depthOfNode(t),r=a.depthOfNode(e),i=t,o=e;n!==r;)n>r?(i=i.parentNode,n-=1):(o=o.parentNode,r-=1);for(;i!==o;)i=i.parentNode,o=o.parentNode;return i},isElementAtBeginningOfBlock:function(t){for(var e;!a.isBlockContainer(t)&&!a.isMediumEditorElement(t);){for(e=t;e=e.previousSibling;)if((3===e.nodeType?e.nodeValue:e.textContent).length>0)return!1;t=t.parentNode}return!0},isMediumEditorElement:function(t){return t&&t.getAttribute&&!!t.getAttribute("data-medium-editor-element")},getContainerEditorElement:function(t){return a.traverseUp(t,(function(t){return a.isMediumEditorElement(t)}))},isBlockContainer:function(t){return t&&3!==t.nodeType&&-1!==a.blockContainerElementNames.indexOf(t.nodeName.toLowerCase())},getClosestBlockContainer:function(t){return a.traverseUp(t,(function(t){return a.isBlockContainer(t)||a.isMediumEditorElement(t)}))},getTopBlockContainer:function(t){var e=!!a.isBlockContainer(t)&&t;return a.traverseUp(t,(function(t){return a.isBlockContainer(t)&&(e=t),!(e||!a.isMediumEditorElement(t))&&(e=t,!0)})),e},getFirstSelectableLeafNode:function(t){for(;t&&t.firstChild;)t=t.firstChild;if("table"===(t=a.traverseUp(t,(function(t){return-1===a.emptyElementNames.indexOf(t.nodeName.toLowerCase())}))).nodeName.toLowerCase()){var e=t.querySelector("th, td");e&&(t=e)}return t},getFirstTextNode:function(t){return a.warn("getFirstTextNode is deprecated and will be removed in version 6.0.0"),a._getFirstTextNode(t)},_getFirstTextNode:function(t){if(3===t.nodeType)return t;for(var e=0;e<t.childNodes.length;e++){var n=a._getFirstTextNode(t.childNodes[e]);if(null!==n)return n}return null},ensureUrlHasProtocol:function(t){return-1===t.indexOf("://")?"http://"+t:t},warn:function(){void 0!==e.console&&"function"==typeof e.console.warn&&e.console.warn.apply(e.console,arguments)},deprecated:function(t,e,n){var r=t+" is deprecated, please use "+e+" instead.";n&&(r+=" Will be removed in "+n),a.warn(r)},deprecatedMethod:function(t,e,n,r){a.deprecated(t,e,r),"function"==typeof this[e]&&this[e].apply(this,n)},cleanupAttrs:function(t,e){e.forEach((function(e){t.removeAttribute(e)}))},cleanupTags:function(t,e){-1!==e.indexOf(t.nodeName.toLowerCase())&&t.parentNode.removeChild(t)},unwrapTags:function(e,n){-1!==n.indexOf(e.nodeName.toLowerCase())&&t.util.unwrap(e,document)},getClosestTag:function(t,e){return a.traverseUp(t,(function(t){return t.nodeName.toLowerCase()===e.toLowerCase()}))},unwrap:function(t,e){for(var n=e.createDocumentFragment(),r=Array.prototype.slice.call(t.childNodes),i=0;i<r.length;i++)n.appendChild(r[i]);n.childNodes.length?t.parentNode.replaceChild(n,t):t.parentNode.removeChild(t)},guid:function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};t.util=a}(window),(e=function(e){t.util.extend(this,e)}).extend=function(e){var n,r=this;n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return r.apply(this,arguments)},t.util.extend(n,r);var i=function(){this.constructor=n};return i.prototype=r.prototype,n.prototype=new i,e&&t.util.extend(n.prototype,e),n},e.prototype={init:function(){},base:void 0,name:void 0,checkState:void 0,destroy:void 0,queryCommandState:void 0,isActive:void 0,isAlreadyApplied:void 0,setActive:void 0,setInactive:void 0,getInteractionElements:void 0,window:void 0,document:void 0,getEditorElements:function(){return this.base.elements},getEditorId:function(){return this.base.id},getEditorOption:function(t){return this.base.options[t]}},["execAction","on","off","subscribe","trigger"].forEach((function(t){e.prototype[t]=function(){return this.base[t].apply(this.base,arguments)}})),t.Extension=e,function(){function e(e){return t.util.isBlockContainer(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}var n={findMatchingSelectionParent:function(e,n){var r,i=n.getSelection();return 0!==i.rangeCount&&(r=i.getRangeAt(0).commonAncestorContainer,t.util.traverseUp(r,e))},getSelectionElement:function(e){return this.findMatchingSelectionParent((function(e){return t.util.isMediumEditorElement(e)}),e)},exportSelection:function(t,e){if(!t)return null;var n=null,r=e.getSelection();if(r.rangeCount>0){var i,o=r.getRangeAt(0),a=o.cloneRange();a.selectNodeContents(t),a.setEnd(o.startContainer,o.startOffset),n={start:i=a.toString().length,end:i+o.toString().length},this.doesRangeStartWithImages(o,e)&&(n.startsWithImage=!0);var s=this.getTrailingImageCount(t,n,o.endContainer,o.endOffset);if(s&&(n.trailingImageCount=s),0!==i){var u=this.getIndexRelativeToAdjacentEmptyBlocks(e,t,o.startContainer,o.startOffset);-1!==u&&(n.emptyBlocksIndex=u)}}return n},importSelection:function(t,e,n,r){if(t&&e){var i=n.createRange();i.setStart(e,0),i.collapse(!0);var o,a=e,s=[],u=0,l=!1,c=!1,f=0,d=!1,p=!1,h=null;for((r||t.startsWithImage||void 0!==t.emptyBlocksIndex)&&(p=!0);!d&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||c){if(t.trailingImageCount&&c&&("img"===a.nodeName.toLowerCase()&&f++,f===t.trailingImageCount)){for(var v=0;a.parentNode.childNodes[v]!==a;)v++;i.setEnd(a.parentNode,v+1),d=!0}if(!d&&1===a.nodeType)for(var m=a.childNodes.length-1;m>=0;)s.push(a.childNodes[m]),m-=1}else o=u+a.length,!l&&t.start>=u&&t.start<=o&&(p||t.start<o?(i.setStart(a,t.start-u),l=!0):h=a),l&&t.end>=u&&t.end<=o&&(t.trailingImageCount?c=!0:(i.setEnd(a,t.end-u),d=!0)),u=o;d||(a=s.pop())}!l&&h&&(i.setStart(h,h.length),i.setEnd(h,h.length)),void 0!==t.emptyBlocksIndex&&(i=this.importSelectionMoveCursorPastBlocks(n,e,t.emptyBlocksIndex,i)),r&&(i=this.importSelectionMoveCursorPastAnchor(t,i)),this.selectRange(n,i)}},importSelectionMoveCursorPastAnchor:function(e,n){if(e.start===e.end&&3===n.startContainer.nodeType&&n.startOffset===n.startContainer.nodeValue.length&&t.util.traverseUp(n.startContainer,(function(t){return"a"===t.nodeName.toLowerCase()}))){for(var r=n.startContainer,i=n.startContainer.parentNode;null!==i&&"a"!==i.nodeName.toLowerCase();)i.childNodes[i.childNodes.length-1]!==r?i=null:(r=i,i=i.parentNode);if(null!==i&&"a"===i.nodeName.toLowerCase()){for(var o=null,a=0;null===o&&a<i.parentNode.childNodes.length;a++)i.parentNode.childNodes[a]===i&&(o=a);n.setStart(i.parentNode,o+1),n.collapse(!0)}}return n},importSelectionMoveCursorPastBlocks:function(n,r,i,o){var a,s,u=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),l=o.startContainer,c=0;for(i=i||1,a=3===l.nodeType&&t.util.isBlockContainer(l.previousSibling)?l.previousSibling:t.util.getClosestBlockContainer(l);u.nextNode();)if(s){if(s=u.currentNode,++c===i)break;if(s.textContent.length>0)break}else a===u.currentNode&&(s=u.currentNode);return s||(s=a),o.setStart(t.util.getFirstSelectableLeafNode(s),0),o},getIndexRelativeToAdjacentEmptyBlocks:function(n,r,i,o){if(i.textContent.length>0&&o>0)return-1;var a=i;if(3!==a.nodeType&&(a=i.childNodes[o]),a){if(!t.util.isElementAtBeginningOfBlock(a))return-1;var s=t.util.findPreviousSibling(a);if(!s)return-1;if(s.nodeValue)return-1}for(var u=t.util.getClosestBlockContainer(i),l=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),c=0;l.nextNode();){var f=""===l.currentNode.textContent;if((f||c>0)&&(c+=1),l.currentNode===u)return c;f||(c=0)}return c},doesRangeStartWithImages:function(t,e){if(0!==t.startOffset||1!==t.startContainer.nodeType)return!1;if("img"===t.startContainer.nodeName.toLowerCase())return!0;var n=t.startContainer.querySelector("img");if(!n)return!1;for(var r=e.createTreeWalker(t.startContainer,NodeFilter.SHOW_ALL,null,!1);r.nextNode();){var i=r.currentNode;if(i===n)break;if(i.nodeValue)return!1}return!0},getTrailingImageCount:function(t,e,n,r){if(0===r||1!==n.nodeType)return 0;if("img"!==n.nodeName.toLowerCase()&&!n.querySelector("img"))return 0;for(var i=n.childNodes[r-1];i.hasChildNodes();)i=i.lastChild;for(var o,a=t,s=[],u=0,l=!1,c=!1,f=!1,d=0;!f&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||c){if("img"===a.nodeName.toLowerCase()&&d++,a===i)f=!0;else if(1===a.nodeType)for(var p=a.childNodes.length-1;p>=0;)s.push(a.childNodes[p]),p-=1}else d=0,o=u+a.length,!l&&e.start>=u&&e.start<=o&&(l=!0),l&&e.end>=u&&e.end<=o&&(c=!0),u=o;f||(a=s.pop())}return d},selectionContainsContent:function(t){var e=t.getSelection();if(!e||e.isCollapsed||!e.rangeCount)return!1;if(""!==e.toString().trim())return!0;var n=this.getSelectedParentElement(e.getRangeAt(0));return!(!n||!("img"===n.nodeName.toLowerCase()||1===n.nodeType&&n.querySelector("img")))},selectionInContentEditableFalse:function(t){var e,n=this.findMatchingSelectionParent((function(t){var n=t&&t.getAttribute("contenteditable");return"true"===n&&(e=!0),"#text"!==t.nodeName&&"false"===n}),t);return!e&&n},getSelectionHtml:function(t){var e,n,r,i="",o=t.getSelection();if(o.rangeCount){for(r=t.createElement("div"),e=0,n=o.rangeCount;e<n;e+=1)r.appendChild(o.getRangeAt(e).cloneContents());i=r.innerHTML}return i},getCaretOffsets:function(t,e){var n,r;return e||(e=window.getSelection().getRangeAt(0)),n=e.cloneRange(),r=e.cloneRange(),n.selectNodeContents(t),n.setEnd(e.endContainer,e.endOffset),r.selectNodeContents(t),r.setStart(e.endContainer,e.endOffset),{left:n.toString().length,right:r.toString().length}},rangeSelectsSingleNode:function(t){var e=t.startContainer;return e===t.endContainer&&e.hasChildNodes()&&t.endOffset===t.startOffset+1},getSelectedParentElement:function(t){return t?this.rangeSelectsSingleNode(t)&&3!==t.startContainer.childNodes[t.startOffset].nodeType?t.startContainer.childNodes[t.startOffset]:3===t.startContainer.nodeType?t.startContainer.parentNode:t.startContainer:null},getSelectedElements:function(t){var e,n,r,i=t.getSelection();if(!i.rangeCount||i.isCollapsed||!i.getRangeAt(0).commonAncestorContainer)return[];if(3===(e=i.getRangeAt(0)).commonAncestorContainer.nodeType){for(n=[],r=e.commonAncestorContainer;r.parentNode&&1===r.parentNode.childNodes.length;)n.push(r.parentNode),r=r.parentNode;return n}return[].filter.call(e.commonAncestorContainer.getElementsByTagName("*"),(function(t){return"function"!=typeof i.containsNode||i.containsNode(t,!0)}))},selectNode:function(t,e){var n=e.createRange();n.selectNodeContents(t),this.selectRange(e,n)},select:function(t,e,n,r,i){var o=t.createRange();return o.setStart(e,n),r?o.setEnd(r,i):o.collapse(!0),this.selectRange(t,o),o},clearSelection:function(t,e){e?t.getSelection().collapseToStart():t.getSelection().collapseToEnd()},moveCursor:function(t,e,n){this.select(t,e,n)},getSelectionRange:function(t){var e=t.getSelection();return 0===e.rangeCount?null:e.getRangeAt(0)},selectRange:function(t,e){var n=t.getSelection();n.removeAllRanges(),n.addRange(e)},getSelectionStart:function(t){var e=t.getSelection().anchorNode;return e&&3===e.nodeType?e.parentNode:e}};t.selection=n}(),function(){function e(e,n){return!!e&&e.some((function(e){if("function"!=typeof e.getInteractionElements)return!1;var r=e.getInteractionElements();return!!r&&(Array.isArray(r)||(r=[r]),r.some((function(e){return t.util.isDescendant(e,n,!0)})))}))}var n=function(t){this.base=t,this.options=this.base.options,this.events=[],this.disabledEvents={},this.customEvents={},this.listeners={}};n.prototype={InputEventOnContenteditableSupported:!t.util.isIE&&!t.util.isEdge,attachDOMEvent:function(e,n,r,i){var o=this.base.options.contentWindow,a=this.base.options.ownerDocument;e=t.util.isElement(e)||[o,a].indexOf(e)>-1?[e]:e,Array.prototype.forEach.call(e,function(t){t.addEventListener(n,r,i),this.events.push([t,n,r,i])}.bind(this))},detachDOMEvent:function(e,n,r,i){var o,a,s=this.base.options.contentWindow,u=this.base.options.ownerDocument;e&&(e=t.util.isElement(e)||[s,u].indexOf(e)>-1?[e]:e,Array.prototype.forEach.call(e,function(t){-1!==(o=this.indexOfListener(t,n,r,i))&&(a=this.events.splice(o,1)[0])[0].removeEventListener(a[1],a[2],a[3])}.bind(this)))},indexOfListener:function(t,e,n,r){var i,o,a;for(i=0,o=this.events.length;i<o;i+=1)if((a=this.events[i])[0]===t&&a[1]===e&&a[2]===n&&a[3]===r)return i;return-1},detachAllDOMEvents:function(){for(var t=this.events.pop();t;)t[0].removeEventListener(t[1],t[2],t[3]),t=this.events.pop()},detachAllEventsFromElement:function(t){for(var e=this.events.filter((function(e){return e&&e[0].getAttribute&&e[0].getAttribute("medium-editor-index")===t.getAttribute("medium-editor-index")})),n=0,r=e.length;n<r;n++){var i=e[n];this.detachDOMEvent(i[0],i[1],i[2],i[3])}},attachAllEventsToElement:function(t){this.listeners.editableInput&&(this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML),this.eventsCache&&this.eventsCache.forEach((function(e){this.attachDOMEvent(t,e.name,e.handler.bind(this))}),this)},enableCustomEvent:function(t){void 0!==this.disabledEvents[t]&&delete this.disabledEvents[t]},disableCustomEvent:function(t){this.disabledEvents[t]=!0},attachCustomEvent:function(t,e){this.setupListener(t),this.customEvents[t]||(this.customEvents[t]=[]),this.customEvents[t].push(e)},detachCustomEvent:function(t,e){var n=this.indexOfCustomListener(t,e);-1!==n&&this.customEvents[t].splice(n,1)},indexOfCustomListener:function(t,e){return this.customEvents[t]&&this.customEvents[t].length?this.customEvents[t].indexOf(e):-1},detachAllCustomEvents:function(){this.customEvents={}},triggerCustomEvent:function(t,e,n){this.customEvents[t]&&!this.disabledEvents[t]&&this.customEvents[t].forEach((function(t){t(e,n)}))},destroy:function(){this.detachAllDOMEvents(),this.detachAllCustomEvents(),this.detachExecCommand(),this.base.elements&&this.base.elements.forEach((function(t){t.removeAttribute("data-medium-focused")}))},attachToExecCommand:function(){this.execCommandListener||(this.execCommandListener=function(t){this.handleDocumentExecCommand(t)}.bind(this),this.wrapExecCommand(),this.options.ownerDocument.execCommand.listeners.push(this.execCommandListener))},detachExecCommand:function(){var t=this.options.ownerDocument;if(this.execCommandListener&&t.execCommand.listeners){var e=t.execCommand.listeners.indexOf(this.execCommandListener);-1!==e&&t.execCommand.listeners.splice(e,1),t.execCommand.listeners.length||this.unwrapExecCommand()}},wrapExecCommand:function(){var t=this.options.ownerDocument;if(!t.execCommand.listeners){var e=function(e,n){t.execCommand.listeners&&t.execCommand.listeners.forEach((function(t){t({command:e[0],value:e[2],args:e,result:n})}))},n=function(){var n=t.execCommand.orig.apply(this,arguments);if(!t.execCommand.listeners)return n;var r=Array.prototype.slice.call(arguments);return e(r,n),n};n.orig=t.execCommand,n.listeners=[],n.callListeners=e,t.execCommand=n}},unwrapExecCommand:function(){var t=this.options.ownerDocument;t.execCommand.orig&&(t.execCommand=t.execCommand.orig)},setupListener:function(t){if(!this.listeners[t]){switch(t){case"externalInteraction":this.attachDOMEvent(this.options.ownerDocument.body,"mousedown",this.handleBodyMousedown.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"click",this.handleBodyClick.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"focus",this.handleBodyFocus.bind(this),!0);break;case"blur":case"focus":this.setupListener("externalInteraction");break;case"editableInput":this.contentCache={},this.base.elements.forEach((function(t){this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML}),this),this.InputEventOnContenteditableSupported&&this.attachToEachElement("input",this.handleInput),this.InputEventOnContenteditableSupported||(this.setupListener("editableKeypress"),this.keypressUpdateInput=!0,this.attachDOMEvent(document,"selectionchange",this.handleDocumentSelectionChange.bind(this)),this.attachToExecCommand());break;case"editableClick":this.attachToEachElement("click",this.handleClick);break;case"editableBlur":this.attachToEachElement("blur",this.handleBlur);break;case"editableKeypress":this.attachToEachElement("keypress",this.handleKeypress);break;case"editableKeyup":this.attachToEachElement("keyup",this.handleKeyup);break;case"editableKeydown":this.attachToEachElement("keydown",this.handleKeydown);break;case"editableKeydownSpace":case"editableKeydownEnter":case"editableKeydownTab":case"editableKeydownDelete":this.setupListener("editableKeydown");break;case"editableMouseover":this.attachToEachElement("mouseover",this.handleMouseover);break;case"editableDrag":this.attachToEachElement("dragover",this.handleDragging),this.attachToEachElement("dragleave",this.handleDragging);break;case"editableDrop":this.attachToEachElement("drop",this.handleDrop);break;case"editablePaste":this.attachToEachElement("paste",this.handlePaste)}this.listeners[t]=!0}},attachToEachElement:function(t,e){this.eventsCache||(this.eventsCache=[]),this.base.elements.forEach((function(n){this.attachDOMEvent(n,t,e.bind(this))}),this),this.eventsCache.push({name:t,handler:e})},cleanupElement:function(t){var e=t.getAttribute("medium-editor-index");e&&(this.detachAllEventsFromElement(t),this.contentCache&&delete this.contentCache[e])},focusElement:function(t){t.focus(),this.updateFocus(t,{target:t,type:"focus"})},updateFocus:function(n,r){var i,o=this.base.getFocusedElement();o&&"click"===r.type&&this.lastMousedownTarget&&(t.util.isDescendant(o,this.lastMousedownTarget,!0)||e(this.base.extensions,this.lastMousedownTarget))&&(i=o),i||this.base.elements.some((function(e){return!i&&t.util.isDescendant(e,n,!0)&&(i=e),!!i}),this);var a=!t.util.isDescendant(o,n,!0)&&!e(this.base.extensions,n);i!==o&&(o&&a&&(o.removeAttribute("data-medium-focused"),this.triggerCustomEvent("blur",r,o)),i&&(i.setAttribute("data-medium-focused",!0),this.triggerCustomEvent("focus",r,i))),a&&this.triggerCustomEvent("externalInteraction",r)},updateInput:function(t,e){if(this.contentCache){var n=t.getAttribute("medium-editor-index"),r=t.innerHTML;r!==this.contentCache[n]&&this.triggerCustomEvent("editableInput",e,t),this.contentCache[n]=r}},handleDocumentSelectionChange:function(e){if(e.currentTarget&&e.currentTarget.activeElement){var n,r=e.currentTarget.activeElement;this.base.elements.some((function(e){return!!t.util.isDescendant(e,r,!0)&&(n=e,!0)}),this),n&&this.updateInput(n,{target:r,currentTarget:n})}},handleDocumentExecCommand:function(){var t=this.base.getFocusedElement();t&&this.updateInput(t,{target:t,currentTarget:t})},handleBodyClick:function(t){this.updateFocus(t.target,t)},handleBodyFocus:function(t){this.updateFocus(t.target,t)},handleBodyMousedown:function(t){this.lastMousedownTarget=t.target},handleInput:function(t){this.updateInput(t.currentTarget,t)},handleClick:function(t){this.triggerCustomEvent("editableClick",t,t.currentTarget)},handleBlur:function(t){this.triggerCustomEvent("editableBlur",t,t.currentTarget)},handleKeypress:function(t){if(this.triggerCustomEvent("editableKeypress",t,t.currentTarget),this.keypressUpdateInput){var e={target:t.target,currentTarget:t.currentTarget};setTimeout(function(){this.updateInput(e.currentTarget,e)}.bind(this),0)}},handleKeyup:function(t){this.triggerCustomEvent("editableKeyup",t,t.currentTarget)},handleMouseover:function(t){this.triggerCustomEvent("editableMouseover",t,t.currentTarget)},handleDragging:function(t){this.triggerCustomEvent("editableDrag",t,t.currentTarget)},handleDrop:function(t){this.triggerCustomEvent("editableDrop",t,t.currentTarget)},handlePaste:function(t){this.triggerCustomEvent("editablePaste",t,t.currentTarget)},handleKeydown:function(e){return this.triggerCustomEvent("editableKeydown",e,e.currentTarget),t.util.isKey(e,t.util.keyCode.SPACE)?this.triggerCustomEvent("editableKeydownSpace",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.ENTER)||e.ctrlKey&&t.util.isKey(e,t.util.keyCode.M)?this.triggerCustomEvent("editableKeydownEnter",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.TAB)?this.triggerCustomEvent("editableKeydownTab",e,e.currentTarget):t.util.isKey(e,[t.util.keyCode.DELETE,t.util.keyCode.BACKSPACE])?this.triggerCustomEvent("editableKeydownDelete",e,e.currentTarget):void 0}},t.Events=n}(),n=t.Extension.extend({action:void 0,aria:void 0,tagNames:void 0,style:void 0,useQueryState:void 0,contentDefault:void 0,contentFA:void 0,classList:void 0,attrs:void 0,constructor:function(e){n.isBuiltInButton(e)?t.Extension.call(this,this.defaults[e]):t.Extension.call(this,e)},init:function(){t.Extension.prototype.init.apply(this,arguments),this.button=this.createButton(),this.on(this.button,"click",this.handleClick.bind(this))},getButton:function(){return this.button},getAction:function(){return"function"==typeof this.action?this.action(this.base.options):this.action},getAria:function(){return"function"==typeof this.aria?this.aria(this.base.options):this.aria},getTagNames:function(){return"function"==typeof this.tagNames?this.tagNames(this.base.options):this.tagNames},createButton:function(){var t=this.document.createElement("button"),e=this.contentDefault,n=this.getAria(),r=this.getEditorOption("buttonLabels");return t.classList.add("medium-editor-action"),t.classList.add("medium-editor-action-"+this.name),this.classList&&this.classList.forEach((function(e){t.classList.add(e)})),t.setAttribute("data-action",this.getAction()),n&&(t.setAttribute("title",n),t.setAttribute("aria-label",n)),this.attrs&&Object.keys(this.attrs).forEach((function(e){t.setAttribute(e,this.attrs[e])}),this),"fontawesome"===r&&this.contentFA&&(e=this.contentFA),t.innerHTML=e,t},handleClick:function(t){t.preventDefault(),t.stopPropagation();var e=this.getAction();e&&this.execAction(e)},isActive:function(){return this.button.classList.contains(this.getEditorOption("activeButtonClass"))},setInactive:function(){this.button.classList.remove(this.getEditorOption("activeButtonClass")),delete this.knownState},setActive:function(){this.button.classList.add(this.getEditorOption("activeButtonClass")),delete this.knownState},queryCommandState:function(){var t=null;return this.useQueryState&&(t=this.base.queryCommandState(this.getAction())),t},isAlreadyApplied:function(t){var e,n,r=!1,i=this.getTagNames();return!1===this.knownState||!0===this.knownState?this.knownState:(i&&i.length>0&&(r=-1!==i.indexOf(t.nodeName.toLowerCase())),!r&&this.style&&(e=this.style.value.split("|"),n=this.window.getComputedStyle(t,null).getPropertyValue(this.style.prop),e.forEach((function(t){this.knownState||((r=-1!==n.indexOf(t))||"text-decoration"!==this.style.prop)&&(this.knownState=r)}),this)),r)}}),n.isBuiltInButton=function(e){return"string"==typeof e&&t.extensions.button.prototype.defaults.hasOwnProperty(e)},t.extensions.button=n,t.extensions.button.prototype.defaults={bold:{name:"bold",action:"bold",aria:"bold",tagNames:["b","strong"],style:{prop:"font-weight",value:"700|bold"},useQueryState:!0,contentDefault:"<b>B</b>",contentFA:'<i class="fa fa-bold"></i>'},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"<b><i>I</i></b>",contentFA:'<i class="fa fa-italic"></i>'},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"<b><u>U</u></b>",contentFA:'<i class="fa fa-underline"></i>'},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"<s>A</s>",contentFA:'<i class="fa fa-strikethrough"></i>'},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"<b>x<sup>1</sup></b>",contentFA:'<i class="fa fa-superscript"></i>'},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"<b>x<sub>1</sub></b>",contentFA:'<i class="fa fa-subscript"></i>'},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"<b>image</b>",contentFA:'<i class="fa fa-picture-o"></i>'},html:{name:"html",action:"html",aria:"evaluate html",tagNames:["iframe","object"],contentDefault:"<b>html</b>",contentFA:'<i class="fa fa-code"></i>'},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"<b>1.</b>",contentFA:'<i class="fa fa-list-ol"></i>'},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"<b>&bull;</b>",contentFA:'<i class="fa fa-list-ul"></i>'},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"<b>&rarr;</b>",contentFA:'<i class="fa fa-indent"></i>'},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"<b>&larr;</b>",contentFA:'<i class="fa fa-outdent"></i>'},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"<b>C</b>",contentFA:'<i class="fa fa-align-center"></i>'},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"<b>J</b>",contentFA:'<i class="fa fa-align-justify"></i>'},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"<b>L</b>",contentFA:'<i class="fa fa-align-left"></i>'},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"<b>R</b>",contentFA:'<i class="fa fa-align-right"></i>'},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"<b>X</b>",contentFA:'<i class="fa fa-eraser"></i>'},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"<b>&ldquo;</b>",contentFA:'<i class="fa fa-quote-right"></i>'},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"<b>0101</b>",contentFA:'<i class="fa fa-code fa-lg"></i>'},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"<b>H1</b>",contentFA:'<i class="fa fa-header"><sup>1</sup>'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"<b>H2</b>",contentFA:'<i class="fa fa-header"><sup>2</sup>'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"<b>H3</b>",contentFA:'<i class="fa fa-header"><sup>3</sup>'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"<b>H4</b>",contentFA:'<i class="fa fa-header"><sup>4</sup>'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"<b>H5</b>",contentFA:'<i class="fa fa-header"><sup>5</sup>'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"<b>H6</b>",contentFA:'<i class="fa fa-header"><sup>6</sup>'}},r=t.extensions.button.extend({init:function(){t.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"&#10003;",formCloseLabel:"&times;",activeClass:"medium-editor-toolbar-form-active",hasForm:!0,getForm:function(){},isDisplayed:function(){return!!this.hasForm&&this.getForm().classList.contains(this.activeClass)},showForm:function(){this.hasForm&&this.getForm().classList.add(this.activeClass)},hideForm:function(){this.hasForm&&this.getForm().classList.remove(this.activeClass)},showToolbarDefaultActions:function(){var t=this.base.getExtensionByName("toolbar");t&&t.showToolbarDefaultActions()},hideToolbarDefaultActions:function(){var t=this.base.getExtensionByName("toolbar");t&&t.hideToolbarDefaultActions()},setToolbarPosition:function(){var t=this.base.getExtensionByName("toolbar");t&&t.setToolbarPosition()}}),t.extensions.form=r,i=t.extensions.form.extend({customClassOption:null,customClassOptionText:"Button",linkValidation:!1,placeholderText:"Paste or type a link",targetCheckbox:!1,targetCheckboxText:"Open in new window",name:"anchor",action:"createLink",aria:"link",tagNames:["a"],contentDefault:"<b>#</b>",contentFA:'<i class="fa fa-link"></i>',init:function(){t.extensions.form.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this))},handleClick:function(e){e.preventDefault(),e.stopPropagation();var n=t.selection.getSelectionRange(this.document);return"a"===n.startContainer.nodeName.toLowerCase()||"a"===n.endContainer.nodeName.toLowerCase()||t.util.getClosestTag(t.selection.getSelectedParentElement(n),"a")?this.execAction("unlink"):(this.isDisplayed()||this.showForm(),!1)},handleKeydown:function(e){t.util.isKey(e,t.util.keyCode.K)&&t.util.isMetaCtrlKey(e)&&!e.shiftKey&&this.handleClick(e)},getForm:function(){return this.form||(this.form=this.createForm()),this.form},getTemplate:function(){var t=['<input type="text" class="medium-editor-toolbar-input" placeholder="',this.placeholderText,'">'];return t.push('<a href="#" class="medium-editor-toolbar-save">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':this.formSaveLabel,"</a>"),t.push('<a href="#" class="medium-editor-toolbar-close">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':this.formCloseLabel,"</a>"),this.targetCheckbox&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-target" id="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">','<label for="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">',this.targetCheckboxText,"</label>","</div>"),this.customClassOption&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-button">',"<label>",this.customClassOptionText,"</label>","</div>"),t.join("")},isDisplayed:function(){return t.extensions.form.prototype.isDisplayed.apply(this)},hideForm:function(){t.extensions.form.prototype.hideForm.apply(this),this.getInput().value=""},showForm:function(e){var n=this.getInput(),r=this.getAnchorTargetCheckbox(),i=this.getAnchorButtonCheckbox();if("string"==typeof(e=e||{value:""})&&(e={value:e}),this.base.saveSelection(),this.hideToolbarDefaultActions(),t.extensions.form.prototype.showForm.apply(this),this.setToolbarPosition(),n.value=e.value,n.focus(),r&&(r.checked="_blank"===e.target),i){var o=e.buttonClass?e.buttonClass.split(" "):[];i.checked=-1!==o.indexOf(this.customClassOption)}},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},getFormOpts:function(){var t=this.getAnchorTargetCheckbox(),e=this.getAnchorButtonCheckbox(),n={value:this.getInput().value.trim()};return this.linkValidation&&(n.value=this.checkLinkFormat(n.value)),n.target="_self",t&&t.checked&&(n.target="_blank"),e&&e.checked&&(n.buttonClass=this.customClassOption),n},doFormSave:function(){var t=this.getFormOpts();this.completeFormSave(t)},completeFormSave:function(t){this.base.restoreSelection(),this.execAction(this.action,t),this.base.checkSelection()},ensureEncodedUri:function(t){return t===decodeURI(t)?encodeURI(t):t},ensureEncodedUriComponent:function(t){return t===decodeURIComponent(t)?encodeURIComponent(t):t},ensureEncodedParam:function(t){var e=t.split("="),n=e[0],r=e[1];return n+(void 0===r?"":"="+this.ensureEncodedUriComponent(r))},ensureEncodedQuery:function(t){return t.split("&").map(this.ensureEncodedParam.bind(this)).join("&")},checkLinkFormat:function(t){var e=/^([a-z]+:)?\/\/|^(mailto|tel|maps):|^\#/i.test(t),n="",r=t.match(/^(.*?)(?:\?(.*?))?(?:#(.*))?$/),i=r[1],o=r[2],a=r[3];if(/^\+?\s?\(?(?:\d\s?\-?\)?){3,20}$/.test(t))return"tel:"+t;if(!e){var s=i.split("/")[0];(s.match(/.+(\.|:).+/)||"localhost"===s)&&(n="http://")}return n+this.ensureEncodedUri(i)+(void 0===o?"":"?"+this.ensureEncodedQuery(o))+(void 0===a?"":"#"+a)},doFormCancel:function(){this.base.restoreSelection(),this.base.checkSelection()},attachFormEvents:function(t){var e=t.querySelector(".medium-editor-toolbar-close"),n=t.querySelector(".medium-editor-toolbar-save"),r=t.querySelector(".medium-editor-toolbar-input");this.on(t,"click",this.handleFormClick.bind(this)),this.on(r,"keyup",this.handleTextboxKeyup.bind(this)),this.on(e,"click",this.handleCloseClick.bind(this)),this.on(n,"click",this.handleSaveClick.bind(this),!0)},createForm:function(){var t=this.document.createElement("div");return t.className="medium-editor-toolbar-form",t.id="medium-editor-toolbar-form-anchor-"+this.getEditorId(),t.innerHTML=this.getTemplate(),this.attachFormEvents(t),t},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},getAnchorTargetCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-target")},getAnchorButtonCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-button")},handleTextboxKeyup:function(e){if(e.keyCode===t.util.keyCode.ENTER)return e.preventDefault(),void this.doFormSave();e.keyCode===t.util.keyCode.ESCAPE&&(e.preventDefault(),this.doFormCancel())},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}}),t.extensions.anchor=i,o=t.Extension.extend({name:"anchor-preview",hideDelay:500,previewValueSelector:"a",showWhenToolbarIsVisible:!1,showOnEmptyLinks:!0,init:function(){this.anchorPreview=this.createPreview(),this.getEditorOption("elementsContainer").appendChild(this.anchorPreview),this.attachToEditables()},getInteractionElements:function(){return this.getPreviewElement()},getPreviewElement:function(){return this.anchorPreview},createPreview:function(){var t=this.document.createElement("div");return t.id="medium-editor-anchor-preview-"+this.getEditorId(),t.className="medium-editor-anchor-preview",t.innerHTML=this.getTemplate(),this.on(t,"click",this.handleClick.bind(this)),t},getTemplate:function(){return'<div class="medium-editor-toolbar-anchor-preview" id="medium-editor-toolbar-anchor-preview"> <a class="medium-editor-toolbar-anchor-preview-inner"></a></div>'},destroy:function(){this.anchorPreview&&(this.anchorPreview.parentNode&&this.anchorPreview.parentNode.removeChild(this.anchorPreview),delete this.anchorPreview)},hidePreview:function(){this.anchorPreview&&this.anchorPreview.classList.remove("medium-editor-anchor-preview-active"),this.activeAnchor=null},showPreview:function(t){return!(!this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")&&!t.getAttribute("data-disable-preview"))||(this.previewValueSelector&&(this.anchorPreview.querySelector(this.previewValueSelector).textContent=t.attributes.href.value,this.anchorPreview.querySelector(this.previewValueSelector).href=t.attributes.href.value),this.anchorPreview.classList.add("medium-toolbar-arrow-over"),this.anchorPreview.classList.remove("medium-toolbar-arrow-under"),this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")||this.anchorPreview.classList.add("medium-editor-anchor-preview-active"),this.activeAnchor=t,this.positionPreview(),this.attachPreviewHandlers(),this)},positionPreview:function(t){t=t||this.activeAnchor;var e,n,r,i,o,a=this.window.innerWidth,s=this.anchorPreview.offsetHeight,u=t.getBoundingClientRect(),l=this.diffLeft,c=this.diffTop,f=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(f).getPropertyValue("position"))>-1,p={};e=this.anchorPreview.offsetWidth/2;var h=this.base.getExtensionByName("toolbar");h&&(l=h.diffLeft,c=h.diffTop),n=l-e,d?(i=f.getBoundingClientRect(),["top","left"].forEach((function(t){p[t]=u[t]-i[t]})),p.width=u.width,p.height=u.height,u=p,a=i.width,o=f.scrollTop):o=this.window.pageYOffset,r=u.left+u.width/2,o+=s+u.top+u.height-c-this.anchorPreview.offsetHeight,this.anchorPreview.style.top=Math.round(o)+"px",this.anchorPreview.style.right="initial",r<e?(this.anchorPreview.style.left=n+e+"px",this.anchorPreview.style.right="initial"):a-r<e?(this.anchorPreview.style.left="auto",this.anchorPreview.style.right=0):(this.anchorPreview.style.left=n+r+"px",this.anchorPreview.style.right="initial")},attachToEditables:function(){this.subscribe("editableMouseover",this.handleEditableMouseover.bind(this)),this.subscribe("positionedToolbar",this.handlePositionedToolbar.bind(this))},handlePositionedToolbar:function(){this.showWhenToolbarIsVisible||this.hidePreview()},handleClick:function(t){var e=this.base.getExtensionByName("anchor"),n=this.activeAnchor;e&&n&&(t.preventDefault(),this.base.selectElement(this.activeAnchor),this.base.delay(function(){if(n){var t={value:n.attributes.href.value,target:n.getAttribute("target"),buttonClass:n.getAttribute("class")};e.showForm(t),n=null}}.bind(this))),this.hidePreview()},handleAnchorMouseout:function(){this.anchorToPreview=null,this.off(this.activeAnchor,"mouseout",this.instanceHandleAnchorMouseout),this.instanceHandleAnchorMouseout=null},handleEditableMouseover:function(e){var n=t.util.getClosestTag(e.target,"a");if(!1!==n){if(!this.showOnEmptyLinks&&(!/href=["']\S+["']/.test(n.outerHTML)||/href=["']#\S+["']/.test(n.outerHTML)))return!0;var r=this.base.getExtensionByName("toolbar");if(!this.showWhenToolbarIsVisible&&r&&r.isDisplayed&&r.isDisplayed())return!0;this.activeAnchor&&this.activeAnchor!==n&&this.detachPreviewHandlers(),this.anchorToPreview=n,this.instanceHandleAnchorMouseout=this.handleAnchorMouseout.bind(this),this.on(this.anchorToPreview,"mouseout",this.instanceHandleAnchorMouseout),this.base.delay(function(){this.anchorToPreview&&this.showPreview(this.anchorToPreview)}.bind(this))}},handlePreviewMouseover:function(){this.lastOver=(new Date).getTime(),this.hovering=!0},handlePreviewMouseout:function(t){t.relatedTarget&&/anchor-preview/.test(t.relatedTarget.className)||(this.hovering=!1)},updatePreview:function(){if(this.hovering)return!0;(new Date).getTime()-this.lastOver>this.hideDelay&&this.detachPreviewHandlers()},detachPreviewHandlers:function(){clearInterval(this.intervalTimer),this.instanceHandlePreviewMouseover&&(this.off(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.activeAnchor&&(this.off(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout))),this.hidePreview(),this.hovering=this.instanceHandlePreviewMouseover=this.instanceHandlePreviewMouseout=null},attachPreviewHandlers:function(){this.lastOver=(new Date).getTime(),this.hovering=!0,this.instanceHandlePreviewMouseover=this.handlePreviewMouseover.bind(this),this.instanceHandlePreviewMouseout=this.handlePreviewMouseout.bind(this),this.intervalTimer=setInterval(this.updatePreview.bind(this),200),this.on(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.on(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout)}}),t.extensions.anchorPreview=o,function(){var e,n,r,i,o;e=[" ","\t","\n","\r"," "," "," "," "," ","\u2028","\u2029"],r="(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.]("+(n="com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw")+")\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.("+n+"))",i=new RegExp("^("+n+")$","i"),o=new RegExp(r,"gi");var a=t.Extension.extend({init:function(){t.Extension.prototype.init.apply(this,arguments),this.disableEventHandling=!1,this.subscribe("editableKeypress",this.onKeypress.bind(this)),this.subscribe("editableBlur",this.onBlur.bind(this)),this.document.execCommand("AutoUrlDetect",!1,!1)},isLastInstance:function(){for(var t=0,e=0;e<this.window._mediumEditors.length;e++){var n=this.window._mediumEditors[e];null!==n&&void 0!==n.getExtensionByName("autoLink")&&t++}return 1===t},destroy:function(){this.document.queryCommandSupported("AutoUrlDetect")&&this.isLastInstance()&&this.document.execCommand("AutoUrlDetect",!1,!0)},onBlur:function(t,e){this.performLinking(e)},onKeypress:function(e){this.disableEventHandling||t.util.isKey(e,[t.util.keyCode.SPACE,t.util.keyCode.ENTER])&&(clearTimeout(this.performLinkingTimeout),this.performLinkingTimeout=setTimeout(function(){try{var t=this.base.exportSelection();this.performLinking(e.target)&&this.base.importSelection(t,!0)}catch(t){window.console&&window.console.error("Failed to perform linking",t),this.disableEventHandling=!0}}.bind(this),0))},performLinking:function(e){var n=t.util.splitByBlockElements(e),r=!1;0===n.length&&(n=[e]);for(var i=0;i<n.length;i++)r=this.removeObsoleteAutoLinkSpans(n[i])||r,r=this.performLinkingWithinElement(n[i])||r;return this.base.events.updateInput(e,{target:e,currentTarget:e}),r},removeObsoleteAutoLinkSpans:function(e){if(!e||3===e.nodeType)return!1;for(var n,r=e.querySelectorAll('span[data-auto-link="true"]'),i=!1,o=0;o<r.length;o++){var a=r[o].textContent;if(-1===a.indexOf("://")&&(a=t.util.ensureUrlHasProtocol(a)),r[o].getAttribute("data-href")!==a&&(n=r[o],!t.util.getClosestTag(n,"a"))){i=!0;var s=a.replace(/\s+$/,"");if(r[o].getAttribute("data-href")===s){var u=a.length-s.length,l=t.util.splitOffDOMTree(r[o],this.splitTextBeforeEnd(r[o],u));r[o].parentNode.insertBefore(l,r[o].nextSibling)}else t.util.unwrap(r[o],this.document)}}return i},splitTextBeforeEnd:function(t,e){for(var n,r,i,o=this.document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),a=!0;a;)a=null!==o.lastChild();for(;e>0&&null!==i;)(r=(n=o.currentNode).nodeValue).length>e?(i=n.splitText(r.length-e),e=0):(i=o.previousNode(),e-=r.length);return i},performLinkingWithinElement:function(e){for(var n=this.findLinkableText(e),r=0;r<n.length;r++){var i=t.util.findOrCreateMatchingTextNodes(this.document,e,n[r]);this.shouldNotLink(i)||this.createAutoLink(i,n[r].href)}return!1},shouldNotLink:function(e){for(var n=!1,r=0;r<e.length&&!1===n;r++)n=!!t.util.traverseUp(e[r],(function(t){return"a"===t.nodeName.toLowerCase()||t.getAttribute&&"true"===t.getAttribute("data-auto-link")}));return n},findLinkableText:function(t){for(var n=t.textContent,r=null,a=[];null!==(r=o.exec(n));){var s=r.index+r[0].length;!(0!==r.index&&-1===e.indexOf(n[r.index-1])||s!==n.length&&-1===e.indexOf(n[s]))&&(-1!==r[0].indexOf("/")||i.test(r[0].split(".").pop().split("?").shift()))&&a.push({href:r[0],start:r.index,end:s})}return a},createAutoLink:function(e,n){n=t.util.ensureUrlHasProtocol(n);var r=t.util.createLink(this.document,e,n,this.getEditorOption("targetBlank")?"_blank":null),i=this.document.createElement("span");for(i.setAttribute("data-auto-link","true"),i.setAttribute("data-href",n),r.insertBefore(i,r.firstChild);r.childNodes.length>1;)i.appendChild(r.childNodes[1])}});t.extensions.autoLink=a}(),function(){var e="medium-editor-dragover";function n(n){var r=t.util.getContainerEditorElement(n);Array.prototype.slice.call(r.parentElement.querySelectorAll("."+e)).forEach((function(t){t.classList.remove(e)}))}var r=t.Extension.extend({name:"fileDragging",allowedTypes:["image"],init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(t){t.preventDefault(),t.dataTransfer.dropEffect="copy";var r=t.target.classList?t.target:t.target.parentElement;n(r),"dragover"===t.type&&r.classList.add(e)},handleDrop:function(t){t.preventDefault(),t.stopPropagation(),this.base.selectElement(t.target);var e=this.base.exportSelection();e.start=e.end,this.base.importSelection(e),t.dataTransfer.files&&Array.prototype.slice.call(t.dataTransfer.files).forEach((function(t){this.isAllowedFile(t)&&t.type.match("image")&&this.insertImageFile(t)}),this),n(t.target)},isAllowedFile:function(t){return this.allowedTypes.some((function(e){return!!t.type.match(e)}))},insertImageFile:function(e){if("function"==typeof FileReader){var n=new FileReader;n.readAsDataURL(e),n.addEventListener("load",function(e){var n=this.document.createElement("img");n.src=e.target.result,t.util.insertHTMLCommand(this.document,n.outerHTML)}.bind(this))}}});t.extensions.fileDragging=r}(),a=t.Extension.extend({name:"keyboard-commands",commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1},{command:"underline",key:"U",meta:!0,shift:!1,alt:!1}],init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.keys={},this.commands.forEach((function(t){var e=t.key.charCodeAt(0);this.keys[e]||(this.keys[e]=[]),this.keys[e].push(t)}),this)},handleKeydown:function(e){var n=t.util.getKeyCode(e);if(this.keys[n]){var r=t.util.isMetaCtrlKey(e),i=!!e.shiftKey,o=!!e.altKey;this.keys[n].forEach((function(t){t.meta!==r||t.shift!==i||t.alt!==o&&void 0!==t.alt||(e.preventDefault(),e.stopPropagation(),"function"==typeof t.command?t.command.apply(this):!1!==t.command&&this.execAction(t.command))}),this)}}}),t.extensions.keyboardCommands=a,s=t.extensions.form.extend({name:"fontname",action:"fontName",aria:"change font name",contentDefault:"&#xB1;",contentFA:'<i class="fa fa-font"></i>',fonts:["","Arial","Verdana","Times New Roman"],init:function(){t.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(t){if(t.preventDefault(),t.stopPropagation(),!this.isDisplayed()){var e=this.document.queryCommandValue("fontName")+"";this.showForm(e)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getSelect().value=""},showForm:function(t){var e=this.getSelect();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),e.value=t||"",e.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontName(),this.base.checkSelection()},createForm:function(){var t,e=this.document,n=e.createElement("div"),r=e.createElement("select"),i=e.createElement("a"),o=e.createElement("a");n.className="medium-editor-toolbar-form",n.id="medium-editor-toolbar-form-fontname-"+this.getEditorId(),this.on(n,"click",this.handleFormClick.bind(this));for(var a=0;a<this.fonts.length;a++)(t=e.createElement("option")).innerHTML=this.fonts[a],t.value=this.fonts[a],r.appendChild(t);return r.className="medium-editor-toolbar-select",n.appendChild(r),this.on(r,"change",this.handleFontChange.bind(this)),o.setAttribute("href","#"),o.className="medium-editor-toobar-save",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"&#10003;",n.appendChild(o),this.on(o,"click",this.handleSaveClick.bind(this),!0),i.setAttribute("href","#"),i.className="medium-editor-toobar-close",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"&times;",n.appendChild(i),this.on(i,"click",this.handleCloseClick.bind(this)),n},getSelect:function(){return this.getForm().querySelector("select.medium-editor-toolbar-select")},clearFontName:function(){t.selection.getSelectedElements(this.document).forEach((function(t){"font"===t.nodeName.toLowerCase()&&t.hasAttribute("face")&&t.removeAttribute("face")}))},handleFontChange:function(){var t=this.getSelect().value;""===t?this.clearFontName():this.execAction("fontName",{value:t})},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}}),t.extensions.fontName=s,u=t.extensions.form.extend({name:"fontsize",action:"fontSize",aria:"increase/decrease font size",contentDefault:"&#xB1;",contentFA:'<i class="fa fa-text-height"></i>',init:function(){t.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(t){if(t.preventDefault(),t.stopPropagation(),!this.isDisplayed()){var e=this.document.queryCommandValue("fontSize")+"";this.showForm(e)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getInput().value=""},showForm:function(t){var e=this.getInput();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),e.value=t||"",e.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontSize(),this.base.checkSelection()},createForm:function(){var t=this.document,e=t.createElement("div"),n=t.createElement("input"),r=t.createElement("a"),i=t.createElement("a");return e.className="medium-editor-toolbar-form",e.id="medium-editor-toolbar-form-fontsize-"+this.getEditorId(),this.on(e,"click",this.handleFormClick.bind(this)),n.setAttribute("type","range"),n.setAttribute("min","1"),n.setAttribute("max","7"),n.className="medium-editor-toolbar-input",e.appendChild(n),this.on(n,"change",this.handleSliderChange.bind(this)),i.setAttribute("href","#"),i.className="medium-editor-toobar-save",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"&#10003;",e.appendChild(i),this.on(i,"click",this.handleSaveClick.bind(this),!0),r.setAttribute("href","#"),r.className="medium-editor-toobar-close",r.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"&times;",e.appendChild(r),this.on(r,"click",this.handleCloseClick.bind(this)),e},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},clearFontSize:function(){t.selection.getSelectedElements(this.document).forEach((function(t){"font"===t.nodeName.toLowerCase()&&t.hasAttribute("size")&&t.removeAttribute("size")}))},handleSliderChange:function(){var t=this.getInput().value;"4"===t?this.clearFontSize():this.execAction("fontSize",{value:t})},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}}),t.extensions.fontSize=u,function(){var e="%ME_PASTEBIN%",n=null,r=null,i=function(t){t.stopPropagation()};function o(t,e,n){var r=t.clipboardData||e.clipboardData||n.dataTransfer,i={};if(!r)return i;if(r.getData){var o=r.getData("Text");o&&o.length>0&&(i["text/plain"]=o)}if(r.types)for(var a=0;a<r.types.length;a++){var s=r.types[a];i[s]=r.getData(s)}return i}var a=t.Extension.extend({forcePlainText:!0,cleanPastedHTML:!1,preCleanReplacements:[],cleanReplacements:[],cleanAttrs:["class","style","dir"],cleanTags:["meta"],unwrapTags:[],init:function(){t.Extension.prototype.init.apply(this,arguments),(this.forcePlainText||this.cleanPastedHTML)&&(this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.getEditorElements().forEach((function(t){this.on(t,"paste",this.handlePaste.bind(this))}),this),this.subscribe("addElement",this.handleAddElement.bind(this)))},handleAddElement:function(t,e){this.on(e,"paste",this.handlePaste.bind(this))},destroy:function(){(this.forcePlainText||this.cleanPastedHTML)&&this.removePasteBin()},handlePaste:function(t,e){if(!t.defaultPrevented){var n=o(t,this.window,this.document),r=n["text/html"],i=n["text/plain"];this.window.clipboardData&&void 0===t.clipboardData&&!r&&(r=i),(r||i)&&(t.preventDefault(),this.doPaste(r,i,e))}},doPaste:function(e,n,r){var i,o,a="";if(this.cleanPastedHTML&&e)return this.cleanPaste(e);if(n){if(this.getEditorOption("disableReturn")||r&&r.getAttribute("data-disable-return"))a=t.util.htmlEntities(n);else if((i=n.split(/[\r\n]+/g)).length>1)for(o=0;o<i.length;o+=1)""!==i[o]&&(a+="<p>"+t.util.htmlEntities(i[o])+"</p>");else a=t.util.htmlEntities(i[0]);t.util.insertHTMLCommand(this.document,a)}},handlePasteBinPaste:function(t){if(t.defaultPrevented)this.removePasteBin();else{var e=o(t,this.window,this.document),n=e["text/html"],i=e["text/plain"],a=r;if(!this.cleanPastedHTML||n)return t.preventDefault(),this.removePasteBin(),this.doPaste(n,i,a),void this.trigger("editablePaste",{currentTarget:a,target:a},a);setTimeout(function(){this.cleanPastedHTML&&(n=this.getPasteBinHtml()),this.removePasteBin(),this.doPaste(n,i,a),this.trigger("editablePaste",{currentTarget:a,target:a},a)}.bind(this),0)}},handleKeydown:function(e,n){t.util.isKey(e,t.util.keyCode.V)&&t.util.isMetaCtrlKey(e)&&(e.stopImmediatePropagation(),this.removePasteBin(),this.createPasteBin(n))},createPasteBin:function(o){var a,s=t.selection.getSelectionRange(this.document),u=this.window.pageYOffset;r=o,s&&((a=s.getClientRects()).length?u+=a[0].top:void 0!==s.startContainer.getBoundingClientRect?u+=s.startContainer.getBoundingClientRect().top:u+=s.getBoundingClientRect().top),n=s;var l=this.document.createElement("div");l.id=this.pasteBinId="medium-editor-pastebin-"+ +Date.now(),l.setAttribute("style","border: 1px red solid; position: absolute; top: "+u+"px; width: 10px; height: 10px; overflow: hidden; opacity: 0"),l.setAttribute("contentEditable",!0),l.innerHTML=e,this.document.body.appendChild(l),this.on(l,"focus",i),this.on(l,"focusin",i),this.on(l,"focusout",i),l.focus(),t.selection.selectNode(l,this.document),this.boundHandlePaste||(this.boundHandlePaste=this.handlePasteBinPaste.bind(this)),this.on(l,"paste",this.boundHandlePaste)},removePasteBin:function(){null!==n&&(t.selection.selectRange(this.document,n),n=null),null!==r&&(r=null);var e=this.getPasteBin();e&&e&&(this.off(e,"focus",i),this.off(e,"focusin",i),this.off(e,"focusout",i),this.off(e,"paste",this.boundHandlePaste),e.parentElement.removeChild(e))},getPasteBin:function(){return this.document.getElementById(this.pasteBinId)},getPasteBinHtml:function(){var t=this.getPasteBin();if(!t)return!1;if(t.firstChild&&"mcepastebin"===t.firstChild.id)return!1;var n=t.innerHTML;return!(!n||n===e)&&n},cleanPaste:function(t){var e,n,r,i,o=/<p|<br|<div/.test(t),a=[].concat(this.preCleanReplacements||[],[[new RegExp(/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/<!--StartFragment-->|<!--EndFragment-->/g),""],[new RegExp(/<br>$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(<br[^>]*>)?$/gi),""],[new RegExp(/<span class="Apple-converted-space">\s+<\/span>/g)," "],[new RegExp(/<br class="Apple-interchange-newline">/g),"<br>"],[new RegExp(/<span[^>]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),'<span class="replace-with italic bold">'],[new RegExp(/<span[^>]*font-style:italic[^>]*>/gi),'<span class="replace-with italic">'],[new RegExp(/<span[^>]*font-weight:(bold|700)[^>]*>/gi),'<span class="replace-with bold">'],[new RegExp(/&lt;(\/?)(i|b|a)&gt;/gi),"<$1$2>"],[new RegExp(/&lt;a(?:(?!href).)+href=(?:&quot;|&rdquo;|&ldquo;|"|“|”)(((?!&quot;|&rdquo;|&ldquo;|"|“|”).)*)(?:&quot;|&rdquo;|&ldquo;|"|“|”)(?:(?!&gt;).)*&gt;/gi),'<a href="$1">'],[new RegExp(/<\/p>\n+/gi),"</p>"],[new RegExp(/\n+<p/gi),"<p"],[new RegExp(/<\/?o:[a-z]*>/gi),""],[new RegExp(/<!\[if !supportLists\]>(((?!<!).)*)<!\[endif]\>/gi),"$1"]],this.cleanReplacements||[]);for(e=0;e<a.length;e+=1)t=t.replace(a[e][0],a[e][1]);if(!o)return this.pasteHTML(t);for((r=this.document.createElement("div")).innerHTML="<p>"+t.split("<br><br>").join("</p><p>")+"</p>",n=r.querySelectorAll("a,p,div,br"),e=0;e<n.length;e+=1)switch((i=n[e]).innerHTML=i.innerHTML.replace(/\n/gi," "),i.nodeName.toLowerCase()){case"p":case"div":this.filterCommonBlocks(i);break;case"br":this.filterLineBreak(i)}this.pasteHTML(r.innerHTML)},pasteHTML:function(e,n){n=t.util.defaults({},n,{cleanAttrs:this.cleanAttrs,cleanTags:this.cleanTags,unwrapTags:this.unwrapTags});var r,i,o,a,s=this.document.createDocumentFragment();for(s.appendChild(this.document.createElement("body")),(a=s.querySelector("body")).innerHTML=e,this.cleanupSpans(a),r=a.querySelectorAll("*"),o=0;o<r.length;o+=1)"a"===(i=r[o]).nodeName.toLowerCase()&&this.getEditorOption("targetBlank")&&t.util.setTargetBlank(i),t.util.cleanupAttrs(i,n.cleanAttrs),t.util.cleanupTags(i,n.cleanTags),t.util.unwrapTags(i,n.unwrapTags);t.util.insertHTMLCommand(this.document,a.innerHTML.replace(/&nbsp;/g," "))},isCommonBlock:function(t){return t&&("p"===t.nodeName.toLowerCase()||"div"===t.nodeName.toLowerCase())},filterCommonBlocks:function(t){/^\s*$/.test(t.textContent)&&t.parentNode&&t.parentNode.removeChild(t)},filterLineBreak:function(t){this.isCommonBlock(t.previousElementSibling)?this.removeWithParent(t):!this.isCommonBlock(t.parentNode)||t.parentNode.firstChild!==t&&t.parentNode.lastChild!==t?t.parentNode&&1===t.parentNode.childElementCount&&""===t.parentNode.textContent&&this.removeWithParent(t):this.removeWithParent(t)},removeWithParent:function(t){t&&t.parentNode&&(t.parentNode.parentNode&&1===t.parentNode.childElementCount?t.parentNode.parentNode.removeChild(t.parentNode):t.parentNode.removeChild(t))},cleanupSpans:function(e){var n,r,i,o=e.querySelectorAll(".replace-with"),a=function(t){return t&&"#text"!==t.nodeName&&"false"===t.getAttribute("contenteditable")};for(n=0;n<o.length;n+=1)r=o[n],i=this.document.createElement(r.classList.contains("bold")?"b":"i"),r.classList.contains("bold")&&r.classList.contains("italic")?i.innerHTML="<i>"+r.innerHTML+"</i>":i.innerHTML=r.innerHTML,r.parentNode.replaceChild(i,r);for(o=e.querySelectorAll("span"),n=0;n<o.length;n+=1){if(r=o[n],t.util.traverseUp(r,a))return!1;t.util.unwrap(r,this.document)}}});t.extensions.paste=a}(),l=t.Extension.extend({name:"placeholder",text:"Type your text",hideOnClick:!0,init:function(){t.Extension.prototype.init.apply(this,arguments),this.initPlaceholders(),this.attachEventHandlers()},initPlaceholders:function(){this.getEditorElements().forEach(this.initElement,this)},handleAddElement:function(t,e){this.initElement(e)},initElement:function(t){t.getAttribute("data-placeholder")||t.setAttribute("data-placeholder",this.text),this.updatePlaceholder(t)},destroy:function(){this.getEditorElements().forEach(this.cleanupElement,this)},handleRemoveElement:function(t,e){this.cleanupElement(e)},cleanupElement:function(t){t.getAttribute("data-placeholder")===this.text&&t.removeAttribute("data-placeholder")},showPlaceholder:function(e){e&&(t.util.isFF&&0===e.childNodes.length?(e.classList.add("medium-editor-placeholder-relative"),e.classList.remove("medium-editor-placeholder")):(e.classList.add("medium-editor-placeholder"),e.classList.remove("medium-editor-placeholder-relative")))},hidePlaceholder:function(t){t&&(t.classList.remove("medium-editor-placeholder"),t.classList.remove("medium-editor-placeholder-relative"))},updatePlaceholder:function(t,e){if(t.querySelector("img, blockquote, ul, ol, table")||""!==t.textContent.replace(/^\s+|\s+$/g,""))return this.hidePlaceholder(t);e||this.showPlaceholder(t)},attachEventHandlers:function(){this.hideOnClick&&this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableInput",this.handleInput.bind(this)),this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("addElement",this.handleAddElement.bind(this)),this.subscribe("removeElement",this.handleRemoveElement.bind(this))},handleInput:function(t,e){var n=this.hideOnClick&&e===this.base.getFocusedElement();this.updatePlaceholder(e,n)},handleFocus:function(t,e){this.hidePlaceholder(e)},handleBlur:function(t,e){this.updatePlaceholder(e)}}),t.extensions.placeholder=l,c=t.Extension.extend({name:"toolbar",align:"center",allowMultiParagraphSelection:!0,buttons:["bold","italic","underline","anchor","h2","h3","quote"],diffLeft:0,diffTop:-10,firstButtonClass:"medium-editor-button-first",lastButtonClass:"medium-editor-button-last",standardizeSelectionStart:!1,static:!1,sticky:!1,stickyTopOffset:0,updateOnEmptySelection:!1,relativeContainer:null,init:function(){t.Extension.prototype.init.apply(this,arguments),this.initThrottledMethods(),this.relativeContainer?this.relativeContainer.appendChild(this.getToolbarElement()):this.getEditorOption("elementsContainer").appendChild(this.getToolbarElement())},forEachExtension:function(t,e){return this.base.extensions.forEach((function(n){if(n!==this)return t.apply(e||this,arguments)}),this)},createToolbar:function(){var t=this.document.createElement("div");return t.id="medium-editor-toolbar-"+this.getEditorId(),t.className="medium-editor-toolbar",this.static?t.className+=" static-toolbar":this.relativeContainer?t.className+=" medium-editor-relative-toolbar":t.className+=" medium-editor-stalker-toolbar",t.appendChild(this.createToolbarButtons()),this.forEachExtension((function(e){e.hasForm&&t.appendChild(e.getForm())})),this.attachEventHandlers(),t},createToolbarButtons:function(){var e,n,r,i,o,a,s=this.document.createElement("ul");return s.id="medium-editor-toolbar-actions"+this.getEditorId(),s.className="medium-editor-toolbar-actions",s.style.display="block",this.buttons.forEach((function(r){"string"==typeof r?(o=r,a=null):(o=r.name,a=r),(i=this.base.addBuiltInExtension(o,a))&&"function"==typeof i.getButton&&(n=i.getButton(this.base),e=this.document.createElement("li"),t.util.isElement(n)?e.appendChild(n):e.innerHTML=n,s.appendChild(e))}),this),(r=s.querySelectorAll("button")).length>0&&(r[0].classList.add(this.firstButtonClass),r[r.length-1].classList.add(this.lastButtonClass)),s},destroy:function(){this.toolbar&&(this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar),delete this.toolbar)},getInteractionElements:function(){return this.getToolbarElement()},getToolbarElement:function(){return this.toolbar||(this.toolbar=this.createToolbar()),this.toolbar},getToolbarActionsElement:function(){return this.getToolbarElement().querySelector(".medium-editor-toolbar-actions")},initThrottledMethods:function(){this.throttledPositionToolbar=t.util.throttle(function(){this.base.isActive&&this.positionToolbarIfShown()}.bind(this))},attachEventHandlers:function(){this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableClick",this.handleEditableClick.bind(this)),this.subscribe("editableKeyup",this.handleEditableKeyup.bind(this)),this.on(this.document.documentElement,"mouseup",this.handleDocumentMouseup.bind(this)),this.static&&this.sticky&&this.on(this.window,"scroll",this.handleWindowScroll.bind(this),!0),this.on(this.window,"resize",this.handleWindowResize.bind(this))},handleWindowScroll:function(){this.positionToolbarIfShown()},handleWindowResize:function(){this.throttledPositionToolbar()},handleDocumentMouseup:function(e){if(e&&e.target&&t.util.isDescendant(this.getToolbarElement(),e.target))return!1;this.checkState()},handleEditableClick:function(){setTimeout(function(){this.checkState()}.bind(this),0)},handleEditableKeyup:function(){this.checkState()},handleBlur:function(){clearTimeout(this.hideTimeout),clearTimeout(this.delayShowTimeout),this.hideTimeout=setTimeout(function(){this.hideToolbar()}.bind(this),1)},handleFocus:function(){this.checkState()},isDisplayed:function(){return this.getToolbarElement().classList.contains("medium-editor-toolbar-active")},showToolbar:function(){clearTimeout(this.hideTimeout),this.isDisplayed()||(this.getToolbarElement().classList.add("medium-editor-toolbar-active"),this.trigger("showToolbar",{},this.base.getFocusedElement()))},hideToolbar:function(){this.isDisplayed()&&(this.getToolbarElement().classList.remove("medium-editor-toolbar-active"),this.trigger("hideToolbar",{},this.base.getFocusedElement()))},isToolbarDefaultActionsDisplayed:function(){return"block"===this.getToolbarActionsElement().style.display},hideToolbarDefaultActions:function(){this.isToolbarDefaultActionsDisplayed()&&(this.getToolbarActionsElement().style.display="none")},showToolbarDefaultActions:function(){this.hideExtensionForms(),this.isToolbarDefaultActionsDisplayed()||(this.getToolbarActionsElement().style.display="block"),this.delayShowTimeout=this.base.delay(function(){this.showToolbar()}.bind(this))},hideExtensionForms:function(){this.forEachExtension((function(t){t.hasForm&&t.isDisplayed()&&t.hideForm()}))},multipleBlockElementsSelected:function(){var e=new RegExp("<("+t.util.blockContainerElementNames.join("|")+")[^>]*>","g"),n=t.selection.getSelectionHtml(this.document).replace(/<[^\/>][^>]*><\/[^>]+>/gim,"").match(e);return!!n&&n.length>1},modifySelection:function(){var e=this.window.getSelection().getRangeAt(0);if(this.standardizeSelectionStart&&e.startContainer.nodeValue&&e.startOffset===e.startContainer.nodeValue.length){var n=t.util.findAdjacentTextNodeWithContent(t.selection.getSelectionElement(this.window),e.startContainer,this.document);if(n){for(var r=0;0===n.nodeValue.substr(r,1).trim().length;)r+=1;e=t.selection.select(this.document,n,r,e.endContainer,e.endOffset)}}},checkState:function(){if(!this.base.preventSelectionUpdates){if(!this.base.getFocusedElement()||t.selection.selectionInContentEditableFalse(this.window))return this.hideToolbar();var e=t.selection.getSelectionElement(this.window);return!e||-1===this.getEditorElements().indexOf(e)||e.getAttribute("data-disable-toolbar")?this.hideToolbar():this.updateOnEmptySelection&&this.static?this.showAndUpdateToolbar():!t.selection.selectionContainsContent(this.document)||!1===this.allowMultiParagraphSelection&&this.multipleBlockElementsSelected()?this.hideToolbar():void this.showAndUpdateToolbar()}},showAndUpdateToolbar:function(){this.modifySelection(),this.setToolbarButtonStates(),this.trigger("positionToolbar",{},this.base.getFocusedElement()),this.showToolbarDefaultActions(),this.setToolbarPosition()},setToolbarButtonStates:function(){this.forEachExtension((function(t){"function"==typeof t.isActive&&"function"==typeof t.setInactive&&t.setInactive()})),this.checkActiveButtons()},checkActiveButtons:function(){var e,n=[],r=null,i=t.selection.getSelectionRange(this.document),o=function(t){"function"==typeof t.checkState?t.checkState(e):"function"==typeof t.isActive&&"function"==typeof t.isAlreadyApplied&&"function"==typeof t.setActive&&!t.isActive()&&t.isAlreadyApplied(e)&&t.setActive()};if(i&&(this.forEachExtension((function(t){"function"!=typeof t.queryCommandState||null===(r=t.queryCommandState())?n.push(t):r&&"function"==typeof t.setActive&&t.setActive()})),e=t.selection.getSelectedParentElement(i),this.getEditorElements().some((function(n){return t.util.isDescendant(n,e,!0)}))))for(;e&&(n.forEach(o),!t.util.isMediumEditorElement(e));)e=e.parentNode},positionToolbarIfShown:function(){this.isDisplayed()&&this.setToolbarPosition()},setToolbarPosition:function(){var t=this.base.getFocusedElement(),e=this.window.getSelection();if(!t)return this;!this.static&&e.isCollapsed||(this.showToolbar(),this.relativeContainer||(this.static?this.positionStaticToolbar(t):this.positionToolbar(e)),this.trigger("positionedToolbar",{},this.base.getFocusedElement()))},positionStaticToolbar:function(t){this.getToolbarElement().style.left="0";var e,n=this.document.documentElement&&this.document.documentElement.scrollTop||this.document.body.scrollTop,r=this.window.innerWidth,i=this.getToolbarElement(),o=t.getBoundingClientRect(),a=o.top+n,s=o.left+o.width/2,u=i.offsetHeight,l=i.offsetWidth,c=l/2;switch(this.sticky?n>a+t.offsetHeight-u-this.stickyTopOffset?(i.style.top=a+t.offsetHeight-u+"px",i.classList.remove("medium-editor-sticky-toolbar")):n>a-u-this.stickyTopOffset?(i.classList.add("medium-editor-sticky-toolbar"),i.style.top=this.stickyTopOffset+"px"):(i.classList.remove("medium-editor-sticky-toolbar"),i.style.top=a-u+"px"):i.style.top=a-u+"px",this.align){case"left":e=o.left;break;case"right":e=o.right-l;break;case"center":e=s-c}e<0?e=0:e+l>r&&(e=r-Math.ceil(l)-1),i.style.left=e+"px"},positionToolbar:function(t){this.getToolbarElement().style.left="0",this.getToolbarElement().style.right="initial";var e=t.getRangeAt(0),n=e.getBoundingClientRect();(!n||0===n.height&&0===n.width&&e.startContainer===e.endContainer)&&(n=1===e.startContainer.nodeType&&e.startContainer.querySelector("img")?e.startContainer.querySelector("img").getBoundingClientRect():e.startContainer.getBoundingClientRect());var r,i,o=this.window.innerWidth,a=this.getToolbarElement(),s=a.offsetHeight,u=a.offsetWidth/2,l=this.diffLeft-u,c=this.getEditorOption("elementsContainer"),f=["absolute","fixed"].indexOf(window.getComputedStyle(c).getPropertyValue("position"))>-1,d={},p={};f?(i=c.getBoundingClientRect(),["top","left"].forEach((function(t){p[t]=n[t]-i[t]})),p.width=n.width,p.height=n.height,n=p,o=i.width,d.top=c.scrollTop):d.top=this.window.pageYOffset,r=n.left+n.width/2,d.top+=n.top-s,n.top<50?(a.classList.add("medium-toolbar-arrow-over"),a.classList.remove("medium-toolbar-arrow-under"),d.top+=50+n.height-this.diffTop):(a.classList.add("medium-toolbar-arrow-under"),a.classList.remove("medium-toolbar-arrow-over"),d.top+=this.diffTop),r<u?(d.left=l+u,d.right="initial"):o-r<u?(d.left="auto",d.right=0):(d.left=l+r,d.right="initial"),["top","left","right"].forEach((function(t){a.style[t]=d[t]+(isNaN(d[t])?"":"px")}))}}),t.extensions.toolbar=c,f=t.Extension.extend({init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(t){var e="medium-editor-dragover";t.preventDefault(),t.dataTransfer.dropEffect="copy","dragover"===t.type?t.target.classList.add(e):"dragleave"===t.type&&t.target.classList.remove(e)},handleDrop:function(e){e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&Array.prototype.slice.call(e.dataTransfer.files,0).some(function(e){var n,r;e.type.match("image")&&((n=new FileReader).readAsDataURL(e),r="medium-img-"+ +new Date,t.util.insertHTMLCommand(this.document,'<img class="medium-editor-image-loading" id="'+r+'" />'),n.onload=function(){var t=this.document.getElementById(r);t&&(t.removeAttribute("id"),t.removeAttribute("class"),t.src=n.result)}.bind(this))}.bind(this)),e.target.classList.remove("medium-editor-dragover")}}),t.extensions.imageDragging=f,function(){function e(e){var n=t.selection.getSelectionStart(this.options.ownerDocument),r=n.textContent,i=t.selection.getCaretOffsets(n);(void 0===r[i.left-1]||""===r[i.left-1].trim()||void 0!==r[i.left]&&""===r[i.left].trim())&&e.preventDefault()}function n(e,n){if(this.options.disableReturn||n.getAttribute("data-disable-return"))e.preventDefault();else if(this.options.disableDoubleReturn||n.getAttribute("data-disable-double-return")){var r=t.selection.getSelectionStart(this.options.ownerDocument);(r&&""===r.textContent.trim()&&"li"!==r.nodeName.toLowerCase()||r.previousElementSibling&&"br"!==r.previousElementSibling.nodeName.toLowerCase()&&""===r.previousElementSibling.textContent.trim())&&e.preventDefault()}}function r(e){var n=t.selection.getSelectionStart(this.options.ownerDocument);"pre"===(n&&n.nodeName.toLowerCase())&&(e.preventDefault(),t.util.insertHTMLCommand(this.options.ownerDocument," ")),t.util.isListItem(n)&&(e.preventDefault(),e.shiftKey?this.options.ownerDocument.execCommand("outdent",!1,null):this.options.ownerDocument.execCommand("indent",!1,null))}function i(e){var n,r=t.selection.getSelectionStart(this.options.ownerDocument),i=r.nodeName.toLowerCase(),o=/^(\s+|<br\/?>)?$/i,a=/h\d/i;t.util.isKey(e,[t.util.keyCode.BACKSPACE,t.util.keyCode.ENTER])&&r.previousElementSibling&&a.test(i)&&0===t.selection.getCaretOffsets(r).left?t.util.isKey(e,t.util.keyCode.BACKSPACE)&&o.test(r.previousElementSibling.innerHTML)?(r.previousElementSibling.parentNode.removeChild(r.previousElementSibling),e.preventDefault()):!this.options.disableDoubleReturn&&t.util.isKey(e,t.util.keyCode.ENTER)&&((n=this.options.ownerDocument.createElement("p")).innerHTML="<br>",r.previousElementSibling.parentNode.insertBefore(n,r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.DELETE)&&r.nextElementSibling&&r.previousElementSibling&&!a.test(i)&&o.test(r.innerHTML)&&a.test(r.nextElementSibling.nodeName.toLowerCase())?(t.selection.moveCursor(this.options.ownerDocument,r.nextElementSibling),r.previousElementSibling.parentNode.removeChild(r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&"li"===i&&o.test(r.innerHTML)&&!r.previousElementSibling&&!r.parentElement.previousElementSibling&&r.nextElementSibling&&"li"===r.nextElementSibling.nodeName.toLowerCase()?((n=this.options.ownerDocument.createElement("p")).innerHTML="<br>",r.parentElement.parentElement.insertBefore(n,r.parentElement),t.selection.moveCursor(this.options.ownerDocument,n),r.parentElement.removeChild(r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&!1!==t.util.getClosestTag(r,"blockquote")&&0===t.selection.getCaretOffsets(r).left?(e.preventDefault(),t.util.execFormatBlock(this.options.ownerDocument,"p")):t.util.isKey(e,t.util.keyCode.ENTER)&&!1!==t.util.getClosestTag(r,"blockquote")&&0===t.selection.getCaretOffsets(r).right?((n=this.options.ownerDocument.createElement("p")).innerHTML="<br>",r.parentElement.insertBefore(n,r.nextSibling),t.selection.moveCursor(this.options.ownerDocument,n),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&t.util.isMediumEditorElement(r.parentElement)&&!r.previousElementSibling&&r.nextElementSibling&&o.test(r.innerHTML)&&(e.preventDefault(),t.selection.moveCursor(this.options.ownerDocument,r.nextSibling),r.parentElement.removeChild(r))}function o(e){var n=t.selection.getSelectionStart(this.options.ownerDocument);n&&(t.util.isMediumEditorElement(n)&&0===n.children.length&&!t.util.isBlockContainer(n)&&this.options.ownerDocument.execCommand("formatBlock",!1,"p"),!t.util.isKey(e,t.util.keyCode.ENTER)||t.util.isListItem(n)||t.util.isBlockContainer(n)||("a"===n.nodeName.toLowerCase()?this.options.ownerDocument.execCommand("unlink",!1,null):e.shiftKey||e.ctrlKey||this.options.ownerDocument.execCommand("formatBlock",!1,"p")))}function a(t,e){var n=e.parentNode.querySelector('textarea[medium-editor-textarea-id="'+e.getAttribute("medium-editor-textarea-id")+'"]');n&&(n.value=e.innerHTML.trim())}function s(t){t._mediumEditors||(t._mediumEditors=[null]),this.id||(this.id=t._mediumEditors.length),t._mediumEditors[this.id]=this}function u(t){t._mediumEditors&&t._mediumEditors[this.id]&&(t._mediumEditors[this.id]=null)}function l(e,n,r){var i=[];if(e||(e=[]),"string"==typeof e&&(e=n.querySelectorAll(e)),t.util.isElement(e)&&(e=[e]),r)for(var o=0;o<e.length;o++){var a=e[o];!t.util.isElement(a)||a.getAttribute("data-medium-editor-element")||a.getAttribute("medium-editor-textarea-id")||i.push(a)}else i=Array.prototype.slice.apply(e);return i}function c(t){var e=t.parentNode.querySelector('textarea[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]');e&&(e.classList.remove("medium-editor-hidden"),e.removeAttribute("medium-editor-textarea-id")),t.parentNode&&t.parentNode.removeChild(t)}function f(t,e,n){return"function"==typeof(t=function(t,e){return Object.keys(e).forEach((function(n){void 0===t[n]&&(t[n]=e[n])})),t}(t,{window:n.options.contentWindow,document:n.options.ownerDocument,base:n})).init&&t.init(),t.name||(t.name=e),t}function d(){return!this.elements.every((function(t){return!!t.getAttribute("data-disable-toolbar")}))&&!1!==this.options.toolbar}function p(){return!!d.call(this)&&!1!==this.options.anchorPreview}function h(){return!1!==this.options.placeholder}function v(){return!1!==this.options.autoLink}function m(){return!1!==this.options.imageDragging}function g(){return!1!==this.options.keyboardCommands}function y(){return!this.options.extensions.imageDragging}function b(t){for(var e=this.options.ownerDocument.createElement("div"),n=Date.now(),r="medium-editor-"+n,i=t.attributes;this.options.ownerDocument.getElementById(r);)n++,r="medium-editor-"+n;e.className=t.className,e.id=r,e.innerHTML=t.value,t.setAttribute("medium-editor-textarea-id",r);for(var o=0,a=i.length;o<a;o++)e.hasAttribute(i[o].nodeName)||e.setAttribute(i[o].nodeName,i[o].value);return t.form&&this.on(t.form,"reset",function(t){t.defaultPrevented||this.resetContent(this.options.ownerDocument.getElementById(r))}.bind(this)),t.classList.add("medium-editor-hidden"),t.parentNode.insertBefore(e,t),e}function w(e,r){if(!e.getAttribute("data-medium-editor-element")){"textarea"===e.nodeName.toLowerCase()&&(e=b.call(this,e),this.instanceHandleEditableInput||(this.instanceHandleEditableInput=a.bind(this),this.subscribe("editableInput",this.instanceHandleEditableInput))),this.options.disableEditing||e.getAttribute("data-disable-editing")||(e.setAttribute("contentEditable",!0),e.setAttribute("spellcheck",this.options.spellcheck)),this.instanceHandleEditableKeydownEnter||(e.getAttribute("data-disable-return")||e.getAttribute("data-disable-double-return"))&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter)),this.options.disableReturn||e.getAttribute("data-disable-return")||this.on(e,"keyup",o.bind(this));var i=t.util.guid();e.setAttribute("data-medium-editor-element",!0),e.classList.add("medium-editor-element"),e.setAttribute("role","textbox"),e.setAttribute("aria-multiline",!0),e.setAttribute("data-medium-editor-editor-index",r),e.setAttribute("medium-editor-index",i),S[i]=e.innerHTML,this.events.attachAllEventsToElement(e)}return e}function _(){this.subscribe("editableKeydownTab",r.bind(this)),this.subscribe("editableKeydownDelete",i.bind(this)),this.subscribe("editableKeydownEnter",i.bind(this)),this.options.disableExtraSpaces&&this.subscribe("editableKeydownSpace",e.bind(this)),this.instanceHandleEditableKeydownEnter||(this.options.disableReturn||this.options.disableDoubleReturn)&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter))}function k(){if(this.extensions=[],Object.keys(this.options.extensions).forEach((function(t){"toolbar"!==t&&this.options.extensions[t]&&this.extensions.push(f(this.options.extensions[t],t,this))}),this),y.call(this)){var e=this.options.fileDragging;e||(e={},m.call(this)||(e.allowedTypes=[])),this.addBuiltInExtension("fileDragging",e)}var n={paste:!0,"anchor-preview":p.call(this),autoLink:v.call(this),keyboardCommands:g.call(this),placeholder:h.call(this)};Object.keys(n).forEach((function(t){n[t]&&this.addBuiltInExtension(t)}),this);var r=this.options.extensions.toolbar;if(!r&&d.call(this)){var i=t.util.extend({},this.options.toolbar,{allowMultiParagraphSelection:this.options.allowMultiParagraphSelection});r=new t.extensions.toolbar(i)}r&&this.extensions.push(f(r,"toolbar",this))}function x(e,n){return n&&[["allowMultiParagraphSelection","toolbar.allowMultiParagraphSelection"]].forEach((function(e){n.hasOwnProperty(e[0])&&void 0!==n[e[0]]&&t.util.deprecated(e[0],e[1],"v6.0.0")})),t.util.defaults({},n,e)}function E(e,n){var r,i;if(r=/^append-(.+)$/gi.exec(e))return t.util.execFormatBlock(this.options.ownerDocument,r[1]);if("fontSize"===e)return n.size&&t.util.deprecated(".size option for fontSize command",".value","6.0.0"),i=n.value||n.size,this.options.ownerDocument.execCommand("fontSize",!1,i);if("fontName"===e)return n.name&&t.util.deprecated(".name option for fontName command",".value","6.0.0"),i=n.value||n.name,this.options.ownerDocument.execCommand("fontName",!1,i);if("createLink"===e)return this.createLink(n);if("image"===e){var o=this.options.contentWindow.getSelection().toString().trim();return this.options.ownerDocument.execCommand("insertImage",!1,o)}if("html"===e){var a=this.options.contentWindow.getSelection().toString().trim();return t.util.insertHTMLCommand(this.options.ownerDocument,a)}if(/justify([A-Za-z]*)$/g.exec(e)){var s=this.options.ownerDocument.execCommand(e,!1,null),u=t.selection.getSelectedParentElement(t.selection.getSelectionRange(this.options.ownerDocument));return u&&C.call(this,t.util.getTopBlockContainer(u)),s}return i=n&&n.value,this.options.ownerDocument.execCommand(e,!1,i)}function C(e){if(e){var n,r=Array.prototype.slice.call(e.childNodes).filter((function(t){var e="div"===t.nodeName.toLowerCase();return e&&!n&&(n=t.style.textAlign),e}));r.length&&(this.saveSelection(),r.forEach((function(e){if(e.style.textAlign===n){var r=e.lastChild;if(r){t.util.unwrap(e,this.options.ownerDocument);var i=this.options.ownerDocument.createElement("BR");r.parentNode.insertBefore(i,r.nextSibling)}}}),this),e.style.textAlign=n,this.restoreSelection())}}var S={};t.prototype={init:function(t,e){return this.options=x.call(this,this.defaults,e),this.origElements=t,this.options.elementsContainer||(this.options.elementsContainer=this.options.ownerDocument.body),this.setup()},setup:function(){this.isActive||(s.call(this,this.options.contentWindow),this.events=new t.Events(this),this.elements=[],this.addElements(this.origElements),0!==this.elements.length&&(this.isActive=!0,k.call(this),_.call(this)))},destroy:function(){this.isActive&&(this.isActive=!1,this.extensions.forEach((function(t){"function"==typeof t.destroy&&t.destroy()}),this),this.events.destroy(),this.elements.forEach((function(t){this.options.spellcheck&&(t.innerHTML=t.innerHTML),t.removeAttribute("contentEditable"),t.removeAttribute("spellcheck"),t.removeAttribute("data-medium-editor-element"),t.classList.remove("medium-editor-element"),t.removeAttribute("role"),t.removeAttribute("aria-multiline"),t.removeAttribute("medium-editor-index"),t.removeAttribute("data-medium-editor-editor-index"),t.getAttribute("medium-editor-textarea-id")&&c(t)}),this),this.elements=[],this.instanceHandleEditableKeydownEnter=null,this.instanceHandleEditableInput=null,u.call(this,this.options.contentWindow))},on:function(t,e,n,r){return this.events.attachDOMEvent(t,e,n,r),this},off:function(t,e,n,r){return this.events.detachDOMEvent(t,e,n,r),this},subscribe:function(t,e){return this.events.attachCustomEvent(t,e),this},unsubscribe:function(t,e){return this.events.detachCustomEvent(t,e),this},trigger:function(t,e,n){return this.events.triggerCustomEvent(t,e,n),this},delay:function(t){var e=this;return setTimeout((function(){e.isActive&&t()}),this.options.delay)},serialize:function(){var t,e={},n=this.elements.length;for(t=0;t<n;t+=1)e[""!==this.elements[t].id?this.elements[t].id:"element-"+t]={value:this.elements[t].innerHTML.trim()};return e},getExtensionByName:function(t){var e;return this.extensions&&this.extensions.length&&this.extensions.some((function(n){return n.name===t&&(e=n,!0)})),e},addBuiltInExtension:function(e,n){var r,i=this.getExtensionByName(e);if(i)return i;switch(e){case"anchor":r=t.util.extend({},this.options.anchor,n),i=new t.extensions.anchor(r);break;case"anchor-preview":i=new t.extensions.anchorPreview(this.options.anchorPreview);break;case"autoLink":i=new t.extensions.autoLink;break;case"fileDragging":i=new t.extensions.fileDragging(n);break;case"fontname":i=new t.extensions.fontName(this.options.fontName);break;case"fontsize":i=new t.extensions.fontSize(n);break;case"keyboardCommands":i=new t.extensions.keyboardCommands(this.options.keyboardCommands);break;case"paste":i=new t.extensions.paste(this.options.paste);break;case"placeholder":i=new t.extensions.placeholder(this.options.placeholder);break;default:t.extensions.button.isBuiltInButton(e)&&(n?(r=t.util.defaults({},n,t.extensions.button.prototype.defaults[e]),i=new t.extensions.button(r)):i=new t.extensions.button(e))}return i&&this.extensions.push(f(i,e,this)),i},stopSelectionUpdates:function(){this.preventSelectionUpdates=!0},startSelectionUpdates:function(){this.preventSelectionUpdates=!1},checkSelection:function(){var t=this.getExtensionByName("toolbar");return t&&t.checkState(),this},queryCommandState:function(t){var e,n=null;(e=/^full-(.+)$/gi.exec(t))&&(t=e[1]);try{n=this.options.ownerDocument.queryCommandState(t)}catch(t){n=null}return n},execAction:function(e,n){var r,i;return(r=/^full-(.+)$/gi.exec(e))?(this.saveSelection(),this.selectAllContents(),i=E.call(this,r[1],n),this.restoreSelection()):i=E.call(this,e,n),"insertunorderedlist"!==e&&"insertorderedlist"!==e||t.util.cleanListDOM(this.options.ownerDocument,this.getSelectedParentElement()),this.checkSelection(),i},getSelectedParentElement:function(e){return void 0===e&&(e=this.options.contentWindow.getSelection().getRangeAt(0)),t.selection.getSelectedParentElement(e)},selectAllContents:function(){var e=t.selection.getSelectionElement(this.options.contentWindow);if(e){for(;1===e.children.length;)e=e.children[0];this.selectElement(e)}},selectElement:function(e){t.selection.selectNode(e,this.options.ownerDocument);var n=t.selection.getSelectionElement(this.options.contentWindow);n&&this.events.focusElement(n)},getFocusedElement:function(){var t;return this.elements.some((function(e){return!t&&e.getAttribute("data-medium-focused")&&(t=e),!!t}),this),t},exportSelection:function(){var e=t.selection.getSelectionElement(this.options.contentWindow),n=this.elements.indexOf(e),r=null;return n>=0&&(r=t.selection.exportSelection(e,this.options.ownerDocument)),null!==r&&0!==n&&(r.editableElementIndex=n),r},saveSelection:function(){this.selectionState=this.exportSelection()},importSelection:function(e,n){if(e){var r=this.elements[e.editableElementIndex||0];t.selection.importSelection(e,r,this.options.ownerDocument,n)}},restoreSelection:function(){this.importSelection(this.selectionState)},createLink:function(e){var n,r=t.selection.getSelectionElement(this.options.contentWindow),i={};if(-1!==this.elements.indexOf(r)){try{if(this.events.disableCustomEvent("editableInput"),e.url&&t.util.deprecated(".url option for createLink",".value","6.0.0"),(n=e.url||e.value)&&n.trim().length>0){var o=this.options.contentWindow.getSelection();if(o){var a,s,u,l,c=o.getRangeAt(0),f=c.commonAncestorContainer;if(3===c.endContainer.nodeType&&3!==c.startContainer.nodeType&&0===c.startOffset&&c.startContainer.firstChild===c.endContainer&&(f=c.endContainer),s=t.util.getClosestBlockContainer(c.startContainer),u=t.util.getClosestBlockContainer(c.endContainer),3!==f.nodeType&&0!==f.textContent.length&&s===u){var d=s||r,p=this.options.ownerDocument.createDocumentFragment();this.execAction("unlink"),a=this.exportSelection(),p.appendChild(d.cloneNode(!0)),r===d?t.selection.select(this.options.ownerDocument,d.firstChild,0,d.lastChild,3===d.lastChild.nodeType?d.lastChild.nodeValue.length:d.lastChild.childNodes.length):t.selection.select(this.options.ownerDocument,d,0,d,d.childNodes.length);var h=this.exportSelection();0===(l=t.util.findOrCreateMatchingTextNodes(this.options.ownerDocument,p,{start:a.start-h.start,end:a.end-h.start,editableElementIndex:a.editableElementIndex})).length&&((p=this.options.ownerDocument.createDocumentFragment()).appendChild(f.cloneNode(!0)),l=[p.firstChild.firstChild,p.firstChild.lastChild]),t.util.createLink(this.options.ownerDocument,l,n.trim());var v=(p.firstChild.innerHTML.match(/^\s+/)||[""])[0].length;t.util.insertHTMLCommand(this.options.ownerDocument,p.firstChild.innerHTML.replace(/^\s+/,"")),a.start-=v,a.end-=v,this.importSelection(a)}else this.options.ownerDocument.execCommand("createLink",!1,n);this.options.targetBlank||"_blank"===e.target?t.util.setTargetBlank(t.selection.getSelectionStart(this.options.ownerDocument),n):t.util.removeTargetBlank(t.selection.getSelectionStart(this.options.ownerDocument),n),e.buttonClass&&t.util.addClassToAnchors(t.selection.getSelectionStart(this.options.ownerDocument),e.buttonClass)}}if(this.options.targetBlank||"_blank"===e.target||e.buttonClass){(i=this.options.ownerDocument.createEvent("HTMLEvents")).initEvent("input",!0,!0,this.options.contentWindow);for(var m=0,g=this.elements.length;m<g;m+=1)this.elements[m].dispatchEvent(i)}}finally{this.events.enableCustomEvent("editableInput")}this.events.triggerCustomEvent("editableInput",i,r)}},cleanPaste:function(t){this.getExtensionByName("paste").cleanPaste(t)},pasteHTML:function(t,e){this.getExtensionByName("paste").pasteHTML(t,e)},setContent:function(t,e){if(e=e||0,this.elements[e]){var n=this.elements[e];n.innerHTML=t,this.checkContentChanged(n)}},getContent:function(t){return t=t||0,this.elements[t]?this.elements[t].innerHTML.trim():null},checkContentChanged:function(e){e=e||t.selection.getSelectionElement(this.options.contentWindow),this.events.updateInput(e,{target:e,currentTarget:e})},resetContent:function(t){if(t){var e=this.elements.indexOf(t);-1!==e&&this.setContent(S[t.getAttribute("medium-editor-index")],e)}else this.elements.forEach((function(t,e){this.setContent(S[t.getAttribute("medium-editor-index")],e)}),this)},addElements:function(t){var e=l(t,this.options.ownerDocument,!0);if(0===e.length)return!1;e.forEach((function(t){t=w.call(this,t,this.id),this.elements.push(t),this.trigger("addElement",{target:t,currentTarget:t},t)}),this)},removeElements:function(t){var e=l(t,this.options.ownerDocument).map((function(t){return t.getAttribute("medium-editor-textarea-id")&&t.parentNode?t.parentNode.querySelector('div[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]'):t}));this.elements=this.elements.filter((function(t){return-1===e.indexOf(t)||(this.events.cleanupElement(t),t.getAttribute("medium-editor-textarea-id")&&c(t),this.trigger("removeElement",{target:t,currentTarget:t},t),!1)}),this)}},t.getEditorFromElement=function(t){var e=t.getAttribute("data-medium-editor-editor-index"),n=t&&t.ownerDocument&&(t.ownerDocument.defaultView||t.ownerDocument.parentWindow);return n&&n._mediumEditors&&n._mediumEditors[e]?n._mediumEditors[e]:null}}(),t.prototype.defaults={activeButtonClass:"medium-editor-button-active",buttonLabels:!1,delay:0,disableReturn:!1,disableDoubleReturn:!1,disableExtraSpaces:!1,disableEditing:!1,autoLink:!1,elementsContainer:!1,contentWindow:window,ownerDocument:document,targetBlank:!1,extensions:{},spellcheck:!0},t.parseVersionString=function(t){var e=t.split("-"),n=e[0].split("."),r=e.length>1?e[1]:"";return{major:parseInt(n[0],10),minor:parseInt(n[1],10),revision:parseInt(n[2],10),preRelease:r,toString:function(){return[n[0],n[1],n[2]].join(".")+(r?"-"+r:"")}}},t.version=t.parseVersionString.call(this,"5.23.3"),t}())},21664:t=>{"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))n.call(o,l)&&(s[l]=o[l]);if(e){a=e(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},52901:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(88788),i=n(78484),o=function(){function t(t,e){"string"==typeof t&&(t=new i.InsertDataQuill(r.DataType.Text,t+"")),this.insert=t,this.attributes=e||{}}return t.createNewLineOp=function(){return new t(r.NewLine)},t.prototype.isContainerBlock=function(){var t=this.attributes;return!!(t.blockquote||t.list||t["code-block"]||t.header||t.align||t.direction||t.indent)},t.prototype.isBlockquote=function(){return!!this.attributes.blockquote},t.prototype.isHeader=function(){return!!this.attributes.header},t.prototype.isSameHeaderAs=function(t){return t.attributes.header===this.attributes.header&&this.isHeader()},t.prototype.hasSameAdiAs=function(t){return this.attributes.align===t.attributes.align&&this.attributes.direction===t.attributes.direction&&this.attributes.indent===t.attributes.indent},t.prototype.hasSameIndentationAs=function(t){return this.attributes.indent===t.attributes.indent},t.prototype.hasHigherIndentThan=function(t){return(Number(this.attributes.indent)||0)>(Number(t.attributes.indent)||0)},t.prototype.isInline=function(){return!(this.isContainerBlock()||this.isVideo()||this.isCustomBlock())},t.prototype.isCodeBlock=function(){return!!this.attributes["code-block"]},t.prototype.isJustNewline=function(){return this.insert.value===r.NewLine},t.prototype.isList=function(){return this.isOrderedList()||this.isBulletList()||this.isCheckedList()||this.isUncheckedList()},t.prototype.isOrderedList=function(){return this.attributes.list===r.ListType.Ordered},t.prototype.isBulletList=function(){return this.attributes.list===r.ListType.Bullet},t.prototype.isCheckedList=function(){return this.attributes.list===r.ListType.Checked},t.prototype.isUncheckedList=function(){return this.attributes.list===r.ListType.Unchecked},t.prototype.isACheckList=function(){return this.attributes.list==r.ListType.Unchecked||this.attributes.list===r.ListType.Checked},t.prototype.isSameListAs=function(t){return!!t.attributes.list&&(this.attributes.list===t.attributes.list||t.isACheckList()&&this.isACheckList())},t.prototype.isText=function(){return this.insert.type===r.DataType.Text},t.prototype.isImage=function(){return this.insert.type===r.DataType.Image},t.prototype.isFormula=function(){return this.insert.type===r.DataType.Formula},t.prototype.isVideo=function(){return this.insert.type===r.DataType.Video},t.prototype.isLink=function(){return this.isText()&&!!this.attributes.link},t.prototype.isCustom=function(){return this.insert instanceof i.InsertDataCustom},t.prototype.isCustomBlock=function(){return this.isCustom()&&!!this.attributes.renderAsBlock},t.prototype.isMentions=function(){return this.isText()&&!!this.attributes.mentions},t}();e.DeltaInsertOp=o},78484:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){this.type=t,this.value=e};e.InsertDataQuill=n;var r=function(t,e){this.type=t,this.value=e};e.InsertDataCustom=r},16275:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(88788),i=n(93806),o=n(37792),a=function(){function t(){}return t.denormalize=function(t){if(!t||"object"!=typeof t)return[];if("object"==typeof t.insert||t.insert===r.NewLine)return[t];var e=i.tokenizeWithNewLines(t.insert+"");if(1===e.length)return[t];var n=o.assign({},t,{insert:r.NewLine});return e.map((function(e){return e===r.NewLine?n:o.assign({},t,{insert:e})}))},t}();e.InsertOpDenormalizer=a},62680:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(52901),i=n(88788),o=n(78484),a=n(36965),s=n(16275),u=function(){function t(){}return t.convert=function(e,n){if(!Array.isArray(e))return[];for(var i,o,u=[],l=0,c=[].concat.apply([],e.map(s.InsertOpDenormalizer.denormalize));l<c.length;l++){var f=c[l];f.insert&&((i=t.convertInsertVal(f.insert,n))&&(o=a.OpAttributeSanitizer.sanitize(f.attributes,n),u.push(new r.DeltaInsertOp(i,o))))}return u},t.convertInsertVal=function(t,e){if("string"==typeof t)return new o.InsertDataQuill(i.DataType.Text,t);if(!t||"object"!=typeof t)return null;var n=Object.keys(t);return n.length?i.DataType.Image in t?new o.InsertDataQuill(i.DataType.Image,a.OpAttributeSanitizer.sanitizeLinkUsingOptions(t[i.DataType.Image]+"",e)):i.DataType.Video in t?new o.InsertDataQuill(i.DataType.Video,a.OpAttributeSanitizer.sanitizeLinkUsingOptions(t[i.DataType.Video]+"",e)):i.DataType.Formula in t?new o.InsertDataQuill(i.DataType.Formula,t[i.DataType.Formula]):new o.InsertDataCustom(n[0],t[n[0]]):null},t}();e.InsertOpsConverter=u},36965:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(88788),i=n(50288),o=n(69142),a=n(29690),s=n(67210),u=function(){function t(){}return t.sanitize=function(e,n){var o={};if(!e||"object"!=typeof e)return o;var a=["bold","italic","underline","strike","code","blockquote","code-block","renderAsBlock"],u=["background","color"],l=e.font,c=e.size,f=e.link,d=e.script,p=e.list,h=e.header,v=e.align,m=e.direction,g=e.indent,y=e.mentions,b=e.mention,w=e.width,_=e.target,k=e.rel,x=a.concat(u,["font","size","link","script","list","header","align","direction","indent","mentions","mention","width","target","rel"]);if(a.forEach((function(t){var n=e[t];n&&(o[t]=!!n)})),u.forEach((function(n){var r=e[n];r&&(t.IsValidHexColor(r+"")||t.IsValidColorLiteral(r+"")||t.IsValidRGBColor(r+""))&&(o[n]=r)})),l&&t.IsValidFontName(l+"")&&(o.font=l),c&&t.IsValidSize(c+"")&&(o.size=c),w&&t.IsValidWidth(w+"")&&(o.width=w),f&&(o.link=t.sanitizeLinkUsingOptions(f+"",n)),_&&t.isValidTarget(_)&&(o.target=_),k&&t.IsValidRel(k)&&(o.rel=k),d!==r.ScriptType.Sub&&r.ScriptType.Super!==d||(o.script=d),p!==r.ListType.Bullet&&p!==r.ListType.Ordered&&p!==r.ListType.Checked&&p!==r.ListType.Unchecked||(o.list=p),Number(h)&&(o.header=Math.min(Number(h),6)),s.find([r.AlignType.Center,r.AlignType.Right,r.AlignType.Justify,r.AlignType.Left],(function(t){return t===v}))&&(o.align=v),m===r.DirectionType.Rtl&&(o.direction=m),g&&Number(g)&&(o.indent=Math.min(Number(g),30)),y&&b){var E=i.MentionSanitizer.sanitize(b,n);Object.keys(E).length>0&&(o.mentions=!!y,o.mention=b)}return Object.keys(e).reduce((function(t,n){return-1===x.indexOf(n)&&(t[n]=e[n]),t}),o)},t.sanitizeLinkUsingOptions=function(t,e){var n=function(){};e&&"function"==typeof e.urlSanitizer&&(n=e.urlSanitizer);var r=n(t);return"string"==typeof r?r:a.encodeLink(o.sanitize(t))},t.IsValidHexColor=function(t){return!!t.match(/^#([0-9A-F]{6}|[0-9A-F]{3})$/i)},t.IsValidColorLiteral=function(t){return!!t.match(/^[a-z]{1,50}$/i)},t.IsValidRGBColor=function(t){return!!t.match(/^rgb\(((0|25[0-5]|2[0-4]\d|1\d\d|0?\d?\d),\s*){2}(0|25[0-5]|2[0-4]\d|1\d\d|0?\d?\d)\)$/i)},t.IsValidFontName=function(t){return!!t.match(/^[a-z\s0-9\- ]{1,30}$/i)},t.IsValidSize=function(t){return!!t.match(/^[a-z0-9\-]{1,20}$/i)},t.IsValidWidth=function(t){return!!t.match(/^[0-9]*(px|em|%)?$/)},t.isValidTarget=function(t){return!!t.match(/^[_a-zA-Z0-9\-]{1,50}$/)},t.IsValidRel=function(t){return!!t.match(/^[a-zA-Z\s\-]{1,250}$/i)},t}();e.OpAttributeSanitizer=u},72516:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29690),i=n(88788),o=n(37792),a=n(67210),s=n(36965),u={serif:"font-family: Georgia, Times New Roman, serif",monospace:"font-family: Monaco, Courier New, monospace"};e.DEFAULT_INLINE_STYLES={font:function(t){return u[t]||"font-family:"+t},size:{small:"font-size: 0.75em",large:"font-size: 1.5em",huge:"font-size: 2.5em"},indent:function(t,e){var n=3*parseInt(t,10);return"padding-"+("rtl"===e.attributes.direction?"right":"left")+":"+n+"em"},direction:function(t,e){return"rtl"===t?"direction:rtl"+(e.attributes.align?"":"; text-align:inherit"):void 0}};var l=function(){function t(t,e){this.op=t,this.options=o.assign({},{classPrefix:"ql",inlineStyles:void 0,encodeHtml:!0,listItemTag:"li",paragraphTag:"p"},e)}return t.prototype.prefixClass=function(t){return this.options.classPrefix?this.options.classPrefix+"-"+t:t+""},t.prototype.getHtml=function(){var t=this.getHtmlParts();return t.openingTag+t.content+t.closingTag},t.prototype.getHtmlParts=function(){var t=this;if(this.op.isJustNewline()&&!this.op.isContainerBlock())return{openingTag:"",closingTag:"",content:i.NewLine};var e=this.getTags(),n=this.getTagAttributes();!e.length&&n.length&&e.push("span");for(var o=[],a=[],s=function(e){return"img"===e&&!!t.op.attributes.link},u=0,l=e;u<l.length;u++){var c=l[u];s(c)&&o.push(r.makeStartTag("a",this.getLinkAttrs())),o.push(r.makeStartTag(c,n)),a.push("img"===c?"":r.makeEndTag(c)),s(c)&&a.push(r.makeEndTag("a")),n=[]}return a.reverse(),{openingTag:o.join(""),content:this.getContent(),closingTag:a.join("")}},t.prototype.getContent=function(){if(this.op.isContainerBlock())return"";if(this.op.isMentions())return this.op.insert.value;var t=this.op.isFormula()||this.op.isText()?this.op.insert.value:"";return this.options.encodeHtml&&r.encodeHtml(t)||t},t.prototype.getCssClasses=function(){var t=this.op.attributes;if(this.options.inlineStyles)return[];var e=["indent","align","direction","font","size"];return this.options.allowBackgroundClasses&&e.push("background"),e.filter((function(e){return!!t[e]})).filter((function(e){return"background"!==e||s.OpAttributeSanitizer.IsValidColorLiteral(t[e])})).map((function(e){return e+"-"+t[e]})).concat(this.op.isFormula()?"formula":[]).concat(this.op.isVideo()?"video":[]).concat(this.op.isImage()?"image":[]).map(this.prefixClass.bind(this))},t.prototype.getCssStyles=function(){var t=this,n=this.op.attributes,r=[["color"]];return!this.options.inlineStyles&&this.options.allowBackgroundClasses||r.push(["background","background-color"]),this.options.inlineStyles&&(r=r.concat([["indent"],["align","text-align"],["direction"],["font","font-family"],["size"]])),r.filter((function(t){return!!n[t[0]]})).map((function(r){var i=r[0],o=n[i],s=t.options.inlineStyles&&t.options.inlineStyles[i]||e.DEFAULT_INLINE_STYLES[i];return"object"==typeof s?s[o]:"function"==typeof s?s(o,t.op):a.preferSecond(r)+":"+o})).filter((function(t){return void 0!==t}))},t.prototype.getTagAttributes=function(){if(this.op.attributes.code&&!this.op.isLink())return[];var t=this.makeAttr.bind(this),e=this.getCssClasses(),n=e.length?[t("class",e.join(" "))]:[];if(this.op.isImage())return this.op.attributes.width&&(n=n.concat(t("width",this.op.attributes.width))),n.concat(t("src",this.op.insert.value));if(this.op.isACheckList())return n.concat(t("data-checked",this.op.isCheckedList()?"true":"false"));if(this.op.isFormula())return n;if(this.op.isVideo())return n.concat(t("frameborder","0"),t("allowfullscreen","true"),t("src",this.op.insert.value));if(this.op.isMentions()){var r=this.op.attributes.mention;return r.class&&(n=n.concat(t("class",r.class))),n=r["end-point"]&&r.slug?n.concat(t("href",r["end-point"]+"/"+r.slug)):n.concat(t("href","about:blank")),r.target&&(n=n.concat(t("target",r.target))),n}var i=this.getCssStyles();return i.length&&n.push(t("style",i.join(";"))),this.op.isContainerBlock()||this.op.isLink()&&(n=n.concat(this.getLinkAttrs())),n},t.prototype.makeAttr=function(t,e){return{key:t,value:e}},t.prototype.getLinkAttrs=function(){var t=s.OpAttributeSanitizer.isValidTarget(this.options.linkTarget||"")?this.options.linkTarget:void 0,e=s.OpAttributeSanitizer.IsValidRel(this.options.linkRel||"")?this.options.linkRel:void 0,n=this.op.attributes.target||t,r=this.op.attributes.rel||e;return[].concat(this.makeAttr("href",this.op.attributes.link)).concat(n?this.makeAttr("target",n):[]).concat(r?this.makeAttr("rel",r):[])},t.prototype.getTags=function(){var t=this.op.attributes;if(!this.op.isText())return[this.op.isVideo()?"iframe":this.op.isImage()?"img":"span"];for(var e=this.options.paragraphTag||"p",n=0,r=[["blockquote"],["code-block","pre"],["list",this.options.listItemTag],["header"],["align",e],["direction",e],["indent",e]];n<r.length;n++){var o=r[n],s=o[0];if(t[s])return"header"===s?["h"+t[s]]:[a.preferSecond(o)]}return[["link","a"],["mentions","a"],["script"],["bold","strong"],["italic","em"],["strike","s"],["underline","u"],["code"]].filter((function(e){return!!t[e[0]]})).map((function(e){return"script"===e[0]?t[e[0]]===i.ScriptType.Sub?"sub":"sup":a.preferSecond(e)}))},t}();e.OpToHtmlConverter=l},37746:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(62680),i=n(72516),o=n(60754),a=n(88977),s=n(80249),u=n(29690),l=n(37792),c=n(88788),f="<br/>",d=function(){function t(t,e){var n;this.rawDeltaOps=[],this.callbacks={},this.options=l.assign({paragraphTag:"p",encodeHtml:!0,classPrefix:"ql",inlineStyles:!1,multiLineBlockquote:!0,multiLineHeader:!0,multiLineCodeblock:!0,multiLineParagraph:!0,allowBackgroundClasses:!1,linkTarget:"_blank"},e,{orderedListTag:"ol",bulletListTag:"ul",listItemTag:"li"}),n=this.options.inlineStyles?"object"==typeof this.options.inlineStyles?this.options.inlineStyles:{}:void 0,this.converterOptions={encodeHtml:this.options.encodeHtml,classPrefix:this.options.classPrefix,inlineStyles:n,listItemTag:this.options.listItemTag,paragraphTag:this.options.paragraphTag,linkRel:this.options.linkRel,linkTarget:this.options.linkTarget,allowBackgroundClasses:this.options.allowBackgroundClasses},this.rawDeltaOps=t}return t.prototype._getListTag=function(t){return t.isOrderedList()?this.options.orderedListTag+"":t.isBulletList()||t.isCheckedList()||t.isUncheckedList()?this.options.bulletListTag+"":""},t.prototype.getGroupedOps=function(){var t=r.InsertOpsConverter.convert(this.rawDeltaOps,this.options),e=o.Grouper.pairOpsWithTheirBlock(t),n=o.Grouper.groupConsecutiveSameStyleBlocks(e,{blockquotes:!!this.options.multiLineBlockquote,header:!!this.options.multiLineHeader,codeBlocks:!!this.options.multiLineCodeblock}),i=o.Grouper.reduceConsecutiveSameStyleBlocksToOne(n);return(new s.ListNester).nest(i)},t.prototype.convert=function(){var t=this;return this.getGroupedOps().map((function(e){if(e instanceof a.ListGroup)return t._renderWithCallbacks(c.GroupType.List,e,(function(){return t._renderList(e)}));if(e instanceof a.BlockGroup){var n=e;return t._renderWithCallbacks(c.GroupType.Block,e,(function(){return t._renderBlock(n.op,n.ops)}))}return e instanceof a.BlotBlock?t._renderCustom(e.op,null):e instanceof a.VideoItem?t._renderWithCallbacks(c.GroupType.Video,e,(function(){var n=e;return new i.OpToHtmlConverter(n.op,t.converterOptions).getHtml()})):t._renderWithCallbacks(c.GroupType.InlineGroup,e,(function(){return t._renderInlines(e.ops,!0)}))})).join("")},t.prototype._renderWithCallbacks=function(t,e,n){var r="",i=this.callbacks.beforeRender_cb;(r="function"==typeof i?i.apply(null,[t,e]):"")||(r=n());var o=this.callbacks.afterRender_cb;return r="function"==typeof o?o.apply(null,[t,r]):r},t.prototype._renderList=function(t){var e=this,n=t.items[0];return u.makeStartTag(this._getListTag(n.item.op))+t.items.map((function(t){return e._renderListItem(t)})).join("")+u.makeEndTag(this._getListTag(n.item.op))},t.prototype._renderListItem=function(t){t.item.op.attributes.indent=0;var e=new i.OpToHtmlConverter(t.item.op,this.converterOptions).getHtmlParts(),n=this._renderInlines(t.item.ops,!1);return e.openingTag+n+(t.innerList?this._renderList(t.innerList):"")+e.closingTag},t.prototype._renderBlock=function(t,e){var n=this,r=new i.OpToHtmlConverter(t,this.converterOptions).getHtmlParts();if(t.isCodeBlock())return r.openingTag+u.encodeHtml(e.map((function(e){return e.isCustom()?n._renderCustom(e,t):e.insert.value})).join(""))+r.closingTag;var o=e.map((function(e){return n._renderInline(e,t)})).join("");return r.openingTag+(o||f)+r.closingTag},t.prototype._renderInlines=function(t,e){var n=this;void 0===e&&(e=!0);var r=t.length-1,i=t.map((function(t,e){return e>0&&e===r&&t.isJustNewline()?"":n._renderInline(t,null)})).join("");if(!e)return i;var o=u.makeStartTag(this.options.paragraphTag),a=u.makeEndTag(this.options.paragraphTag);return i===f||this.options.multiLineParagraph?o+i+a:o+i.split(f).map((function(t){return""===t?f:t})).join(a+o)+a},t.prototype._renderInline=function(t,e){return t.isCustom()?this._renderCustom(t,e):new i.OpToHtmlConverter(t,this.converterOptions).getHtml().replace(/\n/g,f)},t.prototype._renderCustom=function(t,e){var n=this.callbacks.renderCustomOp_cb;return"function"==typeof n?n.apply(null,[t,e]):""},t.prototype.beforeRender=function(t){"function"==typeof t&&(this.callbacks.beforeRender_cb=t)},t.prototype.afterRender=function(t){"function"==typeof t&&(this.callbacks.afterRender_cb=t)},t.prototype.renderCustomWith=function(t){this.callbacks.renderCustomOp_cb=t},t}();e.QuillDeltaToHtmlConverter=d},29690:(t,e)=>{"use strict";var n;function r(t){return i(n.Html).reduce(a,t)}function i(t){var e=[["&","&amp;"],["<","&lt;"],[">","&gt;"],['"',"&quot;"],["'","&#x27;"],["\\/","&#x2F;"],["\\(","&#40;"],["\\)","&#41;"]];return t===n.Html?e.filter((function(t){var e=t[0];t[1];return-1===e.indexOf("(")&&-1===e.indexOf(")")})):e.filter((function(t){var e=t[0];t[1];return-1===e.indexOf("/")}))}function o(t,e){return t.replace(new RegExp(e[0],"g"),e[1])}function a(t,e){return t.replace(new RegExp(e[1],"g"),e[0].replace("\\",""))}Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Html=0]="Html",t[t.Url=1]="Url"}(n||(n={})),e.makeStartTag=function(t,e){if(void 0===e&&(e=void 0),!t)return"";var n="";e&&(n=[].concat(e).map((function(t){return t.key+(t.value?'="'+t.value+'"':"")})).join(" "));var r=">";return"img"!==t&&"br"!==t||(r="/>"),n?"<"+t+" "+n+r:"<"+t+r},e.makeEndTag=function(t){return void 0===t&&(t=""),t&&"</"+t+">"||""},e.decodeHtml=r,e.encodeHtml=function(t,e){return void 0===e&&(e=!0),e&&(t=r(t)),i(n.Html).reduce(o,t)},e.encodeLink=function(t){var e=i(n.Url),r=e.reduce(a,t);return e.reduce(o,r)}},60754:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(52901),i=n(67210),o=n(88977),a=function(){function t(){}return t.pairOpsWithTheirBlock=function(t){for(var e,n=[],r=function(t){return!(t.isJustNewline()||t.isCustomBlock()||t.isVideo()||t.isContainerBlock())},a=function(t){return t.isInline()},s=t.length-1;s>=0;s--){var u=t[s];u.isVideo()?n.push(new o.VideoItem(u)):u.isCustomBlock()?n.push(new o.BlotBlock(u)):u.isContainerBlock()?(e=i.sliceFromReverseWhile(t,s-1,r),n.push(new o.BlockGroup(u,e.elements)),s=e.sliceStartsAt>-1?e.sliceStartsAt:s):(e=i.sliceFromReverseWhile(t,s-1,a),n.push(new o.InlineGroup(e.elements.concat(u))),s=e.sliceStartsAt>-1?e.sliceStartsAt:s)}return n.reverse(),n},t.groupConsecutiveSameStyleBlocks=function(e,n){return void 0===n&&(n={header:!0,codeBlocks:!0,blockquotes:!0}),i.groupConsecutiveElementsWhile(e,(function(e,r){return e instanceof o.BlockGroup&&r instanceof o.BlockGroup&&(n.codeBlocks&&t.areBothCodeblocks(e,r)||n.blockquotes&&t.areBothBlockquotesWithSameAdi(e,r)||n.header&&t.areBothSameHeadersWithSameAdi(e,r))}))},t.reduceConsecutiveSameStyleBlocksToOne=function(t){var e=r.DeltaInsertOp.createNewLineOp();return t.map((function(t){if(!Array.isArray(t))return t instanceof o.BlockGroup&&!t.ops.length&&t.ops.push(e),t;var n=t.length-1;return t[0].ops=i.flatten(t.map((function(t,r){return t.ops.length?t.ops.concat(r<n?[e]:[]):[e]}))),t[0]}))},t.areBothCodeblocks=function(t,e){return t.op.isCodeBlock()&&e.op.isCodeBlock()},t.areBothSameHeadersWithSameAdi=function(t,e){return t.op.isSameHeaderAs(e.op)&&t.op.hasSameAdiAs(e.op)},t.areBothBlockquotesWithSameAdi=function(t,e){return t.op.isBlockquote()&&e.op.isBlockquote()&&t.op.hasSameAdiAs(e.op)},t}();e.Grouper=a},80249:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(88977),i=n(67210),o=function(){function t(){}return t.prototype.nest=function(t){var e=this,n=this.convertListBlocksToListGroups(t),o=this.groupConsecutiveListGroups(n),a=i.flatten(o.map((function(t){return Array.isArray(t)?e.nestListSection(t):t})));return i.groupConsecutiveElementsWhile(a,(function(t,e){return t instanceof r.ListGroup&&e instanceof r.ListGroup&&t.items[0].item.op.isSameListAs(e.items[0].item.op)})).map((function(t){if(!Array.isArray(t))return t;var e=t.map((function(t){return t.items}));return new r.ListGroup(i.flatten(e))}))},t.prototype.convertListBlocksToListGroups=function(t){return i.groupConsecutiveElementsWhile(t,(function(t,e){return t instanceof r.BlockGroup&&e instanceof r.BlockGroup&&t.op.isList()&&e.op.isList()&&t.op.isSameListAs(e.op)&&t.op.hasSameIndentationAs(e.op)})).map((function(t){return Array.isArray(t)?new r.ListGroup(t.map((function(t){return new r.ListItem(t)}))):t instanceof r.BlockGroup&&t.op.isList()?new r.ListGroup([new r.ListItem(t)]):t}))},t.prototype.groupConsecutiveListGroups=function(t){return i.groupConsecutiveElementsWhile(t,(function(t,e){return t instanceof r.ListGroup&&e instanceof r.ListGroup}))},t.prototype.nestListSection=function(t){var e=this,n=this.groupByIndent(t);return Object.keys(n).map(Number).sort().reverse().forEach((function(r){n[r].forEach((function(n){var r=t.indexOf(n);e.placeUnderParent(n,t.slice(0,r))&&t.splice(r,1)}))})),t},t.prototype.groupByIndent=function(t){return t.reduce((function(t,e){var n=e.items[0].item.op.attributes.indent;return n&&(t[n]=t[n]||[],t[n].push(e)),t}),{})},t.prototype.placeUnderParent=function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];if(t.items[0].item.op.hasHigherIndentThan(r.items[0].item.op)){var i=r.items[r.items.length-1];return i.innerList?i.innerList.items=i.innerList.items.concat(t.items):i.innerList=t,!0}}return!1},t}();e.ListNester=o},88977:function(t,e){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){this.ops=t};e.InlineGroup=i;var o=function(t){this.op=t},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(o);e.VideoItem=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(o);e.BlotBlock=s;var u=function(t,e){this.op=t,this.ops=e};e.BlockGroup=u;var l=function(t){this.items=t};e.ListGroup=l;var c=function(t,e){void 0===e&&(e=null),this.item=t,this.innerList=e};e.ListItem=c},67210:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.preferSecond=function(t){return 0===t.length?null:t.length>=2?t[1]:t[0]},e.flatten=function t(e){return e.reduce((function(e,n){return e.concat(Array.isArray(n)?t(n):n)}),[])},e.find=function(t,e){if(Array.prototype.find)return Array.prototype.find.call(t,e);for(var n=0;n<t.length;n++)if(e(t[n]))return t[n]},e.groupConsecutiveElementsWhile=function(t,e){for(var n,r=[],i=0;i<t.length;i++)n=t[i],i>0&&e(n,t[i-1])?r[r.length-1].push(n):r.push([n]);return r.map((function(t){return 1===t.length?t[0]:t}))},e.sliceFromReverseWhile=function(t,e,n){for(var r={elements:[],sliceStartsAt:-1},i=e;i>=0&&n(t[i]);i--)r.sliceStartsAt=i,r.elements.unshift(t[i]);return r},e.intersperse=function(t,e){return t.reduce((function(n,r,i){return n.push(r),i<t.length-1&&n.push(e),n}),[])}},37792:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assign=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),i=0;i<e.length;i++){var o=e[i];if(null!=o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r}},93806:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tokenizeWithNewLines=function(t){var e="\n";if(t===e)return[t];var n=t.split(e);if(1===n.length)return n;var r=n.length-1;return n.reduce((function(t,n,i){return i!==r?""!==n?t=t.concat(n,e):t.push(e):""!==n&&t.push(n),t}),[])}},69142:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=function(t){var e=t;return e=e.replace(/^\s*/gm,""),/^((https?|s?ftp|file|blob|mailto|tel):|#|\/|data:image\/)/.test(e)?e:"unsafe:"+e}},70908:(t,e,n)=>{"use strict";var r=n(37746);e.Ss=r.QuillDeltaToHtmlConverter,n(72516).OpToHtmlConverter;var i=n(88977);i.InlineGroup,i.VideoItem,i.BlockGroup,i.ListGroup,i.ListItem,i.BlotBlock,n(52901).DeltaInsertOp;var o=n(78484);o.InsertDataQuill,o.InsertDataCustom;var a=n(88788);a.NewLine,a.ListType,a.ScriptType,a.DirectionType,a.AlignType,a.DataType,a.GroupType},50288:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(36965),i=function(){function t(){}return t.sanitize=function(e,n){var i={};return e&&"object"==typeof e?(e.class&&t.IsValidClass(e.class)&&(i.class=e.class),e.id&&t.IsValidId(e.id)&&(i.id=e.id),t.IsValidTarget(e.target+"")&&(i.target=e.target),e.avatar&&(i.avatar=r.OpAttributeSanitizer.sanitizeLinkUsingOptions(e.avatar+"",n)),e["end-point"]&&(i["end-point"]=r.OpAttributeSanitizer.sanitizeLinkUsingOptions(e["end-point"]+"",n)),e.slug&&(i.slug=e.slug+""),i):i},t.IsValidClass=function(t){return!!t.match(/^[a-zA-Z0-9_\-]{1,500}$/i)},t.IsValidId=function(t){return!!t.match(/^[a-zA-Z0-9_\-\:\.]{1,500}$/i)},t.IsValidTarget=function(t){return["_self","_blank","_parent","_top"].indexOf(t)>-1},t}();e.MentionSanitizer=i},88788:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r,i,o,a,s;e.NewLine="\n",function(t){t.Ordered="ordered",t.Bullet="bullet",t.Checked="checked",t.Unchecked="unchecked"}(n||(n={})),e.ListType=n,function(t){t.Sub="sub",t.Super="super"}(r||(r={})),e.ScriptType=r,function(t){t.Rtl="rtl"}(i||(i={})),e.DirectionType=i,function(t){t.Left="left",t.Center="center",t.Right="right",t.Justify="justify"}(o||(o={})),e.AlignType=o,function(t){t.Image="image",t.Video="video",t.Formula="formula",t.Text="text"}(a||(a={})),e.DataType=a,function(t){t.Block="block",t.InlineGroup="inline-group",t.List="list",t.Video="video"}(s||(s={})),e.GroupType=s},91058:function(t){var e;"undefined"!=typeof self&&self,e=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),u=n(47),l=n(48),c=n(49),f=n(12),d=n(32),p=n(33),h=n(31),v=n(1),m={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:l.default,Scroll:a.default,Block:u.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:p.default,Store:h.default}};e.default=m},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return i(e,t),e}(Error);e.ParchmentError=o;var a,s={},u={},l={},c={};function f(t,e){var n;if(void 0===e&&(e=a.ANY),"string"==typeof t)n=c[t]||s[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof t)t&a.LEVEL&a.BLOCK?n=c.block:t&a.LEVEL&a.INLINE&&(n=c.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=u[r[i]])break;n=n||l[t.tagName]}return null==n?null:e&a.LEVEL&n.scope&&e&a.TYPE&n.scope?n:null}e.DATA_KEY="__blot",function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(a=e.Scope||(e.Scope={})),e.create=function(t,e){var n=f(t);if(null==n)throw new o("Unable to create "+t+" blot");var r=n,i=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(i,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=f,e.register=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length>1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");return c[r.blotName||r.attrName]=r,"string"==typeof r.keyName?s[r.keyName]=r:(null!=r.className&&(u[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(t){null!=l[t]&&null!=r.className||(l[t]=r)})))),r}},function(t,e,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),u=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};u.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},u.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},u.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},u.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(i(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},u.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},u.prototype.filter=function(t){return this.ops.filter(t)},u.prototype.forEach=function(t){this.ops.forEach(t)},u.prototype.map=function(t){return this.ops.map(t)},u.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){(t(r)?e:n).push(r)})),[e,n]},u.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},u.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},u.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},u.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i<e&&r.hasNext();){var o;i<t?o=r.next(t-i):(o=r.next(e-i),n.push(o)),i+=a.length(o)}return new u(n)},u.prototype.compose=function(t){var e=a.iterator(this.ops),n=a.iterator(t.ops),r=[],o=n.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){for(var s=o.retain;"insert"===e.peekType()&&e.peekLength()<=s;)s-=e.peekLength(),r.push(e.next());o.retain-s>0&&n.next(o.retain-s)}for(var l=new u(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())l.push(n.next());else if("delete"===e.peekType())l.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),d=n.next(c);if("number"==typeof d.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"==typeof f.retain);if(h&&(p.attributes=h),l.push(p),!n.hasNext()&&i(l.ops[l.ops.length-1],p)){var v=new u(e.rest());return l.concat(v).chop()}}else"number"==typeof d.delete&&"number"==typeof f.retain&&l.push(d)}return l.chop()},u.prototype.concat=function(t){var e=new u(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},u.prototype.diff=function(t,e){if(this.ops===t.ops)return new u;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),o=new u,l=r(n[0],n[1],e),c=a.iterator(this.ops),f=a.iterator(t.ops);return l.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),o.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var s=c.next(n),u=f.next(n);i(s.insert,u.insert)?o.retain(n,a.attributes.diff(s.attributes,u.attributes)):o.push(u).delete(n)}e-=n}})),o.chop()},u.prototype.eachLine=function(t,e){e=e||"\n";for(var n=a.iterator(this.ops),r=new u,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),l="string"==typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(l<0)r.push(n.next());else if(l>0)r.push(n.next(l));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new u}}r.length()>0&&t(r,{},i)},u.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=a.iterator(this.ops),r=a.iterator(t.ops),i=new u;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),l=r.next(o);if(s.delete)continue;l.delete?i.push(l):i.retain(o,a.attributes.transform(s.attributes,l.attributes,e))}else i.retain(a.length(n.next()));return i.chop()},u.prototype.transformPosition=function(t,e){e=!!e;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t},t.exports=u},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},s=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e,i=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!o)return!1;for(e in t);return void 0===e||n.call(t,e)},u=function(t,e){i&&"__proto__"===e.name?i(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},l=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(o)return o(t,e).value}return t[e]};t.exports=function t(){var e,n,r,i,o,c,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(e=arguments[d]))for(n in e)r=l(f,n),f!==(i=l(e,n))&&(h&&i&&(s(i)||(o=a(i)))?(o?(o=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},u(f,{name:n,newValue:t(h,c,i)})):void 0!==i&&u(f,{name:n,newValue:i}));return f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=f(n(3)),a=f(n(2)),s=f(n(0)),u=f(n(16)),l=f(n(6)),c=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),r(e,[{key:"attach",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=s.default.query(t,s.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var o=s.default.create(m.blotName);this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(s.default.Embed);v.scope=s.default.Scope.BLOCK_BLOT;var m=function(t){function e(t){d(this,e);var n=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return h(e,t),r(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),g(e))}),new a.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,o){n<=0||(s.default.query(r,s.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,o):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,o),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;o.reduce((function(t,e){return(s=s.split(t,!0)).insertAt(0,e),e.length}),t+a.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof u.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(s.default.Block);function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,o.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:g(t.parent,e))}m.blotName="block",m.tagName="P",m.defaultChild="break",m.allowedChildren=[l.default,s.default.Embed,c.default],e.bubbleFormats=g,e.BlockEmbed=v,e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var a=m(n(2)),s=m(n(14)),u=m(n(8)),l=m(n(9)),c=m(n(0)),f=n(15),d=m(f),p=m(n(3)),h=m(n(10)),v=m(n(34));function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y=(0,h.default)("quill"),b=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=w(e,r),this.container=this.options.container,null==this.container)return y.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new d.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(t){t===u.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(u.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;_.call(n,(function(){return n.editor.update(null,e,i)}),t)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),h.default.level(t)}},{key:"find",value:function(t){return t.__quill||c.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&y.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var i=t.attrName||t.blotName;"string"==typeof i?this.register("formats/"+i,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||y.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?c.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),o(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;(t=document.createElement("div")).classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=k(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],_.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;return _.call(this,(function(){var r=n.getSelection(!0),i=new a.default;if(null==r)return i;if(c.default.query(t,c.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,g({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,g({},t,e))}return n.setSelection(r,u.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(t,e,n,r,o){var a,s=this,u=k(t,e,n,r,o),l=i(u,4);return t=l[0],e=l[1],a=l[2],o=l[3],_.call(this,(function(){return s.editor.formatLine(t,e,a)}),o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var a,s=this,u=k(t,e,n,r,o),l=i(u,4);return t=l[0],e=l[1],a=l[2],o=l[3],_.call(this,(function(){return s.editor.formatText(t,e,a)}),o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=k(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=k(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return _.call(this,(function(){return i.editor.insertEmbed(e,n,r)}),o,e)}},{key:"insertText",value:function(t,e,n,r,o){var a,s=this,u=k(t,0,n,r,o),l=i(u,4);return t=l[0],a=l[2],o=l[3],_.call(this,(function(){return s.editor.insertText(t,e,a)}),o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=k(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],_.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return _.call(this,(function(){t=new a.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),o=i.ops[i.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=k(e,n,r),a=i(o,4);e=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(e,n),r),r!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API,n=(new a.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return _.call(this,(function(){return t=new a.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function w(t,e){if((e=(0,p.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==b.DEFAULTS.theme){if(e.theme=b.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=v.default;var n=(0,p.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=b.import("modules/"+e);return null==n?y.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,p.default)(!0,{},b.DEFAULTS,{modules:r},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function _(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===u.default.sources.USER)return new a.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,s=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=x(i,s,e):0!==r&&(i=x(i,n,r,e)),this.setSelection(i,u.default.sources.SILENT)),s.length()>0){var l,c,f=[u.default.events.TEXT_CHANGE,s,o,e];(l=this.emitter).emit.apply(l,[u.default.events.EDITOR_CHANGE].concat(f)),e!==u.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return s}function k(t,e,n,i,o){var a={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=i,i=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=i,i=n,n=e,e=0),"object"===(void 0===n?"undefined":r(n))?(a=n,o=i):"string"==typeof n&&(null!=i?a[n]=i:o=n),[t,e,a,o=o||u.default.sources.API]}function x(t,e,n,r){if(null==t)return null;var o=void 0,s=void 0;if(e instanceof a.default){var l=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==u.default.sources.USER)})),c=i(l,2);o=c[0],s=c[1]}else{var d=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&r===u.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),p=i(d,2);o=p[0],s=p[1]}return new f.Range(o,s-o)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=u.default.events,b.sources=u.default.sources,b.version="1.3.7",b.imports={delta:a.default,parchment:c.default,"core/module":l.default,"core/theme":v.default},e.expandConfig=w,e.overload=k,e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=s(n(7)),a=s(n(0));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"formatAt",value:function(t,n,r,o){if(e.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var s=this.isolate(t,n);o&&s.wrap(r,o)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o)}},{key:"optimize",value:function(t){if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),i=e.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}}]),e}(a.default.Inline);u.allowedChildren=[u,a.default.Embed,o.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default.Text);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=a(n(54));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var u=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",s.error),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"emit",value:function(){s.log.apply(s,arguments),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach((function(e){var r=e.node,i=e.handler;(t.target===r||r.contains(t.target))&&i.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(o.default);u.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},u.sources={API:"api",SILENT:"silent",USER:"user"},e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n};r.DEFAULTS={},e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(t){if(r.indexOf(t)<=r.indexOf(i)){for(var e,n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];(e=console)[t].apply(e,o)}}function a(t){return r.reduce((function(e,n){return e[n]=o.bind(console,n,t),e}),{})}o.level=a.level=function(t){i=t},e.default=a},function(t,e,n){var r=Array.prototype.slice,i=n(52),o=n(53),a=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:function(t,e,n){var l,c;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(o(t))return!!o(e)&&(t=r.call(t),e=r.call(e),a(t,e,n));if(u(t)){if(!u(e))return!1;if(t.length!==e.length)return!1;for(l=0;l<t.length;l++)if(t[l]!==e[l])return!1;return!0}try{var f=i(t),d=i(e)}catch(t){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),l=f.length-1;l>=0;l--)if(f[l]!=d[l])return!1;for(l=f.length-1;l>=0;l--)if(c=f[l],!a(t[c],e[c],n))return!1;return typeof t==typeof e}(t,e,n))};function s(t){return null==t}function u(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=f(n(2)),s=f(n(0)),u=f(n(4)),l=f(n(6)),c=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),e}(l.default);v.blotName="code",v.tagName="CODE";var m=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),i(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new a.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var i=this.descendant(c.default,this.length()-1),a=r(i,1)[0];null!=a&&a.deleteAt(a.length()-1,1),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,i){if(0!==n&&null!=s.default.query(r,s.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(t);if(!(o<0||o>=t+n)){var a=this.newlineIndex(t,!0)+1,u=o-a+1,l=this.isolate(a,u),c=l.next;l.format(r,i),c instanceof e&&c.formatAt(0,t-a+n-u,r,i)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var i=this.descendant(c.default,t),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=s.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof s.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(u.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",e.Code=v,e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=g(n(2)),s=g(n(20)),u=g(n(0)),l=g(n(13)),c=g(n(24)),f=n(4),d=g(f),p=g(n(16)),h=g(n(21)),v=g(n(11)),m=g(n(3));function g(t){return t&&t.__esModule?t:{default:t}}var y=/^[ -~]*$/,b=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scroll=e,this.delta=this.getDelta()}return o(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),(t=function(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,h.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,h.default)(e)).attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new a.default)}(t)).reduce((function(t,a){var l=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),t>=o&&!p.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,p);var h=e.scroll.line(t),v=i(h,2),g=v[0],y=v[1],b=(0,m.default)({},(0,f.bubbleFormats)(g));if(g instanceof d.default){var w=g.descendant(u.default.Leaf,y),_=i(w,1)[0];b=(0,m.default)(b,(0,f.bubbleFormats)(_))}c=s.default.attributes.diff(b,c)||{}}else if("object"===r(a.insert)){var k=Object.keys(a.insert)[0];if(null==k)return t;e.scroll.insertAt(t,k,a.insert[k])}o+=l}return Object.keys(c).forEach((function(n){e.scroll.formatAt(t,l,n,c[n])})),t+l}),0),t.reduce((function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new a.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(t,Math.max(e,1)),a=e;o.forEach((function(e){var o=e.length();if(e instanceof l.default){var s=t-e.offset(n.scroll),u=e.newlineIndex(s+a)-s+1;e.formatAt(s,u,i,r[i])}else e.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new a.default).retain(t).retain(e,(0,h.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e,i,r[i])})),this.update((new a.default).retain(t).retain(e,(0,h.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new a.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=i(t,1)[0];e instanceof d.default?n.push(e):e instanceof u.default.Leaf&&r.push(e)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(u.default.Leaf,t,e));var o=[n,r].map((function(t){if(0===t.length)return{};for(var e=(0,f.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=w((0,f.bubbleFormats)(n),e)}return e}));return m.default.apply(m.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"==typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new a.default).retain(t).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e.length,i,r[i])})),this.update((new a.default).retain(t).insert(e,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===d.default.blotName&&!(t.children.length>1)&&t.children.head instanceof p.default}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=i(r,2),s=o[0],u=o[1],c=0,f=new a.default;null!=s&&(c=s instanceof l.default?s.newlineIndex(u)-u+1:s.length()-u,f=s.delta().slice(u,u+c-1).insert("\n"));var d=this.getContents(t,e+c).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(t).concat(d);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(y)&&u.default.find(e[0].target)){var i=u.default.find(e[0].target),o=(0,f.bubbleFormats)(i),s=i.offset(this.scroll),l=e[0].oldValue.replace(c.default.CONTENTS,""),d=(new a.default).insert(l),p=(new a.default).insert(i.value());t=(new a.default).retain(s).concat(d.diff(p,n)).reduce((function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)}),new a.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,v.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function w(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=l(n(0)),a=l(n(21)),s=l(n(11)),u=l(n(8));function l(t){return t&&t.__esModule?t:{default:t}}function c(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var d=(0,l(n(10)).default)("quill:selection"),p=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,t),this.index=e,this.length=n},h=function(){function t(e,n){var r=this;f(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,u.default.sources.USER),1)})),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(t,e){t===u.default.events.TEXT_CHANGE&&e.length()>0&&r.update(u.default.sources.SILENT)})),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(u.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}}))}})),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(u.default.sources.SILENT)}return i(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(u.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(t,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var i=void 0,o=this.scroll.leaf(t),a=r(o,2),s=a[0],u=a[1];if(null==s)return null;var l=s.position(u,!0),c=r(l,2);i=c[0],u=c[1];var f=document.createRange();if(e>0){f.setStart(i,u);var d=this.scroll.leaf(t+e),p=r(d,2);if(s=p[0],u=p[1],null==s)return null;var h=s.position(u,!0),v=r(h,2);return i=v[0],u=v[1],f.setEnd(i,u),f.getBoundingClientRect()}var m="left",g=void 0;return i instanceof Text?(u<i.data.length?(f.setStart(i,u),f.setEnd(i,u+1)):(f.setStart(i,u-1),f.setEnd(i,u),m="right"),g=f.getBoundingClientRect()):(g=s.domNode.getBoundingClientRect(),u>0&&(m="right")),{bottom:g.top+g.height,height:g.height,left:g[m],right:g[m],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var i=n.map((function(t){var n=r(t,2),i=n[0],a=n[1],s=o.default.find(i,!0),u=s.offset(e.scroll);return 0===a?u:s instanceof o.default.Container?u+s.length():u+s.index(i,a)})),a=Math.min(Math.max.apply(Math,c(i)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(c(i)));return new p(s,a-s)}},{key:"normalizeNative",value:function(t){if(!v(this.root,t.startContainer)||!t.collapsed&&!v(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;n=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],i=[],o=this.scroll.length();return n.forEach((function(t,n){t=Math.min(o-1,t);var a,s=e.scroll.leaf(t),u=r(s,2),l=u[0],c=u[1],f=l.position(c,0!==n),d=r(f,2);a=d[0],c=d[1],i.push(a,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,i)),a=r(o,1)[0],s=a;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,i));s=r(u,1)[0]}if(null!=a&&null!=s){var l=t.getBoundingClientRect();n.top<l.top?t.scrollTop-=l.top-n.top:n.bottom>l.bottom&&(t.scrollTop+=n.bottom-l.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e&&(n=e,e=!1),d.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,c(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],l=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(e,this.lastRange)){var c;!this.composing&&null!=l&&l.native.collapsed&&l.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[u.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(e),t];(c=this.emitter).emit.apply(c,[u.default.events.EDITOR_CHANGE].concat(d)),t!==u.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),t}();function v(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=p,e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"insertInto",value:function(t,n){0===t.children.length?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default.Embed);s.blotName="break",s.tagName="BR",e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(44),a=n(30),s=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return i(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=l(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof s.ParchmentError)return;throw t}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=a})),i},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,i){t.formatAt(e,i,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var a=null==n?s.create("text",e):s.create(e,n);this.appendChild(a)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new s.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=s.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),i=r[0],o=r[1],a=[[this,t]];return i instanceof e?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,r,i){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],i=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),i.push.apply(i,t.removedNodes))})),i.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=s.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=s.find(t.nextSibling));var r=l(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(a.default);function l(t){var e=s.find(t);if(null==e)try{e=s.create(t)}catch(n){e=s.create(s.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),a=n(31),s=n(17),u=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new a.default(n.domNode),n}return i(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=u.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(s.default);e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(30),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){var r=n(11),i=n(3),o={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=i(!0,{},e);for(var o in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,i){return r(t[i],e[i])||(n[i]=void 0===e[i]?null:e[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=o.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),"number"==typeof e.retain?i.retain=t:"string"==typeof e.insert?i.insert=e.insert.substr(n,t):i.insert=e.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=o},function(t,e){var n=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var e,n,r;try{e=Map}catch(t){e=function(){}}try{n=Set}catch(t){n=function(){}}try{r=Promise}catch(t){r=function(){}}function i(o,s,u,l,c){"object"==typeof s&&(u=s.depth,l=s.prototype,c=s.includeNonEnumerable,s=s.circular);var f=[],d=[],p="undefined"!=typeof Buffer;return void 0===s&&(s=!0),void 0===u&&(u=1/0),function o(u,h){if(null===u)return null;if(0===h)return u;var v,m;if("object"!=typeof u)return u;if(t(u,e))v=new e;else if(t(u,n))v=new n;else if(t(u,r))v=new r((function(t,e){u.then((function(e){t(o(e,h-1))}),(function(t){e(o(t,h-1))}))}));else if(i.__isArray(u))v=[];else if(i.__isRegExp(u))v=new RegExp(u.source,a(u)),u.lastIndex&&(v.lastIndex=u.lastIndex);else if(i.__isDate(u))v=new Date(u.getTime());else{if(p&&Buffer.isBuffer(u))return v=Buffer.allocUnsafe?Buffer.allocUnsafe(u.length):new Buffer(u.length),u.copy(v),v;t(u,Error)?v=Object.create(u):void 0===l?(m=Object.getPrototypeOf(u),v=Object.create(m)):(v=Object.create(l),m=l)}if(s){var g=f.indexOf(u);if(-1!=g)return d[g];f.push(u),d.push(v)}for(var y in t(u,e)&&u.forEach((function(t,e){var n=o(e,h-1),r=o(t,h-1);v.set(n,r)})),t(u,n)&&u.forEach((function(t){var e=o(t,h-1);v.add(e)})),u){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),b&&null==b.set||(v[y]=o(u[y],h-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(u);for(y=0;y<w.length;y++){var _=w[y];(!(x=Object.getOwnPropertyDescriptor(u,_))||x.enumerable||c)&&(v[_]=o(u[_],h-1),x.enumerable||Object.defineProperty(v,_,{enumerable:!1}))}}if(c){var k=Object.getOwnPropertyNames(u);for(y=0;y<k.length;y++){var x,E=k[y];(x=Object.getOwnPropertyDescriptor(u,E))&&x.enumerable||(v[E]=o(u[E],h-1),Object.defineProperty(v,E,{enumerable:!1}))}}return v}(o,u)}function o(t){return Object.prototype.toString.call(t)}function a(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return i.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},i.__objToStr=o,i.__isDate=function(t){return"object"==typeof t&&"[object Date]"===o(t)},i.__isArray=function(t){return"object"==typeof t&&"[object Array]"===o(t)},i.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===o(t)},i.__getRegExpFlags=a,i}();"object"==typeof t&&t.exports&&(t.exports=n)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=p(n(0)),s=p(n(8)),u=n(4),l=p(u),c=p(n(16)),f=p(n(13)),d=p(n(25));function p(t){return t&&t.__esModule?t:{default:t}}function h(t){return t instanceof l.default||t instanceof u.BlockEmbed}var v=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var i=this.line(t),a=r(i,2),s=a[0],l=a[1],d=this.line(t+n),p=r(d,1)[0];if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=p&&s!==p&&l>0){if(s instanceof u.BlockEmbed||p instanceof u.BlockEmbed)return void this.optimize();if(s instanceof f.default){var h=s.newlineIndex(s.length(),!0);if(h>-1&&(s=s.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var v=p.newlineIndex(0);v>-1&&p.split(v+1)}var m=p.children.head instanceof c.default?null:p.children.head;s.moveChildren(p,m),s.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var i=a.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var s=a.default.create(n,r);this.appendChild(s)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(t),t=r}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(h,t)}},{key:"lines",value:function(){return function t(e,n,r){var i=[],o=r;return e.children.forEachAt(n,r,(function(e,n,r){h(e)?i.push(e):e instanceof a.default.Container&&(i=i.concat(t(e,n,o))),o-=r})),i}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=s.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,t),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,t)}}}]),e}(a.default.Scroll);v.blotName="scroll",v.className="ql-editor",v.tagName="DIV",v.defaultChild="block",v.allowedChildren=[l.default,u.BlockEmbed,d.default],e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=v(n(21)),s=v(n(11)),u=v(n(3)),l=v(n(2)),c=v(n(20)),f=v(n(0)),d=v(n(5)),p=v(n(10)),h=v(n(9));function v(t){return t&&t.__esModule?t:{default:t}}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=(0,p.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:e.keys.ENTER,shiftKey:null},E),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},_),r.addBinding({key:e.keys.DELETE},{collapsed:!0},k)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},_),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},k)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},x),r.addBinding({key:e.keys.DELETE},{collapsed:!1},x),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},_),r.listen(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"match",value:function(t,e){return e=O(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),o(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=O(t);if(null==r||null==r.key)return g.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,u.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(t.bindings[o]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var u=t.quill.getSelection();if(null!=u&&t.quill.hasFocus()){var l=t.quill.getLine(u.index),c=i(l,2),d=c[0],p=c[1],h=t.quill.getLeaf(u.index),v=i(h,2),m=v[0],g=v[1],y=0===u.length?[m,g]:t.quill.getLeaf(u.index+u.length),b=i(y,2),w=b[0],_=b[1],k=m instanceof f.default.Text?m.value().slice(0,g):"",x=w instanceof f.default.Text?w.value().slice(_):"",E={collapsed:0===u.length,empty:0===u.length&&d.length()<=1,format:t.quill.getFormat(u),offset:p,prefix:k,suffix:x};a.some((function(e){if(null!=e.collapsed&&e.collapsed!==E.collapsed)return!1;if(null!=e.empty&&e.empty!==E.empty)return!1;if(null!=e.offset&&e.offset!==E.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==E.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=E.format[t]:!1===e.format[t]?null==E.format[t]:(0,s.default)(e.format[t],E.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(E.prefix)||null!=e.suffix&&!e.suffix.test(E.suffix)||!0===e.handler.call(t,u,E))}))&&n.preventDefault()}}}}))}}]),e}(h.default);function w(t,e){var n,r=t===b.keys.LEFT?"prefix":"suffix";return m(n={key:t,shiftKey:e,altKey:null},r,/^$/),m(n,"handler",(function(n){var r=n.index;t===b.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(i(o,1)[0]instanceof f.default.Embed&&(t===b.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),1))})),n}function _(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=i(n,1)[0],o={};if(0===e.offset){var a=this.quill.getLine(t.index-1),s=i(a,1)[0];if(null!=s&&s.length()>1){var u=r.formats(),l=this.quill.getFormat(t.index-1,1);o=c.default.attributes.diff(u,l)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,d.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index-f,f,o,d.default.sources.USER),this.quill.focus()}}function k(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(t.index),s=i(a,1)[0];if(e.offset>=s.length()-1){var u=this.quill.getLine(t.index+1),l=i(u,1)[0];if(l){var f=s.formats(),p=this.quill.getFormat(t.index,1);r=c.default.attributes.diff(f,p)||{},o=l.length()}}this.quill.deleteText(t.index,n,d.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,d.default.sources.USER)}}function x(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=c.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,d.default.sources.USER),this.quill.setSelection(t.index,d.default.sources.SILENT),this.quill.focus()}function E(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],d.default.sources.USER))}))}function C(t){return{key:b.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=f.default.query("code-block"),r=e.index,o=e.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),u=s[0],l=s[1];if(null!=u){var c=this.quill.getIndex(u),p=u.newlineIndex(l,!0)+1,h=u.newlineIndex(c+l+o),v=u.domNode.textContent.slice(p,h).split("\n");l=0,v.forEach((function(e,i){t?(u.insertAt(p+l,n.TAB),l+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(u.deleteAt(p+l,n.TAB.length),l-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),l+=e.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(r,o,d.default.sources.SILENT)}}}}function S(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],d.default.sources.USER)}}}function O(t){if("string"==typeof t||"number"==typeof t)return O({key:t});if("object"===(void 0===t?"undefined":r(t))&&(t=(0,a.default)(t,!1)),"string"==typeof t.key)if(null!=b.keys[t.key.toUpperCase()])t.key=b.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[y]=t.shortKey,delete t.shortKey),t}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:S("bold"),italic:S("italic"),underline:S("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",d.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":C(!0),"outdent code-block":C(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,d.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new l.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,d.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,d.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(0,u.default)({},r.formats(),{list:"checked"}),s=(new l.default).retain(t.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=i(n,2),o=r[0],a=r[1],s=(new l.default).retain(t.index).insert("\n",e.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var u=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":u="unchecked";break;case"[x]":u="checked";break;case"-":case"*":u="bullet";break;default:u="ordered"}this.quill.insertText(t.index," ",d.default.sources.USER),this.quill.history.cutoff();var c=(new l.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:u});this.quill.updateContents(c,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,d.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(new l.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},"embed left":w(b.keys.LEFT,!1),"embed left shift":w(b.keys.LEFT,!0),"embed right":w(b.keys.RIGHT,!1),"embed right shift":w(b.keys.RIGHT,!0)}},e.default=b,e.SHORTKEY=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=u(n(0)),s=u(n(7));function u(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"value",value:function(){}}]),o(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,o=0;null!=r&&r.statics.scope!==a.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(o,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),i=void 0,o=void 0,u=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var l=[t,n.start.offset,n.end.offset];i=l[0],o=l[1],u=l[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var c=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof s.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var f=[o,u].map((function(t){return Math.max(0,Math.min(i.data.length,t-1))})),d=r(f,2);return o=d[0],u=d[1],{startNode:i,startOffset:o,endNode:i,endOffset:u}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}))){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(a.default.Embed);l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\ufeff",e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(0)),i=n(4),o=a(i);function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default.Container);s.allowedChildren=[o.default,i.BlockEmbed,s],e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"value",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):n}}]),e}(s.default.Attributor.Style),l=new s.default.Attributor.Class("color","ql-color",{scope:s.default.Scope.INLINE}),c=new u("color","color",{scope:s.default.Scope.INLINE});e.ColorAttributor=u,e.ColorClass=l,e.ColorStyle=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return u(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);function u(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}s.blotName="link",s.tagName="A",s.SANITIZED_URL="about:blank",s.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=s,e.sanitize=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=s(n(23)),a=s(n(107));function s(t){return t&&t.__esModule?t:{default:t}}var u=0;function l(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var c=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),t.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return i(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),l(this.label,"aria-expanded"),l(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case o.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case o.default.keys.ESCAPE:e.escape(),t.preventDefault()}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=a.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=g(n(0)),i=g(n(5)),o=n(4),a=g(o),s=g(n(16)),u=g(n(25)),l=g(n(24)),c=g(n(35)),f=g(n(6)),d=g(n(22)),p=g(n(7)),h=g(n(55)),v=g(n(42)),m=g(n(23));function g(t){return t&&t.__esModule?t:{default:t}}i.default.register({"blots/block":a.default,"blots/block/embed":o.BlockEmbed,"blots/break":s.default,"blots/container":u.default,"blots/cursor":l.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":d.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":v.default,"modules/keyboard":m.default}),r.default.register(a.default,s.default,l.default,f.default,d.default,p.default),e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){o(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(o(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n,this.modules={}}return r(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=s(n(0)),a=s(n(7));function s(t){return t&&t.__esModule?t:{default:t}}var u="\ufeff",l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode(u),n.rightGuard=document.createTextNode(u),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(u).join("");if(t===this.leftGuard)if(this.prev instanceof a.default){var i=this.prev.length();this.prev.insertAt(i,r),e={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=u,e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}}))}}]),e}(o.default.Embed);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new o.default.Attributor.Attribute("align","align",a),u=new o.default.Attributor.Class("align","ql-align",a),l=new o.default.Attributor.Style("align","text-align",a);e.AlignAttribute=s,e.AlignClass=u,e.AlignStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=n(26),s=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),u=new a.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});e.BackgroundClass=s,e.BackgroundStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},s=new o.default.Attributor.Attribute("direction","dir",a),u=new o.default.Attributor.Class("direction","ql-direction",a),l=new o.default.Attributor.Style("direction","direction",a);e.DirectionAttribute=s,e.DirectionClass=u,e.DirectionStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},u={scope:s.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new s.default.Attributor.Class("font","ql-font",u),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"value",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(s.default.Attributor.Style),f=new c("font","font-family",u);e.FontStyle=f,e.FontClass=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=a,e.SizeStyle=s},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(0)),o=a(n(5));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(o.default.events.EDITOR_CHANGE,(function(t,e,n,i){t!==o.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==o.default.sources.USER?r.transform(e):r.record(e,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],o.default.sources.USER),this.ignoreChange=!1;var r=u(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),t=i.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(a(n(9)).default);function u(t){var e=t.reduce((function(t,e){return t+=e.delete||0}),0),n=t.length()-e;return function(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)})))}(t)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=s,e.getLastChangeIndex=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=h(n(3)),a=h(n(2)),s=h(n(8)),u=h(n(23)),l=h(n(34)),c=h(n(59)),f=h(n(60)),d=h(n(28)),p=h(n(61));function h(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],_=["1","2","3",!1],k=["small",!1,"large","huge"],x=function(t){function e(t,n){v(this,e);var r=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return t.emitter.listenDOM("click",document.body,(function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))})),r}return g(e,t),r(e,[{key:"addModule",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){(t.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&C(t,y),new f.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&C(t,b,"background"===n?"#ffffff":"#000000"),new c.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?C(t,w):t.classList.contains("ql-header")?C(t,_):t.classList.contains("ql-size")&&C(t,k)),new d.default(t)})),this.quill.on(s.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(t){t.update()}))}))}}]),e}(l.default);x.DEFAULTS=(0,o.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&((e=document.createElement("input")).setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),s.default.sources.USER),t.quill.setSelection(r.index+1,s.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(t){function e(t,n){v(this,e);var r=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return g(e,t),r(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){u.default.match(e,"enter")?(t.save(),e.preventDefault()):u.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t,e,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,s.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(e=(t=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t;case"formula":if(!n)break;var i=this.quill.getSelection(!0);if(null!=i){var o=i.index+i.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),n,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",s.default.sources.USER),this.quill.setSelection(o+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(p.default);function C(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=E,e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(t<i||e&&t===i&&(null==n.next||0!==n.next.length()))return[n,t];t-=i}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,i=this.find(t),o=i[0],a=t-i[1],s=this.iterator(o);(r=s())&&a<t+e;){var u=r.length();t>a?n(r,t-a,Math.min(e,a+u-t)):n(r,0,Math.min(u,t+e-a)),a+=u}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),a=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,s),n.attach(),n}return i(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)e.push(i.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[a.DATA_KEY].mutations&&(t.domNode[a.DATA_KEY].mutations=[]),e&&s(t.parent))},u=function(t){null!=t.domNode[a.DATA_KEY]&&null!=t.domNode[a.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(u),t.optimize(n))},l=e,c=0;l.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach((function(t){var e=a.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(a.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=a.find(t,!1);s(e,!1),e instanceof o.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(u),i=(l=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)e.push(i.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=a.find(t.target,!0);return null==e?null:null==e.domNode[a.DATA_KEY].mutations?(e.domNode[a.DATA_KEY].mutations=[t],e):(e.domNode[a.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[a.DATA_KEY]&&t.update(t.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=a.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){var r=a.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=a.query(r,a.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),o=a.create(n,r);i.parent.insertBefore(o,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return i(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=a.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:i.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(e=n[o],t.call(i,e,o,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var n=-1;function r(t,e,u){if(t==e)return t?[[0,t]]:[];(u<0||t.length<u)&&(u=null);var c=o(t,e),f=t.substring(0,c);c=a(t=t.substring(c),e=e.substring(c));var d=t.substring(t.length-c),p=function(t,e){var s;if(!t)return[[1,e]];if(!e)return[[n,t]];var u=t.length>e.length?t:e,l=t.length>e.length?e:t,c=u.indexOf(l);if(-1!=c)return s=[[1,u.substring(0,c)],[0,l],[1,u.substring(c+l.length)]],t.length>e.length&&(s[0][0]=s[2][0]=n),s;if(1==l.length)return[[n,t],[1,e]];var f=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function i(t,e,n){for(var r,i,s,u,l=t.substring(n,n+Math.floor(t.length/4)),c=-1,f="";-1!=(c=e.indexOf(l,c+1));){var d=o(t.substring(n),e.substring(c)),p=a(t.substring(0,n),e.substring(0,c));f.length<p+d&&(f=e.substring(c-p,c)+e.substring(c,c+d),r=t.substring(0,n-p),i=t.substring(n+d),s=e.substring(0,c-p),u=e.substring(c+d))}return 2*f.length>=t.length?[r,i,s,u,f]:null}var s,u,l,c,f,d=i(n,r,Math.ceil(n.length/4)),p=i(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;s=p?d&&d[4].length>p[4].length?d:p:d,t.length>e.length?(u=s[0],l=s[1],c=s[2],f=s[3]):(c=s[0],f=s[1],u=s[2],l=s[3]);var h=s[4];return[u,l,c,f,h]}(t,e);if(f){var d=f[0],p=f[1],h=f[2],v=f[3],m=f[4],g=r(d,h),y=r(p,v);return g.concat([[0,m]],y)}return function(t,e){for(var r=t.length,o=e.length,a=Math.ceil((r+o)/2),s=a,u=2*a,l=new Array(u),c=new Array(u),f=0;f<u;f++)l[f]=-1,c[f]=-1;l[s+1]=0,c[s+1]=0;for(var d=r-o,p=d%2!=0,h=0,v=0,m=0,g=0,y=0;y<a;y++){for(var b=-y+h;b<=y-v;b+=2){for(var w=s+b,_=(S=b==-y||b!=y&&l[w-1]<l[w+1]?l[w+1]:l[w-1]+1)-b;S<r&&_<o&&t.charAt(S)==e.charAt(_);)S++,_++;if(l[w]=S,S>r)v+=2;else if(_>o)h+=2;else if(p&&(E=s+d-b)>=0&&E<u&&-1!=c[E]&&S>=(x=r-c[E]))return i(t,e,S,_)}for(var k=-y+m;k<=y-g;k+=2){for(var x,E=s+k,C=(x=k==-y||k!=y&&c[E-1]<c[E+1]?c[E+1]:c[E-1]+1)-k;x<r&&C<o&&t.charAt(r-x-1)==e.charAt(o-C-1);)x++,C++;if(c[E]=x,x>r)g+=2;else if(C>o)m+=2;else if(!p){var S;if((w=s+d-k)>=0&&w<u&&-1!=l[w])if(_=s+(S=l[w])-w,S>=(x=r-x))return i(t,e,S,_)}}}return[[n,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-c),e=e.substring(0,e.length-c));return f&&p.unshift([0,f]),d&&p.push([0,d]),s(p),null!=u&&(p=function(t,e){var r=function(t,e){if(0===e)return[0,t];for(var r=0,i=0;i<t.length;i++){var o=t[i];if(o[0]===n||0===o[0]){var a=r+o[1].length;if(e===a)return[i+1,t];if(e<a){t=t.slice();var s=e-r,u=[o[0],o[1].slice(0,s)],l=[o[0],o[1].slice(s)];return t.splice(i,1,u,l),[i+1,t]}r=a}}throw new Error("cursor_pos is out of bounds!")}(t,e),i=r[1],o=r[0],a=i[o],s=i[o+1];if(null==a)return t;if(0!==a[0])return t;if(null!=s&&a[1]+s[1]===s[1]+a[1])return i.splice(o,2,s,a),l(i,o,2);if(null!=s&&0===s[1].indexOf(a[1])){i.splice(o,2,[s[0],a[1]],[0,a[1]]);var u=s[1].slice(a[1].length);return u.length>0&&i.splice(o+2,0,[s[0],u]),l(i,o,3)}return t}(p,u)),p=function(t){for(var e=!1,r=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},i=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},o=2;o<t.length;o+=1)0===t[o-2][0]&&i(t[o-2][1])&&t[o-1][0]===n&&r(t[o-1][1])&&1===t[o][0]&&r(t[o][1])&&(e=!0,t[o-1][1]=t[o-2][1].slice(-1)+t[o-1][1],t[o][1]=t[o-2][1].slice(-1)+t[o][1],t[o-2][1]=t[o-2][1].slice(0,-1));if(!e)return t;var a=[];for(o=0;o<t.length;o+=1)t[o][1].length>0&&a.push(t[o]);return a}(p)}function i(t,e,n,i){var o=t.substring(0,n),a=e.substring(0,i),s=t.substring(n),u=e.substring(i),l=r(o,a),c=r(s,u);return l.concat(c)}function o(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(o,i)==e.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function s(t){t.push([0,""]);for(var e,r=0,i=0,u=0,l="",c="";r<t.length;)switch(t[r][0]){case 1:u++,c+=t[r][1],r++;break;case n:i++,l+=t[r][1],r++;break;case 0:i+u>1?(0!==i&&0!==u&&(0!==(e=o(c,l))&&(r-i-u>0&&0==t[r-i-u-1][0]?t[r-i-u-1][1]+=c.substring(0,e):(t.splice(0,0,[0,c.substring(0,e)]),r++),c=c.substring(e),l=l.substring(e)),0!==(e=a(c,l))&&(t[r][1]=c.substring(c.length-e)+t[r][1],c=c.substring(0,c.length-e),l=l.substring(0,l.length-e))),0===i?t.splice(r-u,i+u,[1,c]):0===u?t.splice(r-i,i+u,[n,l]):t.splice(r-i-u,i+u,[n,l],[1,c]),r=r-i-u+(i?1:0)+(u?1:0)+1):0!==r&&0==t[r-1][0]?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,u=0,i=0,l="",c=""}""===t[t.length-1][1]&&t.pop();var f=!1;for(r=1;r<t.length-1;)0==t[r-1][0]&&0==t[r+1][0]&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)==t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),f=!0):t[r][1].substring(0,t[r+1][1].length)==t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),f=!0)),r++;f&&s(t)}var u=r;function l(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var i=t[r],o=t[r+1];i[0]===o[1]&&t.splice(r,2,[i[0],i[1]+o[1]])}return t}u.INSERT=1,u.DELETE=n,u.EQUAL=0,t.exports=u},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function i(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}(e=t.exports=n?r:i).supported=r,e.unsupported=i},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t,e){var n=r?r+t:t,i=this._events[n];if(e)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s},a.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var u,l,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,i),!0;case 5:return c.fn.call(c.context,e,n,i,o),!0;case 6:return c.fn.call(c.context,e,n,i,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var d,p=c.length;for(l=0;l<p;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,n);break;case 4:c[l].fn.call(c[l].context,e,n,i);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[l].fn.apply(c[l].context,u)}}return!0},a.prototype.on=function(t,e,n){var i=new o(e,n||this),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(t,e,n){var i=new o(e,n||this,!0),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(t,e,n,o){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return 0==--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==e||o&&!s.once||n&&s.context!==n||(0==--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var u=0,l=[],c=s.length;u<c;u++)(s[u].fn!==e||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=1===l.length?l[0]:l:0==--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new i:delete this._events[e])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,void 0!==t&&(t.exports=a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=b(n(3)),s=b(n(2)),u=b(n(0)),l=b(n(5)),c=b(n(10)),f=b(n(9)),d=n(36),p=n(37),h=b(n(13)),v=n(26),m=n(38),g=n(39),y=n(40);function b(t){return t&&t.__esModule?t:{default:t}}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=(0,c.default)("quill:clipboard"),k="__ql-matcher",x=[[Node.TEXT_NODE,R],[Node.TEXT_NODE,D],["br",function(t,e){return A(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,function(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===T(t).fontStyle&&(n.italic=!0),r.fontWeight&&(T(t).fontWeight.startsWith("bold")||parseInt(T(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=O(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new s.default).insert("\t").concat(e)),e}],["li",function(t,e){var n=u.default.query(t);if(null==n||"list-item"!==n.blotName||!A(e,"\n"))return e;for(var r=-1,i=t.parentNode;!i.classList.contains("ql-clipboard");)"list"===(u.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new s.default).retain(e.length()-1).retain(1,{indent:r}))}],["b",j.bind(j,"bold")],["i",j.bind(j,"italic")],["style",function(){return new s.default}]],E=[d.AlignAttribute,m.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),C=[d.AlignStyle,p.BackgroundStyle,v.ColorStyle,m.DirectionStyle,g.FontStyle,y.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),S=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],x.concat(r.options.matchers).forEach((function(t){var e=i(t,2),o=e[0],a=e[1];(n.matchVisual||a!==M)&&r.addMatcher(o,a)})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,w({},h.default.blotName,e[h.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],u=o[1],l=P(this.container,a,u);return A(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new s.default).retain(l.length()-1).delete(1))),_.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,l.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new s.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,l.default.sources.USER),e.quill.setSelection(r.length()-n.length,l.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[k]=t[k]||[],t[k].push(s)}))}})),[e,n]}}]),e}(f.default);function O(t,e,n){return"object"===(void 0===e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return O(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,a.default)({},w({},e,n),r.attributes))}),new s.default)}function T(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function A(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var i=t.ops[r];if("string"!=typeof i.insert)break;n=i.insert+n}return n.slice(-1*e.length)===e}function N(t){if(0===t.childNodes.length)return!1;var e=T(t);return["block","list-item"].indexOf(e.display)>-1}function P(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new s.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(r,i){var o=P(i,e,n);return i.nodeType===t.ELEMENT_NODE&&(o=e.reduce((function(t,e){return e(i,t)}),o),o=(i[k]||[]).reduce((function(t,e){return e(i,t)}),o)),r.concat(o)}),new s.default):new s.default}function j(t,e,n){return O(n,t,!0)}function L(t,e){var n=u.default.Attributor.Attribute.keys(t),r=u.default.Attributor.Class.keys(t),i=u.default.Attributor.Style.keys(t),o={};return n.concat(r).concat(i).forEach((function(e){var n=u.default.query(e,u.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(null==(n=E[e])||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),null==(n=C[e])||n.attrName!==e&&n.keyName!==e||(n=C[e],o[n.attrName]=n.value(t)||void 0))})),Object.keys(o).length>0&&(e=O(e,o)),e}function I(t,e){var n=u.default.query(t);if(null==n)return e;if(n.prototype instanceof u.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new s.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=O(e,n.blotName,n.formats(t)));return e}function D(t,e){return A(e,"\n")||(N(t)||e.length()>0&&t.nextSibling&&N(t.nextSibling))&&e.insert("\n"),e}function M(t,e){if(N(t)&&null!=t.nextElementSibling&&!A(e,"\n\n")){var n=t.offsetHeight+parseFloat(T(t).marginTop)+parseFloat(T(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function R(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!T(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&N(t.parentNode)||null!=t.previousSibling&&N(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&N(t.parentNode)||null!=t.nextSibling&&N(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}S.DEFAULTS={matchers:[],matchVisual:!0},e.default=S,e.matchAttributor=L,e.matchBlot=I,e.matchNewline=D,e.matchSpacing=M,e.matchText=R},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);s.blotName="bold",s.tagName=["STRONG","B"],e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=c(n(2)),a=c(n(0)),s=c(n(5)),u=c(n(10)),l=c(n(9));function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=(0,u.default)("quill:toolbar"),p=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,o=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");v(a,o.options.container),t.container.parentNode.insertBefore(a,t.container),o.container=a}else"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(t){o.addHandler(t,o.options.handlers[t])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(t){o.attach(t)})),o.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e){t===s.default.events.SELECTION_CHANGE&&o.update(e)})),o.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){var t=o.quill.selection.getRange(),e=r(t,1)[0];o.update(e)})),o):(i=d.error("Container required for toolbar",o.options),f(o,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void d.warn("ignoring attaching to disabled format",n,t);if(null==a.default.query(n))return void d.warn("ignoring attaching to nonexistent format",n,t)}var i="SELECT"===t.tagName?"change":"click";t.addEventListener(i,(function(i){var u=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var l=t.options[t.selectedIndex];u=!l.hasAttribute("selected")&&(l.value||!1)}else u=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();e.quill.focus();var c=e.quill.selection.getRange(),f=r(c,1)[0];if(null!=e.handlers[n])e.handlers[n].call(e,u);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(u=prompt("Enter "+n)))return;e.quill.updateContents((new o.default).retain(f.index).delete(f.length).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,u)),s.default.sources.USER)}else e.quill.format(n,u,s.default.sources.USER);e.update(f)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var i=r(n,2),o=i[0],a=i[1];if("SELECT"===a.tagName){var s=void 0;if(null==t)s=null;else if(null==e[o])s=a.querySelector("option[selected]");else if(!Array.isArray(e[o])){var u=e[o];"string"==typeof u&&(u=u.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+u+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==t)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var l=e[o]===a.getAttribute("value")||null!=e[o]&&e[o].toString()===a.getAttribute("value")||null==e[o]&&!a.getAttribute("value");a.classList.toggle("ql-active",l)}else a.classList.toggle("ql-active",null!=e[o])}))}}]),e}(l.default);function h(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function v(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"==typeof t)h(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?function(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)})),t.appendChild(r)}(n,e,r):h(n,e,r)}})),t.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=a.default.query(e,a.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,s.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",s.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",t,s.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var i="+1"===t?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,s.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,s.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",t,s.default.sources.USER)}}},e.default=p,e.addControls=v},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(28),s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"buildItem",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(28),s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"selectItem",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=e+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=p(n(3)),s=p(n(8)),u=n(43),l=p(u),c=p(n(27)),f=n(15),d=p(n(41));function p(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(t){function e(t,n){h(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return m(e,t),o(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),d.default),this.tooltip=new b(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers.link.call(t,!n.format.link)}))}}]),e}(l.default);y.DEFAULTS=(0,a.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(t){function e(t,n){h(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return m(e,t),o(e,[{key:"listen",value:function(){var t=this;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,s.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(s.default.events.SELECTION_CHANGE,(function(e,n,i){if(null!=e){if(0===e.length&&i===s.default.sources.USER){var o=t.quill.scroll.descendant(c.default,e.index),a=r(o,2),u=a[0],l=a[1];if(null!=u){t.linkRange=new f.Range(e.index-l,u.length());var d=c.default.formats(u.domNode);return t.preview.textContent=d,t.preview.setAttribute("href",d),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(u.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=D(n(29)),i=n(36),o=n(38),a=n(64),s=D(n(65)),u=D(n(66)),l=n(67),c=D(l),f=n(37),d=n(26),p=n(39),h=n(40),v=D(n(56)),m=D(n(68)),g=D(n(27)),y=D(n(69)),b=D(n(70)),w=D(n(71)),_=D(n(72)),k=D(n(73)),x=n(13),E=D(x),C=D(n(74)),S=D(n(75)),O=D(n(57)),T=D(n(41)),A=D(n(28)),N=D(n(59)),P=D(n(60)),j=D(n(61)),L=D(n(108)),I=D(n(62));function D(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":s.default,"formats/code-block":E.default,"formats/header":u.default,"formats/list":c.default,"formats/bold":v.default,"formats/code":x.Code,"formats/italic":m.default,"formats/link":g.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":_.default,"formats/video":k.default,"formats/list/item":l.ListItem,"modules/formula":C.default,"modules/syntax":S.default,"modules/toolbar":O.default,"themes/bubble":L.default,"themes/snow":I.default,"ui/icons":T.default,"ui/picker":A.default,"ui/icon-picker":P.default,"ui/color-picker":N.default,"ui/tooltip":j.default},!0),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(s.default.Attributor.Class),l=new u("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(4),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="blockquote",o.tagName="blockquote",e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(4),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(((r=o)&&r.__esModule?r:{default:r}).default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=u(n(0)),a=u(n(4)),s=u(n(25));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"format",value:function(t,n){t!==p.blotName||n?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:i(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(a.default);d.blotName="list-item",d.tagName="LI";var p=function(t){function e(t){l(this,e);var n=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),i=o.default.find(e.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return f(e,t),r(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"insertBefore",value:function(t,n){if(t instanceof d)i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(s.default);p.blotName="list",p.scope=o.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],e.ListItem=d,e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(56),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="italic",o.tagName=["EM","I"],e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);s.blotName="script",s.tagName=["SUB","SUP"],e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(6),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="strike",o.tagName="S",e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(6),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="underline",o.tagName="U",e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},u=n(27),l=["alt","height","width"],c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"format",value:function(t,n){l.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return l.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,u.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.default.Embed);c.blotName="image",c.tagName="IMG",e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(4),s=n(27),u=(r=s)&&r.__esModule?r:{default:r},l=["height","width"],c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"format",value:function(t,n){l.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return l.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return u.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.BlockEmbed);c.blotName="video",c.className="ql-video",c.tagName="IFRAME",e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=u(n(35)),a=u(n(5)),s=u(n(9));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,null,[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(o.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var p=function(t){function e(){l(this,e);var t=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return f(e,t),r(e,null,[{key:"register",value:function(){a.default.register(d,!0)}}]),e}(s.default);e.FormulaBlot=d,e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=u(n(0)),a=u(n(5)),s=u(n(9));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(u(n(13)).default);d.className="ql-syntax";var p=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),h=function(t){function e(t,n){l(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return f(e,t),r(e,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(d,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=e&&this.quill.setSelection(e,a.default.sources.SILENT)}}}]),e}(s.default);h.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=d,e.CodeToken=p,e.default=h},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=f(n(3)),a=f(n(8)),s=n(43),u=f(s),l=n(15),c=f(n(41));function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(t){function e(t,n){d(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return h(e,t),i(e,[{key:"extendToolbar",value:function(t){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),c.default)}}]),e}(u.default);m.DEFAULTS=(0,o.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(t){function e(t,n){d(this,e);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(a.default.events.EDITOR_CHANGE,(function(t,e,n,i){if(t===a.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&i===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(e.index,e.length);if(1===o.length)r.position(r.quill.getBounds(e));else{var s=o[o.length-1],u=r.quill.getIndex(s),c=Math.min(s.length()-1,e.index+e.length-u),f=r.quill.getBounds(new l.Range(u,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(e,t),i(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),e}(s.BaseTooltip);g.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=g,e.default=m},function(t,e,n){t.exports=n(63)}]).default},t.exports=e()},76067:(t,e,n)=>{"use strict";var r=n(63696),i=n(21664),o=n(91434);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(t,e,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{e.apply(n,l)}catch(t){this.onError(t)}}var u=!1,l=null,c=!1,f=null,d={onError:function(t){u=!0,l=t}};function p(t,e,n,r,i,o,a,c,f){u=!1,l=null,s.apply(d,arguments)}var h=null,v=null,m=null;function g(t,e,n){var r=t.type||"unknown-event";t.currentTarget=m(n),function(t,e,n,r,i,o,s,d,h){if(p.apply(this,arguments),u){if(!u)throw Error(a(198));var v=l;u=!1,l=null,c||(c=!0,f=v)}}(r,e,void 0,t),t.currentTarget=null}var y=null,b={};function w(){if(y)for(var t in b){var e=b[t],n=y.indexOf(t);if(!(-1<n))throw Error(a(96,t));if(!k[n]){if(!e.extractEvents)throw Error(a(97,t));for(var r in k[n]=e,n=e.eventTypes){var i=void 0,o=n[r],s=e,u=r;if(x.hasOwnProperty(u))throw Error(a(99,u));x[u]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&_(l[i],s,u);i=!0}else o.registrationName?(_(o.registrationName,s,u),i=!0):i=!1;if(!i)throw Error(a(98,r,t))}}}}function _(t,e,n){if(E[t])throw Error(a(100,t));E[t]=e,C[t]=e.eventTypes[n].dependencies}var k=[],x={},E={},C={};function S(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];if(!b.hasOwnProperty(e)||b[e]!==r){if(b[e])throw Error(a(102,e));b[e]=r,n=!0}}n&&w()}var O=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),T=null,A=null,N=null;function P(t){if(t=v(t)){if("function"!=typeof T)throw Error(a(280));var e=t.stateNode;e&&(e=h(e),T(t.stateNode,t.type,e))}}function j(t){A?N?N.push(t):N=[t]:A=t}function L(){if(A){var t=A,e=N;if(N=A=null,P(t),e)for(t=0;t<e.length;t++)P(e[t])}}function I(t,e){return t(e)}function D(t,e,n,r,i){return t(e,n,r,i)}function M(){}var R=I,q=!1,B=!1;function F(){null===A&&null===N||(M(),L())}function z(t,e,n){if(B)return t(e,n);B=!0;try{return R(t,e,n)}finally{B=!1,F()}}var U=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H=Object.prototype.hasOwnProperty,W={},V={};function K(t,e,n,r,i,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){Q[t]=new K(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];Q[e]=new K(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){Q[t]=new K(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){Q[t]=new K(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){Q[t]=new K(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){Q[t]=new K(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){Q[t]=new K(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){Q[t]=new K(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){Q[t]=new K(t,5,!1,t.toLowerCase(),null,!1)}));var $=/[\-:]([a-z])/g;function G(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace($,G);Q[e]=new K(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace($,G);Q[e]=new K(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace($,G);Q[e]=new K(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){Q[t]=new K(t,1,!1,t.toLowerCase(),null,!1)})),Q.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){Q[t]=new K(t,1,!1,t.toLowerCase(),null,!0)}));var Z=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(t,e,n,r){var i=Q.hasOwnProperty(e)?Q[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!H.call(V,t)||!H.call(W,t)&&(U.test(t)?V[t]=!0:(W[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}Z.hasOwnProperty("ReactCurrentDispatcher")||(Z.ReactCurrentDispatcher={current:null}),Z.hasOwnProperty("ReactCurrentBatchConfig")||(Z.ReactCurrentBatchConfig={suspense:null});var X=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,tt=J?Symbol.for("react.element"):60103,et=J?Symbol.for("react.portal"):60106,nt=J?Symbol.for("react.fragment"):60107,rt=J?Symbol.for("react.strict_mode"):60108,it=J?Symbol.for("react.profiler"):60114,ot=J?Symbol.for("react.provider"):60109,at=J?Symbol.for("react.context"):60110,st=J?Symbol.for("react.concurrent_mode"):60111,ut=J?Symbol.for("react.forward_ref"):60112,lt=J?Symbol.for("react.suspense"):60113,ct=J?Symbol.for("react.suspense_list"):60120,ft=J?Symbol.for("react.memo"):60115,dt=J?Symbol.for("react.lazy"):60116,pt=J?Symbol.for("react.block"):60121,ht="function"==typeof Symbol&&Symbol.iterator;function vt(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=ht&&t[ht]||t["@@iterator"])?t:null}function mt(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case nt:return"Fragment";case et:return"Portal";case it:return"Profiler";case rt:return"StrictMode";case lt:return"Suspense";case ct:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case at:return"Context.Consumer";case ot:return"Context.Provider";case ut:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case ft:return mt(t.type);case pt:return mt(t.render);case dt:if(t=1===t._status?t._result:null)return mt(t)}return null}function gt(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,i=t._debugSource,o=mt(t.type);n=null,r&&(n=mt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(X,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}function yt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function bt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function wt(t){t._valueTracker||(t._valueTracker=function(t){var e=bt(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function _t(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=bt(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function kt(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function xt(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=yt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function Et(t,e){null!=(e=e.checked)&&Y(t,"checked",e,!1)}function Ct(t,e){Et(t,e);var n=yt(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Ot(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ot(t,e.type,yt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function St(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Ot(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Tt(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function At(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+yt(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function Nt(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Pt(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:yt(n)}}function jt(t,e){var n=yt(e.value),r=yt(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Lt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var It="http://www.w3.org/1999/xhtml",Dt="http://www.w3.org/2000/svg";function Mt(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Rt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Mt(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var qt,Bt,Ft=(Bt=function(t,e){if(t.namespaceURI!==Dt||"innerHTML"in t)t.innerHTML=e;else{for((qt=qt||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=qt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction((function(){return Bt(t,e)}))}:Bt);function zt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function Ut(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ht={animationend:Ut("Animation","AnimationEnd"),animationiteration:Ut("Animation","AnimationIteration"),animationstart:Ut("Animation","AnimationStart"),transitionend:Ut("Transition","TransitionEnd")},Wt={},Vt={};function Kt(t){if(Wt[t])return Wt[t];if(!Ht[t])return t;var e,n=Ht[t];for(e in n)if(n.hasOwnProperty(e)&&e in Vt)return Wt[t]=n[e];return t}O&&(Vt=document.createElement("div").style,"AnimationEvent"in window||(delete Ht.animationend.animation,delete Ht.animationiteration.animation,delete Ht.animationstart.animation),"TransitionEvent"in window||delete Ht.transitionend.transition);var Qt=Kt("animationend"),$t=Kt("animationiteration"),Gt=Kt("animationstart"),Zt=Kt("transitionend"),Yt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xt=new("function"==typeof WeakMap?WeakMap:Map);function Jt(t){var e=Xt.get(t);return void 0===e&&(e=new Map,Xt.set(t,e)),e}function te(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{!!(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function ee(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ne(t){if(te(t)!==t)throw Error(a(188))}function re(t){if(t=function(t){var e=t.alternate;if(!e){if(null===(e=te(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ne(i),t;if(o===r)return ne(i),e;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?t:e}(t),!t)return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function ie(t,e){if(null==e)throw Error(a(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function oe(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var ae=null;function se(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;r<e.length&&!t.isPropagationStopped();r++)g(t,e[r],n[r]);else e&&g(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function ue(t){if(null!==t&&(ae=ie(ae,t)),t=ae,ae=null,t){if(oe(t,se),ae)throw Error(a(95));if(c)throw t=f,c=!1,f=null,t}}function le(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function ce(t){if(!O)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"==typeof e[t]),e}var fe=[];function de(t){t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>fe.length&&fe.push(t)}function pe(t,e,n,r){if(fe.length){var i=fe.pop();return i.topLevelType=t,i.eventSystemFlags=r,i.nativeEvent=e,i.targetInst=n,i}return{topLevelType:t,eventSystemFlags:r,nativeEvent:e,targetInst:n,ancestors:[]}}function he(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=Ln(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var i=le(t.nativeEvent);r=t.topLevelType;var o=t.nativeEvent,a=t.eventSystemFlags;0===n&&(a|=64);for(var s=null,u=0;u<k.length;u++){var l=k[u];l&&(l=l.extractEvents(r,e,o,i,a))&&(s=ie(s,l))}ue(s)}}function ve(t,e,n){if(!n.has(t)){switch(t){case"scroll":Ge(e,"scroll",!0);break;case"focus":case"blur":Ge(e,"focus",!0),Ge(e,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ce(t)&&Ge(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Yt.indexOf(t)&&$e(t,e)}n.set(t,null)}}var me,ge,ye,be=!1,we=[],_e=null,ke=null,xe=null,Ee=new Map,Ce=new Map,Se=[],Oe="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Te="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ae(t,e,n,r,i){return{blockedOn:t,topLevelType:e,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Ne(t,e){switch(t){case"focus":case"blur":_e=null;break;case"dragenter":case"dragleave":ke=null;break;case"mouseover":case"mouseout":xe=null;break;case"pointerover":case"pointerout":Ee.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ce.delete(e.pointerId)}}function Pe(t,e,n,r,i,o){return null===t||t.nativeEvent!==o?(t=Ae(e,n,r,i,o),null!==e&&(null!==(e=In(e))&&ge(e)),t):(t.eventSystemFlags|=r,t)}function je(t){var e=Ln(t.target);if(null!==e){var n=te(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=ee(n)))return t.blockedOn=e,void o.unstable_runWithPriority(t.priority,(function(){ye(n)}))}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function Le(t){if(null!==t.blockedOn)return!1;var e=Je(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=In(e);return null!==n&&ge(n),t.blockedOn=e,!1}return!0}function Ie(t,e,n){Le(t)&&n.delete(e)}function De(){for(be=!1;0<we.length;){var t=we[0];if(null!==t.blockedOn){null!==(t=In(t.blockedOn))&&me(t);break}var e=Je(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:we.shift()}null!==_e&&Le(_e)&&(_e=null),null!==ke&&Le(ke)&&(ke=null),null!==xe&&Le(xe)&&(xe=null),Ee.forEach(Ie),Ce.forEach(Ie)}function Me(t,e){t.blockedOn===e&&(t.blockedOn=null,be||(be=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,De)))}function Re(t){function e(e){return Me(e,t)}if(0<we.length){Me(we[0],t);for(var n=1;n<we.length;n++){var r=we[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==_e&&Me(_e,t),null!==ke&&Me(ke,t),null!==xe&&Me(xe,t),Ee.forEach(e),Ce.forEach(e),n=0;n<Se.length;n++)(r=Se[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Se.length&&null===(n=Se[0]).blockedOn;)je(n),null===n.blockedOn&&Se.shift()}var qe={},Be=new Map,Fe=new Map,ze=["abort","abort",Qt,"animationEnd",$t,"animationIteration",Gt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Zt,"transitionEnd","waiting","waiting"];function Ue(t,e){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:e},Fe.set(r,e),Be.set(r,o),qe[i]=o}}Ue("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ue("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ue(ze,2);for(var He="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),We=0;We<He.length;We++)Fe.set(He[We],0);var Ve=o.unstable_UserBlockingPriority,Ke=o.unstable_runWithPriority,Qe=!0;function $e(t,e){Ge(e,t,!1)}function Ge(t,e,n){var r=Fe.get(e);switch(void 0===r?2:r){case 0:r=Ze.bind(null,e,1,t);break;case 1:r=Ye.bind(null,e,1,t);break;default:r=Xe.bind(null,e,1,t)}n?t.addEventListener(e,r,!0):t.addEventListener(e,r,!1)}function Ze(t,e,n,r){q||M();var i=Xe,o=q;q=!0;try{D(i,t,e,n,r)}finally{(q=o)||F()}}function Ye(t,e,n,r){Ke(Ve,Xe.bind(null,t,e,n,r))}function Xe(t,e,n,r){if(Qe)if(0<we.length&&-1<Oe.indexOf(t))t=Ae(null,t,e,n,r),we.push(t);else{var i=Je(t,e,n,r);if(null===i)Ne(t,r);else if(-1<Oe.indexOf(t))t=Ae(i,t,e,n,r),we.push(t);else if(!function(t,e,n,r,i){switch(e){case"focus":return _e=Pe(_e,t,e,n,r,i),!0;case"dragenter":return ke=Pe(ke,t,e,n,r,i),!0;case"mouseover":return xe=Pe(xe,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ee.set(o,Pe(Ee.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ce.set(o,Pe(Ce.get(o)||null,t,e,n,r,i)),!0}return!1}(i,t,e,n,r)){Ne(t,r),t=pe(t,r,null,e);try{z(he,t)}finally{de(t)}}}}function Je(t,e,n,r){if(null!==(n=Ln(n=le(r)))){var i=te(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=ee(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}t=pe(t,r,n,e);try{z(he,t)}finally{de(t)}return null}var tn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function nn(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||tn.hasOwnProperty(t)&&tn[t]?(""+e).trim():e+"px"}function rn(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=nn(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(tn).forEach((function(t){en.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),tn[e]=tn[t]}))}));var on=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(t,e){if(e){if(on[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(a(62,""))}}function sn(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var un=It;function ln(t,e){var n=Jt(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=C[e];for(var r=0;r<e.length;r++)ve(e[r],t,n)}function cn(){}function fn(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function dn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function pn(t,e){var n,r=dn(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=dn(r)}}function hn(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?hn(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function vn(){for(var t=window,e=fn();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=fn((t=e.contentWindow).document)}return e}function mn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var gn="$",yn="/$",bn="$?",wn="$!",_n=null,kn=null;function xn(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function En(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var Cn="function"==typeof setTimeout?setTimeout:void 0,Sn="function"==typeof clearTimeout?clearTimeout:void 0;function On(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function Tn(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if(n===gn||n===wn||n===bn){if(0===e)return t;e--}else n===yn&&e++}t=t.previousSibling}return null}var An=Math.random().toString(36).slice(2),Nn="__reactInternalInstance$"+An,Pn="__reactEventHandlers$"+An,jn="__reactContainere$"+An;function Ln(t){var e=t[Nn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[jn]||n[Nn]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=Tn(t);null!==t;){if(n=t[Nn])return n;t=Tn(t)}return e}n=(t=n).parentNode}return null}function In(t){return!(t=t[Nn]||t[jn])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function Dn(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function Mn(t){return t[Pn]||null}function Rn(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function qn(t,e){var n=t.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(a(231,e,typeof n));return n}function Bn(t,e,n){(e=qn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=ie(n._dispatchListeners,e),n._dispatchInstances=ie(n._dispatchInstances,t))}function Fn(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=Rn(e);for(e=n.length;0<e--;)Bn(n[e],"captured",t);for(e=0;e<n.length;e++)Bn(n[e],"bubbled",t)}}function zn(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=qn(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ie(n._dispatchListeners,e),n._dispatchInstances=ie(n._dispatchInstances,t))}function Un(t){t&&t.dispatchConfig.registrationName&&zn(t._targetInst,null,t)}function Hn(t){oe(t,Fn)}var Wn=null,Vn=null,Kn=null;function Qn(){if(Kn)return Kn;var t,e,n=Vn,r=n.length,i="value"in Wn?Wn.value:Wn.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return Kn=i.slice(t,1<e?1-e:void 0)}function $n(){return!0}function Gn(){return!1}function Zn(t,e,n,r){for(var i in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?$n:Gn,this.isPropagationStopped=Gn,this}function Yn(t,e,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,n,r),i}return new this(t,e,n,r)}function Xn(t){if(!(t instanceof this))throw Error(a(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function Jn(t){t.eventPool=[],t.getPooled=Yn,t.release=Xn}i(Zn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=$n)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=$n)},persist:function(){this.isPersistent=$n},isPersistent:Gn,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Gn,this._dispatchInstances=this._dispatchListeners=null}}),Zn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Zn.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,Jn(n),n},Jn(Zn);var tr=Zn.extend({data:null}),er=Zn.extend({data:null}),nr=[9,13,27,32],rr=O&&"CompositionEvent"in window,ir=null;O&&"documentMode"in document&&(ir=document.documentMode);var or=O&&"TextEvent"in window&&!ir,ar=O&&(!rr||ir&&8<ir&&11>=ir),sr=String.fromCharCode(32),ur={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},lr=!1;function cr(t,e){switch(t){case"keyup":return-1!==nr.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function fr(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var dr=!1;var pr={eventTypes:ur,extractEvents:function(t,e,n,r){var i;if(rr)t:{switch(t){case"compositionstart":var o=ur.compositionStart;break t;case"compositionend":o=ur.compositionEnd;break t;case"compositionupdate":o=ur.compositionUpdate;break t}o=void 0}else dr?cr(t,n)&&(o=ur.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=ur.compositionStart);return o?(ar&&"ko"!==n.locale&&(dr||o!==ur.compositionStart?o===ur.compositionEnd&&dr&&(i=Qn()):(Vn="value"in(Wn=r)?Wn.value:Wn.textContent,dr=!0)),o=tr.getPooled(o,e,n,r),i?o.data=i:null!==(i=fr(n))&&(o.data=i),Hn(o),i=o):i=null,(t=or?function(t,e){switch(t){case"compositionend":return fr(e);case"keypress":return 32!==e.which?null:(lr=!0,sr);case"textInput":return(t=e.data)===sr&&lr?null:t;default:return null}}(t,n):function(t,e){if(dr)return"compositionend"===t||!rr&&cr(t,e)?(t=Qn(),Kn=Vn=Wn=null,dr=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return ar&&"ko"!==e.locale?null:e.data}}(t,n))?((e=er.getPooled(ur.beforeInput,e,n,r)).data=t,Hn(e)):e=null,null===i?e:null===e?i:[i,e]}},hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function vr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!hr[t.type]:"textarea"===e}var mr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function gr(t,e,n){return(t=Zn.getPooled(mr.change,t,e,n)).type="change",j(n),Hn(t),t}var yr=null,br=null;function wr(t){ue(t)}function _r(t){if(_t(Dn(t)))return t}function kr(t,e){if("change"===t)return e}var xr=!1;function Er(){yr&&(yr.detachEvent("onpropertychange",Cr),br=yr=null)}function Cr(t){if("value"===t.propertyName&&_r(br))if(t=gr(br,t,le(t)),q)ue(t);else{q=!0;try{I(wr,t)}finally{q=!1,F()}}}function Sr(t,e,n){"focus"===t?(Er(),br=n,(yr=e).attachEvent("onpropertychange",Cr)):"blur"===t&&Er()}function Or(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return _r(br)}function Tr(t,e){if("click"===t)return _r(e)}function Ar(t,e){if("input"===t||"change"===t)return _r(e)}O&&(xr=ce("input")&&(!document.documentMode||9<document.documentMode));var Nr={eventTypes:mr,_isInputEventSupported:xr,extractEvents:function(t,e,n,r){var i=e?Dn(e):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=kr;else if(vr(i))if(xr)a=Ar;else{a=Or;var s=Sr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Tr);if(a&&(a=a(t,e)))return gr(a,n,r);s&&s(t,i,e),"blur"===t&&(t=i._wrapperState)&&t.controlled&&"number"===i.type&&Ot(i,"number",i.value)}},Pr=Zn.extend({view:null,detail:null}),jr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lr(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=jr[t])&&!!e[t]}function Ir(){return Lr}var Dr=0,Mr=0,Rr=!1,qr=!1,Br=Pr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ir,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Dr;return Dr=t.screenX,Rr?"mousemove"===t.type?t.screenX-e:0:(Rr=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Mr;return Mr=t.screenY,qr?"mousemove"===t.type?t.screenY-e:0:(qr=!0,0)}}),Fr=Br.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),zr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Ur={eventTypes:zr,extractEvents:function(t,e,n,r,i){var o="mouseover"===t||"pointerover"===t,a="mouseout"===t||"pointerout"===t;if(o&&!(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=e,null!==(e=(e=n.relatedTarget||n.toElement)?Ln(e):null)&&(e!==te(e)||5!==e.tag&&6!==e.tag)&&(e=null)):a=null;if(a===e)return null;if("mouseout"===t||"mouseover"===t)var s=Br,u=zr.mouseLeave,l=zr.mouseEnter,c="mouse";else"pointerout"!==t&&"pointerover"!==t||(s=Fr,u=zr.pointerLeave,l=zr.pointerEnter,c="pointer");if(t=null==a?o:Dn(a),o=null==e?o:Dn(e),(u=s.getPooled(u,a,n,r)).type=c+"leave",u.target=t,u.relatedTarget=o,(n=s.getPooled(l,e,n,r)).type=c+"enter",n.target=o,n.relatedTarget=t,c=e,(r=a)&&c)t:{for(l=c,a=0,t=s=r;t;t=Rn(t))a++;for(t=0,e=l;e;e=Rn(e))t++;for(;0<a-t;)s=Rn(s),a--;for(;0<t-a;)l=Rn(l),t--;for(;a--;){if(s===l||s===l.alternate)break t;s=Rn(s),l=Rn(l)}s=null}else s=null;for(l=s,s=[];r&&r!==l&&(null===(a=r.alternate)||a!==l);)s.push(r),r=Rn(r);for(r=[];c&&c!==l&&(null===(a=c.alternate)||a!==l);)r.push(c),c=Rn(c);for(c=0;c<s.length;c++)zn(s[c],"bubbled",u);for(c=r.length;0<c--;)zn(r[c],"captured",n);return 64&i?[u,n]:[u]}};var Hr="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},Wr=Object.prototype.hasOwnProperty;function Vr(t,e){if(Hr(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Wr.call(e,n[r])||!Hr(t[n[r]],e[n[r]]))return!1;return!0}var Kr=O&&"documentMode"in document&&11>=document.documentMode,Qr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},$r=null,Gr=null,Zr=null,Yr=!1;function Xr(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Yr||null==$r||$r!==fn(n)?null:("selectionStart"in(n=$r)&&mn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Zr&&Vr(Zr,n)?null:(Zr=n,(t=Zn.getPooled(Qr.select,Gr,t,e)).type="select",t.target=$r,Hn(t),t))}var Jr={eventTypes:Qr,extractEvents:function(t,e,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{i=Jt(i),o=C.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break t}i=!0}o=!i}if(o)return null;switch(i=e?Dn(e):window,t){case"focus":(vr(i)||"true"===i.contentEditable)&&($r=i,Gr=e,Zr=null);break;case"blur":Zr=Gr=$r=null;break;case"mousedown":Yr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yr=!1,Xr(n,r);case"selectionchange":if(Kr)break;case"keydown":case"keyup":return Xr(n,r)}return null}},ti=Zn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),ei=Zn.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ni=Pr.extend({relatedTarget:null});function ri(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var ii={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oi={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ai=Pr.extend({key:function(t){if(t.key){var e=ii[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=ri(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?oi[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ir,charCode:function(t){return"keypress"===t.type?ri(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?ri(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),si=Br.extend({dataTransfer:null}),ui=Pr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ir}),li=Zn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ci=Br.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),fi={eventTypes:qe,extractEvents:function(t,e,n,r){var i=Be.get(t);if(!i)return null;switch(t){case"keypress":if(0===ri(n))return null;case"keydown":case"keyup":t=ai;break;case"blur":case"focus":t=ni;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=Br;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=si;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=ui;break;case Qt:case $t:case Gt:t=ti;break;case Zt:t=li;break;case"scroll":t=Pr;break;case"wheel":t=ci;break;case"copy":case"cut":case"paste":t=ei;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Fr;break;default:t=Zn}return Hn(e=t.getPooled(i,e,n,r)),e}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Mn,v=In,m=Dn,S({SimpleEventPlugin:fi,EnterLeaveEventPlugin:Ur,ChangeEventPlugin:Nr,SelectEventPlugin:Jr,BeforeInputEventPlugin:pr});var di=[],pi=-1;function hi(t){0>pi||(t.current=di[pi],di[pi]=null,pi--)}function vi(t,e){pi++,di[pi]=t.current,t.current=e}var mi={},gi={current:mi},yi={current:!1},bi=mi;function wi(t,e){var n=t.type.contextTypes;if(!n)return mi;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function _i(t){return null!=(t=t.childContextTypes)}function ki(){hi(yi),hi(gi)}function xi(t,e,n){if(gi.current!==mi)throw Error(a(168));vi(gi,e),vi(yi,n)}function Ei(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,mt(e)||"Unknown",o));return i({},n,{},r)}function Ci(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||mi,bi=gi.current,vi(gi,t),vi(yi,yi.current),!0}function Si(t,e,n){var r=t.stateNode;if(!r)throw Error(a(169));n?(t=Ei(t,e,bi),r.__reactInternalMemoizedMergedChildContext=t,hi(yi),hi(gi),vi(gi,t)):hi(yi),vi(yi,n)}var Oi=o.unstable_runWithPriority,Ti=o.unstable_scheduleCallback,Ai=o.unstable_cancelCallback,Ni=o.unstable_requestPaint,Pi=o.unstable_now,ji=o.unstable_getCurrentPriorityLevel,Li=o.unstable_ImmediatePriority,Ii=o.unstable_UserBlockingPriority,Di=o.unstable_NormalPriority,Mi=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,qi={},Bi=o.unstable_shouldYield,Fi=void 0!==Ni?Ni:function(){},zi=null,Ui=null,Hi=!1,Wi=Pi(),Vi=1e4>Wi?Pi:function(){return Pi()-Wi};function Ki(){switch(ji()){case Li:return 99;case Ii:return 98;case Di:return 97;case Mi:return 96;case Ri:return 95;default:throw Error(a(332))}}function Qi(t){switch(t){case 99:return Li;case 98:return Ii;case 97:return Di;case 96:return Mi;case 95:return Ri;default:throw Error(a(332))}}function $i(t,e){return t=Qi(t),Oi(t,e)}function Gi(t,e,n){return t=Qi(t),Ti(t,e,n)}function Zi(t){return null===zi?(zi=[t],Ui=Ti(Li,Xi)):zi.push(t),qi}function Yi(){if(null!==Ui){var t=Ui;Ui=null,Ai(t)}Xi()}function Xi(){if(!Hi&&null!==zi){Hi=!0;var t=0;try{var e=zi;$i(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),zi=null}catch(e){throw null!==zi&&(zi=zi.slice(t+1)),Ti(Li,Yi),e}finally{Hi=!1}}}function Ji(t,e,n){return 1073741821-(1+((1073741821-t+e/10)/(n/=10)|0))*n}function to(t,e){if(t&&t.defaultProps)for(var n in e=i({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var eo={current:null},no=null,ro=null,io=null;function oo(){io=ro=no=null}function ao(t){var e=eo.current;hi(eo),t.type._context._currentValue=e}function so(t,e){for(;null!==t;){var n=t.alternate;if(t.childExpirationTime<e)t.childExpirationTime=e,null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e);else{if(!(null!==n&&n.childExpirationTime<e))break;n.childExpirationTime=e}t=t.return}}function uo(t,e){no=t,io=ro=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(Ma=!0),t.firstContext=null)}function lo(t,e){if(io!==t&&!1!==e&&0!==e)if("number"==typeof e&&1073741823!==e||(io=t,e=1073741823),e={context:t,observedBits:e,next:null},null===ro){if(null===no)throw Error(a(308));ro=e,no.dependencies={expirationTime:0,firstContext:e,responders:null}}else ro=ro.next=e;return t._currentValue}var co=!1;function fo(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function po(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function ho(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function vo(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function mo(t,e){var n=t.alternate;null!==n&&po(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function go(t,e,n,r){var o=t.updateQueue;co=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var u=a.next;a.next=s.next,s.next=u}a=s,o.shared.pending=null,null!==(u=t.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=s))}if(null!==a){u=a.next;var l=o.baseState,c=0,f=null,d=null,p=null;if(null!==u)for(var h=u;;){if((s=h.expirationTime)<r){var v={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(d=p=v,f=l):p=p.next=v,s>c&&(c=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),ku(s,h.suspenseConfig);t:{var m=t,g=h;switch(s=e,v=n,g.tag){case 1:if("function"==typeof(m=g.payload)){l=m.call(v,l,s);break t}l=m;break t;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null==(s="function"==typeof(m=g.payload)?m.call(v,l,s):m))break t;l=i({},l,s);break t;case 2:co=!0}}null!==h.callback&&(t.effectTag|=32,null===(s=o.effects)?o.effects=[h]:s.push(h))}if(null===(h=h.next)||h===u){if(null===(s=o.shared.pending))break;h=a.next=s.next,s.next=u,o.baseQueue=a=s,o.shared.pending=null}}null===p?f=l:p.next=d,o.baseState=f,o.baseQueue=p,xu(c),t.expirationTime=c,t.memoizedState=l}}function yo(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var bo=Z.ReactCurrentBatchConfig,wo=(new r.Component).refs;function _o(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:i({},e,n),t.memoizedState=n,0===t.expirationTime&&(t.updateQueue.baseState=n)}var ko={isMounted:function(t){return!!(t=t._reactInternalFiber)&&te(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=lu(),i=bo.suspense;(i=ho(r=cu(r,t,i),i)).payload=e,null!=n&&(i.callback=n),vo(t,i),fu(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=lu(),i=bo.suspense;(i=ho(r=cu(r,t,i),i)).tag=1,i.payload=e,null!=n&&(i.callback=n),vo(t,i),fu(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=lu(),r=bo.suspense;(r=ho(n=cu(n,t,r),r)).tag=2,null!=e&&(r.callback=e),vo(t,r),fu(t,n)}};function xo(t,e,n,r,i,o,a){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!Vr(n,r)||!Vr(i,o))}function Eo(t,e,n){var r=!1,i=mi,o=e.contextType;return"object"==typeof o&&null!==o?o=lo(o):(i=_i(e)?bi:gi.current,o=(r=null!=(r=e.contextTypes))?wi(t,i):mi),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=ko,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function Co(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&ko.enqueueReplaceState(e,e.state,null)}function So(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=wo,fo(t);var o=e.contextType;"object"==typeof o&&null!==o?i.context=lo(o):(o=_i(e)?bi:gi.current,i.context=wi(t,o)),go(t,n,i,r),i.state=t.memoizedState,"function"==typeof(o=e.getDerivedStateFromProps)&&(_o(t,e,o,n),i.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(e=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&ko.enqueueReplaceState(i,i.state,null),go(t,n,i,r),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.effectTag|=4)}var Oo=Array.isArray;function To(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,t));var i=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===i?e.ref:(e=function(t){var e=r.refs;e===wo&&(e=r.refs={}),null===t?delete e[i]:e[i]=t},e._stringRef=i,e)}if("string"!=typeof t)throw Error(a(284));if(!n._owner)throw Error(a(290,t))}return t}function Ao(t,e){if("textarea"!==t.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function No(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=Hu(t,e)).index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function s(e){return t&&null===e.alternate&&(e.effectTag=2),e}function u(t,e,n,r){return null===e||6!==e.tag?((e=Ku(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function l(t,e,n,r){return null!==e&&e.elementType===n.type?((r=i(e,n.props)).ref=To(t,e,n),r.return=t,r):((r=Wu(n.type,n.key,n.props,null,t.mode,r)).ref=To(t,e,n),r.return=t,r)}function c(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Qu(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function f(t,e,n,r,o){return null===e||7!==e.tag?((e=Vu(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function d(t,e,n){if("string"==typeof e||"number"==typeof e)return(e=Ku(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case tt:return(n=Wu(e.type,e.key,e.props,null,t.mode,n)).ref=To(t,null,e),n.return=t,n;case et:return(e=Qu(e,t.mode,n)).return=t,e}if(Oo(e)||vt(e))return(e=Vu(e,t.mode,n,null)).return=t,e;Ao(t,e)}return null}function p(t,e,n,r){var i=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case tt:return n.key===i?n.type===nt?f(t,e,n.props.children,r,i):l(t,e,n,r):null;case et:return n.key===i?c(t,e,n,r):null}if(Oo(n)||vt(n))return null!==i?null:f(t,e,n,r,null);Ao(t,n)}return null}function h(t,e,n,r,i){if("string"==typeof r||"number"==typeof r)return u(e,t=t.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case tt:return t=t.get(null===r.key?n:r.key)||null,r.type===nt?f(e,t,r.props.children,i,r.key):l(e,t,r,i);case et:return c(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(Oo(r)||vt(r))return f(e,t=t.get(n)||null,r,i,null);Ao(e,r)}return null}function v(i,a,s,u){for(var l=null,c=null,f=a,v=a=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=p(i,f,s[v],u);if(null===g){null===f&&(f=m);break}t&&f&&null===g.alternate&&e(i,f),a=o(g,a,v),null===c?l=g:c.sibling=g,c=g,f=m}if(v===s.length)return n(i,f),l;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],u))&&(a=o(f,a,v),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);v<s.length;v++)null!==(m=h(f,i,v,s[v],u))&&(t&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=o(m,a,v),null===c?l=m:c.sibling=m,c=m);return t&&f.forEach((function(t){return e(i,t)})),l}function m(i,s,u,l){var c=vt(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,v=s,m=s=0,g=null,y=u.next();null!==v&&!y.done;m++,y=u.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=p(i,v,y.value,l);if(null===b){null===v&&(v=g);break}t&&v&&null===b.alternate&&e(i,v),s=o(b,s,m),null===f?c=b:f.sibling=b,f=b,v=g}if(y.done)return n(i,v),c;if(null===v){for(;!y.done;m++,y=u.next())null!==(y=d(i,y.value,l))&&(s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return c}for(v=r(i,v);!y.done;m++,y=u.next())null!==(y=h(v,i,m,y.value,l))&&(t&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return t&&v.forEach((function(t){return e(i,t)})),c}return function(t,r,o,u){var l="object"==typeof o&&null!==o&&o.type===nt&&null===o.key;l&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case tt:t:{for(c=o.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(o.type===nt){n(t,l.sibling),(r=i(l,o.props.children)).return=t,t=r;break t}}else if(l.elementType===o.type){n(t,l.sibling),(r=i(l,o.props)).ref=To(t,l,o),r.return=t,t=r;break t}n(t,l);break}e(t,l),l=l.sibling}o.type===nt?((r=Vu(o.props.children,t.mode,u,o.key)).return=t,t=r):((u=Wu(o.type,o.key,o.props,null,t.mode,u)).ref=To(t,r,o),u.return=t,t=u)}return s(t);case et:t:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Qu(o,t.mode,u)).return=t,t=r}return s(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Ku(o,t.mode,u)).return=t,t=r),s(t);if(Oo(o))return v(t,r,o,u);if(vt(o))return m(t,r,o,u);if(c&&Ao(t,o),void 0===o&&!l)switch(t.tag){case 1:case 0:throw t=t.type,Error(a(152,t.displayName||t.name||"Component"))}return n(t,r)}}var Po=No(!0),jo=No(!1),Lo={},Io={current:Lo},Do={current:Lo},Mo={current:Lo};function Ro(t){if(t===Lo)throw Error(a(174));return t}function qo(t,e){switch(vi(Mo,e),vi(Do,t),vi(Io,Lo),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Rt(null,"");break;default:e=Rt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}hi(Io),vi(Io,e)}function Bo(){hi(Io),hi(Do),hi(Mo)}function Fo(t){Ro(Mo.current);var e=Ro(Io.current),n=Rt(e,t.type);e!==n&&(vi(Do,t),vi(Io,n))}function zo(t){Do.current===t&&(hi(Io),hi(Do))}var Uo={current:0};function Ho(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===bn||n.data===wn))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(64&e.effectTag)return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Wo(t,e){return{responder:t,props:e}}var Vo=Z.ReactCurrentDispatcher,Ko=Z.ReactCurrentBatchConfig,Qo=0,$o=null,Go=null,Zo=null,Yo=!1;function Xo(){throw Error(a(321))}function Jo(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Hr(t[n],e[n]))return!1;return!0}function ta(t,e,n,r,i,o){if(Qo=o,$o=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,Vo.current=null===t||null===t.memoizedState?xa:Ea,t=n(r,i),e.expirationTime===Qo){o=0;do{if(e.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Zo=Go=null,e.updateQueue=null,Vo.current=Ca,t=n(r,i)}while(e.expirationTime===Qo)}if(Vo.current=ka,e=null!==Go&&null!==Go.next,Qo=0,Zo=Go=$o=null,Yo=!1,e)throw Error(a(300));return t}function ea(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zo?$o.memoizedState=Zo=t:Zo=Zo.next=t,Zo}function na(){if(null===Go){var t=$o.alternate;t=null!==t?t.memoizedState:null}else t=Go.next;var e=null===Zo?$o.memoizedState:Zo.next;if(null!==e)Zo=e,Go=t;else{if(null===t)throw Error(a(310));t={memoizedState:(Go=t).memoizedState,baseState:Go.baseState,baseQueue:Go.baseQueue,queue:Go.queue,next:null},null===Zo?$o.memoizedState=Zo=t:Zo=Zo.next=t}return Zo}function ra(t,e){return"function"==typeof e?e(t):e}function ia(t){var e=na(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=Go,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=o=null,l=i;do{var c=l.expirationTime;if(c<Qo){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,c>$o.expirationTime&&($o.expirationTime=c,xu(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),ku(c,l.suspenseConfig),r=l.eagerReducer===t?l.eagerState:t(r,l.action);l=l.next}while(null!==l&&l!==i);null===u?o=r:u.next=s,Hr(r,e.memoizedState)||(Ma=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=u,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function oa(t){var e=na(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=t(o,s.action),s=s.next}while(s!==i);Hr(o,e.memoizedState)||(Ma=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function aa(t){var e=ea();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:ra,lastRenderedState:t}).dispatch=_a.bind(null,$o,t),[e.memoizedState,t]}function sa(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=$o.updateQueue)?(e={lastEffect:null},$o.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function ua(){return na().memoizedState}function la(t,e,n,r){var i=ea();$o.effectTag|=t,i.memoizedState=sa(1|e,n,void 0,void 0===r?null:r)}function ca(t,e,n,r){var i=na();r=void 0===r?null:r;var o=void 0;if(null!==Go){var a=Go.memoizedState;if(o=a.destroy,null!==r&&Jo(r,a.deps))return void sa(e,n,o,r)}$o.effectTag|=t,i.memoizedState=sa(1|e,n,o,r)}function fa(t,e){return la(516,4,t,e)}function da(t,e){return ca(516,4,t,e)}function pa(t,e){return ca(4,2,t,e)}function ha(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function va(t,e,n){return n=null!=n?n.concat([t]):null,ca(4,2,ha.bind(null,e,t),n)}function ma(){}function ga(t,e){return ea().memoizedState=[t,void 0===e?null:e],t}function ya(t,e){var n=na();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Jo(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function ba(t,e){var n=na();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Jo(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function wa(t,e,n){var r=Ki();$i(98>r?98:r,(function(){t(!0)})),$i(97<r?97:r,(function(){var r=Ko.suspense;Ko.suspense=void 0===e?null:e;try{t(!1),n()}finally{Ko.suspense=r}}))}function _a(t,e,n){var r=lu(),i=bo.suspense;i={expirationTime:r=cu(r,t,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=e.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),e.pending=i,o=t.alternate,t===$o||null!==o&&o===$o)Yo=!0,i.expirationTime=Qo,$o.expirationTime=Qo;else{if(0===t.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=e.lastRenderedReducer))try{var a=e.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Hr(s,a))return}catch(t){}fu(t,r)}}var ka={readContext:lo,useCallback:Xo,useContext:Xo,useEffect:Xo,useImperativeHandle:Xo,useLayoutEffect:Xo,useMemo:Xo,useReducer:Xo,useRef:Xo,useState:Xo,useDebugValue:Xo,useResponder:Xo,useDeferredValue:Xo,useTransition:Xo},xa={readContext:lo,useCallback:ga,useContext:lo,useEffect:fa,useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,la(4,2,ha.bind(null,e,t),n)},useLayoutEffect:function(t,e){return la(4,2,t,e)},useMemo:function(t,e){var n=ea();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=ea();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t=(t=r.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=_a.bind(null,$o,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},ea().memoizedState=t},useState:aa,useDebugValue:ma,useResponder:Wo,useDeferredValue:function(t,e){var n=aa(t),r=n[0],i=n[1];return fa((function(){var n=Ko.suspense;Ko.suspense=void 0===e?null:e;try{i(t)}finally{Ko.suspense=n}}),[t,e]),r},useTransition:function(t){var e=aa(!1),n=e[0];return e=e[1],[ga(wa.bind(null,e,t),[e,t]),n]}},Ea={readContext:lo,useCallback:ya,useContext:lo,useEffect:da,useImperativeHandle:va,useLayoutEffect:pa,useMemo:ba,useReducer:ia,useRef:ua,useState:function(){return ia(ra)},useDebugValue:ma,useResponder:Wo,useDeferredValue:function(t,e){var n=ia(ra),r=n[0],i=n[1];return da((function(){var n=Ko.suspense;Ko.suspense=void 0===e?null:e;try{i(t)}finally{Ko.suspense=n}}),[t,e]),r},useTransition:function(t){var e=ia(ra),n=e[0];return e=e[1],[ya(wa.bind(null,e,t),[e,t]),n]}},Ca={readContext:lo,useCallback:ya,useContext:lo,useEffect:da,useImperativeHandle:va,useLayoutEffect:pa,useMemo:ba,useReducer:oa,useRef:ua,useState:function(){return oa(ra)},useDebugValue:ma,useResponder:Wo,useDeferredValue:function(t,e){var n=oa(ra),r=n[0],i=n[1];return da((function(){var n=Ko.suspense;Ko.suspense=void 0===e?null:e;try{i(t)}finally{Ko.suspense=n}}),[t,e]),r},useTransition:function(t){var e=oa(ra),n=e[0];return e=e[1],[ya(wa.bind(null,e,t),[e,t]),n]}},Sa=null,Oa=null,Ta=!1;function Aa(t,e){var n=zu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function Na(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);default:return!1}}function Pa(t){if(Ta){var e=Oa;if(e){var n=e;if(!Na(t,e)){if(!(e=On(n.nextSibling))||!Na(t,e))return t.effectTag=-1025&t.effectTag|2,Ta=!1,void(Sa=t);Aa(Sa,n)}Sa=t,Oa=On(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,Ta=!1,Sa=t}}function ja(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;Sa=t}function La(t){if(t!==Sa)return!1;if(!Ta)return ja(t),Ta=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!En(e,t.memoizedProps))for(e=Oa;e;)Aa(t,e),e=On(e.nextSibling);if(ja(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if(n===yn){if(0===e){Oa=On(t.nextSibling);break t}e--}else n!==gn&&n!==wn&&n!==bn||e++}t=t.nextSibling}Oa=null}}else Oa=Sa?On(t.stateNode.nextSibling):null;return!0}function Ia(){Oa=Sa=null,Ta=!1}var Da=Z.ReactCurrentOwner,Ma=!1;function Ra(t,e,n,r){e.child=null===t?jo(e,null,n,r):Po(e,t.child,n,r)}function qa(t,e,n,r,i){n=n.render;var o=e.ref;return uo(e,i),r=ta(t,e,n,r,o,i),null===t||Ma?(e.effectTag|=1,Ra(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),es(t,e,i))}function Ba(t,e,n,r,i,o){if(null===t){var a=n.type;return"function"!=typeof a||Uu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Wu(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Fa(t,e,a,r,i,o))}return a=t.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Vr)(i,r)&&t.ref===e.ref)?es(t,e,o):(e.effectTag|=1,(t=Hu(a,r)).ref=e.ref,t.return=e,e.child=t)}function Fa(t,e,n,r,i,o){return null!==t&&Vr(t.memoizedProps,r)&&t.ref===e.ref&&(Ma=!1,i<o)?(e.expirationTime=t.expirationTime,es(t,e,o)):Ua(t,e,n,r,o)}function za(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function Ua(t,e,n,r,i){var o=_i(n)?bi:gi.current;return o=wi(e,o),uo(e,i),n=ta(t,e,n,r,o,i),null===t||Ma?(e.effectTag|=1,Ra(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),es(t,e,i))}function Ha(t,e,n,r,i){if(_i(n)){var o=!0;Ci(e)}else o=!1;if(uo(e,i),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),Eo(e,n,r),So(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=lo(l):l=wi(e,l=_i(n)?bi:gi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&Co(e,a,r,l),co=!1;var d=e.memoizedState;a.state=d,go(e,r,a,i),u=e.memoizedState,s!==r||d!==u||yi.current||co?("function"==typeof c&&(_o(e,n,c,r),u=e.memoizedState),(s=co||xo(e,n,s,r,d,u,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(e.effectTag|=4)):("function"==typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"==typeof a.componentDidMount&&(e.effectTag|=4),r=!1)}else a=e.stateNode,po(t,e),s=e.memoizedProps,a.props=e.type===e.elementType?s:to(e.type,s),u=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=lo(l):l=wi(e,l=_i(n)?bi:gi.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&Co(e,a,r,l),co=!1,u=e.memoizedState,a.state=u,go(e,r,a,i),d=e.memoizedState,s!==r||u!==d||yi.current||co?("function"==typeof c&&(_o(e,n,c,r),d=e.memoizedState),(c=co||xo(e,n,s,r,u,d,l))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,l)),"function"==typeof a.componentDidUpdate&&(e.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=d),a.props=r,a.state=d,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),r=!1);return Wa(t,e,n,r,o,i)}function Wa(t,e,n,r,i,o){za(t,e);var a=!!(64&e.effectTag);if(!r&&!a)return i&&Si(e,n,!1),es(t,e,o);r=e.stateNode,Da.current=e;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&a?(e.child=Po(e,t.child,null,o),e.child=Po(e,null,s,o)):Ra(t,e,s,o),e.memoizedState=r.state,i&&Si(e,n,!0),e.child}function Va(t){var e=t.stateNode;e.pendingContext?xi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&xi(0,e.context,!1),qo(t,e.containerInfo)}var Ka,Qa,$a,Ga,Za={dehydrated:null,retryTime:0};function Ya(t,e,n){var r,i=e.mode,o=e.pendingProps,a=Uo.current,s=!1;if((r=!!(64&e.effectTag))||(r=!!(2&a)&&(null===t||null!==t.memoizedState)),r?(s=!0,e.effectTag&=-65):null!==t&&null===t.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),vi(Uo,1&a),null===t){if(void 0!==o.fallback&&Pa(e),s){if(s=o.fallback,(o=Vu(null,i,0,null)).return=e,!(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Vu(s,i,n,null)).return=e,o.sibling=n,e.memoizedState=Za,e.child=o,n}return i=o.children,e.memoizedState=null,e.child=jo(e,null,i,n)}if(null!==t.memoizedState){if(i=(t=t.child).sibling,s){if(o=o.fallback,(n=Hu(t,t.pendingProps)).return=e,!(2&e.mode)&&(s=null!==e.memoizedState?e.child.child:e.child)!==t.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Hu(i,o)).return=e,n.sibling=i,n.childExpirationTime=0,e.memoizedState=Za,e.child=n,i}return n=Po(e,t.child,o.children,n),e.memoizedState=null,e.child=n}if(t=t.child,s){if(s=o.fallback,(o=Vu(null,i,0,null)).return=e,o.child=t,null!==t&&(t.return=o),!(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Vu(s,i,n,null)).return=e,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,e.memoizedState=Za,e.child=o,n}return e.memoizedState=null,e.child=Po(e,t,o.children,n)}function Xa(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e),so(t.return,e)}function Ja(t,e,n,r,i,o){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function ts(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(Ra(t,e,r.children,n),2&(r=Uo.current))r=1&r|2,e.effectTag|=64;else{if(null!==t&&64&t.effectTag)t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&Xa(t,n);else if(19===t.tag)Xa(t,n);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(vi(Uo,r),2&e.mode)switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===Ho(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Ja(e,!1,i,n,o,e.lastEffect);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===Ho(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Ja(e,!0,n,null,o,e.lastEffect);break;case"together":Ja(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}else e.memoizedState=null;return e.child}function es(t,e,n){null!==t&&(e.dependencies=t.dependencies);var r=e.expirationTime;if(0!==r&&xu(r),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(n=Hu(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Hu(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function ns(t,e){switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function rs(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return _i(e.type)&&ki(),null;case 3:return Bo(),hi(yi),hi(gi),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!La(e)||(e.effectTag|=4),Qa(e),null;case 5:zo(e),n=Ro(Mo.current);var o=e.type;if(null!==t&&null!=e.stateNode)$a(t,e,o,r,n),t.ref!==e.ref&&(e.effectTag|=128);else{if(!r){if(null===e.stateNode)throw Error(a(166));return null}if(t=Ro(Io.current),La(e)){r=e.stateNode,o=e.type;var s=e.memoizedProps;switch(r[Nn]=e,r[Pn]=s,o){case"iframe":case"object":case"embed":$e("load",r);break;case"video":case"audio":for(t=0;t<Yt.length;t++)$e(Yt[t],r);break;case"source":$e("error",r);break;case"img":case"image":case"link":$e("error",r),$e("load",r);break;case"form":$e("reset",r),$e("submit",r);break;case"details":$e("toggle",r);break;case"input":xt(r,s),$e("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},$e("invalid",r),ln(n,"onChange");break;case"textarea":Pt(r,s),$e("invalid",r),ln(n,"onChange")}for(var u in an(o,s),t=null,s)if(s.hasOwnProperty(u)){var l=s[u];"children"===u?"string"==typeof l?r.textContent!==l&&(t=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(t=["children",""+l]):E.hasOwnProperty(u)&&null!=l&&ln(n,u)}switch(o){case"input":wt(r),St(r,s,!0);break;case"textarea":wt(r),Lt(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=cn)}n=t,e.updateQueue=n,null!==n&&(e.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,t===un&&(t=Mt(o)),t===un?"script"===o?((t=u.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof r.is?t=u.createElement(o,{is:r.is}):(t=u.createElement(o),"select"===o&&(u=t,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):t=u.createElementNS(t,o),t[Nn]=e,t[Pn]=r,Ka(t,e,!1,!1),e.stateNode=t,u=sn(o,r),o){case"iframe":case"object":case"embed":$e("load",t),l=r;break;case"video":case"audio":for(l=0;l<Yt.length;l++)$e(Yt[l],t);l=r;break;case"source":$e("error",t),l=r;break;case"img":case"image":case"link":$e("error",t),$e("load",t),l=r;break;case"form":$e("reset",t),$e("submit",t),l=r;break;case"details":$e("toggle",t),l=r;break;case"input":xt(t,r),l=kt(t,r),$e("invalid",t),ln(n,"onChange");break;case"option":l=Tt(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},l=i({},r,{value:void 0}),$e("invalid",t),ln(n,"onChange");break;case"textarea":Pt(t,r),l=Nt(t,r),$e("invalid",t),ln(n,"onChange");break;default:l=r}an(o,l);var c=l;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?rn(t,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&Ft(t,f):"children"===s?"string"==typeof f?("textarea"!==o||""!==f)&&zt(t,f):"number"==typeof f&&zt(t,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(E.hasOwnProperty(s)?null!=f&&ln(n,s):null!=f&&Y(t,s,f,u))}switch(o){case"input":wt(t),St(t,r,!1);break;case"textarea":wt(t),Lt(t);break;case"option":null!=r.value&&t.setAttribute("value",""+yt(r.value));break;case"select":t.multiple=!!r.multiple,null!=(n=r.value)?At(t,!!r.multiple,n,!1):null!=r.defaultValue&&At(t,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof l.onClick&&(t.onclick=cn)}xn(o,r)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Ga(t,e,t.memoizedProps,r);else{if("string"!=typeof r&&null===e.stateNode)throw Error(a(166));n=Ro(Mo.current),Ro(Io.current),La(e)?(n=e.stateNode,r=e.memoizedProps,n[Nn]=e,n.nodeValue!==r&&(e.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Nn]=e,e.stateNode=n)}return null;case 13:return hi(Uo),r=e.memoizedState,64&e.effectTag?(e.expirationTime=n,e):(n=null!==r,r=!1,null===t?void 0!==e.memoizedProps.fallback&&La(e):(r=null!==(o=t.memoizedState),n||null===o||null!==(o=t.child.sibling)&&(null!==(s=e.firstEffect)?(e.firstEffect=o,o.nextEffect=s):(e.firstEffect=e.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&2&e.mode&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||1&Uo.current?Hs===Ls&&(Hs=Ms):(Hs!==Ls&&Hs!==Ms||(Hs=Rs),0!==$s&&null!==Fs&&(Zu(Fs,Us),Yu(Fs,$s)))),(n||r)&&(e.effectTag|=4),null);case 4:return Bo(),Qa(e),null;case 10:return ao(e),null;case 19:if(hi(Uo),null===(r=e.memoizedState))return null;if(o=!!(64&e.effectTag),null===(s=r.rendering)){if(o)ns(r,!1);else if(Hs!==Ls||null!==t&&64&t.effectTag)for(s=e.child;null!==s;){if(null!==(t=Ho(s))){for(e.effectTag|=64,ns(r,!1),null!==(o=t.updateQueue)&&(e.updateQueue=o,e.effectTag|=4),null===r.lastEffect&&(e.firstEffect=null),e.lastEffect=r.lastEffect,r=e.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(t=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=t.childExpirationTime,o.expirationTime=t.expirationTime,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,s=t.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return vi(Uo,1&Uo.current|2),e.child}s=s.sibling}}else{if(!o)if(null!==(t=Ho(s))){if(e.effectTag|=64,o=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.effectTag|=4),ns(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(e=e.lastEffect=r.lastEffect)&&(e.nextEffect=null),null}else 2*Vi()-r.renderingStartTime>r.tailExpiration&&1<n&&(e.effectTag|=64,o=!0,ns(r,!1),e.expirationTime=e.childExpirationTime=n-1);r.isBackwards?(s.sibling=e.child,e.child=s):(null!==(n=r.last)?n.sibling=s:e.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Vi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=Vi(),n.sibling=null,e=Uo.current,vi(Uo,o?1&e|2:1&e),n):null}throw Error(a(156,e.tag))}function is(t){switch(t.tag){case 1:_i(t.type)&&ki();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(Bo(),hi(yi),hi(gi),64&(e=t.effectTag))throw Error(a(285));return t.effectTag=-4097&e|64,t;case 5:return zo(t),null;case 13:return hi(Uo),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return hi(Uo),null;case 4:return Bo(),null;case 10:return ao(t),null;default:return null}}function os(t,e){return{value:t,source:e,stack:gt(e)}}Ka=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qa=function(){},$a=function(t,e,n,r,o){var a=t.memoizedProps;if(a!==r){var s,u,l=e.stateNode;switch(Ro(Io.current),t=null,n){case"input":a=kt(l,a),r=kt(l,r),t=[];break;case"option":a=Tt(l,a),r=Tt(l,r),t=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),t=[];break;case"textarea":a=Nt(l,a),r=Nt(l,r),t=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(l.onclick=cn)}for(s in an(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(u in l=a[s])l.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(E.hasOwnProperty(s)?t||(t=[]):(t=t||[]).push(s,null));for(s in r){var c=r[s];if(l=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(u in l)!l.hasOwnProperty(u)||c&&c.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in c)c.hasOwnProperty(u)&&l[u]!==c[u]&&(n||(n={}),n[u]=c[u])}else n||(t||(t=[]),t.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(t=t||[]).push(s,c)):"children"===s?l===c||"string"!=typeof c&&"number"!=typeof c||(t=t||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(E.hasOwnProperty(s)?(null!=c&&ln(o,s),t||l===c||(t=[])):(t=t||[]).push(s,c))}n&&(t=t||[]).push("style",n),o=t,(e.updateQueue=o)&&(e.effectTag|=4)}},Ga=function(t,e,n,r){n!==r&&(e.effectTag|=4)};var as="function"==typeof WeakSet?WeakSet:Set;function ss(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=gt(n)),null!==n&&mt(n.type),e=e.value,null!==t&&1===t.tag&&mt(t.type);try{console.error(e)}catch(t){setTimeout((function(){throw t}))}}function us(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){Du(t,e)}else e.current=null}function ls(t,e){switch(e.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&e.effectTag&&null!==t){var n=t.memoizedProps,r=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:to(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}return}throw Error(a(163))}function cs(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==e)}}function fs(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function ds(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:return void fs(3,n);case 1:if(t=n.stateNode,4&n.effectTag)if(null===e)t.componentDidMount();else{var r=n.elementType===n.type?e.memoizedProps:to(n.type,e.memoizedProps);t.componentDidUpdate(r,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate)}return void(null!==(e=n.updateQueue)&&yo(n,e,t));case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:case 1:t=n.child.stateNode}yo(n,e,t)}return;case 5:return t=n.stateNode,void(null===e&&4&n.effectTag&&xn(n.type,n.memoizedProps)&&t.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Re(n)))))}throw Error(a(163))}function ps(t,e,n){switch("function"==typeof Bu&&Bu(e),e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var r=t.next;$i(97<n?97:n,(function(){var t=r;do{var n=t.destroy;if(void 0!==n){var i=e;try{n()}catch(t){Du(i,t)}}t=t.next}while(t!==r)}))}break;case 1:us(e),"function"==typeof(n=e.stateNode).componentWillUnmount&&function(t,e){try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Du(t,e)}}(e,n);break;case 5:us(e);break;case 4:bs(t,e,n)}}function hs(t){var e=t.alternate;t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.alternate=null,t.firstEffect=null,t.lastEffect=null,t.pendingProps=null,t.memoizedProps=null,t.stateNode=null,null!==e&&hs(e)}function vs(t){return 5===t.tag||3===t.tag||4===t.tag}function ms(t){t:{for(var e=t.return;null!==e;){if(vs(e)){var n=e;break t}e=e.return}throw Error(a(160))}switch(e=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:e=e.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(zt(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||vs(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}r?gs(t,n,e):ys(t,n,e)}function gs(t,e,n){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!=(n=n._reactRootContainer)||null!==e.onclick||(e.onclick=cn));else if(4!==r&&null!==(t=t.child))for(gs(t,e,n),t=t.sibling;null!==t;)gs(t,e,n),t=t.sibling}function ys(t,e,n){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==r&&null!==(t=t.child))for(ys(t,e,n),t=t.sibling;null!==t;)ys(t,e,n),t=t.sibling}function bs(t,e,n){for(var r,i,o=e,s=!1;;){if(!s){s=o.return;t:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break t;case 3:case 4:r=r.containerInfo,i=!0;break t}s=s.return}s=!0}if(5===o.tag||6===o.tag){t:for(var u=t,l=o,c=n,f=l;;)if(ps(u,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break t;for(;null===f.sibling;){if(null===f.return||f.return===l)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(u=r,l=o.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(ps(t,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function ws(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:return void cs(3,e);case 1:case 12:case 17:return;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps,i=null!==t?t.memoizedProps:r;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(n[Pn]=r,"input"===t&&"radio"===r.type&&null!=r.name&&Et(n,r),sn(t,i),e=sn(t,r),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?rn(n,u):"dangerouslySetInnerHTML"===s?Ft(n,u):"children"===s?zt(n,u):Y(n,s,u,e)}switch(t){case"input":Ct(n,r);break;case"textarea":jt(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(t=r.value)?At(n,!!r.multiple,t,!1):e!==!!r.multiple&&(null!=r.defaultValue?At(n,!!r.multiple,r.defaultValue,!0):At(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(a(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((e=e.stateNode).hydrate&&(e.hydrate=!1,Re(e.containerInfo)));case 13:if(n=e,null===e.memoizedState?r=!1:(r=!0,n=e.child,Zs=Vi()),null!==n)t:for(t=n;;){if(5===t.tag)o=t.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=t.stateNode,i=null!=(i=t.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=nn("display",i));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState&&null===t.memoizedState.dehydrated){(o=t.child.sibling).return=t,t=o;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}return void _s(e);case 19:return void _s(e)}throw Error(a(163))}function _s(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new as),e.forEach((function(e){var r=Ru.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}var ks="function"==typeof WeakMap?WeakMap:Map;function xs(t,e,n){(n=ho(n,null)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Js||(Js=!0,tu=r),ss(t,e)},n}function Es(t,e,n){(n=ho(n,null)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var i=e.value;n.payload=function(){return ss(t,e),r(i)}}var o=t.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===eu?eu=new Set([this]):eu.add(this),ss(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var Cs,Ss=Math.ceil,Os=Z.ReactCurrentDispatcher,Ts=Z.ReactCurrentOwner,As=0,Ns=8,Ps=16,js=32,Ls=0,Is=1,Ds=2,Ms=3,Rs=4,qs=5,Bs=As,Fs=null,zs=null,Us=0,Hs=Ls,Ws=null,Vs=1073741823,Ks=1073741823,Qs=null,$s=0,Gs=!1,Zs=0,Ys=500,Xs=null,Js=!1,tu=null,eu=null,nu=!1,ru=null,iu=90,ou=null,au=0,su=null,uu=0;function lu(){return(Bs&(Ps|js))!==As?1073741821-(Vi()/10|0):0!==uu?uu:uu=1073741821-(Vi()/10|0)}function cu(t,e,n){if(!(2&(e=e.mode)))return 1073741823;var r=Ki();if(!(4&e))return 99===r?1073741823:1073741822;if((Bs&Ps)!==As)return Us;if(null!==n)t=Ji(t,0|n.timeoutMs||5e3,250);else switch(r){case 99:t=1073741823;break;case 98:t=Ji(t,150,100);break;case 97:case 96:t=Ji(t,5e3,250);break;case 95:t=2;break;default:throw Error(a(326))}return null!==Fs&&t===Us&&--t,t}function fu(t,e){if(50<au)throw au=0,su=null,Error(a(185));if(null!==(t=du(t,e))){var n=Ki();1073741823===e?(Bs&Ns)!==As&&(Bs&(Ps|js))===As?mu(t):(hu(t),Bs===As&&Yi()):hu(t),(4&Bs)===As||98!==n&&99!==n||(null===ou?ou=new Map([[t,e]]):(void 0===(n=ou.get(t))||n>e)&&ou.set(t,e))}}function du(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var r=t.return,i=null;if(null===r&&3===t.tag)i=t.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<e&&(r.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Fs===i&&(xu(e),Hs===Rs&&Zu(i,Us)),Yu(i,e)),i}function pu(t){var e=t.lastExpiredTime;if(0!==e)return e;if(!Gu(t,e=t.firstPendingTime))return e;var n=t.lastPingedTime;return 2>=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function hu(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Zi(mu.bind(null,t));else{var e=pu(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=lu();if(1073741823===e?r=99:1===e||2===e?r=95:r=0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=r)return;n!==qi&&Ai(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Zi(mu.bind(null,t)):Gi(r,vu.bind(null,t),{timeout:10*(1073741821-e)-Vi()}),t.callbackNode=e}}}function vu(t,e){if(uu=0,e)return Xu(t,e=lu()),hu(t),null;var n=pu(t);if(0!==n){if(e=t.callbackNode,(Bs&(Ps|js))!==As)throw Error(a(327));if(ju(),t===Fs&&n===Us||bu(t,n),null!==zs){var r=Bs;Bs|=Ps;for(var i=_u();;)try{Cu();break}catch(e){wu(t,e)}if(oo(),Bs=r,Os.current=i,Hs===Is)throw e=Ws,bu(t,n),Zu(t,n),hu(t),e;if(null===zs)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=Hs,Fs=null,r){case Ls:case Is:throw Error(a(345));case Ds:Xu(t,2<n?2:n);break;case Ms:if(Zu(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=Tu(i)),1073741823===Vs&&10<(i=Zs+Ys-Vi())){if(Gs){var o=t.lastPingedTime;if(0===o||o>=n){t.lastPingedTime=n,bu(t,n);break}}if(0!==(o=pu(t))&&o!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=Cn(Au.bind(null,t),i);break}Au(t);break;case Rs:if(Zu(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=Tu(i)),Gs&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,bu(t,n);break}if(0!==(i=pu(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==Ks?r=10*(1073741821-Ks)-Vi():1073741823===Vs?r=0:(r=10*(1073741821-Vs)-5e3,0>(r=(i=Vi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ss(r/1960))-r)&&(r=n)),10<r){t.timeoutHandle=Cn(Au.bind(null,t),r);break}Au(t);break;case qs:if(1073741823!==Vs&&null!==Qs){o=Vs;var s=Qs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Vi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Zu(t,n),t.timeoutHandle=Cn(Au.bind(null,t),r);break}}Au(t);break;default:throw Error(a(329))}if(hu(t),t.callbackNode===e)return vu.bind(null,t)}}return null}function mu(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,(Bs&(Ps|js))!==As)throw Error(a(327));if(ju(),t===Fs&&e===Us||bu(t,e),null!==zs){var n=Bs;Bs|=Ps;for(var r=_u();;)try{Eu();break}catch(e){wu(t,e)}if(oo(),Bs=n,Os.current=r,Hs===Is)throw n=Ws,bu(t,e),Zu(t,e),hu(t),n;if(null!==zs)throw Error(a(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,Fs=null,Au(t),hu(t)}return null}function gu(t,e){var n=Bs;Bs|=1;try{return t(e)}finally{(Bs=n)===As&&Yi()}}function yu(t,e){var n=Bs;Bs&=-2,Bs|=Ns;try{return t(e)}finally{(Bs=n)===As&&Yi()}}function bu(t,e){t.finishedWork=null,t.finishedExpirationTime=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,Sn(n)),null!==zs)for(n=zs.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&ki();break;case 3:Bo(),hi(yi),hi(gi);break;case 5:zo(r);break;case 4:Bo();break;case 13:case 19:hi(Uo);break;case 10:ao(r)}n=n.return}Fs=t,zs=Hu(t.current,null),Us=e,Hs=Ls,Ws=null,Ks=Vs=1073741823,Qs=null,$s=0,Gs=!1}function wu(t,e){for(;;){try{if(oo(),Vo.current=ka,Yo)for(var n=$o.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Qo=0,Zo=Go=$o=null,Yo=!1,null===zs||null===zs.return)return Hs=Is,Ws=e,zs=null;t:{var i=t,o=zs.return,a=zs,s=e;if(e=Us,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;if(!(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=!!(1&Uo.current),f=o;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!c)}}if(d){var v=f.updateQueue;if(null===v){var m=new Set;m.add(u),f.updateQueue=m}else v.add(u);if(!(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=ho(1073741823,null);g.tag=2,vo(a,g)}a.expirationTime=1073741823;break t}s=void 0,a=e;var y=i.pingCache;if(null===y?(y=i.pingCache=new ks,s=new Set,y.set(u,s)):void 0===(s=y.get(u))&&(s=new Set,y.set(u,s)),!s.has(a)){s.add(a);var b=Mu.bind(null,i,u,a);u.then(b,b)}f.effectTag|=4096,f.expirationTime=e;break t}f=f.return}while(null!==f);s=Error((mt(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+gt(a))}Hs!==qs&&(Hs=Ds),s=os(s,a),f=o;do{switch(f.tag){case 3:u=s,f.effectTag|=4096,f.expirationTime=e,mo(f,xs(f,u,e));break t;case 1:u=s;var w=f.type,_=f.stateNode;if(!(64&f.effectTag||"function"!=typeof w.getDerivedStateFromError&&(null===_||"function"!=typeof _.componentDidCatch||null!==eu&&eu.has(_)))){f.effectTag|=4096,f.expirationTime=e,mo(f,Es(f,u,e));break t}}f=f.return}while(null!==f)}zs=Ou(zs)}catch(t){e=t;continue}break}}function _u(){var t=Os.current;return Os.current=ka,null===t?ka:t}function ku(t,e){t<Vs&&2<t&&(Vs=t),null!==e&&t<Ks&&2<t&&(Ks=t,Qs=e)}function xu(t){t>$s&&($s=t)}function Eu(){for(;null!==zs;)zs=Su(zs)}function Cu(){for(;null!==zs&&!Bi();)zs=Su(zs)}function Su(t){var e=Cs(t.alternate,t,Us);return t.memoizedProps=t.pendingProps,null===e&&(e=Ou(t)),Ts.current=null,e}function Ou(t){zs=t;do{var e=zs.alternate;if(t=zs.return,2048&zs.effectTag){if(null!==(e=is(zs)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}else{if(e=rs(e,zs,Us),1===Us||1!==zs.childExpirationTime){for(var n=0,r=zs.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}zs.childExpirationTime=n}if(null!==e)return e;null!==t&&!(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=zs.firstEffect),null!==zs.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=zs.firstEffect),t.lastEffect=zs.lastEffect),1<zs.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=zs:t.firstEffect=zs,t.lastEffect=zs))}if(null!==(e=zs.sibling))return e;zs=t}while(null!==zs);return Hs===Ls&&(Hs=qs),null}function Tu(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function Au(t){var e=Ki();return $i(99,Nu.bind(null,t,e)),null}function Nu(t,e){do{ju()}while(null!==ru);if((Bs&(Ps|js))!==As)throw Error(a(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(a(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=Tu(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===Fs&&(zs=Fs=null,Us=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Bs;Bs|=js,Ts.current=null,_n=Qe;var s=vn();if(mn(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else t:{var l=(u=(u=s.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{u.nodeType,f.nodeType}catch(t){u=null;break t}var d=0,p=-1,h=-1,v=0,m=0,g=s,y=null;e:for(;;){for(var b;g!==u||0!==c&&3!==g.nodeType||(p=d+c),g!==f||0!==l&&3!==g.nodeType||(h=d+l),3===g.nodeType&&(d+=g.nodeValue.length),null!==(b=g.firstChild);)y=g,g=b;for(;;){if(g===s)break e;if(y===u&&++v===c&&(p=d),y===f&&++m===l&&(h=d),null!==(b=g.nextSibling))break;y=(g=y).parentNode}g=b}u=-1===p||-1===h?null:{start:p,end:h}}else u=null}u=u||{start:0,end:0}}else u=null;kn={activeElementDetached:null,focusedElem:s,selectionRange:u},Qe=!1,Xs=i;do{try{Pu()}catch(t){if(null===Xs)throw Error(a(330));Du(Xs,t),Xs=Xs.nextEffect}}while(null!==Xs);Xs=i;do{try{for(s=t,u=e;null!==Xs;){var w=Xs.effectTag;if(16&w&&zt(Xs.stateNode,""),128&w){var _=Xs.alternate;if(null!==_){var k=_.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&w){case 2:ms(Xs),Xs.effectTag&=-3;break;case 6:ms(Xs),Xs.effectTag&=-3,ws(Xs.alternate,Xs);break;case 1024:Xs.effectTag&=-1025;break;case 1028:Xs.effectTag&=-1025,ws(Xs.alternate,Xs);break;case 4:ws(Xs.alternate,Xs);break;case 8:bs(s,c=Xs,u),hs(c)}Xs=Xs.nextEffect}}catch(t){if(null===Xs)throw Error(a(330));Du(Xs,t),Xs=Xs.nextEffect}}while(null!==Xs);if(k=kn,_=vn(),w=k.focusedElem,u=k.selectionRange,_!==w&&w&&w.ownerDocument&&hn(w.ownerDocument.documentElement,w)){null!==u&&mn(w)&&(_=u.start,void 0===(k=u.end)&&(k=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(k,w.value.length)):(k=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(k=k.getSelection(),c=w.textContent.length,s=Math.min(u.start,c),u=void 0===u.end?s:Math.min(u.end,c),!k.extend&&s>u&&(c=u,u=s,s=c),c=pn(w,s),f=pn(w,u),c&&f&&(1!==k.rangeCount||k.anchorNode!==c.node||k.anchorOffset!==c.offset||k.focusNode!==f.node||k.focusOffset!==f.offset)&&((_=_.createRange()).setStart(c.node,c.offset),k.removeAllRanges(),s>u?(k.addRange(_),k.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),k.addRange(_))))),_=[];for(k=w;k=k.parentNode;)1===k.nodeType&&_.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<_.length;w++)(k=_[w]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Qe=!!_n,kn=_n=null,t.current=n,Xs=i;do{try{for(w=t;null!==Xs;){var x=Xs.effectTag;if(36&x&&ds(w,Xs.alternate,Xs),128&x){_=void 0;var E=Xs.ref;if(null!==E){var C=Xs.stateNode;Xs.tag,_=C,"function"==typeof E?E(_):E.current=_}}Xs=Xs.nextEffect}}catch(t){if(null===Xs)throw Error(a(330));Du(Xs,t),Xs=Xs.nextEffect}}while(null!==Xs);Xs=null,Fi(),Bs=o}else t.current=n;if(nu)nu=!1,ru=t,iu=e;else for(Xs=i;null!==Xs;)e=Xs.nextEffect,Xs.nextEffect=null,Xs=e;if(0===(e=t.firstPendingTime)&&(eu=null),1073741823===e?t===su?au++:(au=0,su=t):au=0,"function"==typeof qu&&qu(n.stateNode,r),hu(t),Js)throw Js=!1,t=tu,tu=null,t;return(Bs&Ns)!==As||Yi(),null}function Pu(){for(;null!==Xs;){var t=Xs.effectTag;256&t&&ls(Xs.alternate,Xs),!(512&t)||nu||(nu=!0,Gi(97,(function(){return ju(),null}))),Xs=Xs.nextEffect}}function ju(){if(90!==iu){var t=97<iu?97:iu;return iu=90,$i(t,Lu)}}function Lu(){if(null===ru)return!1;var t=ru;if(ru=null,(Bs&(Ps|js))!==As)throw Error(a(331));var e=Bs;for(Bs|=js,t=t.current.firstEffect;null!==t;){try{var n=t;if(512&n.effectTag)switch(n.tag){case 0:case 11:case 15:case 22:cs(5,n),fs(5,n)}}catch(e){if(null===t)throw Error(a(330));Du(t,e)}n=t.nextEffect,t.nextEffect=null,t=n}return Bs=e,Yi(),!0}function Iu(t,e,n){vo(t,e=xs(t,e=os(n,e),1073741823)),null!==(t=du(t,1073741823))&&hu(t)}function Du(t,e){if(3===t.tag)Iu(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){Iu(n,t,e);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===eu||!eu.has(r))){vo(n,t=Es(n,t=os(e,t),1073741823)),null!==(n=du(n,1073741823))&&hu(n);break}}n=n.return}}function Mu(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),Fs===t&&Us===n?Hs===Rs||Hs===Ms&&1073741823===Vs&&Vi()-Zs<Ys?bu(t,Us):Gs=!0:Gu(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,hu(t)))}function Ru(t,e){var n=t.stateNode;null!==n&&n.delete(e),0===(e=0)&&(e=cu(e=lu(),t,null)),null!==(t=du(t,e))&&hu(t)}Cs=function(t,e,n){var r=e.expirationTime;if(null!==t){var i=e.pendingProps;if(t.memoizedProps!==i||yi.current)Ma=!0;else{if(r<n){switch(Ma=!1,e.tag){case 3:Va(e),Ia();break;case 5:if(Fo(e),4&e.mode&&1!==n&&i.hidden)return e.expirationTime=e.childExpirationTime=1,null;break;case 1:_i(e.type)&&Ci(e);break;case 4:qo(e,e.stateNode.containerInfo);break;case 10:r=e.memoizedProps.value,i=e.type._context,vi(eo,i._currentValue),i._currentValue=r;break;case 13:if(null!==e.memoizedState)return 0!==(r=e.child.childExpirationTime)&&r>=n?Ya(t,e,n):(vi(Uo,1&Uo.current),null!==(e=es(t,e,n))?e.sibling:null);vi(Uo,1&Uo.current);break;case 19:if(r=e.childExpirationTime>=n,64&t.effectTag){if(r)return ts(t,e,n);e.effectTag|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null),vi(Uo,Uo.current),!r)return null}return es(t,e,n)}Ma=!1}}else Ma=!1;switch(e.expirationTime=0,e.tag){case 2:if(r=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,i=wi(e,gi.current),uo(e,n),i=ta(null,e,r,t,i,n),e.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,_i(r)){var o=!0;Ci(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,fo(e);var s=r.getDerivedStateFromProps;"function"==typeof s&&_o(e,r,s,t),i.updater=ko,e.stateNode=i,i._reactInternalFiber=e,So(e,r,t,n),e=Wa(null,e,r,!0,o,n)}else e.tag=0,Ra(null,e,i,n),e=e.child;return e;case 16:t:{if(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,e.type=i,o=e.tag=function(t){if("function"==typeof t)return Uu(t)?1:0;if(null!=t){if((t=t.$$typeof)===ut)return 11;if(t===ft)return 14}return 2}(i),t=to(i,t),o){case 0:e=Ua(null,e,i,t,n);break t;case 1:e=Ha(null,e,i,t,n);break t;case 11:e=qa(null,e,i,t,n);break t;case 14:e=Ba(null,e,i,to(i.type,t),r,n);break t}throw Error(a(306,i,""))}return e;case 0:return r=e.type,i=e.pendingProps,Ua(t,e,r,i=e.elementType===r?i:to(r,i),n);case 1:return r=e.type,i=e.pendingProps,Ha(t,e,r,i=e.elementType===r?i:to(r,i),n);case 3:if(Va(e),r=e.updateQueue,null===t||null===r)throw Error(a(282));if(r=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,po(t,e),go(e,r,null,n),(r=e.memoizedState.element)===i)Ia(),e=es(t,e,n);else{if((i=e.stateNode.hydrate)&&(Oa=On(e.stateNode.containerInfo.firstChild),Sa=e,i=Ta=!0),i)for(n=jo(e,null,r,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ra(t,e,r,n),Ia();e=e.child}return e;case 5:return Fo(e),null===t&&Pa(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,s=i.children,En(r,i)?s=null:null!==o&&En(r,o)&&(e.effectTag|=16),za(t,e),4&e.mode&&1!==n&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Ra(t,e,s,n),e=e.child),e;case 6:return null===t&&Pa(e),null;case 13:return Ya(t,e,n);case 4:return qo(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=Po(e,null,r,n):Ra(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,qa(t,e,r,i=e.elementType===r?i:to(r,i),n);case 7:return Ra(t,e,e.pendingProps,n),e.child;case 8:case 12:return Ra(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value;var u=e.type._context;if(vi(eo,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=Hr(u,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!yi.current){e=es(t,e,n);break t}}else for(null!==(u=e.child)&&(u.return=e);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&c.observedBits&o){1===u.tag&&((c=ho(n,null)).tag=2,vo(u,c)),u.expirationTime<n&&(u.expirationTime=n),null!==(c=u.alternate)&&c.expirationTime<n&&(c.expirationTime=n),so(u.return,n),l.expirationTime<n&&(l.expirationTime=n);break}c=c.next}}else s=10===u.tag&&u.type===e.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===e){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Ra(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=(o=e.pendingProps).children,uo(e,n),r=r(i=lo(i,o.unstable_observedBits)),e.effectTag|=1,Ra(t,e,r,n),e.child;case 14:return o=to(i=e.type,e.pendingProps),Ba(t,e,i,o=to(i.type,o),r,n);case 15:return Fa(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:to(r,i),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,_i(r)?(t=!0,Ci(e)):t=!1,uo(e,n),Eo(e,r,i),So(e,r,i,n),Wa(null,e,r,!0,t,n);case 19:return ts(t,e,n)}throw Error(a(156,e.tag))};var qu=null,Bu=null;function Fu(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function zu(t,e,n,r){return new Fu(t,e,n,r)}function Uu(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Hu(t,e){var n=t.alternate;return null===n?((n=zu(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{expirationTime:e.expirationTime,firstContext:e.firstContext,responders:e.responders},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Wu(t,e,n,r,i,o){var s=2;if(r=t,"function"==typeof t)Uu(t)&&(s=1);else if("string"==typeof t)s=5;else t:switch(t){case nt:return Vu(n.children,i,o,e);case st:s=8,i|=7;break;case rt:s=8,i|=1;break;case it:return(t=zu(12,n,e,8|i)).elementType=it,t.type=it,t.expirationTime=o,t;case lt:return(t=zu(13,n,e,i)).type=lt,t.elementType=lt,t.expirationTime=o,t;case ct:return(t=zu(19,n,e,i)).elementType=ct,t.expirationTime=o,t;default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case ot:s=10;break t;case at:s=9;break t;case ut:s=11;break t;case ft:s=14;break t;case dt:s=16,r=null;break t;case pt:s=22;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=zu(s,n,e,i)).elementType=t,e.type=r,e.expirationTime=o,e}function Vu(t,e,n,r){return(t=zu(7,t,r,e)).expirationTime=n,t}function Ku(t,e,n){return(t=zu(6,t,null,e)).expirationTime=n,t}function Qu(t,e,n){return(e=zu(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function $u(t,e,n){this.tag=e,this.current=null,this.containerInfo=t,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Gu(t,e){var n=t.firstSuspendedTime;return t=t.lastSuspendedTime,0!==n&&n>=e&&t<=e}function Zu(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;n<e&&(t.firstSuspendedTime=e),(r>e||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Yu(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function Xu(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Ju(t,e,n,r){var i=e.current,o=lu(),s=bo.suspense;o=cu(o,i,s);t:if(n){e:{if(te(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(_i(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var l=n.type;if(_i(l)){n=Ei(n,l,u);break t}}n=u}else n=mi;return null===e.context?e.context=n:e.pendingContext=n,(e=ho(o,s)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),vo(i,e),fu(i,o),o}function tl(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function el(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function nl(t,e){el(t,e),(t=t.alternate)&&el(t,e)}function rl(t,e,n){var r=new $u(t,e,n=null!=n&&!0===n.hydrate),i=zu(3,null,null,2===e?7:1===e?3:0);r.current=i,i.stateNode=r,fo(i),t[jn]=r.current,n&&0!==e&&function(t,e){var n=Jt(e);Oe.forEach((function(t){ve(t,e,n)})),Te.forEach((function(t){ve(t,e,n)}))}(0,9===t.nodeType?t:t.ownerDocument),this._internalRoot=r}function il(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function ol(t,e,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var t=tl(a);s.call(t)}}Ju(e,a,t,i)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new rl(t,0,e?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var u=i;i=function(){var t=tl(a);u.call(t)}}yu((function(){Ju(e,a,t,i)}))}return tl(a)}function al(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!il(e))throw Error(a(200));return function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:et,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}(t,e,null,n)}rl.prototype.render=function(t){Ju(t,this._internalRoot,null,null)},rl.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Ju(null,t,null,(function(){e[jn]=null}))},me=function(t){if(13===t.tag){var e=Ji(lu(),150,100);fu(t,e),nl(t,e)}},ge=function(t){13===t.tag&&(fu(t,3),nl(t,3))},ye=function(t){if(13===t.tag){var e=lu();fu(t,e=cu(e,t,null)),nl(t,e)}},T=function(t,e,n){switch(e){case"input":if(Ct(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=Mn(r);if(!i)throw Error(a(90));_t(r),Ct(r,i)}}}break;case"textarea":jt(t,n);break;case"select":null!=(e=n.value)&&At(t,!!n.multiple,e,!1)}},I=gu,D=function(t,e,n,r,i){var o=Bs;Bs|=4;try{return $i(98,t.bind(null,e,n,r,i))}finally{(Bs=o)===As&&Yi()}},M=function(){(Bs&(1|Ps|js))===As&&(function(){if(null!==ou){var t=ou;ou=null,t.forEach((function(t,e){Xu(e,t),hu(e)})),Yi()}}(),ju())},R=function(t,e){var n=Bs;Bs|=2;try{return t(e)}finally{(Bs=n)===As&&Yi()}};var sl={Events:[In,Dn,Mn,S,x,Hn,function(t){oe(t,Un)},j,L,Xe,ue,ju,{current:!1}]};!function(t){var e=t.findFiberByHostInstance;(function(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);qu=function(t){try{e.onCommitFiberRoot(n,t,void 0,!(64&~t.current.effectTag))}catch(t){}},Bu=function(t){try{e.onCommitFiberUnmount(n,t)}catch(t){}}}catch(t){}})(i({},t,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Z.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=re(t))?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Ln,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(void 0===e){if("function"==typeof t.render)throw Error(a(188));throw Error(a(268,Object.keys(t)))}return t=null===(t=re(e))?null:t.stateNode},e.render=function(t,e,n){if(!il(e))throw Error(a(200));return ol(null,t,e,!1,n)}},78325:(t,e,n)=>{"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(76067)},14403:(t,e,n)=>{"use strict";var r=n(21664),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function g(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||y}function _(){}function k(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(g(85));this.updater.enqueueSetState(this,t,e,"setState")},w.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},_.prototype=w.prototype;var x=k.prototype=new _;x.constructor=k,r(x,w.prototype),x.isPureReactComponent=!0;var E={current:null},C=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function O(t,e,n){var r,i={},a=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)C.call(e,r)&&!S.hasOwnProperty(r)&&(i[r]=e[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in u=t.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:t,key:a,ref:s,props:i,_owner:E.current}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===o}var A=/\/+/g,N=[];function P(t,e,n,r){if(N.length){var i=N.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function j(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>N.length&&N.push(t)}function L(t,e,n,r){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var s=!1;if(null===t)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case o:case a:s=!0}}if(s)return n(r,t,""===e?"."+D(t,0):e),1;if(s=0,e=""===e?".":e+":",Array.isArray(t))for(var u=0;u<t.length;u++){var l=e+D(i=t[u],u);s+=L(i,l,n,r)}else if(null===t||"object"!=typeof t?l=null:l="function"==typeof(l=m&&t[m]||t["@@iterator"])?l:null,"function"==typeof l)for(t=l.call(t),u=0;!(i=t.next()).done;)s+=L(i=i.value,l=e+D(i,u++),n,r);else if("object"===i)throw n=""+t,Error(g(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return s}function I(t,e,n){return null==t?0:L(t,"",e,n)}function D(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function M(t,e){t.func.call(t.context,e,t.count++)}function R(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?q(t,r,n,(function(t){return t})):null!=t&&(T(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(A,"$&/")+"/")+n)),r.push(t))}function q(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),I(t,R,e=P(e,o,r,i)),j(e)}var B={current:null};function F(){var t=B.current;if(null===t)throw Error(g(321));return t}var z={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return q(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;I(t,M,e=P(null,null,e,n)),j(e)},count:function(t){return I(t,(function(){return null}),null)},toArray:function(t){var e=[];return q(t,e,null,(function(t){return t})),e},only:function(t){if(!T(t))throw Error(g(143));return t}},e.Component=w,e.Fragment=s,e.Profiler=l,e.PureComponent=k,e.StrictMode=u,e.Suspense=p,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,e.cloneElement=function(t,e,n){if(null==t)throw Error(g(267,t));var i=r({},t.props),a=t.key,s=t.ref,u=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,u=E.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)C.call(e,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===e[c]&&void 0!==l?l[c]:e[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:o,type:t.type,key:a,ref:s,props:i,_owner:u}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:f,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:t},t.Consumer=t},e.createElement=O,e.createFactory=function(t){var e=O.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:d,render:t}},e.isValidElement=T,e.lazy=function(t){return{$$typeof:v,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:h,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return F().useCallback(t,e)},e.useContext=function(t,e){return F().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return F().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return F().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return F().useLayoutEffect(t,e)},e.useMemo=function(t,e){return F().useMemo(t,e)},e.useReducer=function(t,e,n){return F().useReducer(t,e,n)},e.useRef=function(t){return F().useRef(t)},e.useState=function(t){return F().useState(t)},e.version="16.14.0"},63696:(t,e,n)=>{"use strict";t.exports=n(14403)},77699:(t,e)=>{"use strict";var n,r,i,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,l=function(){if(null!==s)try{var t=e.unstable_now();s(!0,t),s=null}catch(t){throw setTimeout(l,0),t}},c=Date.now();e.unstable_now=function(){return Date.now()-c},n=function(t){null!==s?setTimeout(n,0,t):(s=t,setTimeout(l,0))},r=function(t,e){u=setTimeout(t,e)},i=function(){clearTimeout(u)},o=function(){return!1},a=e.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)e.unstable_now=function(){return f.now()};else{var m=d.now();e.unstable_now=function(){return d.now()-m}}var g=!1,y=null,b=-1,w=5,_=0;o=function(){return e.unstable_now()>=_},a=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<t?Math.floor(1e3/t):5};var k=new MessageChannel,x=k.port2;k.port1.onmessage=function(){if(null!==y){var t=e.unstable_now();_=t+w;try{y(!0,t)?x.postMessage(null):(g=!1,y=null)}catch(t){throw x.postMessage(null),t}}else g=!1},n=function(t){y=t,g||(g=!0,x.postMessage(null))},r=function(t,n){b=p((function(){t(e.unstable_now())}),n)},i=function(){h(b),b=-1}}function E(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<O(i,e)))break t;t[r]=e,t[n]=i,n=r}}function C(t){return void 0===(t=t[0])?null:t}function S(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,a=t[o],s=o+1,u=t[s];if(void 0!==a&&0>O(a,n))void 0!==u&&0>O(u,a)?(t[r]=u,t[s]=n,r=s):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==u&&0>O(u,n)))break t;t[r]=u,t[s]=n,r=s}}}return e}return null}function O(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var T=[],A=[],N=1,P=null,j=3,L=!1,I=!1,D=!1;function M(t){for(var e=C(A);null!==e;){if(null===e.callback)S(A);else{if(!(e.startTime<=t))break;S(A),e.sortIndex=e.expirationTime,E(T,e)}e=C(A)}}function R(t){if(D=!1,M(t),!I)if(null!==C(T))I=!0,n(q);else{var e=C(A);null!==e&&r(R,e.startTime-t)}}function q(t,n){I=!1,D&&(D=!1,i()),L=!0;var a=j;try{for(M(n),P=C(T);null!==P&&(!(P.expirationTime>n)||t&&!o());){var s=P.callback;if(null!==s){P.callback=null,j=P.priorityLevel;var u=s(P.expirationTime<=n);n=e.unstable_now(),"function"==typeof u?P.callback=u:P===C(T)&&S(T),M(n)}else S(T);P=C(T)}if(null!==P)var l=!0;else{var c=C(A);null!==c&&r(R,c.startTime-n),l=!1}return l}finally{P=null,j=a,L=!1}}function B(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var F=a;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){I||L||(I=!0,n(q))},e.unstable_getCurrentPriorityLevel=function(){return j},e.unstable_getFirstCallbackNode=function(){return C(T)},e.unstable_next=function(t){switch(j){case 1:case 2:case 3:var e=3;break;default:e=j}var n=j;j=e;try{return t()}finally{j=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=F,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=j;j=t;try{return e()}finally{j=n}},e.unstable_scheduleCallback=function(t,o,a){var s=e.unstable_now();if("object"==typeof a&&null!==a){var u=a.delay;u="number"==typeof u&&0<u?s+u:s,a="number"==typeof a.timeout?a.timeout:B(t)}else a=B(t),u=s;return t={id:N++,callback:o,priorityLevel:t,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>s?(t.sortIndex=u,E(A,t),null===C(T)&&t===C(A)&&(D?i():D=!0,r(R,u-s))):(t.sortIndex=a,E(T,t),I||L||(I=!0,n(q))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();M(t);var n=C(T);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<P.expirationTime||o()},e.unstable_wrapCallback=function(t){var e=j;return function(){var n=j;j=e;try{return t.apply(this,arguments)}finally{j=n}}}},91434:(t,e,n)=>{"use strict";t.exports=n(77699)},17340:(t,e,n)=>{t.exports=n(17639)},17639:function(t,e){var n;!function(){"use strict";var r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y",ẞ:"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z",စျ:"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw",သြော:"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},i=["်","ް"],o={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်",က်:"et","ိုက်":"aik","ောက်":"auk",င်:"in","ိုင်":"aing","ောင်":"aung",စ်:"it",ည်:"i",တ်:"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it",ဒ်:"d","ိုဒ်":"ok","ုဒ်":"ait",န်:"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un",ပ်:"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut",န်ုပ်:"nub",မ်:"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un",ယ်:"e","ိုလ်":"ol",ဉ်:"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},a={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},s={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},u=[";","?",":","@","&","=","+","$",",","/"].join(""),l=[";","?",":","@","&","=","+","$",","].join(""),c=[".","!","~","*","'","(",")"].join(""),f=function(t,e){var n,f,h,v,m,g,y,b,w,_,k,x,E,C,S="-",O="",T="",A=!0,N={},P="";if("string"!=typeof t)return"";if("string"==typeof e&&(S=e),y=s.en,b=a.en,"object"==typeof e)for(k in n=e.maintainCase||!1,N=e.custom&&"object"==typeof e.custom?e.custom:N,h=+e.truncate>1&&e.truncate||!1,v=e.uric||!1,m=e.uricNoSlash||!1,g=e.mark||!1,A=!1!==e.symbols&&!1!==e.lang,S=e.separator||S,v&&(P+=u),m&&(P+=l),g&&(P+=c),y=e.lang&&s[e.lang]&&A?s[e.lang]:A?s.en:{},b=e.lang&&a[e.lang]?a[e.lang]:!1===e.lang||!0===e.lang?{}:a.en,e.titleCase&&"number"==typeof e.titleCase.length&&Array.prototype.toString.call(e.titleCase)?(e.titleCase.forEach((function(t){N[t+""]=t+""})),f=!0):f=!!e.titleCase,e.custom&&"number"==typeof e.custom.length&&Array.prototype.toString.call(e.custom)&&e.custom.forEach((function(t){N[t+""]=t+""})),Object.keys(N).forEach((function(e){var n;n=e.length>1?new RegExp("\\b"+d(e)+"\\b","gi"):new RegExp(d(e),"gi"),t=t.replace(n,N[e])})),N)P+=k;for(P=d(P+=S),E=!1,C=!1,_=0,x=(t=t.replace(/(^\s+|\s+$)/g,"")).length;_<x;_++)k=t[_],p(k,N)?E=!1:b[k]?(k=E&&b[k].match(/[A-Za-z0-9]/)?" "+b[k]:b[k],E=!1):k in r?(_+1<x&&i.indexOf(t[_+1])>=0?(T+=k,k=""):!0===C?(k=o[T]+r[k],T=""):k=E&&r[k].match(/[A-Za-z0-9]/)?" "+r[k]:r[k],E=!1,C=!1):k in o?(T+=k,k="",_===x-1&&(k=o[T]),C=!0):!y[k]||v&&-1!==u.indexOf(k)||m&&-1!==l.indexOf(k)?(!0===C?(k=o[T]+k,T="",C=!1):E&&(/[A-Za-z0-9]/.test(k)||O.substr(-1).match(/A-Za-z0-9]/))&&(k=" "+k),E=!1):(k=E||O.substr(-1).match(/[A-Za-z0-9]/)?S+y[k]:y[k],k+=void 0!==t[_+1]&&t[_+1].match(/[A-Za-z0-9]/)?S:"",E=!0),O+=k.replace(new RegExp("[^\\w\\s"+P+"_-]","g"),S);return f&&(O=O.replace(/(\w)(\S*)/g,(function(t,e,n){var r=e.toUpperCase()+(null!==n?n:"");return Object.keys(N).indexOf(r.toLowerCase())<0?r:r.toLowerCase()}))),O=O.replace(/\s+/g,S).replace(new RegExp("\\"+S+"+","g"),S).replace(new RegExp("(^\\"+S+"+|\\"+S+"+$)","g"),""),h&&O.length>h&&(w=O.charAt(h)===S,O=O.slice(0,h),w||(O=O.slice(0,O.lastIndexOf(S)))),n||f||(O=O.toLowerCase()),O},d=function(t){return t.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},p=function(t,e){for(var n in e)if(e[n]===t)return!0};t.exports?(t.exports=f,t.exports.createSlug=function(t){return function(e){return f(e,t)}}):void 0===(n=function(){return f}.apply(e,[]))||(t.exports=n)}()},27580:(t,e,n)=>{var r=n(63696),i=n(9294);function o(t,e){i.Object.is(t)&&(t=i.struct(t));var n="subtype"===t.meta.kind;var r={},o=n?t.meta.type:t;if("struct"===o.meta.kind||"interface"===o.meta.kind){var a=o.meta.props;Object.keys(a).forEach((function(t){var e,n=a[t];(e=function(){}).tcomb=n,r[t]=e}))}else 0;return n&&(r.__subtype__=function(){},r.__subtype__.predicate=t.meta.predicate),r}var a=i.irreducible("ReactElement",r.isValidElement),s=i.irreducible("ReactNode",(function(t){return i.Str.is(t)||i.Num.is(t)||a.is(t)||i.list(s).is(t)})),u=i.irreducible("ReactChild",(function(t){return s.is(t)||i.Bool.is(t)||i.Nil.is(t)})),l=i.irreducible("ReactChildren",(function(t){return u.is(t)||i.list(l).is(t)}));i.ReactElement=a,i.ReactNode=s,i.ReactChild=u,i.ReactChildren=l,t.exports={t:i,propTypes:o,props:function(t,e){return function(e){e.propTypes=o(t)}},ReactElement:a,ReactNode:s,ReactChild:u,ReactChildren:l,ReactElementT:a,ReactNodeT:s,ReactChildT:u,ReactChildrenT:l}},9294:(t,e,n)=>{"use strict";var r=n(6366),i=r.stringify,o={},a=r.struct({message:r.Any,actual:r.Any,expected:r.Any,path:r.list(r.union([r.String,r.Number]))},"ValidationError");function s(t,e,n,o){return r.Function.is(e.getValidationErrorMessage)?e.getValidationErrorMessage(t,n,o):function(t,e,n){var o=r.getTypeName(e),a=n.length?"/"+n.join("/")+": "+o:o;return"Invalid value "+i(t)+" supplied to "+a}(t,e,n)}a.of=function(t,e,n,r){return new a({message:s(t,e,n,r),actual:t,expected:e,path:n})};var u=r.struct({errors:r.list(a),value:r.Any},"ValidationResult");function l(t,e,n){n=n||{};var i=r.Array.is(n)?n:n.path||[];return new u(c(t,e,i,n))}function c(t,e,n,i){return r.isType(e)?f[e.meta.kind](t,e,n,i):f.es6classes(t,e,n,i)}u.prototype.isValid=function(){return!this.errors.length},u.prototype.firstError=function(){return this.isValid()?null:this.errors[0]},u.prototype.toString=function(){return this.isValid()?"[ValidationResult, true, "+i(this.value)+"]":"[ValidationResult, false, ("+this.errors.map((function(t){return i(t.message)})).join(", ")+")]"};var f=l.validators={};f.es6classes=function(t,e,n,r){return{value:t,errors:t instanceof e?[]:[a.of(t,e,n,r.context)]}},f.irreducible=f.enums=function(t,e,n,r){return{value:t,errors:e.is(t)?[]:[a.of(t,e,n,r.context)]}},f.list=function(t,e,n,i){if(!r.Array.is(t))return{value:t,errors:[a.of(t,e,n,i.context)]};for(var o={value:[],errors:[]},s=0,u=t.length;s<u;s++){var l=c(t[s],e.meta.type,n.concat(s),i);o.value[s]=l.value,o.errors=o.errors.concat(l.errors)}return o},f.subtype=function(t,e,n,r){var i=c(t,e.meta.type,n,r);return i.errors.length||e.meta.predicate(i.value)||(i.errors=[a.of(t,e,n,r.context)]),i},f.maybe=function(t,e,n,i){return r.Nil.is(t)?{value:t,errors:[]}:c(t,e.meta.type,n,i)},f.struct=function(t,e,n,i){if(!r.Object.is(t))return{value:t,errors:[a.of(t,e,n,i.context)]};if(e.is(t))return{value:t,errors:[]};var s={value:{},errors:[]},u=e.meta.props,l=e.meta.defaultProps||o;for(var f in u)if(u.hasOwnProperty(f)){var d=t[f];void 0===d&&(d=l[f]);var p=c(d,u[f],n.concat(f),i);s.value[f]=p.value,s.errors=s.errors.concat(p.errors)}if(i.hasOwnProperty("strict")?i.strict:e.meta.strict)for(var h in t)t.hasOwnProperty(h)&&!u.hasOwnProperty(h)&&s.errors.push(a.of(t[h],r.Nil,n.concat(h),i.context));return s.errors.length||(s.value=new e(s.value)),s},f.tuple=function(t,e,n,i){var o=e.meta.types,s=o.length;if(!r.Array.is(t)||t.length>s)return{value:t,errors:[a.of(t,e,n,i.context)]};for(var u={value:[],errors:[]},l=0;l<s;l++){var f=c(t[l],o[l],n.concat(l),i);u.value[l]=f.value,u.errors=u.errors.concat(f.errors)}return u},f.dict=function(t,e,n,i){if(!r.Object.is(t))return{value:t,errors:[a.of(t,e,n,i.context)]};var o={value:{},errors:[]};for(var s in t)if(t.hasOwnProperty(s)){var u=n.concat(s),l=c(s,e.meta.domain,u,i),f=c(t[s],e.meta.codomain,u,i);o.value[s]=f.value,o.errors=o.errors.concat(l.errors,f.errors)}return o},f.union=function(t,e,n,i){var o=e.dispatch(t);return r.Function.is(o)?c(t,o,n.concat(e.meta.types.indexOf(o)),i):{value:t,errors:[a.of(t,e,n,i.context)]}},f.intersection=function(t,e,n,r){for(var i=e.meta.types,o=i.length,s={value:t,errors:[]},u=0,l=0;l<o;l++){"struct"===i[l].meta.kind&&u++;var f=c(t,i[l],n,r);s.errors=s.errors.concat(f.errors)}return u>1&&s.errors.push(a.of(t,e,n,r.context)),s},f.interface=function(t,e,n,i){if(!r.Object.is(t))return{value:t,errors:[a.of(t,e,n,i.context)]};var o={value:{},errors:[]},s=e.meta.props;for(var u in s){var l=c(t[u],s[u],n.concat(u),i);o.value[u]=l.value,o.errors=o.errors.concat(l.errors)}if(i.hasOwnProperty("strict")?i.strict:e.meta.strict)for(var f in t)s.hasOwnProperty(f)||r.Nil.is(t[f])||o.errors.push(a.of(t[f],r.Nil,n.concat(f),i.context));return o},r.mixin(r,{ValidationError:a,ValidationResult:u,validate:l}),t.exports=r},6366:(t,e,n)=>{var r=n(97862);r.Any=n(26840),r.Array=n(11103),r.Boolean=n(36250),r.Date=n(84012),r.Error=n(7016),r.Function=n(89784),r.Nil=n(27869),r.Number=n(43301),r.Integer=n(8008),r.IntegerT=r.Integer,r.Object=n(87583),r.RegExp=n(32553),r.String=n(71145),r.Type=n(85920),r.TypeT=r.Type,r.Arr=r.Array,r.Bool=r.Boolean,r.Dat=r.Date,r.Err=r.Error,r.Func=r.Function,r.Num=r.Number,r.Obj=r.Object,r.Re=r.RegExp,r.Str=r.String,r.dict=n(97896),r.declare=n(84076),r.enums=n(12104),r.irreducible=n(33972),r.list=n(9184),r.maybe=n(60082),r.refinement=n(11653),r.struct=n(78213),r.tuple=n(26512),r.union=n(40413),r.func=n(46394),r.intersection=n(24801),r.subtype=r.refinement,r.inter=n(75045),r.interface=r.inter,r.assert=r,r.update=n(63573),r.mixin=n(54775),r.isType=n(87692),r.is=n(87604),r.getTypeName=n(78441),r.match=n(31091),t.exports=r},26840:(t,e,n)=>{var r=n(33972);t.exports=r("Any",(function(){return!0}))},11103:(t,e,n)=>{var r=n(33972),i=n(8035);t.exports=r("Array",i)},36250:(t,e,n)=>{var r=n(33972),i=n(55990);t.exports=r("Boolean",i)},84012:(t,e,n)=>{var r=n(33972);t.exports=r("Date",(function(t){return t instanceof Date}))},7016:(t,e,n)=>{var r=n(33972);t.exports=r("Error",(function(t){return t instanceof Error}))},89784:(t,e,n)=>{var r=n(33972),i=n(70036);t.exports=r("Function",i)},8008:(t,e,n)=>{var r=n(11653),i=n(43301);t.exports=r(i,(function(t){return t%1==0}),"Integer")},27869:(t,e,n)=>{var r=n(33972),i=n(66945);t.exports=r("Nil",i)},43301:(t,e,n)=>{var r=n(33972),i=n(12129);t.exports=r("Number",i)},87583:(t,e,n)=>{var r=n(33972),i=n(99683);t.exports=r("Object",i)},32553:(t,e,n)=>{var r=n(33972);t.exports=r("RegExp",(function(t){return t instanceof RegExp}))},71145:(t,e,n)=>{var r=n(33972),i=n(29805);t.exports=r("String",i)},85920:(t,e,n)=>{var r=n(33972),i=n(87692);t.exports=r("Type",i)},97862:(t,e,n)=>{var r=n(70036),i=n(66945),o=n(13692),a=n(2175);function s(t,e){!0!==t&&(r(e)?e=e():i(e)&&(e='Assert failed (turn on "Pause on exceptions" in your Source panel)'),s.fail(e))}s.fail=o,s.stringify=a,t.exports=s},61629:t=>{t.exports=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},86208:(t,e,n)=>{var r=n(87692);n(49733),n(97862),n(2175);t.exports=function(t,e,n){return r(t)?t.meta.identity||"object"!=typeof e||null===e?t(e,n):new t(e,n):e}},84076:(t,e,n)=>{n(97862),n(79531),n(87692),n(66945);var r=n(54775),i=n(78441),o=n(96081),a=1;t.exports=function(t){var e;function n(t,n){return e(t,n)}return n.define=function(i){return o(i)&&n.hasOwnProperty("dispatch")&&(i.dispatch=n.dispatch),r(n,e=i,!0),t&&(e.displayName=n.displayName=t,n.meta.name=t),n.meta.identity=e.meta.identity,n.prototype=e.prototype,n},n.displayName=t||i(n)+"$"+a++,n.meta={identity:!1},n.prototype=null,n}},14299:(t,e,n)=>{var r=n(87692);function i(t){return r(t)&&"subtype"===t.meta.kind}function o(t){return i(t)?[t.meta.predicate].concat(o(t.meta.type)):[]}function a(t){return i(t)?a(t.meta.type):t}t.exports=function(t){return{predicates:o(t),unrefinedType:a(t)}}},97896:(t,e,n)=>{var r=n(97862),i=(n(79531),n(70036),n(78441)),o=n(31114),a=n(99683),s=n(86208),u=n(87604);function l(t,e){return"{[key: "+i(t)+"]: "+i(e)+"}"}function c(t,e,n){var c=n||l(t,e),f=(i(t),i(e),o(t)&&o(e));function d(n,r){if(f)return n;var i=!0,o={};for(var a in n)if(n.hasOwnProperty(a)){var u=n[a=s(t,a,null)],l=s(e,u,null);i=i&&u===l,o[a]=l}return i&&(o=n),o}return d.meta={kind:"dict",domain:t,codomain:e,name:n,identity:f},d.displayName=c,d.is=function(n){if(!a(n))return!1;for(var r in n)if(n.hasOwnProperty(r)&&(!u(r,t)||!u(n[r],e)))return!1;return!0},d.update=function(t,e){return d(r.update(t,e))},d}c.getDefaultName=l,t.exports=c},12104:(t,e,n)=>{var r=n(97862),i=(n(79531),n(59214),n(12129)),o=n(29805);n(99683);function a(t){return Object.keys(t).map((function(t){return r.stringify(t)})).join(" | ")}function s(t,e){var n=e||a(t);function r(t,e){return t}return r.meta={kind:"enums",map:t,name:e,identity:!0},r.displayName=n,r.is=function(e){return(o(e)||i(e))&&t.hasOwnProperty(e)},r}s.of=function(t,e){t=o(t)?t.split(" "):t;var n={};return t.forEach((function(t){n[t]=t})),s(n,e)},s.getDefaultName=a,t.exports=s},54984:(t,e,n)=>{n(97862),n(70036),n(8035);var r=n(54775),i=(n(2249),n(51249),n(99683)),o=n(11653),a=n(14299);t.exports=function(t,e,n){var s={},u={},l=[],c={};e.forEach((function(t,e){var n,o,f,d=a(t),p=d.unrefinedType;n=l,o=d.predicates,Array.prototype.push.apply(n,o),r(s,i(f=p)?f:f.meta.props),r(u,p.prototype),r(c,function(t){return i(t)?null:t.meta.defaultProps}(p),!0)})),(n=t.getOptions(n)).defaultProps=r(c,n.defaultProps,!0);var f=function(t,e,n){var r=t.reduce((function(t,e){return o(t,e)}),e);return n&&(r.displayName=n,r.meta.name=n),r}(l,t(s,{strict:n.strict,defaultProps:n.defaultProps}),n.name);return r(f.prototype,u),f}},13692:t=>{t.exports=function(t){throw new TypeError("[tcomb] "+t)}},59214:(t,e,n)=>{var r=n(97862),i=n(78441);t.exports=function(t,e){r(!(t instanceof e),(function(){return"Cannot use the new operator to instantiate the type "+i(e)}))}},46394:(t,e,n)=>{n(97862),n(79531);var r=n(89784),i=n(8035),o=(n(9184),n(99683)),a=n(86208),s=(n(66945),n(55990),n(26512),n(49733)),u=n(78441),l=n(87692);function c(t,e){return"("+t.map(u).join(", ")+") => "+u(e)}function f(t){return r.is(t)&&o(t.instrumentation)}function d(t){for(var e=t.length,n=!1,r=e-1;r>=0;r--){var i=t[r];if(!l(i)||"maybe"!==i.meta.kind)return r+1;n=!0}return n?0:e}function p(t,e,n){t=i(t)?t:[t];var r=n||c(t,e),o=t.length;d(t);function u(t,e){return f(t)?t:u.of(t)}return u.meta={kind:"func",domain:t,codomain:e,name:n,identity:!0},u.displayName=r,u.is=function(n){return f(n)&&n.instrumentation.domain.length===o&&n.instrumentation.domain.every((function(e,n){return e===t[n]}))&&n.instrumentation.codomain===e},u.of=function(n,r){if(u.is(n))return n;function i(){var i=Array.prototype.slice.call(arguments),s=i.length;if(r&&s<o){0;var u=Function.prototype.bind.apply(n,[this].concat(i));return p(t.slice(s),e).of(u,!0)}return a(e,n.apply(this,i))}return i.instrumentation={domain:t,codomain:e,f:n},i.displayName=s(n),i},u}p.getDefaultName=c,p.getOptionalArgumentsIndex=d,t.exports=p},55049:(t,e,n)=>{var r=n(78441);t.exports=function(t){return"{"+Object.keys(t).map((function(e){return e+": "+r(t[e])})).join(", ")+"}"}},49733:t=>{t.exports=function(t){return t.displayName||t.name||"<function"+t.length+">"}},78441:(t,e,n)=>{var r=n(87692),i=n(49733);t.exports=function(t){return r(t)?t.displayName:i(t)}},75045:(t,e,n)=>{var r=n(97862),i=(n(79531),n(71145),n(89784),n(55990),n(99683)),o=n(66945),a=n(86208),s=(n(78441),n(97896),n(55049)),u=n(31114),l=n(87604),c=n(54984),f=n(61629);function d(t,e){return c(h,t,e)}function p(t){return i(t)||(t=o(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=h.strict),t}function h(t,e){var n=(e=p(e)).name,i=e.strict;var c=n||s(t),h=Object.keys(t).map((function(e){return t[e]})).every(u);function v(e,n){if(h)return e;var r=!0,i=h?{}:f({},e);for(var o in t){var s=t[o],u=e[o],l=a(s,u,null);r=r&&u===l,i[o]=l}return r&&(i=e),i}return v.meta={kind:"interface",props:t,name:n,identity:h,strict:i},v.displayName=c,v.is=function(e){if(o(e))return!1;if(i)for(var n in e)if(!t.hasOwnProperty(n))return!1;for(var r in t)if(!l(e[r],t[r]))return!1;return!0},v.update=function(t,e){return v(r.update(t,e))},v.extend=function(t,e){return d([v].concat(t),e)},v}h.strict=!1,h.getOptions=p,h.getDefaultName=s,h.extend=d,t.exports=h},24801:(t,e,n)=>{var r=n(97862),i=(n(79531),n(70036),n(8035),n(31114),n(87604)),o=n(78441),a=n(31114);function s(t){return t.map(o).join(" & ")}function u(t,e){var n=e||s(t),o=t.every(a);function u(t,e){return t}return u.meta={kind:"intersection",types:t,name:e,identity:o},u.displayName=n,u.is=function(e){return t.every((function(t){return i(e,t)}))},u.update=function(t,e){return u(r.update(t,e))},u}u.getDefaultName=s,t.exports=u},33972:(t,e,n)=>{n(97862),n(29805),n(70036),n(59214);t.exports=function(t,e){function n(t,e){return t}return n.meta={kind:"irreducible",name:t,predicate:e,identity:!0},n.displayName=t,n.is=e,n}},87604:(t,e,n)=>{var r=n(87692);t.exports=function(t,e){return r(e)?e.is(t):t instanceof e}},8035:t=>{t.exports=function(t){return Array.isArray?Array.isArray(t):t instanceof Array}},55990:t=>{t.exports=function(t){return!0===t||!1===t}},70036:t=>{t.exports=function(t){return"function"==typeof t}},31114:(t,e,n)=>{n(97862),n(36250);var r=n(87692);n(78441);t.exports=function(t){return!r(t)||t.meta.identity}},51249:(t,e,n)=>{var r=n(87692);t.exports=function(t){return r(t)&&"interface"===t.meta.kind}},54118:(t,e,n)=>{var r=n(87692);t.exports=function(t){return r(t)&&"maybe"===t.meta.kind}},66945:t=>{t.exports=function(t){return null==t}},12129:t=>{t.exports=function(t){return"number"==typeof t&&isFinite(t)&&!isNaN(t)}},99683:(t,e,n)=>{var r=n(66945),i=n(8035);t.exports=function(t){return!r(t)&&"object"==typeof t&&!i(t)}},29805:t=>{t.exports=function(t){return"string"==typeof t}},2249:(t,e,n)=>{var r=n(87692);t.exports=function(t){return r(t)&&"struct"===t.meta.kind}},87692:(t,e,n)=>{var r=n(70036),i=n(99683);t.exports=function(t){return r(t)&&i(t.meta)}},79531:(t,e,n)=>{var r=n(66945),i=n(29805);t.exports=function(t){return r(t)||i(t)}},96081:(t,e,n)=>{var r=n(87692);t.exports=function(t){return r(t)&&"union"===t.meta.kind}},9184:(t,e,n)=>{var r=n(97862),i=(n(79531),n(70036),n(78441)),o=n(31114),a=n(86208),s=n(87604),u=n(8035);function l(t){return"Array<"+i(t)+">"}function c(t,e){var n=e||l(t),c=(i(t),o(t));function f(e,n){if(c)return e;for(var r=!0,i=[],o=0,s=e.length;o<s;o++){var u=e[o],l=a(t,u,null);r=r&&u===l,i.push(l)}return r&&(i=e),i}return f.meta={kind:"list",type:t,name:e,identity:c},f.displayName=n,f.is=function(e){return u(e)&&e.every((function(e){return s(e,t)}))},f.update=function(t,e){return f(r.update(t,e))},f}c.getDefaultName=l,t.exports=c},31091:(t,e,n)=>{var r=n(97862),i=n(70036),o=n(87692),a=n(26840);t.exports=function(t){for(var e,n,s,u=1,l=arguments.length;u<l;)if(e=arguments[u],n=arguments[u+1],i(s=arguments[u+2])&&!o(s)?u+=3:(s=n,n=a.is,u+=2),e.is(t)&&n(t))return s(t);r.fail("Match error")}},60082:(t,e,n)=>{n(97862),n(79531),n(70036);var r=n(54118),i=n(31114),o=n(26840),a=n(86208),s=n(27869),u=(n(59214),n(87604)),l=n(78441);function c(t){return"?"+l(t)}function f(t,e){if(r(t)||t===o||t===s)return t;var n=e||c(t),l=i(t);function f(e,n){return s.is(e)?e:a(t,e,n)}return f.meta={kind:"maybe",type:t,name:e,identity:l},f.displayName=n,f.is=function(e){return s.is(e)||u(e,t)},f}f.getDefaultName=c,t.exports=f},54775:(t,e,n)=>{var r=n(66945);n(97862);t.exports=function(t,e,n){if(r(e))return t;for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}},11653:(t,e,n)=>{var r=n(97862),i=(n(79531),n(70036),n(59214),n(31114)),o=n(86208),a=n(87604),s=n(78441),u=n(49733);function l(t,e){return"{"+s(t)+" | "+u(e)+"}"}function c(t,e,n){var s=n||l(t,e),u=i(t);function c(e,n){return o(t,e,n)}return c.meta={kind:"subtype",type:t,predicate:e,name:n,identity:u},c.displayName=s,c.is=function(n){return a(n,t)&&e(n)},c.update=function(t,e){return c(r.update(t,e))},c}c.getDefaultName=l,t.exports=c},2175:(t,e,n)=>{var r=n(49733);function i(t,e){return"function"==typeof e?r(e):e}t.exports=function(t){try{return JSON.stringify(t,i,2)}catch(e){return String(t)}}},78213:(t,e,n)=>{var r=n(97862),i=(n(79531),n(71145),n(89784),n(55990),n(99683)),o=n(66945),a=n(86208),s=(n(78441),n(97896),n(55049)),u=n(54984);function l(t){return"Struct"+s(t)}function c(t,e){return u(d,t,e)}function f(t){return i(t)||(t=o(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=d.strict),t.hasOwnProperty("defaultProps")||(t.defaultProps={}),t}function d(t,e){var n=(e=f(e)).name,i=e.strict,o=e.defaultProps;var s=n||l(t);function u(e,n){if(u.is(e))return e;if(!(this instanceof u))return new u(e,n);for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],s=e[r];void 0===s&&(s=o[r]),this[r]=a(i,s,null)}}return u.meta={kind:"struct",props:t,name:n,identity:!1,strict:i,defaultProps:o},u.displayName=s,u.is=function(t){return t instanceof u},u.update=function(t,e){return new u(r.update(t,e))},u.extend=function(t,e){return c([u].concat(t),e)},u}d.strict=!1,d.getOptions=f,d.getDefaultName=l,d.extend=c,t.exports=d},26512:(t,e,n)=>{var r=n(97862),i=(n(79531),n(70036),n(78441)),o=n(31114),a=n(8035),s=n(86208),u=n(87604);function l(t){return"["+t.map(i).join(", ")+"]"}function c(t,e){var n=e||l(t),i=t.every(o);function c(e,n){if(i)return e;for(var r=!0,o=[],a=0,u=t.length;a<u;a++){var l=t[a],c=e[a],f=s(l,c,null);r=r&&c===f,o.push(f)}return r&&(o=e),o}return c.meta={kind:"tuple",types:t,name:e,identity:i},c.displayName=n,c.is=function(e){return a(e)&&e.length===t.length&&t.every((function(t,n){return u(e[n],t)}))},c.update=function(t,e){return c(r.update(t,e))},c}c.getDefaultName=l,t.exports=c},40413:(t,e,n)=>{var r=n(97862),i=(n(79531),n(70036),n(78441)),o=n(31114),a=(n(8035),n(86208)),s=n(87604),u=(n(59214),n(96081)),l=n(66945);function c(t){return t.map(i).join(" | ")}function f(t,e){var n=e||c(t),i=t.every(o);function f(t,e){if(i)return t;var n=f.dispatch(t);return!n&&f.is(t)?t:a(n,t,e)}return f.meta={kind:"union",types:t,name:e,identity:i},f.displayName=n,f.is=function(e){return t.some((function(t){return s(e,t)}))},f.dispatch=function(e){for(var n=0,r=t.length;n<r;n++){var i=t[n];if(u(i)){var o=i.dispatch(e);if(!l(o))return o}else if(s(e,i))return i}},f.update=function(t,e){return f(r.update(t,e))},f}f.getDefaultName=c,t.exports=f},63573:(t,e,n)=>{n(97862);var r=n(99683),i=(n(70036),n(8035)),o=(n(12129),n(61629));function a(t){return r(t)?t instanceof Date||t instanceof RegExp?t:o({},t):i(t)?t.concat():t}function s(t){return l.commands.hasOwnProperty(t)}function u(t){return l.commands[t]}function l(t,e){var n,r=t,i=!1;for(var o in e)e.hasOwnProperty(o)&&(s(o)?(n=u(o)(e[o],r))!==t?(i=!0,r=n):r=t:(r===t&&(r=a(t)),n=l(r[o],e[o]),i=i||n!==r[o],r[o]=n));return i?r:t}l.commands={$apply:function(t,e){return t(e)},$push:function(t,e){return t.length>0?e.concat(t):e},$remove:function(t,e){if(t.length>0){e=a(e);for(var n=0,r=t.length;n<r;n++)delete e[t[n]]}return e},$set:function(t){return t},$splice:function(t,e){return t.length>0?(e=a(e),t.reduce((function(t,e){return t.splice.apply(t,e),t}),e)):e},$swap:function(t,e){if(t.from!==t.to){var n=(e=a(e))[t.to];e[t.to]=e[t.from],e[t.from]=n}return e},$unshift:function(t,e){return t.length>0?t.concat(e):e},$merge:function(t,e){var n=!1,r=a(e);for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i],n=n||r[i]!==e[i]);return n?r:e}},t.exports=l},7258:function(t,e,n){var r,i;!function(o,a){"use strict";t.exports?t.exports=a():void 0===(i="function"==typeof(r=a)?r.call(e,n,e,t):r)||(t.exports=i)}(0,(function(t){"use strict";var e=t&&t.IPv6;return{best:function(t){var e,n,r=t.toLowerCase().split(":"),i=r.length,o=8;for(""===r[0]&&""===r[1]&&""===r[2]?(r.shift(),r.shift()):""===r[0]&&""===r[1]?r.shift():""===r[i-1]&&""===r[i-2]&&r.pop(),-1!==r[(i=r.length)-1].indexOf(".")&&(o=7),e=0;e<i&&""!==r[e];e++);if(e<o)for(r.splice(e,1,"0000");r.length<o;)r.splice(e,0,"0000");for(var a=0;a<o;a++){n=r[a].split("");for(var s=0;s<3&&("0"===n[0]&&n.length>1);s++)n.splice(0,1);r[a]=n.join("")}var u=-1,l=0,c=0,f=-1,d=!1;for(a=0;a<o;a++)d?"0"===r[a]?c+=1:(d=!1,c>l&&(u=f,l=c)):"0"===r[a]&&(d=!0,f=a,c=1);c>l&&(u=f,l=c),l>1&&r.splice(u,l,""),i=r.length;var p="";for(""===r[0]&&(p=":"),a=0;a<i&&(p+=r[a],a!==i-1);a++)p+=":";return""===r[i-1]&&(p+=":"),p},noConflict:function(){return t.IPv6===this&&(t.IPv6=e),this}}}))},98028:function(t,e,n){var r,i;!function(o,a){"use strict";t.exports?t.exports=a():void 0===(i="function"==typeof(r=a)?r.call(e,n,e,t):r)||(t.exports=i)}(0,(function(t){"use strict";var e=t&&t.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;var r=t.lastIndexOf(".",e-1);if(r<=0||r>=e-1)return!1;var i=n.list[t.slice(e+1)];return!!i&&i.indexOf(" "+t.slice(r+1,e)+" ")>=0},is:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;if(t.lastIndexOf(".",e-1)>=0)return!1;var r=n.list[t.slice(e+1)];return!!r&&r.indexOf(" "+t.slice(0,e)+" ")>=0},get:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return null;var r=t.lastIndexOf(".",e-1);if(r<=0||r>=e-1)return null;var i=n.list[t.slice(e+1)];return i?i.indexOf(" "+t.slice(r+1,e)+" ")<0?null:t.slice(r+1):null},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=e),this}};return n}))},68949:function(t,e,n){var r,i,o;!function(a,s){"use strict";t.exports?t.exports=s(n(1288),n(7258),n(98028)):(i=[n(1288),n(7258),n(98028)],void 0===(o="function"==typeof(r=s)?r.apply(e,i):r)||(t.exports=o))}(0,(function(t,e,n,r){"use strict";var i=r&&r.URI;function o(t,e){var n=arguments.length>=1;if(!(this instanceof o))return n?arguments.length>=2?new o(t,e):new o(t):new o;if(void 0===t){if(n)throw new TypeError("undefined is not a valid argument for URI");t="undefined"!=typeof location?location.href+"":""}if(null===t&&n)throw new TypeError("null is not a valid argument for URI");return this.href(t),void 0!==e?this.absoluteTo(e):this}o.version="1.19.1";var a=o.prototype,s=Object.prototype.hasOwnProperty;function u(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function l(t){return void 0===t?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function c(t){return"Array"===l(t)}function f(t,e){var n,r,i={};if("RegExp"===l(e))i=null;else if(c(e))for(n=0,r=e.length;n<r;n++)i[e[n]]=!0;else i[e]=!0;for(n=0,r=t.length;n<r;n++){(i&&void 0!==i[t[n]]||!i&&e.test(t[n]))&&(t.splice(n,1),r--,n--)}return t}function d(t,e){var n,r;if(c(e)){for(n=0,r=e.length;n<r;n++)if(!d(t,e[n]))return!1;return!0}var i=l(e);for(n=0,r=t.length;n<r;n++)if("RegExp"===i){if("string"==typeof t[n]&&t[n].match(e))return!0}else if(t[n]===e)return!0;return!1}function p(t,e){if(!c(t)||!c(e))return!1;if(t.length!==e.length)return!1;t.sort(),e.sort();for(var n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}function h(t){return t.replace(/^\/+|\/+$/g,"")}function v(t){return escape(t)}function m(t){return encodeURIComponent(t).replace(/[!'()*]/g,v).replace(/\*/g,"%2A")}o._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:o.preventInvalidHostname,duplicateQueryParameters:o.duplicateQueryParameters,escapeQuerySpace:o.escapeQuerySpace}},o.preventInvalidHostname=!1,o.duplicateQueryParameters=!1,o.escapeQuerySpace=!0,o.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,o.idn_expression=/[^a-z0-9\._-]/i,o.punycode_expression=/(xn--)/i,o.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,o.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,o.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(t){if(t&&t.nodeName){var e=t.nodeName.toLowerCase();if("input"!==e||"image"===t.type)return o.domAttributes[e]}},o.encode=m,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=m,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(t,e){var n=o.encode(t+"");return void 0===e&&(e=o.escapeQuerySpace),e?n.replace(/%20/g,"+"):n},o.decodeQuery=function(t,e){t+="",void 0===e&&(e=o.escapeQuerySpace);try{return o.decode(e?t.replace(/\+/g,"%20"):t)}catch(e){return t}};var g,y={encode:"encode",decode:"decode"},b=function(t,e){return function(n){try{return o[e](n+"").replace(o.characters[t][e].expression,(function(n){return o.characters[t][e].map[n]}))}catch(t){return n}}};for(g in y)o[g+"PathSegment"]=b("pathname",y[g]),o[g+"UrnPathSegment"]=b("urnpath",y[g]);var w=function(t,e,n){return function(r){var i;i=n?function(t){return o[e](o[n](t))}:o[e];for(var a=(r+"").split(t),s=0,u=a.length;s<u;s++)a[s]=i(a[s]);return a.join(t)}};function _(t){return function(e,n){return void 0===e?this._parts[t]||"":(this._parts[t]=e||null,this.build(!n),this)}}function k(t,e){return function(n,r){return void 0===n?this._parts[t]||"":(null!==n&&(n+="").charAt(0)===e&&(n=n.substring(1)),this._parts[t]=n,this.build(!r),this)}}o.decodePath=w("/","decodePathSegment"),o.decodeUrnPath=w(":","decodeUrnPathSegment"),o.recodePath=w("/","encodePathSegment","decode"),o.recodeUrnPath=w(":","encodeUrnPathSegment","decode"),o.encodeReserved=b("reserved","encode"),o.parse=function(t,e){var n;return e||(e={preventInvalidHostname:o.preventInvalidHostname}),(n=t.indexOf("#"))>-1&&(e.fragment=t.substring(n+1)||null,t=t.substring(0,n)),(n=t.indexOf("?"))>-1&&(e.query=t.substring(n+1)||null,t=t.substring(0,n)),"//"===t.substring(0,2)?(e.protocol=null,t=t.substring(2),t=o.parseAuthority(t,e)):(n=t.indexOf(":"))>-1&&(e.protocol=t.substring(0,n)||null,e.protocol&&!e.protocol.match(o.protocol_expression)?e.protocol=void 0:"//"===t.substring(n+1,n+3)?(t=t.substring(n+3),t=o.parseAuthority(t,e)):(t=t.substring(n+1),e.urn=!0)),e.path=t,e},o.parseHost=function(t,e){t||(t="");var n,r,i=(t=t.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=t.length),"["===t.charAt(0))n=t.indexOf("]"),e.hostname=t.substring(1,n)||null,e.port=t.substring(n+2,i)||null,"/"===e.port&&(e.port=null);else{var a=t.indexOf(":"),s=t.indexOf("/"),u=t.indexOf(":",a+1);-1!==u&&(-1===s||u<s)?(e.hostname=t.substring(0,i)||null,e.port=null):(r=t.substring(0,i).split(":"),e.hostname=r[0]||null,e.port=r[1]||null)}return e.hostname&&"/"!==t.substring(i).charAt(0)&&(i++,t="/"+t),e.preventInvalidHostname&&o.ensureValidHostname(e.hostname,e.protocol),e.port&&o.ensureValidPort(e.port),t.substring(i)||"/"},o.parseAuthority=function(t,e){return t=o.parseUserinfo(t,e),o.parseHost(t,e)},o.parseUserinfo=function(t,e){var n,r=t.indexOf("/"),i=t.lastIndexOf("@",r>-1?r:t.length-1);return i>-1&&(-1===r||i<r)?(n=t.substring(0,i).split(":"),e.username=n[0]?o.decode(n[0]):null,n.shift(),e.password=n[0]?o.decode(n.join(":")):null,t=t.substring(i+1)):(e.username=null,e.password=null),t},o.parseQuery=function(t,e){if(!t)return{};if(!(t=t.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,r,i,a={},u=t.split("&"),l=u.length,c=0;c<l;c++)n=u[c].split("="),r=o.decodeQuery(n.shift(),e),i=n.length?o.decodeQuery(n.join("="),e):null,s.call(a,r)?("string"!=typeof a[r]&&null!==a[r]||(a[r]=[a[r]]),a[r].push(i)):a[r]=i;return a},o.build=function(t){var e="";return t.protocol&&(e+=t.protocol+":"),t.urn||!e&&!t.hostname||(e+="//"),e+=o.buildAuthority(t)||"","string"==typeof t.path&&("/"!==t.path.charAt(0)&&"string"==typeof t.hostname&&(e+="/"),e+=t.path),"string"==typeof t.query&&t.query&&(e+="?"+t.query),"string"==typeof t.fragment&&t.fragment&&(e+="#"+t.fragment),e},o.buildHost=function(t){var e="";return t.hostname?(o.ip6_expression.test(t.hostname)?e+="["+t.hostname+"]":e+=t.hostname,t.port&&(e+=":"+t.port),e):""},o.buildAuthority=function(t){return o.buildUserinfo(t)+o.buildHost(t)},o.buildUserinfo=function(t){var e="";return t.username&&(e+=o.encode(t.username)),t.password&&(e+=":"+o.encode(t.password)),e&&(e+="@"),e},o.buildQuery=function(t,e,n){var r,i,a,u,l="";for(i in t)if(s.call(t,i)&&i)if(c(t[i]))for(r={},a=0,u=t[i].length;a<u;a++)void 0!==t[i][a]&&void 0===r[t[i][a]+""]&&(l+="&"+o.buildQueryParameter(i,t[i][a],n),!0!==e&&(r[t[i][a]+""]=!0));else void 0!==t[i]&&(l+="&"+o.buildQueryParameter(i,t[i],n));return l.substring(1)},o.buildQueryParameter=function(t,e,n){return o.encodeQuery(t,n)+(null!==e?"="+o.encodeQuery(e,n):"")},o.addQuery=function(t,e,n){if("object"==typeof e)for(var r in e)s.call(e,r)&&o.addQuery(t,r,e[r]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===t[e])return void(t[e]=n);"string"==typeof t[e]&&(t[e]=[t[e]]),c(n)||(n=[n]),t[e]=(t[e]||[]).concat(n)}},o.setQuery=function(t,e,n){if("object"==typeof e)for(var r in e)s.call(e,r)&&o.setQuery(t,r,e[r]);else{if("string"!=typeof e)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");t[e]=void 0===n?null:n}},o.removeQuery=function(t,e,n){var r,i,a;if(c(e))for(r=0,i=e.length;r<i;r++)t[e[r]]=void 0;else if("RegExp"===l(e))for(a in t)e.test(a)&&(t[a]=void 0);else if("object"==typeof e)for(a in e)s.call(e,a)&&o.removeQuery(t,a,e[a]);else{if("string"!=typeof e)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===l(n)?!c(t[e])&&n.test(t[e])?t[e]=void 0:t[e]=f(t[e],n):t[e]!==String(n)||c(n)&&1!==n.length?c(t[e])&&(t[e]=f(t[e],n)):t[e]=void 0:t[e]=void 0}},o.hasQuery=function(t,e,n,r){switch(l(e)){case"String":break;case"RegExp":for(var i in t)if(s.call(t,i)&&e.test(i)&&(void 0===n||o.hasQuery(t,i,n)))return!0;return!1;case"Object":for(var a in e)if(s.call(e,a)&&!o.hasQuery(t,a,e[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(l(n)){case"Undefined":return e in t;case"Boolean":return n===Boolean(c(t[e])?t[e].length:t[e]);case"Function":return!!n(t[e],e,t);case"Array":return!!c(t[e])&&(r?d:p)(t[e],n);case"RegExp":return c(t[e])?!!r&&d(t[e],n):Boolean(t[e]&&t[e].match(n));case"Number":n=String(n);case"String":return c(t[e])?!!r&&d(t[e],n):t[e]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},o.joinPaths=function(){for(var t=[],e=[],n=0,r=0;r<arguments.length;r++){var i=new o(arguments[r]);t.push(i);for(var a=i.segment(),s=0;s<a.length;s++)"string"==typeof a[s]&&e.push(a[s]),a[s]&&n++}if(!e.length||!n)return new o("");var u=new o("").segment(e);return""!==t[0].path()&&"/"!==t[0].path().slice(0,1)||u.path("/"+u.path()),u.normalize()},o.commonPath=function(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n++)if(t.charAt(n)!==e.charAt(n)){n--;break}return n<1?t.charAt(0)===e.charAt(0)&&"/"===t.charAt(0)?"/":"":("/"===t.charAt(n)&&"/"===e.charAt(n)||(n=t.substring(0,n).lastIndexOf("/")),t.substring(0,n+1))},o.withinString=function(t,e,n){n||(n={});var r=n.start||o.findUri.start,i=n.end||o.findUri.end,a=n.trim||o.findUri.trim,s=n.parens||o.findUri.parens,u=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var l=r.exec(t);if(!l)break;var c=l.index;if(n.ignoreHtml){var f=t.slice(Math.max(c-3,0),c);if(f&&u.test(f))continue}for(var d=c+t.slice(c).search(i),p=t.slice(c,d),h=-1;;){var v=s.exec(p);if(!v)break;var m=v.index+v[0].length;h=Math.max(h,m)}if(!((p=h>-1?p.slice(0,h)+p.slice(h).replace(a,""):p.replace(a,"")).length<=l[0].length||n.ignore&&n.ignore.test(p))){var g=e(p,c,d=c+p.length,t);void 0!==g?(g=String(g),t=t.slice(0,c)+g+t.slice(d),r.lastIndex=c+g.length):r.lastIndex=d}}return r.lastIndex=0,t},o.ensureValidHostname=function(e,n){var r=!!e,i=!1;if(!!n&&(i=d(o.hostProtocols,n)),i&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(e&&e.match(o.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(e).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(t){if(t){var e=Number(t);if(!(/^[0-9]+$/.test(e)&&e>0&&e<65536))throw new TypeError('Port "'+t+'" is not a valid port')}},o.noConflict=function(t){if(t){var e={URI:this.noConflict()};return r.URITemplate&&"function"==typeof r.URITemplate.noConflict&&(e.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"==typeof r.IPv6.noConflict&&(e.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"==typeof r.SecondLevelDomains.noConflict&&(e.SecondLevelDomains=r.SecondLevelDomains.noConflict()),e}return r.URI===this&&(r.URI=i),this},a.build=function(t){return!0===t?this._deferred_build=!0:(void 0===t||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new o(this)},a.valueOf=a.toString=function(){return this.build(!1)._string},a.protocol=_("protocol"),a.username=_("username"),a.password=_("password"),a.hostname=_("hostname"),a.port=_("port"),a.query=k("query","?"),a.fragment=k("fragment","#"),a.search=function(t,e){var n=this.query(t,e);return"string"==typeof n&&n.length?"?"+n:n},a.hash=function(t,e){var n=this.fragment(t,e);return"string"==typeof n&&n.length?"#"+n:n},a.pathname=function(t,e){if(void 0===t||!0===t){var n=this._parts.path||(this._parts.hostname?"/":"");return t?(this._parts.urn?o.decodeUrnPath:o.decodePath)(n):n}return this._parts.urn?this._parts.path=t?o.recodeUrnPath(t):"":this._parts.path=t?o.recodePath(t):"/",this.build(!e),this},a.path=a.pathname,a.href=function(t,e){var n;if(void 0===t)return this.toString();this._string="",this._parts=o._parts();var r=t instanceof o,i="object"==typeof t&&(t.hostname||t.path||t.pathname);t.nodeName&&(t=t[o.getDomAttribute(t)]||"",i=!1);if(!r&&i&&void 0!==t.pathname&&(t=t.toString()),"string"==typeof t||t instanceof String)this._parts=o.parse(String(t),this._parts);else{if(!r&&!i)throw new TypeError("invalid input");var a=r?t._parts:t;for(n in a)"query"!==n&&s.call(this._parts,n)&&(this._parts[n]=a[n]);a.query&&this.query(a.query,!1)}return this.build(!e),this},a.is=function(t){var e=!1,r=!1,i=!1,a=!1,s=!1,u=!1,l=!1,c=!this._parts.urn;switch(this._parts.hostname&&(c=!1,r=o.ip4_expression.test(this._parts.hostname),i=o.ip6_expression.test(this._parts.hostname),s=(a=!(e=r||i))&&n&&n.has(this._parts.hostname),u=a&&o.idn_expression.test(this._parts.hostname),l=a&&o.punycode_expression.test(this._parts.hostname)),t.toLowerCase()){case"relative":return c;case"absolute":return!c;case"domain":case"name":return a;case"sld":return s;case"ip":return e;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return i;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return l}return null};var x=a.protocol,E=a.port,C=a.hostname;a.protocol=function(t,e){if(t&&!(t=t.replace(/:(\/\/)?$/,"")).match(o.protocol_expression))throw new TypeError('Protocol "'+t+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return x.call(this,t,e)},a.scheme=a.protocol,a.port=function(t,e){return this._parts.urn?void 0===t?"":this:(void 0!==t&&(0===t&&(t=null),t&&(":"===(t+="").charAt(0)&&(t=t.substring(1)),o.ensureValidPort(t))),E.call(this,t,e))},a.hostname=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==o.parseHost(t,n))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');t=n.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(t,this._parts.protocol)}return C.call(this,t,e)},a.origin=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=o(t);return this.protocol(r.protocol()).authority(r.authority()).build(!e),this},a.host=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},a.authority=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},a.userinfo=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=o.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==t[t.length-1]&&(t+="@"),o.parseUserinfo(t,this._parts),this.build(!e),this},a.resource=function(t,e){var n;return void 0===t?this.path()+this.search()+this.hash():(n=o.parse(t),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!e),this)},a.subdomain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,r),a=new RegExp("^"+u(i));if(t&&"."!==t.charAt(t.length-1)&&(t+="."),-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");return t&&o.ensureValidHostname(t,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,t),this.build(!e),this},a.domain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(e).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!t)throw new TypeError("cannot set domain empty");if(-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(t,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=t;else{var i=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,t)}return this.build(!e),this},a.tld=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(r+1);return!0!==e&&n&&n.list[i.toLowerCase()]&&n.get(this._parts.hostname)||i}var o;if(!t)throw new TypeError("cannot set TLD empty");if(t.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(t))throw new TypeError('TLD "'+t+'" contains characters other than [A-Z0-9]');o=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,t)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");o=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,t)}return this.build(!e),this},a.directory=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return t?o.decodePath(r):r}var i=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,i),s=new RegExp("^"+u(a));return this.is("relative")||(t||(t="/"),"/"!==t.charAt(0)&&(t="/"+t)),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=o.recodePath(t),this._parts.path=this._parts.path.replace(s,t),this.build(!e),this},a.filename=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("string"!=typeof t){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return t?o.decodePathSegment(r):r}var i=!1;"/"===t.charAt(0)&&(t=t.substring(1)),t.match(/\.?\//)&&(i=!0);var a=new RegExp(u(this.filename())+"$");return t=o.recodePath(t),this._parts.path=this._parts.path.replace(a,t),i?this.normalizePath(e):this.build(!e),this},a.suffix=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,i=this.filename(),a=i.lastIndexOf(".");return-1===a?"":(n=i.substring(a+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",t?o.decodePathSegment(r):r)}"."===t.charAt(0)&&(t=t.substring(1));var s,l=this.suffix();if(l)s=t?new RegExp(u(l)+"$"):new RegExp(u("."+l)+"$");else{if(!t)return this;this._parts.path+="."+o.recodePath(t)}return s&&(t=o.recodePath(t),this._parts.path=this._parts.path.replace(s,t)),this.build(!e),this},a.segment=function(t,e,n){var r=this._parts.urn?":":"/",i=this.path(),o="/"===i.substring(0,1),a=i.split(r);if(void 0!==t&&"number"!=typeof t&&(n=e,e=t,t=void 0),void 0!==t&&"number"!=typeof t)throw new Error('Bad segment "'+t+'", must be 0-based integer');if(o&&a.shift(),t<0&&(t=Math.max(a.length+t,0)),void 0===e)return void 0===t?a:a[t];if(null===t||void 0===a[t])if(c(e)){a=[];for(var s=0,u=e.length;s<u;s++)(e[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(h(e[s])))}else(e||"string"==typeof e)&&(e=h(e),""===a[a.length-1]?a[a.length-1]=e:a.push(e));else e?a[t]=h(e):a.splice(t,1);return o&&a.unshift(""),this.path(a.join(r),n)},a.segmentCoded=function(t,e,n){var r,i,a;if("number"!=typeof t&&(n=e,e=t,t=void 0),void 0===e){if(c(r=this.segment(t,e,n)))for(i=0,a=r.length;i<a;i++)r[i]=o.decode(r[i]);else r=void 0!==r?o.decode(r):void 0;return r}if(c(e))for(i=0,a=e.length;i<a;i++)e[i]=o.encode(e[i]);else e="string"==typeof e||e instanceof String?o.encode(e):e;return this.segment(t,e,n)};var S=a.query;return a.query=function(t,e){if(!0===t)return o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof t){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=t.call(this,n);return this._parts.query=o.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this}return void 0!==t&&"string"!=typeof t?(this._parts.query=o.buildQuery(t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this):S.call(this,t,e)},a.setQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof t||t instanceof String)r[t]=void 0!==e?e:null;else{if("object"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var i in t)s.call(t,i)&&(r[i]=t[i])}return this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},a.addQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.addQuery(r,t,void 0===e?null:e),this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},a.removeQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.removeQuery(r,t,e),this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},a.hasQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.hasQuery(r,t,e,n)},a.setSearch=a.setQuery,a.addSearch=a.addQuery,a.removeSearch=a.removeQuery,a.hasSearch=a.hasQuery,a.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},a.normalizeProtocol=function(t){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!t)),this},a.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&t?this._parts.hostname=t.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},a.normalizePort=function(t){return"string"==typeof this._parts.protocol&&this._parts.port===o.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!t)),this},a.normalizePath=function(t){var e,n=this._parts.path;if(!n)return this;if(this._parts.urn)return this._parts.path=o.recodeUrnPath(this._parts.path),this.build(!t),this;if("/"===this._parts.path)return this;var r,i,a="";for("/"!==(n=o.recodePath(n)).charAt(0)&&(e=!0,n="/"+n),"/.."!==n.slice(-3)&&"/."!==n.slice(-2)||(n+="/"),n=n.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),e&&(a=n.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);-1!==(r=n.search(/\/\.\.(\/|$)/));)0!==r?(-1===(i=n.substring(0,r).lastIndexOf("/"))&&(i=r),n=n.substring(0,i)+n.substring(r+3)):n=n.substring(3);return e&&this.is("relative")&&(n=a+n.substring(1)),this._parts.path=n,this.build(!t),this},a.normalizePathname=a.normalizePath,a.normalizeQuery=function(t){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(o.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!t)),this},a.normalizeFragment=function(t){return this._parts.fragment||(this._parts.fragment=null,this.build(!t)),this},a.normalizeSearch=a.normalizeQuery,a.normalizeHash=a.normalizeFragment,a.iso8859=function(){var t=o.encode,e=o.decode;o.encode=escape,o.decode=decodeURIComponent;try{this.normalize()}finally{o.encode=t,o.decode=e}return this},a.unicode=function(){var t=o.encode,e=o.decode;o.encode=m,o.decode=unescape;try{this.normalize()}finally{o.encode=t,o.decode=e}return this},a.readable=function(){var e=this.clone();e.username("").password("").normalize();var n="";if(e._parts.protocol&&(n+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")&&t?(n+=t.toUnicode(e._parts.hostname),e._parts.port&&(n+=":"+e._parts.port)):n+=e.host()),e._parts.hostname&&e._parts.path&&"/"!==e._parts.path.charAt(0)&&(n+="/"),n+=e.path(!0),e._parts.query){for(var r="",i=0,a=e._parts.query.split("&"),s=a.length;i<s;i++){var u=(a[i]||"").split("=");r+="&"+o.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==u[1]&&(r+="="+o.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+r.substring(1)}return n+=o.decodeQuery(e.hash(),!0)},a.absoluteTo=function(t){var e,n,r,i=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t instanceof o||(t=new o(t)),i._parts.protocol)return i;if(i._parts.protocol=t._parts.protocol,this._parts.hostname)return i;for(n=0;r=a[n];n++)i._parts[r]=t._parts[r];return i._parts.path?(".."===i._parts.path.substring(-2)&&(i._parts.path+="/"),"/"!==i.path().charAt(0)&&(e=(e=t.directory())||(0===t.path().indexOf("/")?"/":""),i._parts.path=(e?e+"/":"")+i._parts.path,i.normalizePath())):(i._parts.path=t._parts.path,i._parts.query||(i._parts.query=t._parts.query)),i.build(),i},a.relativeTo=function(t){var e,n,r,i,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t=new o(t).normalize(),e=s._parts,n=t._parts,i=s.path(),a=t.path(),"/"!==i.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(e.protocol===n.protocol&&(e.protocol=null),e.username!==n.username||e.password!==n.password)return s.build();if(null!==e.protocol||null!==e.username||null!==e.password)return s.build();if(e.hostname!==n.hostname||e.port!==n.port)return s.build();if(e.hostname=null,e.port=null,i===a)return e.path="",s.build();if(!(r=o.commonPath(i,a)))return s.build();var u=n.path.substring(r.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return e.path=u+e.path.substring(r.length)||"./",s.build()},a.equals=function(t){var e,n,r,i,a,u=this.clone(),l=new o(t),f={};if(u.normalize(),l.normalize(),u.toString()===l.toString())return!0;if(r=u.query(),i=l.query(),u.query(""),l.query(""),u.toString()!==l.toString())return!1;if(r.length!==i.length)return!1;for(a in e=o.parseQuery(r,this._parts.escapeQuerySpace),n=o.parseQuery(i,this._parts.escapeQuerySpace),e)if(s.call(e,a)){if(c(e[a])){if(!p(e[a],n[a]))return!1}else if(e[a]!==n[a])return!1;f[a]=!0}for(a in n)if(s.call(n,a)&&!f[a])return!1;return!0},a.preventInvalidHostname=function(t){return this._parts.preventInvalidHostname=!!t,this},a.duplicateQueryParameters=function(t){return this._parts.duplicateQueryParameters=!!t,this},a.escapeQuerySpace=function(t){return this._parts.escapeQuerySpace=!!t,this},o}))},1288:function(t,e,n){var r;t=n.nmd(t),function(){e&&e.nodeType,t&&t.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var o,a=2147483647,s=36,u=/^xn--/,l=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,p=String.fromCharCode;function h(t){throw new RangeError(f[t])}function v(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function m(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+v((t=t.replace(c,".")).split("."),e).join(".")}function g(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function y(t){return v(t,(function(t){var e="";return t>65535&&(e+=p((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=p(t)})).join("")}function b(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function w(t,e,n){var r=0;for(t=n?d(t/700):t>>1,t+=d(t/e);t>455;r+=s)t=d(t/35);return d(r+36*t/(t+38))}function _(t){var e,n,r,i,o,u,l,c,f,p,v,m=[],g=t.length,b=0,_=128,k=72;for((n=t.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&h("not-basic"),m.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(o=b,u=1,l=s;i>=g&&h("invalid-input"),((c=(v=t.charCodeAt(i++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:s)>=s||c>d((a-b)/u))&&h("overflow"),b+=c*u,!(c<(f=l<=k?1:l>=k+26?26:l-k));l+=s)u>d(a/(p=s-f))&&h("overflow"),u*=p;k=w(b-o,e=m.length+1,0==o),d(b/e)>a-_&&h("overflow"),_+=d(b/e),b%=e,m.splice(b++,0,_)}return y(m)}function k(t){var e,n,r,i,o,u,l,c,f,v,m,y,_,k,x,E=[];for(y=(t=g(t)).length,e=128,n=0,o=72,u=0;u<y;++u)(m=t[u])<128&&E.push(p(m));for(r=i=E.length,i&&E.push("-");r<y;){for(l=a,u=0;u<y;++u)(m=t[u])>=e&&m<l&&(l=m);for(l-e>d((a-n)/(_=r+1))&&h("overflow"),n+=(l-e)*_,e=l,u=0;u<y;++u)if((m=t[u])<e&&++n>a&&h("overflow"),m==e){for(c=n,f=s;!(c<(v=f<=o?1:f>=o+26?26:f-o));f+=s)x=c-v,k=s-v,E.push(p(b(v+x%k,0))),c=d(x/k);E.push(p(b(c,0))),o=w(n,_,r==i),n=0,++r}++n,++e}return E.join("")}o={version:"1.3.2",ucs2:{decode:g,encode:y},decode:_,encode:k,toASCII:function(t){return m(t,(function(t){return l.test(t)?"xn--"+k(t):t}))},toUnicode:function(t){return m(t,(function(t){return u.test(t)?_(t.slice(4).toLowerCase()):t}))}},void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},93392:function(t,e){var n;!function(e,n){"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(r,i){var o=[],a=o.slice,s=o.concat,u=o.push,l=o.indexOf,c={},f=c.toString,d=c.hasOwnProperty,p={},h="1.11.1",v=function(t,e){return new v.fn.init(t,e)},m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,g=/^-ms-/,y=/-([\da-z])/gi,b=function(t,e){return e.toUpperCase()};function w(t){var e=t.length,n=v.type(t);return"function"!==n&&!v.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t))}v.fn=v.prototype={jquery:h,constructor:v,selector:"",length:0,toArray:function(){return a.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:a.call(this)},pushStack:function(t){var e=v.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return v.each(this,t,e)},map:function(t){return this.pushStack(v.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:u,sort:o.sort,splice:o.splice},v.extend=v.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(i=arguments[s]))for(r in i)t=a[r],a!==(n=i[r])&&(l&&n&&(v.isPlainObject(n)||(e=v.isArray(n)))?(e?(e=!1,o=t&&v.isArray(t)?t:[]):o=t&&v.isPlainObject(t)?t:{},a[r]=v.extend(l,o,n)):void 0!==n&&(a[r]=n));return a},v.extend({expando:"jQuery"+(h+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===v.type(t)},isArray:Array.isArray||function(t){return"array"===v.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!v.isArray(t)&&t-parseFloat(t)>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==v.type(t)||t.nodeType||v.isWindow(t))return!1;try{if(t.constructor&&!d.call(t,"constructor")&&!d.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(p.ownLast)for(e in t)return d.call(t,e);for(e in t);return void 0===e||d.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[f.call(t)]||"object":typeof t},globalEval:function(t){t&&v.trim(t)&&(r.execScript||function(t){r.eval.call(r,t)})(t)},camelCase:function(t){return t.replace(g,"ms-").replace(y,b)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r=0,i=t.length,o=w(t);if(n){if(o)for(;r<i&&!1!==e.apply(t[r],n);r++);else for(r in t)if(!1===e.apply(t[r],n))break}else if(o)for(;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(m,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(w(Object(t))?v.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){var r;if(e){if(l)return l.call(e,t,n);for(r=e.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;)t[i++]=e[r++];if(n!=n)for(;void 0!==e[r];)t[i++]=e[r++];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var r,i=0,o=t.length,a=[];if(w(t))for(;i<o;i++)null!=(r=e(t[i],i,n))&&a.push(r);else for(i in t)null!=(r=e(t[i],i,n))&&a.push(r);return s.apply([],a)},guid:1,proxy:function(t,e){var n,r,i;if("string"==typeof e&&(i=t[e],e=t,t=i),v.isFunction(t))return n=a.call(arguments,2),r=function(){return t.apply(e||this,n.concat(a.call(arguments)))},r.guid=t.guid=t.guid||v.guid++,r},now:function(){return+new Date},support:p}),v.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var _=function(t){var e,n,r,i,o,a,s,u,l,c,f,d,p,h,v,m,g,y,b,w="sizzle"+-new Date,_=t.document,k=0,x=0,E=ot(),C=ot(),S=ot(),O=function(t,e){return t===e&&(f=!0),0},T="undefined",A=1<<31,N={}.hasOwnProperty,P=[],j=P.pop,L=P.push,I=P.push,D=P.slice,M=P.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]===t)return e;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",q="[\\x20\\t\\r\\n\\f]",B="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",F=B.replace("w","w#"),z="\\["+q+"*("+B+")(?:"+q+"*([*^$|!~]?=)"+q+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+q+"*\\]",U=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",H=new RegExp("^"+q+"+|((?:^|[^\\\\])(?:\\\\.)*)"+q+"+$","g"),W=new RegExp("^"+q+"*,"+q+"*"),V=new RegExp("^"+q+"*([>+~]|"+q+")"+q+"*"),K=new RegExp("="+q+"*([^\\]'\"]*?)"+q+"*\\]","g"),Q=new RegExp(U),$=new RegExp("^"+F+"$"),G={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B.replace("w","w*")+")"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+q+"*(even|odd|(([+-]|)(\\d*)n|)"+q+"*(?:([+-]|)"+q+"*(\\d+)|))"+q+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+q+"*((?:-\\d)?\\d*)"+q+"*\\)|)(?=[^-]|$)","i")},Z=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+q+"?|("+q+")|.)","ig"),rt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{I.apply(P=D.call(_.childNodes),_.childNodes),P[_.childNodes.length].nodeType}catch(t){I={apply:P.length?function(t,e){L.apply(t,D.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function it(t,e,r,i){var o,s,l,c,f,h,g,y,k,x;if((e?e.ownerDocument||e:_)!==p&&d(e),r=r||[],!t||"string"!=typeof t)return r;if(1!==(c=(e=e||p).nodeType)&&9!==c)return[];if(v&&!i){if(o=J.exec(t))if(l=o[1]){if(9===c){if(!(s=e.getElementById(l))||!s.parentNode)return r;if(s.id===l)return r.push(s),r}else if(e.ownerDocument&&(s=e.ownerDocument.getElementById(l))&&b(e,s)&&s.id===l)return r.push(s),r}else{if(o[2])return I.apply(r,e.getElementsByTagName(t)),r;if((l=o[3])&&n.getElementsByClassName&&e.getElementsByClassName)return I.apply(r,e.getElementsByClassName(l)),r}if(n.qsa&&(!m||!m.test(t))){if(y=g=w,k=e,x=9===c&&t,1===c&&"object"!==e.nodeName.toLowerCase()){for(h=a(t),(g=e.getAttribute("id"))?y=g.replace(et,"\\$&"):e.setAttribute("id",y),y="[id='"+y+"'] ",f=h.length;f--;)h[f]=y+vt(h[f]);k=tt.test(t)&&pt(e.parentNode)||e,x=h.join(",")}if(x)try{return I.apply(r,k.querySelectorAll(x)),r}catch(t){}finally{g||e.removeAttribute("id")}}}return u(t.replace(H,"$1"),e,r,i)}function ot(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function at(t){return t[w]=!0,t}function st(t){var e=p.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),i=t.length;i--;)r.attrHandle[n[i]]=e}function lt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||A)-(~t.sourceIndex||A);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ct(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function dt(t){return at((function(e){return e=+e,at((function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function pt(t){return t&&typeof t.getElementsByTagName!==T&&t}for(e in n=it.support={},o=it.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=it.setDocument=function(t){var e,i=t?t.ownerDocument||t:_,a=i.defaultView;return i!==p&&9===i.nodeType&&i.documentElement?(p=i,h=i.documentElement,v=!o(i),a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",(function(){d()}),!1):a.attachEvent&&a.attachEvent("onunload",(function(){d()}))),n.attributes=st((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=st((function(t){return t.appendChild(i.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(i.getElementsByClassName)&&st((function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length})),n.getById=st((function(t){return h.appendChild(t).id=w,!i.getElementsByName||!i.getElementsByName(w).length})),n.getById?(r.find.ID=function(t,e){if(typeof e.getElementById!==T&&v){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(t){var e=t.replace(nt,rt);return function(t){return t.getAttribute("id")===e}}):(delete r.find.ID,r.filter.ID=function(t){var e=t.replace(nt,rt);return function(t){var n=typeof t.getAttributeNode!==T&&t.getAttributeNode("id");return n&&n.value===e}}),r.find.TAG=n.getElementsByTagName?function(t,e){if(typeof e.getElementsByTagName!==T)return e.getElementsByTagName(t)}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(typeof e.getElementsByClassName!==T&&v)return e.getElementsByClassName(t)},g=[],m=[],(n.qsa=X.test(i.querySelectorAll))&&(st((function(t){t.innerHTML="<select msallowclip=''><option selected=''></option></select>",t.querySelectorAll("[msallowclip^='']").length&&m.push("[*^$]="+q+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+q+"*(?:value|"+R+")"),t.querySelectorAll(":checked").length||m.push(":checked")})),st((function(t){var e=i.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+q+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=X.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&st((function(t){n.disconnectedMatch=y.call(t,"div"),y.call(t,"[s!='']:x"),g.push("!=",U)})),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),e=X.test(h.compareDocumentPosition),b=e||X.test(h.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},O=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t===i||t.ownerDocument===_&&b(_,t)?-1:e===i||e.ownerDocument===_&&b(_,e)?1:c?M.call(c,t)-M.call(c,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,o=t.parentNode,a=e.parentNode,s=[t],u=[e];if(!o||!a)return t===i?-1:e===i?1:o?-1:a?1:c?M.call(c,t)-M.call(c,e):0;if(o===a)return lt(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?lt(s[r],u[r]):s[r]===_?-1:u[r]===_?1:0},i):p},it.matches=function(t,e){return it(t,null,null,e)},it.matchesSelector=function(t,e){if((t.ownerDocument||t)!==p&&d(t),e=e.replace(K,"='$1']"),n.matchesSelector&&v&&(!g||!g.test(e))&&(!m||!m.test(e)))try{var r=y.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return it(e,p,null,[t]).length>0},it.contains=function(t,e){return(t.ownerDocument||t)!==p&&d(t),b(t,e)},it.attr=function(t,e){(t.ownerDocument||t)!==p&&d(t);var i=r.attrHandle[e.toLowerCase()],o=i&&N.call(r.attrHandle,e.toLowerCase())?i(t,e,!v):void 0;return void 0!==o?o:n.attributes||!v?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},it.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},it.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(O),f){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return c=null,t},i=it.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},r=it.selectors={cacheLength:50,createPseudo:at,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,rt),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,rt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||it.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&it.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Q.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(nt,rt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=E[t+" "];return e||(e=new RegExp("(^|"+q+")"+t+"("+q+"|$)"))&&E(t,(function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==T&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=it.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,d,p,h,v=o!==a?"nextSibling":"previousSibling",m=e.parentNode,g=s&&e.nodeName.toLowerCase(),y=!u&&!s;if(m){if(o){for(;v;){for(f=e;f=f[v];)if(s?f.nodeName.toLowerCase()===g:1===f.nodeType)return!1;h=v="only"===t&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(p=(l=(c=m[w]||(m[w]={}))[t]||[])[0]===k&&l[1],d=l[0]===k&&l[2],f=p&&m.childNodes[p];f=++p&&f&&f[v]||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===e){c[t]=[k,p,d];break}}else if(y&&(l=(e[w]||(e[w]={}))[t])&&l[0]===k)d=l[1];else for(;(f=++p&&f&&f[v]||(d=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==g:1!==f.nodeType)||!++d||(y&&((f[w]||(f[w]={}))[t]=[k,d]),f!==e)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||it.error("unsupported pseudo: "+t);return i[w]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?at((function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=M.call(t,o[a])]=!(n[r]=o[a])})):function(t){return i(t,0,n)}):i}},pseudos:{not:at((function(t){var e=[],n=[],r=s(t.replace(H,"$1"));return r[w]?at((function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),!n.pop()}})),has:at((function(t){return function(e){return it(t,e).length>0}})),contains:at((function(t){return function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}})),lang:at((function(t){return $.test(t||"")||it.error("unsupported lang: "+t),t=t.replace(nt,rt).toLowerCase(),function(e){var n;do{if(n=v?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===h},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return Y.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:dt((function(){return[0]})),last:dt((function(t,e){return[e-1]})),eq:dt((function(t,e,n){return[n<0?n+e:n]})),even:dt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:dt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:dt((function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t})),gt:dt((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=ct(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=ft(e);function ht(){}function vt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function mt(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=x++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,l=[k,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if((s=(u=e[w]||(e[w]={}))[r])&&s[0]===k&&s[1]===o)return l[2]=s[2];if(u[r]=l,l[2]=t(e,n,a))return!0}}}function gt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function yt(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),l&&e.push(s)));return a}function bt(t,e,n,r,i,o){return r&&!r[w]&&(r=bt(r)),i&&!i[w]&&(i=bt(i,o)),at((function(o,a,s,u){var l,c,f,d=[],p=[],h=a.length,v=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)it(t,e[r],n);return n}(e||"*",s.nodeType?[s]:s,[]),m=!t||!o&&e?v:yt(v,d,t,s,u),g=n?i||(o?t:h||r)?[]:a:m;if(n&&n(m,g,s,u),r)for(l=yt(g,p),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(g[p[c]]=!(m[p[c]]=f));if(o){if(i||t){if(i){for(l=[],c=g.length;c--;)(f=g[c])&&l.push(m[c]=f);i(null,g=[],l,u)}for(c=g.length;c--;)(f=g[c])&&(l=i?M.call(o,f):d[c])>-1&&(o[l]=!(a[l]=f))}}else g=yt(g===a?g.splice(h,g.length):g),i?i(null,a,g,u):I.apply(a,g)}))}function wt(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],u=a?1:0,c=mt((function(t){return t===e}),s,!0),f=mt((function(t){return M.call(e,t)>-1}),s,!0),d=[function(t,n,r){return!a&&(r||n!==l)||((e=n).nodeType?c(t,n,r):f(t,n,r))}];u<o;u++)if(n=r.relative[t[u].type])d=[mt(gt(d),n)];else{if((n=r.filter[t[u].type].apply(null,t[u].matches))[w]){for(i=++u;i<o&&!r.relative[t[i].type];i++);return bt(u>1&&gt(d),u>1&&vt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(H,"$1"),n,u<i&&wt(t.slice(u,i)),i<o&&wt(t=t.slice(i)),i<o&&vt(t))}d.push(n)}return gt(d)}return ht.prototype=r.filters=r.pseudos,r.setFilters=new ht,a=it.tokenize=function(t,e){var n,i,o,a,s,u,l,c=C[t+" "];if(c)return e?0:c.slice(0);for(s=t,u=[],l=r.preFilter;s;){for(a in n&&!(i=W.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=V.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(H," ")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?it.error(t):C(t,u).slice(0)},s=it.compile=function(t,e){var n,i=[],o=[],s=S[t+" "];if(!s){for(e||(e=a(t)),n=e.length;n--;)(s=wt(e[n]))[w]?i.push(s):o.push(s);s=S(t,function(t,e){var n=e.length>0,i=t.length>0,o=function(o,a,s,u,c){var f,d,h,v=0,m="0",g=o&&[],y=[],b=l,w=o||i&&r.find.TAG("*",c),_=k+=null==b?1:Math.random()||.1,x=w.length;for(c&&(l=a!==p&&a);m!==x&&null!=(f=w[m]);m++){if(i&&f){for(d=0;h=t[d++];)if(h(f,a,s)){u.push(f);break}c&&(k=_)}n&&((f=!h&&f)&&v--,o&&g.push(f))}if(v+=m,n&&m!==v){for(d=0;h=e[d++];)h(g,y,a,s);if(o){if(v>0)for(;m--;)g[m]||y[m]||(y[m]=j.call(u));y=yt(y)}I.apply(u,y),c&&!o&&y.length>0&&v+e.length>1&&it.uniqueSort(u)}return c&&(k=_,l=b),g};return n?at(o):o}(o,i)),s.selector=t}return s},u=it.select=function(t,e,i,o){var u,l,c,f,d,p="function"==typeof t&&t,h=!o&&a(t=p.selector||t);if(i=i||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&n.getById&&9===e.nodeType&&v&&r.relative[l[1].type]){if(!(e=(r.find.ID(c.matches[0].replace(nt,rt),e)||[])[0]))return i;p&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(u=G.needsContext.test(t)?0:l.length;u--&&(c=l[u],!r.relative[f=c.type]);)if((d=r.find[f])&&(o=d(c.matches[0].replace(nt,rt),tt.test(l[0].type)&&pt(e.parentNode)||e))){if(l.splice(u,1),!(t=o.length&&vt(l)))return I.apply(i,o),i;break}}return(p||s(t,h))(o,e,!v,i,tt.test(t)&&pt(e.parentNode)||e),i},n.sortStable=w.split("").sort(O).join("")===w,n.detectDuplicates=!!f,d(),n.sortDetached=st((function(t){return 1&t.compareDocumentPosition(p.createElement("div"))})),st((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ut("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&st((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ut("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),st((function(t){return null==t.getAttribute("disabled")}))||ut(R,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),it}(r);v.find=_,v.expr=_.selectors,v.expr[":"]=v.expr.pseudos,v.unique=_.uniqueSort,v.text=_.getText,v.isXMLDoc=_.isXML,v.contains=_.contains;var k=v.expr.match.needsContext,x=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^.[^:#\[\.,]*$/;function C(t,e,n){if(v.isFunction(e))return v.grep(t,(function(t,r){return!!e.call(t,r,t)!==n}));if(e.nodeType)return v.grep(t,(function(t){return t===e!==n}));if("string"==typeof e){if(E.test(e))return v.filter(e,t,n);e=v.filter(e,t)}return v.grep(t,(function(t){return v.inArray(t,e)>=0!==n}))}v.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?v.find.matchesSelector(r,t)?[r]:[]:v.find.matches(t,v.grep(e,(function(t){return 1===t.nodeType})))},v.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if("string"!=typeof t)return this.pushStack(v(t).filter((function(){for(e=0;e<i;e++)if(v.contains(r[e],this))return!0})));for(e=0;e<i;e++)v.find(t,r[e],n);return(n=this.pushStack(i>1?v.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(C(this,t||[],!1))},not:function(t){return this.pushStack(C(this,t||[],!0))},is:function(t){return!!C(this,"string"==typeof t&&k.test(t)?v(t):t||[],!1).length}});var S,O=r.document,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(v.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:T.exec(t))||!n[1]&&e)return!e||e.jquery?(e||S).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof v?e[0]:e,v.merge(this,v.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:O,!0)),x.test(n[1])&&v.isPlainObject(e))for(n in e)v.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((r=O.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return S.find(t);this.length=1,this[0]=r}return this.context=O,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):v.isFunction(t)?void 0!==S.ready?S.ready(t):t(v):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),v.makeArray(t,this))}).prototype=v.fn,S=v(O);var A=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function P(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}v.extend({dir:function(t,e,n){for(var r=[],i=t[e];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!v(i).is(n));)1===i.nodeType&&r.push(i),i=i[e];return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),v.fn.extend({has:function(t){var e,n=v(t,this),r=n.length;return this.filter((function(){for(e=0;e<r;e++)if(v.contains(this,n[e]))return!0}))},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=k.test(t)||"string"!=typeof t?v(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&v.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?v.unique(o):o)},index:function(t){return t?"string"==typeof t?v.inArray(this[0],v(t)):v.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(v.unique(v.merge(this.get(),v(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),v.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return v.dir(t,"parentNode")},parentsUntil:function(t,e,n){return v.dir(t,"parentNode",n)},next:function(t){return P(t,"nextSibling")},prev:function(t){return P(t,"previousSibling")},nextAll:function(t){return v.dir(t,"nextSibling")},prevAll:function(t){return v.dir(t,"previousSibling")},nextUntil:function(t,e,n){return v.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return v.dir(t,"previousSibling",n)},siblings:function(t){return v.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return v.sibling(t.firstChild)},contents:function(t){return v.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:v.merge([],t.childNodes)}},(function(t,e){v.fn[t]=function(n,r){var i=v.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=v.filter(r,i)),this.length>1&&(N[t]||(i=v.unique(i)),A.test(t)&&(i=i.reverse())),this.pushStack(i)}}));var j,L=/\S+/g,I={};function D(){O.addEventListener?(O.removeEventListener("DOMContentLoaded",M,!1),r.removeEventListener("load",M,!1)):(O.detachEvent("onreadystatechange",M),r.detachEvent("onload",M))}function M(){(O.addEventListener||"load"===event.type||"complete"===O.readyState)&&(D(),v.ready())}v.Callbacks=function(t){t="string"==typeof t?I[t]||function(t){var e=I[t]={};return v.each(t.match(L)||[],(function(t,n){e[n]=!0})),e}(t):v.extend({},t);var e,n,r,i,o,a,s=[],u=!t.once&&[],l=function(f){for(n=t.memory&&f,r=!0,o=a||0,a=0,i=s.length,e=!0;s&&o<i;o++)if(!1===s[o].apply(f[0],f[1])&&t.stopOnFalse){n=!1;break}e=!1,s&&(u?u.length&&l(u.shift()):n?s=[]:c.disable())},c={add:function(){if(s){var r=s.length;!function e(n){v.each(n,(function(n,r){var i=v.type(r);"function"===i?t.unique&&c.has(r)||s.push(r):r&&r.length&&"string"!==i&&e(r)}))}(arguments),e?i=s.length:n&&(a=r,l(n))}return this},remove:function(){return s&&v.each(arguments,(function(t,n){for(var r;(r=v.inArray(n,s,r))>-1;)s.splice(r,1),e&&(r<=i&&i--,r<=o&&o--)})),this},has:function(t){return t?v.inArray(t,s)>-1:!(!s||!s.length)},empty:function(){return s=[],i=0,this},disable:function(){return s=u=n=void 0,this},disabled:function(){return!s},lock:function(){return u=void 0,n||c.disable(),this},locked:function(){return!u},fireWith:function(t,n){return!s||r&&!u||(n=[t,(n=n||[]).slice?n.slice():n],e?u.push(n):l(n)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(t){var e=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return v.Deferred((function(n){v.each(e,(function(e,o){var a=v.isFunction(t[e])&&t[e];i[o[1]]((function(){var t=a&&a.apply(this,arguments);t&&v.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)}))})),t=null})).promise()},promise:function(t){return null!=t?v.extend(t,r):r}},i={};return r.pipe=r.then,v.each(e,(function(t,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add((function(){n=s}),e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith})),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=a.call(arguments),s=o.length,u=1!==s||t&&v.isFunction(t.promise)?s:0,l=1===u?t:v.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?a.call(arguments):i,r===e?l.notifyWith(n,r):--u||l.resolveWith(n,r)}};if(s>1)for(e=new Array(s),n=new Array(s),r=new Array(s);i<s;i++)o[i]&&v.isFunction(o[i].promise)?o[i].promise().done(c(i,r,o)).fail(l.reject).progress(c(i,n,e)):--u;return u||l.resolveWith(r,o),l.promise()}}),v.fn.ready=function(t){return v.ready.promise().done(t),this},v.extend({isReady:!1,readyWait:1,holdReady:function(t){t?v.readyWait++:v.ready(!0)},ready:function(t){if(!(!0===t?--v.readyWait:v.isReady)){if(!O.body)return setTimeout(v.ready);v.isReady=!0,!0!==t&&--v.readyWait>0||(j.resolveWith(O,[v]),v.fn.triggerHandler&&(v(O).triggerHandler("ready"),v(O).off("ready")))}}}),v.ready.promise=function(t){if(!j)if(j=v.Deferred(),"complete"===O.readyState)setTimeout(v.ready);else if(O.addEventListener)O.addEventListener("DOMContentLoaded",M,!1),r.addEventListener("load",M,!1);else{O.attachEvent("onreadystatechange",M),r.attachEvent("onload",M);var e=!1;try{e=null==r.frameElement&&O.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!v.isReady){try{e.doScroll("left")}catch(e){return setTimeout(t,50)}D(),v.ready()}}()}return j.promise(t)};var R,q="undefined";for(R in v(p))break;p.ownLast="0"!==R,p.inlineBlockNeedsLayout=!1,v((function(){var t,e,n,r;(n=O.getElementsByTagName("body")[0])&&n.style&&(e=O.createElement("div"),(r=O.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),typeof e.style.zoom!==q&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",p.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(r))})),function(){var t=O.createElement("div");if(null==p.deleteExpando){p.deleteExpando=!0;try{delete t.test}catch(t){p.deleteExpando=!1}}t=null}(),v.acceptData=function(t){var e=v.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)};var B=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,F=/([A-Z])/g;function z(t,e,n){if(void 0===n&&1===t.nodeType){var r="data-"+e.replace(F,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:B.test(n)?v.parseJSON(n):n)}catch(t){}v.data(t,e,n)}else n=void 0}return n}function U(t){var e;for(e in t)if(("data"!==e||!v.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function H(t,e,n,r){if(v.acceptData(t)){var i,a,s=v.expando,u=t.nodeType,l=u?v.cache:t,c=u?t[s]:t[s]&&s;if(c&&l[c]&&(r||l[c].data)||void 0!==n||"string"!=typeof e)return c||(c=u?t[s]=o.pop()||v.guid++:s),l[c]||(l[c]=u?{}:{toJSON:v.noop}),"object"!=typeof e&&"function"!=typeof e||(r?l[c]=v.extend(l[c],e):l[c].data=v.extend(l[c].data,e)),a=l[c],r||(a.data||(a.data={}),a=a.data),void 0!==n&&(a[v.camelCase(e)]=n),"string"==typeof e?null==(i=a[e])&&(i=a[v.camelCase(e)]):i=a,i}}function W(t,e,n){if(v.acceptData(t)){var r,i,o=t.nodeType,a=o?v.cache:t,s=o?t[v.expando]:v.expando;if(a[s]){if(e&&(r=n?a[s]:a[s].data)){i=(e=v.isArray(e)?e.concat(v.map(e,v.camelCase)):e in r||(e=v.camelCase(e))in r?[e]:e.split(" ")).length;for(;i--;)delete r[e[i]];if(n?!U(r):!v.isEmptyObject(r))return}(n||(delete a[s].data,U(a[s])))&&(o?v.cleanData([t],!0):p.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}v.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?v.cache[t[v.expando]]:t[v.expando])&&!U(t)},data:function(t,e,n){return H(t,e,n)},removeData:function(t,e){return W(t,e)},_data:function(t,e,n){return H(t,e,n,!0)},_removeData:function(t,e){return W(t,e,!0)}}),v.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=v.data(o),1===o.nodeType&&!v._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&z(o,r=v.camelCase(r.slice(5)),i[r]);v._data(o,"parsedAttrs",!0)}return i}return"object"==typeof t?this.each((function(){v.data(this,t)})):arguments.length>1?this.each((function(){v.data(this,t,e)})):o?z(o,t,v.data(o,t)):void 0},removeData:function(t){return this.each((function(){v.removeData(this,t)}))}}),v.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=v._data(t,e),n&&(!r||v.isArray(n)?r=v._data(t,e,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=v.queue(t,e),r=n.length,i=n.shift(),o=v._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,(function(){v.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return v._data(t,n)||v._data(t,n,{empty:v.Callbacks("once memory").add((function(){v._removeData(t,e+"queue"),v._removeData(t,n)}))})}}),v.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?v.queue(this[0],t):void 0===e?this:this.each((function(){var n=v.queue(this,t,e);v._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&v.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){v.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=v.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=v._data(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var V=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,K=["Top","Right","Bottom","Left"],Q=function(t,e){return t=e||t,"none"===v.css(t,"display")||!v.contains(t.ownerDocument,t)},$=v.access=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===v.type(n))for(s in i=!0,n)v.access(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v.isFunction(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(v(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):o},G=/^(?:checkbox|radio)$/i;!function(){var t=O.createElement("input"),e=O.createElement("div"),n=O.createDocumentFragment();if(e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",p.leadingWhitespace=3===e.firstChild.nodeType,p.tbody=!e.getElementsByTagName("tbody").length,p.htmlSerialize=!!e.getElementsByTagName("link").length,p.html5Clone="<:nav></:nav>"!==O.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),p.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",p.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,p.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",(function(){p.noCloneEvent=!1})),e.cloneNode(!0).click()),null==p.deleteExpando){p.deleteExpando=!0;try{delete e.test}catch(t){p.deleteExpando=!1}}}(),function(){var t,e,n=O.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})e="on"+t,(p[t+"Bubbles"]=e in r)||(n.setAttribute(e,"t"),p[t+"Bubbles"]=!1===n.attributes[e].expando);n=null}();var Z=/^(?:input|select|textarea)$/i,Y=/^key/,X=/^(?:mouse|pointer|contextmenu)|click/,J=/^(?:focusinfocus|focusoutblur)$/,tt=/^([^.]*)(?:\.(.+)|)$/;function et(){return!0}function nt(){return!1}function rt(){try{return O.activeElement}catch(t){}}function it(t){var e=ot.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}v.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,p,h,m,g=v._data(t);if(g){for(n.handler&&(n=(u=n).handler,i=u.selector),n.guid||(n.guid=v.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||(c=g.handle=function(t){return typeof v===q||t&&v.event.triggered===t.type?void 0:v.event.dispatch.apply(c.elem,arguments)},c.elem=t),s=(e=(e||"").match(L)||[""]).length;s--;)p=m=(o=tt.exec(e[s])||[])[1],h=(o[2]||"").split(".").sort(),p&&(l=v.event.special[p]||{},p=(i?l.delegateType:l.bindType)||p,l=v.event.special[p]||{},f=v.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&v.expr.match.needsContext.test(i),namespace:h.join(".")},u),(d=a[p])||((d=a[p]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,r,h,c)||(t.addEventListener?t.addEventListener(p,c,!1):t.attachEvent&&t.attachEvent("on"+p,c))),l.add&&(l.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),v.event.global[p]=!0);t=null}},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,p,h,m,g=v.hasData(t)&&v._data(t);if(g&&(c=g.events)){for(l=(e=(e||"").match(L)||[""]).length;l--;)if(p=m=(s=tt.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),p){for(f=v.event.special[p]||{},d=c[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=d.length;o--;)a=d[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount--,f.remove&&f.remove.call(t,a));u&&!d.length&&(f.teardown&&!1!==f.teardown.call(t,h,g.handle)||v.removeEvent(t,p,g.handle),delete c[p])}else for(p in c)v.event.remove(t,p+e[l],n,r,!0);v.isEmptyObject(c)&&(delete g.handle,v._removeData(t,"events"))}},trigger:function(t,e,n,i){var o,a,s,u,l,c,f,p=[n||O],h=d.call(t,"type")?t.type:t,m=d.call(t,"namespace")?t.namespace.split("."):[];if(s=c=n=n||O,3!==n.nodeType&&8!==n.nodeType&&!J.test(h+v.event.triggered)&&(h.indexOf(".")>=0&&(m=h.split("."),h=m.shift(),m.sort()),a=h.indexOf(":")<0&&"on"+h,(t=t[v.expando]?t:new v.Event(h,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=m.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:v.makeArray(e,[t]),l=v.event.special[h]||{},i||!l.trigger||!1!==l.trigger.apply(n,e))){if(!i&&!l.noBubble&&!v.isWindow(n)){for(u=l.delegateType||h,J.test(u+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(n.ownerDocument||O)&&p.push(c.defaultView||c.parentWindow||r)}for(f=0;(s=p[f++])&&!t.isPropagationStopped();)t.type=f>1?u:l.bindType||h,(o=(v._data(s,"events")||{})[t.type]&&v._data(s,"handle"))&&o.apply(s,e),(o=a&&s[a])&&o.apply&&v.acceptData(s)&&(t.result=o.apply(s,e),!1===t.result&&t.preventDefault());if(t.type=h,!i&&!t.isDefaultPrevented()&&(!l._default||!1===l._default.apply(p.pop(),e))&&v.acceptData(n)&&a&&n[h]&&!v.isWindow(n)){(c=n[a])&&(n[a]=null),v.event.triggered=h;try{n[h]()}catch(t){}v.event.triggered=void 0,c&&(n[a]=c)}return t.result}},dispatch:function(t){t=v.event.fix(t);var e,n,r,i,o,s,u=a.call(arguments),l=(v._data(this,"events")||{})[t.type]||[],c=v.event.special[t.type]||{};if(u[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(s=v.event.handlers.call(this,t,l),e=0;(i=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(n=((v.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,u))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==t.type)){for(i=[],o=0;o<s;o++)void 0===i[n=(r=e[o]).selector+" "]&&(i[n]=r.needsContext?v(n,this).index(u)>=0:v.find(n,this,null,[u]).length),i[n]&&i.push(r);i.length&&a.push({elem:u,handlers:i})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},fix:function(t){if(t[v.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=X.test(i)?this.mouseHooks:Y.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new v.Event(o),e=r.length;e--;)t[n=r[e]]=o[n];return t.target||(t.target=o.srcElement||O),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,a.filter?a.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button,a=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=(r=t.target.ownerDocument||O).documentElement,n=r.body,t.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?e.toElement:a),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==rt()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===rt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(v.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return v.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=v.extend(new v.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?v.event.trigger(i,null,e):v.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},v.removeEvent=O.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var r="on"+e;t.detachEvent&&(typeof t[r]===q&&(t[r]=null),t.detachEvent(r,n))},v.Event=function(t,e){if(!(this instanceof v.Event))return new v.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?et:nt):this.type=t,e&&v.extend(this,e),this.timeStamp=t&&t.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={isDefaultPrevented:nt,isPropagationStopped:nt,isImmediatePropagationStopped:nt,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=et,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=et,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=et,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){v.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||v.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}})),p.submitBubbles||(v.event.special.submit={setup:function(){if(v.nodeName(this,"form"))return!1;v.event.add(this,"click._submit keypress._submit",(function(t){var e=t.target,n=v.nodeName(e,"input")||v.nodeName(e,"button")?e.form:void 0;n&&!v._data(n,"submitBubbles")&&(v.event.add(n,"submit._submit",(function(t){t._submit_bubble=!0})),v._data(n,"submitBubbles",!0))}))},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&v.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){if(v.nodeName(this,"form"))return!1;v.event.remove(this,"._submit")}}),p.changeBubbles||(v.event.special.change={setup:function(){if(Z.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(v.event.add(this,"propertychange._change",(function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)})),v.event.add(this,"click._change",(function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),v.event.simulate("change",this,t,!0)}))),!1;v.event.add(this,"beforeactivate._change",(function(t){var e=t.target;Z.test(e.nodeName)&&!v._data(e,"changeBubbles")&&(v.event.add(e,"change._change",(function(t){!this.parentNode||t.isSimulated||t.isTrigger||v.event.simulate("change",this.parentNode,t,!0)})),v._data(e,"changeBubbles",!0))}))},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return v.event.remove(this,"._change"),!Z.test(this.nodeName)}}),p.focusinBubbles||v.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){v.event.simulate(e,t.target,v.event.fix(t),!0)};v.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=v._data(r,e);i||r.addEventListener(t,n,!0),v._data(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=v._data(r,e)-1;i?v._data(r,e,i):(r.removeEventListener(t,n,!0),v._removeData(r,e))}}})),v.fn.extend({on:function(t,e,n,r,i){var o,a;if("object"==typeof t){for(o in"string"!=typeof e&&(n=n||e,e=void 0),t)this.on(o,e,n,t[o],i);return this}if(null==n&&null==r?(r=e,n=e=void 0):null==r&&("string"==typeof e?(r=n,n=void 0):(r=n,n=e,e=void 0)),!1===r)r=nt;else if(!r)return this;return 1===i&&(a=r,r=function(t){return v().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=v.guid++)),this.each((function(){v.event.add(this,t,r,n,e)}))},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,v(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=nt),this.each((function(){v.event.remove(this,t,n,e)}))},trigger:function(t,e){return this.each((function(){v.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return v.event.trigger(t,e,n,!0)}});var ot="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",at=/ jQuery\d+="(?:null|\d+)"/g,st=new RegExp("<(?:"+ot+")[\\s/>]","i"),ut=/^\s+/,lt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ct=/<([\w:]+)/,ft=/<tbody/i,dt=/<|&#?\w+;/,pt=/<(?:script|style|link)/i,ht=/checked\s*(?:[^=]|=\s*.checked.)/i,vt=/^$|\/(?:java|ecma)script/i,mt=/^true\/(.*)/,gt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,yt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:p.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},bt=it(O).appendChild(O.createElement("div"));function wt(t,e){var n,r,i=0,o=typeof t.getElementsByTagName!==q?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==q?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(r=n[i]);i++)!e||v.nodeName(r,e)?o.push(r):v.merge(o,wt(r,e));return void 0===e||e&&v.nodeName(t,e)?v.merge([t],o):o}function _t(t){G.test(t.type)&&(t.defaultChecked=t.checked)}function kt(t,e){return v.nodeName(t,"table")&&v.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function xt(t){return t.type=(null!==v.find.attr(t,"type"))+"/"+t.type,t}function Et(t){var e=mt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Ct(t,e){for(var n,r=0;null!=(n=t[r]);r++)v._data(n,"globalEval",!e||v._data(e[r],"globalEval"))}function St(t,e){if(1===e.nodeType&&v.hasData(t)){var n,r,i,o=v._data(t),a=v._data(e,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,i=s[n].length;r<i;r++)v.event.add(e,n,s[n][r]);a.data&&(a.data=v.extend({},a.data))}}function Ot(t,e){var n,r,i;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!p.noCloneEvent&&e[v.expando]){for(r in(i=v._data(e)).events)v.removeEvent(e,r,i.handle);e.removeAttribute(v.expando)}"script"===n&&e.text!==t.text?(xt(e).text=t.text,Et(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),p.html5Clone&&t.innerHTML&&!v.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&G.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}}yt.optgroup=yt.option,yt.tbody=yt.tfoot=yt.colgroup=yt.caption=yt.thead,yt.th=yt.td,v.extend({clone:function(t,e,n){var r,i,o,a,s,u=v.contains(t.ownerDocument,t);if(p.html5Clone||v.isXMLDoc(t)||!st.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(bt.innerHTML=t.outerHTML,bt.removeChild(o=bt.firstChild)),!(p.noCloneEvent&&p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||v.isXMLDoc(t)))for(r=wt(o),s=wt(t),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(e)if(n)for(s=s||wt(t),r=r||wt(o),a=0;null!=(i=s[a]);a++)St(i,r[a]);else St(t,o);return(r=wt(o,"script")).length>0&&Ct(r,!u&&wt(t,"script")),r=s=i=null,o},buildFragment:function(t,e,n,r){for(var i,o,a,s,u,l,c,f=t.length,d=it(e),h=[],m=0;m<f;m++)if((o=t[m])||0===o)if("object"===v.type(o))v.merge(h,o.nodeType?[o]:o);else if(dt.test(o)){for(s=s||d.appendChild(e.createElement("div")),u=(ct.exec(o)||["",""])[1].toLowerCase(),c=yt[u]||yt._default,s.innerHTML=c[1]+o.replace(lt,"<$1></$2>")+c[2],i=c[0];i--;)s=s.lastChild;if(!p.leadingWhitespace&&ut.test(o)&&h.push(e.createTextNode(ut.exec(o)[0])),!p.tbody)for(i=(o="table"!==u||ft.test(o)?"<table>"!==c[1]||ft.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)v.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l);for(v.merge(h,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else h.push(e.createTextNode(o));for(s&&d.removeChild(s),p.appendChecked||v.grep(wt(h,"input"),_t),m=0;o=h[m++];)if((!r||-1===v.inArray(o,r))&&(a=v.contains(o.ownerDocument,o),s=wt(d.appendChild(o),"script"),a&&Ct(s),n))for(i=0;o=s[i++];)vt.test(o.type||"")&&n.push(o);return s=null,d},cleanData:function(t,e){for(var n,r,i,a,s=0,u=v.expando,l=v.cache,c=p.deleteExpando,f=v.event.special;null!=(n=t[s]);s++)if((e||v.acceptData(n))&&(a=(i=n[u])&&l[i])){if(a.events)for(r in a.events)f[r]?v.event.remove(n,r):v.removeEvent(n,r,a.handle);l[i]&&(delete l[i],c?delete n[u]:typeof n.removeAttribute!==q?n.removeAttribute(u):n[u]=null,o.push(i))}}}),v.fn.extend({text:function(t){return $(this,(function(t){return void 0===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||O).createTextNode(t))}),null,t,arguments.length)},append:function(){return this.domManip(arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||kt(this,t).appendChild(t)}))},prepend:function(){return this.domManip(arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=kt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return this.domManip(arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return this.domManip(arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},remove:function(t,e){for(var n,r=t?v.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||v.cleanData(wt(n)),n.parentNode&&(e&&v.contains(n.ownerDocument,n)&&Ct(wt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&v.cleanData(wt(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&v.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return v.clone(this,t,e)}))},html:function(t){return $(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(at,""):void 0;if("string"==typeof t&&!pt.test(t)&&(p.htmlSerialize||!st.test(t))&&(p.leadingWhitespace||!ut.test(t))&&!yt[(ct.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(lt,"<$1></$2>");try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(v.cleanData(wt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,(function(e){t=this.parentNode,v.cleanData(wt(this)),t&&t.replaceChild(e,this)})),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=s.apply([],t);var n,r,i,o,a,u,l=0,c=this.length,f=this,d=c-1,h=t[0],m=v.isFunction(h);if(m||c>1&&"string"==typeof h&&!p.checkClone&&ht.test(h))return this.each((function(n){var r=f.eq(n);m&&(t[0]=h.call(this,n,r.html())),r.domManip(t,e)}));if(c&&(n=(u=v.buildFragment(t,this[0].ownerDocument,!1,this)).firstChild,1===u.childNodes.length&&(u=n),n)){for(i=(o=v.map(wt(u,"script"),xt)).length;l<c;l++)r=u,l!==d&&(r=v.clone(r,!0,!0),i&&v.merge(o,wt(r,"script"))),e.call(this[l],r,l);if(i)for(a=o[o.length-1].ownerDocument,v.map(o,Et),l=0;l<i;l++)r=o[l],vt.test(r.type||"")&&!v._data(r,"globalEval")&&v.contains(a,r)&&(r.src?v._evalUrl&&v._evalUrl(r.src):v.globalEval((r.text||r.textContent||r.innerHTML||"").replace(gt,"")));u=n=null}return this}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){v.fn[t]=function(t){for(var n,r=0,i=[],o=v(t),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),v(o[r])[e](n),u.apply(i,n.get());return this.pushStack(i)}}));var Tt,At,Nt={};function Pt(t,e){var n,i=v(e.createElement(t)).appendTo(e.body),o=r.getDefaultComputedStyle&&(n=r.getDefaultComputedStyle(i[0]))?n.display:v.css(i[0],"display");return i.detach(),o}function jt(t){var e=O,n=Nt[t];return n||("none"!==(n=Pt(t,e))&&n||((e=((Tt=(Tt||v("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||Tt[0].contentDocument).document).write(),e.close(),n=Pt(t,e),Tt.detach()),Nt[t]=n),n}p.shrinkWrapBlocks=function(){return null!=At?At:(At=!1,(e=O.getElementsByTagName("body")[0])&&e.style?(t=O.createElement("div"),(n=O.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(n).appendChild(t),typeof t.style.zoom!==q&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(O.createElement("div")).style.width="5px",At=3!==t.offsetWidth),e.removeChild(n),At):void 0);var t,e,n};var Lt,It,Dt=/^margin/,Mt=new RegExp("^("+V+")(?!px)[a-z%]+$","i"),Rt=/^(top|right|bottom|left)$/;function qt(t,e){return{get:function(){var n=t();if(null!=n){if(!n)return(this.get=e).apply(this,arguments);delete this.get}}}}r.getComputedStyle?(Lt=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)},It=function(t,e,n){var r,i,o,a,s=t.style;return a=(n=n||Lt(t))?n.getPropertyValue(e)||n[e]:void 0,n&&(""!==a||v.contains(t.ownerDocument,t)||(a=v.style(t,e)),Mt.test(a)&&Dt.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+""}):O.documentElement.currentStyle&&(Lt=function(t){return t.currentStyle},It=function(t,e,n){var r,i,o,a,s=t.style;return null==(a=(n=n||Lt(t))?n[e]:void 0)&&s&&s[e]&&(a=s[e]),Mt.test(a)&&!Rt.test(e)&&(r=s.left,(o=(i=t.runtimeStyle)&&i.left)&&(i.left=t.currentStyle.left),s.left="fontSize"===e?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"}),function(){var t,e,n,i,o,a,s;function u(){var t,e,n,u;(e=O.getElementsByTagName("body")[0])&&e.style&&(t=O.createElement("div"),(n=O.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(n).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",i=o=!1,s=!0,r.getComputedStyle&&(i="1%"!==(r.getComputedStyle(t,null)||{}).top,o="4px"===(r.getComputedStyle(t,null)||{width:"4px"}).width,(u=t.appendChild(O.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",u.style.marginRight=u.style.width="0",t.style.width="1px",s=!parseFloat((r.getComputedStyle(u,null)||{}).marginRight)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(u=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(a=0===u[0].offsetHeight)&&(u[0].style.display="",u[1].style.display="none",a=0===u[0].offsetHeight),e.removeChild(n))}(t=O.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(e=(n=t.getElementsByTagName("a")[0])&&n.style)&&(e.cssText="float:left;opacity:.5",p.opacity="0.5"===e.opacity,p.cssFloat=!!e.cssFloat,t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===t.style.backgroundClip,p.boxSizing=""===e.boxSizing||""===e.MozBoxSizing||""===e.WebkitBoxSizing,v.extend(p,{reliableHiddenOffsets:function(){return null==a&&u(),a},boxSizingReliable:function(){return null==o&&u(),o},pixelPosition:function(){return null==i&&u(),i},reliableMarginRight:function(){return null==s&&u(),s}}))}(),v.swap=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=a[o];return i};var Bt=/alpha\([^)]*\)/i,Ft=/opacity\s*=\s*([^)]*)/,zt=/^(none|table(?!-c[ea]).+)/,Ut=new RegExp("^("+V+")(.*)$","i"),Ht=new RegExp("^([+-])=("+V+")","i"),Wt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:"0",fontWeight:"400"},Kt=["Webkit","O","Moz","ms"];function Qt(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=e,i=Kt.length;i--;)if((e=Kt[i]+n)in t)return e;return r}function $t(t,e){for(var n,r,i,o=[],a=0,s=t.length;a<s;a++)(r=t[a]).style&&(o[a]=v._data(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Q(r)&&(o[a]=v._data(r,"olddisplay",jt(r.nodeName)))):(i=Q(r),(n&&"none"!==n||!i)&&v._data(r,"olddisplay",i?n:v.css(r,"display"))));for(a=0;a<s;a++)(r=t[a]).style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function Gt(t,e,n){var r=Ut.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function Zt(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=v.css(t,n+K[o],!0,i)),r?("content"===n&&(a-=v.css(t,"padding"+K[o],!0,i)),"margin"!==n&&(a-=v.css(t,"border"+K[o]+"Width",!0,i))):(a+=v.css(t,"padding"+K[o],!0,i),"padding"!==n&&(a+=v.css(t,"border"+K[o]+"Width",!0,i)));return a}function Yt(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Lt(t),a=p.boxSizing&&"border-box"===v.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(((i=It(t,e,o))<0||null==i)&&(i=t.style[e]),Mt.test(i))return i;r=a&&(p.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+Zt(t,e,n||(a?"border":"content"),r,o)+"px"}function Xt(t,e,n,r,i){return new Xt.prototype.init(t,e,n,r,i)}v.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=It(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:p.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=v.camelCase(e),u=t.style;if(e=v.cssProps[s]||(v.cssProps[s]=Qt(u,s)),a=v.cssHooks[e]||v.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:u[e];if(!("string"===(o=typeof n)&&(i=Ht.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(v.css(t,e)),o="number"),null==n||n!=n||("number"!==o||v.cssNumber[s]||(n+="px"),p.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r)))))try{u[e]=n}catch(t){}}},css:function(t,e,n,r){var i,o,a,s=v.camelCase(e);return e=v.cssProps[s]||(v.cssProps[s]=Qt(t.style,s)),(a=v.cssHooks[e]||v.cssHooks[s])&&"get"in a&&(o=a.get(t,!0,n)),void 0===o&&(o=It(t,e,r)),"normal"===o&&e in Vt&&(o=Vt[e]),""===n||n?(i=parseFloat(o),!0===n||v.isNumeric(i)?i||0:o):o}}),v.each(["height","width"],(function(t,e){v.cssHooks[e]={get:function(t,n,r){if(n)return zt.test(v.css(t,"display"))&&0===t.offsetWidth?v.swap(t,Wt,(function(){return Yt(t,e,r)})):Yt(t,e,r)},set:function(t,n,r){var i=r&&Lt(t);return Gt(0,n,r?Zt(t,e,r,p.boxSizing&&"border-box"===v.css(t,"boxSizing",!1,i),i):0)}}})),p.opacity||(v.cssHooks.opacity={get:function(t,e){return Ft.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,r=t.currentStyle,i=v.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===v.trim(o.replace(Bt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||r&&!r.filter)||(n.filter=Bt.test(o)?o.replace(Bt,i):o+" "+i)}}),v.cssHooks.marginRight=qt(p.reliableMarginRight,(function(t,e){if(e)return v.swap(t,{display:"inline-block"},It,[t,"marginRight"])})),v.each({margin:"",padding:"",border:"Width"},(function(t,e){v.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+K[r]+e]=o[r]||o[r-2]||o[0];return i}},Dt.test(t)||(v.cssHooks[t+e].set=Gt)})),v.fn.extend({css:function(t,e){return $(this,(function(t,e,n){var r,i,o={},a=0;if(v.isArray(e)){for(r=Lt(t),i=e.length;a<i;a++)o[e[a]]=v.css(t,e[a],!1,r);return o}return void 0!==n?v.style(t,e,n):v.css(t,e)}),t,e,arguments.length>1)},show:function(){return $t(this,!0)},hide:function(){return $t(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){Q(this)?v(this).show():v(this).hide()}))}}),v.Tween=Xt,Xt.prototype={constructor:Xt,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(v.cssNumber[n]?"":"px")},cur:function(){var t=Xt.propHooks[this.prop];return t&&t.get?t.get(this):Xt.propHooks._default.get(this)},run:function(t){var e,n=Xt.propHooks[this.prop];return this.options.duration?this.pos=e=v.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Xt.propHooks._default.set(this),this}},Xt.prototype.init.prototype=Xt.prototype,Xt.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=v.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){v.fx.step[t.prop]?v.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[v.cssProps[t.prop]]||v.cssHooks[t.prop])?v.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},Xt.propHooks.scrollTop=Xt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},v.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},v.fx=Xt.prototype.init,v.fx.step={};var Jt,te,ee,ne,re,ie,oe,ae=/^(?:toggle|show|hide)$/,se=new RegExp("^(?:([+-])=|)("+V+")([a-z%]*)$","i"),ue=/queueHooks$/,le=[function(t,e,n){var r,i,o,a,s,u,l,c=this,f={},d=t.style,h=t.nodeType&&Q(t),m=v._data(t,"fxshow");n.queue||(null==(s=v._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,c.always((function(){c.always((function(){s.unqueued--,v.queue(t,"fx").length||s.empty.fire()}))})));1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(l=v.css(t,"display"))?v._data(t,"olddisplay")||jt(t.nodeName):l)&&"none"===v.css(t,"float")&&(p.inlineBlockNeedsLayout&&"inline"!==jt(t.nodeName)?d.zoom=1:d.display="inline-block"));n.overflow&&(d.overflow="hidden",p.shrinkWrapBlocks()||c.always((function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})));for(r in e)if(i=e[r],ae.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;h=!0}f[r]=m&&m[r]||v.style(t,r)}else l=void 0;if(v.isEmptyObject(f))"inline"===("none"===l?jt(t.nodeName):l)&&(d.display=l);else for(r in m?"hidden"in m&&(h=m.hidden):m=v._data(t,"fxshow",{}),o&&(m.hidden=!h),h?v(t).show():c.done((function(){v(t).hide()})),c.done((function(){var e;for(e in v._removeData(t,"fxshow"),f)v.style(t,e,f[e])})),f)a=pe(h?m[r]:0,r,c),r in m||(m[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],ce={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=se.exec(e),o=i&&i[3]||(v.cssNumber[t]?"":"px"),a=(v.cssNumber[t]||"px"!==o&&+r)&&se.exec(v.css(n.elem,t)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{a/=s=s||".5",v.style(n.elem,t,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function fe(){return setTimeout((function(){Jt=void 0})),Jt=v.now()}function de(t,e){var n,r={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=K[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function pe(t,e,n){for(var r,i=(ce[e]||[]).concat(ce["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function he(t,e,n){var r,i,o=0,a=le.length,s=v.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var e=Jt||fe(),n=Math.max(0,l.startTime+l.duration-e),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(t,[l,r,n]),r<1&&a?n:(s.resolveWith(t,[l]),!1)},l=s.promise({elem:t,props:v.extend({},e),opts:v.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Jt||fe(),duration:n.duration,tweens:[],createTween:function(e,n){var r=v.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return e?s.resolveWith(t,[l,e]):s.rejectWith(t,[l,e]),this}}),c=l.props;for(!function(t,e){var n,r,i,o,a;for(n in t)if(i=e[r=v.camelCase(n)],o=t[n],v.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=v.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=le[o].call(l,t,c,l.opts))return r;return v.map(c,pe,l),v.isFunction(l.opts.start)&&l.opts.start.call(t,l),v.fx.timer(v.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}v.Animation=v.extend(he,{tweener:function(t,e){v.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;r<i;r++)n=t[r],ce[n]=ce[n]||[],ce[n].unshift(e)},prefilter:function(t,e){e?le.unshift(t):le.push(t)}}),v.speed=function(t,e,n){var r=t&&"object"==typeof t?v.extend({},t):{complete:n||!n&&e||v.isFunction(t)&&t,duration:t,easing:n&&e||e&&!v.isFunction(e)&&e};return r.duration=v.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in v.fx.speeds?v.fx.speeds[r.duration]:v.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v.isFunction(r.old)&&r.old.call(this),r.queue&&v.dequeue(this,r.queue)},r},v.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Q).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=v.isEmptyObject(t),o=v.speed(e,n,r),a=function(){var e=he(this,v.extend({},t),o);(i||v._data(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each((function(){var e=!0,i=null!=t&&t+"queueHooks",o=v.timers,a=v._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ue.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||v.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=v._data(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=v.timers,a=r?r.length:0;for(n.finish=!0,v.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish}))}}),v.each(["toggle","show","hide"],(function(t,e){var n=v.fn[e];v.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(de(e,!0),t,r,i)}})),v.each({slideDown:de("show"),slideUp:de("hide"),slideToggle:de("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){v.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),v.timers=[],v.fx.tick=function(){var t,e=v.timers,n=0;for(Jt=v.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||v.fx.stop(),Jt=void 0},v.fx.timer=function(t){v.timers.push(t),t()?v.fx.start():v.timers.pop()},v.fx.interval=13,v.fx.start=function(){te||(te=setInterval(v.fx.tick,v.fx.interval))},v.fx.stop=function(){clearInterval(te),te=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(t,e){return t=v.fx&&v.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}}))},(ne=O.createElement("div")).setAttribute("className","t"),ne.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ie=ne.getElementsByTagName("a")[0],oe=(re=O.createElement("select")).appendChild(O.createElement("option")),ee=ne.getElementsByTagName("input")[0],ie.style.cssText="top:1px",p.getSetAttribute="t"!==ne.className,p.style=/top/.test(ie.getAttribute("style")),p.hrefNormalized="/a"===ie.getAttribute("href"),p.checkOn=!!ee.value,p.optSelected=oe.selected,p.enctype=!!O.createElement("form").enctype,re.disabled=!0,p.optDisabled=!oe.disabled,(ee=O.createElement("input")).setAttribute("value",""),p.input=""===ee.getAttribute("value"),ee.value="t",ee.setAttribute("type","radio"),p.radioValue="t"===ee.value;var ve=/\r/g;v.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=v.isFunction(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,v(this).val()):t)?i="":"number"==typeof i?i+="":v.isArray(i)&&(i=v.map(i,(function(t){return null==t?"":t+""}))),(e=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=v.valHooks[i.type]||v.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ve,""):null==n?"":n:void 0}}),v.extend({valHooks:{option:{get:function(t){var e=v.find.attr(t,"value");return null!=e?e:v.trim(v.text(t))}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(((n=r[u]).selected||u===i)&&(p.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){if(e=v(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=v.makeArray(e),a=i.length;a--;)if(r=i[a],v.inArray(v.valHooks.option.get(r),o)>=0)try{r.selected=n=!0}catch(t){r.scrollHeight}else r.selected=!1;return n||(t.selectedIndex=-1),i}}}}),v.each(["radio","checkbox"],(function(){v.valHooks[this]={set:function(t,e){if(v.isArray(e))return t.checked=v.inArray(v(t).val(),e)>=0}},p.checkOn||(v.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var me,ge,ye=v.expr.attrHandle,be=/^(?:checked|selected)$/i,we=p.getSetAttribute,_e=p.input;v.fn.extend({attr:function(t,e){return $(this,v.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){v.removeAttr(this,t)}))}}),v.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===q?v.prop(t,e,n):(1===o&&v.isXMLDoc(t)||(e=e.toLowerCase(),r=v.attrHooks[e]||(v.expr.match.bool.test(e)?ge:me)),void 0===n?r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=v.find.attr(t,e))?void 0:i:null!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):void v.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(L);if(o&&1===t.nodeType)for(;n=o[i++];)r=v.propFix[n]||n,v.expr.match.bool.test(n)?_e&&we||!be.test(n)?t[r]=!1:t[v.camelCase("default-"+n)]=t[r]=!1:v.attr(t,n,""),t.removeAttribute(we?n:r)},attrHooks:{type:{set:function(t,e){if(!p.radioValue&&"radio"===e&&v.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),ge={set:function(t,e,n){return!1===e?v.removeAttr(t,n):_e&&we||!be.test(n)?t.setAttribute(!we&&v.propFix[n]||n,n):t[v.camelCase("default-"+n)]=t[n]=!0,n}},v.each(v.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=ye[e]||v.find.attr;ye[e]=_e&&we||!be.test(e)?function(t,e,r){var i,o;return r||(o=ye[e],ye[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,ye[e]=o),i}:function(t,e,n){if(!n)return t[v.camelCase("default-"+e)]?e.toLowerCase():null}})),_e&&we||(v.attrHooks.value={set:function(t,e,n){if(!v.nodeName(t,"input"))return me&&me.set(t,e,n);t.defaultValue=e}}),we||(me={set:function(t,e,n){var r=t.getAttributeNode(n);if(r||t.setAttributeNode(r=t.ownerDocument.createAttribute(n)),r.value=e+="","value"===n||e===t.getAttribute(n))return e}},ye.id=ye.name=ye.coords=function(t,e,n){var r;if(!n)return(r=t.getAttributeNode(e))&&""!==r.value?r.value:null},v.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:me.set},v.attrHooks.contenteditable={set:function(t,e,n){me.set(t,""!==e&&e,n)}},v.each(["width","height"],(function(t,e){v.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}}))),p.style||(v.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var ke=/^(?:input|select|textarea|button|object)$/i,xe=/^(?:a|area)$/i;v.fn.extend({prop:function(t,e){return $(this,v.prop,t,e,arguments.length>1)},removeProp:function(t){return t=v.propFix[t]||t,this.each((function(){try{this[t]=void 0,delete this[t]}catch(t){}}))}}),v.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return(1!==o||!v.isXMLDoc(t))&&(e=v.propFix[e]||e,i=v.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=v.find.attr(t,"tabindex");return e?parseInt(e,10):ke.test(t.nodeName)||xe.test(t.nodeName)&&t.href?0:-1}}}}),p.hrefNormalized||v.each(["href","src"],(function(t,e){v.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}})),p.optSelected||(v.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){v.propFix[this.toLowerCase()]=this})),p.enctype||(v.propFix.enctype="encoding");var Ee=/[\t\r\n\f]/g;v.fn.extend({addClass:function(t){var e,n,r,i,o,a,s=0,u=this.length,l="string"==typeof t&&t;if(v.isFunction(t))return this.each((function(e){v(this).addClass(t.call(this,e,this.className))}));if(l)for(e=(t||"").match(L)||[];s<u;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(Ee," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=v.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,r,i,o,a,s=0,u=this.length,l=0===arguments.length||"string"==typeof t&&t;if(v.isFunction(t))return this.each((function(e){v(this).removeClass(t.call(this,e,this.className))}));if(l)for(e=(t||"").match(L)||[];s<u;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(Ee," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=t?v.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):v.isFunction(t)?this.each((function(n){v(this).toggleClass(t.call(this,n,this.className,e),e)})):this.each((function(){if("string"===n)for(var e,r=0,i=v(this),o=t.match(L)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else n!==q&&"boolean"!==n||(this.className&&v._data(this,"__className__",this.className),this.className=this.className||!1===t?"":v._data(this,"__className__")||"")}))},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Ee," ").indexOf(e)>=0)return!0;return!1}}),v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(t,e){v.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}})),v.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var Ce=v.now(),Se=/\?/,Oe=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;v.parseJSON=function(t){if(r.JSON&&r.JSON.parse)return r.JSON.parse(t+"");var e,n=null,i=v.trim(t+"");return i&&!v.trim(i.replace(Oe,(function(t,r,i,o){return e&&r&&(n=0),0===n?t:(e=i||r,n+=!o-!i,"")})))?Function("return "+i)():v.error("Invalid JSON: "+t)},v.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{r.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t))}catch(t){e=void 0}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+t),e};var Te,Ae,Ne=/#.*$/,Pe=/([?&])_=[^&]*/,je=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Le=/^(?:GET|HEAD)$/,Ie=/^\/\//,De=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Me={},Re={},qe="*/".concat("*");try{Ae=location.href}catch(t){(Ae=O.createElement("a")).href="",Ae=Ae.href}function Be(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(L)||[];if(v.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Fe(t,e,n,r){var i={},o=t===Re;function a(s){var u;return i[s]=!0,v.each(t[s]||[],(function(t,s){var l=s(e,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),a(l),!1)})),u}return a(e.dataTypes[0])||!i["*"]&&a("*")}function ze(t,e){var n,r,i=v.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&v.extend(!0,t,n),t}Te=De.exec(Ae.toLowerCase())||[],v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ae,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Te[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ze(ze(t,v.ajaxSettings),e):ze(v.ajaxSettings,t)},ajaxPrefilter:Be(Me),ajaxTransport:Be(Re),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,i,o,a,s,u,l,c=v.ajaxSetup({},e),f=c.context||c,d=c.context&&(f.nodeType||f.jquery)?v(f):v.event,p=v.Deferred(),h=v.Callbacks("once memory"),m=c.statusCode||{},g={},y={},b=0,w="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!l)for(l={};e=je.exec(o);)l[e[1].toLowerCase()]=e[2];e=l[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=y[n]=y[n]||t,g[t]=e),this},overrideMimeType:function(t){return b||(c.mimeType=t),this},statusCode:function(t){var e;if(t)if(b<2)for(e in t)m[e]=[m[e],t[e]];else _.always(t[_.status]);return this},abort:function(t){var e=t||w;return u&&u.abort(e),k(0,e),this}};if(p.promise(_).complete=h.add,_.success=_.done,_.error=_.fail,c.url=((t||c.url||Ae)+"").replace(Ne,"").replace(Ie,Te[1]+"//"),c.type=e.method||e.type||c.method||c.type,c.dataTypes=v.trim(c.dataType||"*").toLowerCase().match(L)||[""],null==c.crossDomain&&(n=De.exec(c.url.toLowerCase()),c.crossDomain=!(!n||n[1]===Te[1]&&n[2]===Te[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(Te[3]||("http:"===Te[1]?"80":"443")))),c.data&&c.processData&&"string"!=typeof c.data&&(c.data=v.param(c.data,c.traditional)),Fe(Me,c,e,_),2===b)return _;for(r in(s=c.global)&&0==v.active++&&v.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!Le.test(c.type),i=c.url,c.hasContent||(c.data&&(i=c.url+=(Se.test(i)?"&":"?")+c.data,delete c.data),!1===c.cache&&(c.url=Pe.test(i)?i.replace(Pe,"$1_="+Ce++):i+(Se.test(i)?"&":"?")+"_="+Ce++)),c.ifModified&&(v.lastModified[i]&&_.setRequestHeader("If-Modified-Since",v.lastModified[i]),v.etag[i]&&_.setRequestHeader("If-None-Match",v.etag[i])),(c.data&&c.hasContent&&!1!==c.contentType||e.contentType)&&_.setRequestHeader("Content-Type",c.contentType),_.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+qe+"; q=0.01":""):c.accepts["*"]),c.headers)_.setRequestHeader(r,c.headers[r]);if(c.beforeSend&&(!1===c.beforeSend.call(f,_,c)||2===b))return _.abort();for(r in w="abort",{success:1,error:1,complete:1})_[r](c[r]);if(u=Fe(Re,c,e,_)){_.readyState=1,s&&d.trigger("ajaxSend",[_,c]),c.async&&c.timeout>0&&(a=setTimeout((function(){_.abort("timeout")}),c.timeout));try{b=1,u.send(g,k)}catch(t){if(!(b<2))throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,n,r){var l,g,y,w,k,x=e;2!==b&&(b=2,a&&clearTimeout(a),u=void 0,o=r||"",_.readyState=t>0?4:0,l=t>=200&&t<300||304===t,n&&(w=function(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||t.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}(c,_,n)),w=function(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(c,w,_,l),l?(c.ifModified&&((k=_.getResponseHeader("Last-Modified"))&&(v.lastModified[i]=k),(k=_.getResponseHeader("etag"))&&(v.etag[i]=k)),204===t||"HEAD"===c.type?x="nocontent":304===t?x="notmodified":(x=w.state,g=w.data,l=!(y=w.error))):(y=x,!t&&x||(x="error",t<0&&(t=0))),_.status=t,_.statusText=(e||x)+"",l?p.resolveWith(f,[g,x,_]):p.rejectWith(f,[_,x,y]),_.statusCode(m),m=void 0,s&&d.trigger(l?"ajaxSuccess":"ajaxError",[_,c,l?g:y]),h.fireWith(f,[_,x]),s&&(d.trigger("ajaxComplete",[_,c]),--v.active||v.event.trigger("ajaxStop")))}return _},getJSON:function(t,e,n){return v.get(t,e,n,"json")},getScript:function(t,e){return v.get(t,void 0,e,"script")}}),v.each(["get","post"],(function(t,e){v[e]=function(t,n,r,i){return v.isFunction(n)&&(i=i||r,r=n,n=void 0),v.ajax({url:t,type:e,dataType:i,data:n,success:r})}})),v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){v.fn[e]=function(t){return this.on(e,t)}})),v._evalUrl=function(t){return v.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(t){if(v.isFunction(t))return this.each((function(e){v(this).wrapAll(t.call(this,e))}));if(this[0]){var e=v(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t})).append(this)}return this},wrapInner:function(t){return v.isFunction(t)?this.each((function(e){v(this).wrapInner(t.call(this,e))})):this.each((function(){var e=v(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v.isFunction(t);return this.each((function(n){v(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(){return this.parent().each((function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)})).end()}}),v.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!p.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||v.css(t,"display"))},v.expr.filters.visible=function(t){return!v.expr.filters.hidden(t)};var Ue=/%20/g,He=/\[\]$/,We=/\r?\n/g,Ve=/^(?:submit|button|image|reset|file)$/i,Ke=/^(?:input|select|textarea|keygen)/i;function Qe(t,e,n,r){var i;if(v.isArray(e))v.each(e,(function(e,i){n||He.test(t)?r(t,i):Qe(t+"["+("object"==typeof i?e:"")+"]",i,n,r)}));else if(n||"object"!==v.type(e))r(t,e);else for(i in e)Qe(t+"["+i+"]",e[i],n,r)}v.param=function(t,e){var n,r=[],i=function(t,e){e=v.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=v.ajaxSettings&&v.ajaxSettings.traditional),v.isArray(t)||t.jquery&&!v.isPlainObject(t))v.each(t,(function(){i(this.name,this.value)}));else for(n in t)Qe(n,t[n],e,i);return r.join("&").replace(Ue,"+")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=v.prop(this,"elements");return t?v.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!v(this).is(":disabled")&&Ke.test(this.nodeName)&&!Ve.test(t)&&(this.checked||!G.test(t))})).map((function(t,e){var n=v(this).val();return null==n?null:v.isArray(n)?v.map(n,(function(t){return{name:e.name,value:t.replace(We,"\r\n")}})):{name:e.name,value:n.replace(We,"\r\n")}})).get()}}),v.ajaxSettings.xhr=void 0!==r.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Ye()||function(){try{return new r.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:Ye;var $e=0,Ge={},Ze=v.ajaxSettings.xhr();function Ye(){try{return new r.XMLHttpRequest}catch(t){}}r.ActiveXObject&&v(r).on("unload",(function(){for(var t in Ge)Ge[t](void 0,!0)})),p.cors=!!Ze&&"withCredentials"in Ze,(Ze=p.ajax=!!Ze)&&v.ajaxTransport((function(t){var e;if(!t.crossDomain||p.cors)return{send:function(n,r){var i,o=t.xhr(),a=++$e;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];for(i in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(t.hasContent&&t.data||null),e=function(n,i){var s,u,l;if(e&&(i||4===o.readyState))if(delete Ge[a],e=void 0,o.onreadystatechange=v.noop,i)4!==o.readyState&&o.abort();else{l={},s=o.status,"string"==typeof o.responseText&&(l.text=o.responseText);try{u=o.statusText}catch(t){u=""}s||!t.isLocal||t.crossDomain?1223===s&&(s=204):s=l.text?200:404}l&&r(s,u,l,o.getAllResponseHeaders())},t.async?4===o.readyState?setTimeout(e):o.onreadystatechange=Ge[a]=e:e()},abort:function(){e&&e(void 0,!0)}}})),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return v.globalEval(t),t}}}),v.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)})),v.ajaxTransport("script",(function(t){if(t.crossDomain){var e,n=O.head||v("head")[0]||O.documentElement;return{send:function(r,i){(e=O.createElement("script")).async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||i(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}}));var Xe=[],Je=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||v.expando+"_"+Ce++;return this[t]=!0,t}}),v.ajaxPrefilter("json jsonp",(function(t,e,n){var i,o,a,s=!1!==t.jsonp&&(Je.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Je.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=v.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Je,"$1"+i):!1!==t.jsonp&&(t.url+=(Se.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||v.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always((function(){r[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Xe.push(i)),a&&v.isFunction(o)&&o(a[0]),a=o=void 0})),"script"})),v.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||O;var r=x.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=v.buildFragment([t],e,i),i&&i.length&&v(i).remove(),v.merge([],r.childNodes))};var tn=v.fn.load;v.fn.load=function(t,e,n){if("string"!=typeof t&&tn)return tn.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return s>=0&&(r=v.trim(t.slice(s,t.length)),t=t.slice(0,s)),v.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),a.length>0&&v.ajax({url:t,type:o,dataType:"html",data:e}).done((function(t){i=arguments,a.html(r?v("<div>").append(v.parseHTML(t)).find(r):t)})).complete(n&&function(t,e){a.each(n,i||[t.responseText,e,t])}),this},v.expr.filters.animated=function(t){return v.grep(v.timers,(function(e){return t===e.elem})).length};var en=r.document.documentElement;function nn(t){return v.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}v.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l=v.css(t,"position"),c=v(t),f={};"static"===l&&(t.style.position="relative"),s=c.offset(),o=v.css(t,"top"),u=v.css(t,"left"),("absolute"===l||"fixed"===l)&&v.inArray("auto",[o,u])>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+i),"using"in e?e.using.call(t,f):c.css(f)}},v.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){v.offset.setOffset(this,t,e)}));var e,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;return o?(e=o.documentElement,v.contains(e,i)?(typeof i.getBoundingClientRect!==q&&(r=i.getBoundingClientRect()),n=nn(o),{top:r.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:r.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):r):void 0},position:function(){if(this[0]){var t,e,n={top:0,left:0},r=this[0];return"fixed"===v.css(r,"position")?e=r.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),v.nodeName(t[0],"html")||(n=t.offset()),n.top+=v.css(t[0],"borderTopWidth",!0),n.left+=v.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-v.css(r,"marginTop",!0),left:e.left-n.left-v.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||en;t&&!v.nodeName(t,"html")&&"static"===v.css(t,"position");)t=t.offsetParent;return t||en}))}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n=/Y/.test(e);v.fn[t]=function(r){return $(this,(function(t,r,i){var o=nn(t);if(void 0===i)return o?e in o?o[e]:o.document.documentElement[r]:t[r];o?o.scrollTo(n?v(o).scrollLeft():i,n?i:v(o).scrollTop()):t[r]=i}),t,r,arguments.length,null)}})),v.each(["top","left"],(function(t,e){v.cssHooks[e]=qt(p.pixelPosition,(function(t,n){if(n)return n=It(t,e),Mt.test(n)?v(t).position()[e]+"px":n}))})),v.each({Height:"height",Width:"width"},(function(t,e){v.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){v.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return $(this,(function(e,n,r){var i;return v.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?v.css(e,n,a):v.style(e,n,r,a)}),e,o?r:void 0,o,null)}}))})),v.fn.size=function(){return this.length},v.fn.andSelf=v.fn.addBack,void 0===(n=function(){return v}.apply(e,[]))||(t.exports=n);var rn=r.jQuery,on=r.$;return v.noConflict=function(t){return r.$===v&&(r.$=on),t&&r.jQuery===v&&(r.jQuery=rn),v},typeof i===q&&(r.jQuery=r.$=v),v}))}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t={};n.r(t),n.d(t,{VERSION:()=>s,after:()=>Re,all:()=>rn,allKeys:()=>bt,any:()=>on,assign:()=>Rt,before:()=>qe,bind:()=>Ce,bindAll:()=>Te,chain:()=>_e,chunk:()=>zn,clone:()=>zt,collect:()=>Ye,compact:()=>Nn,compose:()=>Me,constant:()=>et,contains:()=>an,countBy:()=>wn,create:()=>Ft,debounce:()=>Le,default:()=>Wn,defaults:()=>qt,defer:()=>Pe,delay:()=>Ne,detect:()=>$e,difference:()=>jn,drop:()=>Tn,each:()=>Ze,escape:()=>le,every:()=>rn,extend:()=>Mt,extendOwn:()=>Rt,filter:()=>en,find:()=>$e,findIndex:()=>Ue,findKey:()=>Fe,findLastIndex:()=>He,findWhere:()=>Ge,first:()=>On,flatten:()=>Pn,foldl:()=>Je,foldr:()=>tn,forEach:()=>Ze,functions:()=>It,get:()=>Kt,groupBy:()=>yn,has:()=>Qt,head:()=>On,identity:()=>$t,include:()=>an,includes:()=>an,indexBy:()=>bn,indexOf:()=>Ke,initial:()=>Sn,inject:()=>Je,intersection:()=>Mn,invert:()=>Lt,invoke:()=>sn,isArguments:()=>X,isArray:()=>G,isArrayBuffer:()=>F,isBoolean:()=>P,isDataView:()=>$,isDate:()=>M,isElement:()=>j,isEmpty:()=>ft,isEqual:()=>yt,isError:()=>q,isFinite:()=>J,isFunction:()=>H,isMap:()=>Ot,isMatch:()=>dt,isNaN:()=>tt,isNull:()=>A,isNumber:()=>D,isObject:()=>T,isRegExp:()=>R,isSet:()=>At,isString:()=>I,isSymbol:()=>B,isTypedArray:()=>st,isUndefined:()=>N,isWeakMap:()=>Tt,isWeakSet:()=>Nt,iteratee:()=>Jt,keys:()=>ct,last:()=>An,lastIndexOf:()=>Qe,map:()=>Ye,mapObject:()=>ee,matcher:()=>Gt,matches:()=>Gt,max:()=>cn,memoize:()=>Ae,methods:()=>It,min:()=>fn,mixin:()=>Hn,negate:()=>De,noop:()=>ne,now:()=>ae,object:()=>Bn,omit:()=>Cn,once:()=>Be,pairs:()=>jt,partial:()=>Ee,partition:()=>_n,pick:()=>En,pluck:()=>un,property:()=>Zt,propertyOf:()=>re,random:()=>oe,range:()=>Fn,reduce:()=>Je,reduceRight:()=>tn,reject:()=>nn,rest:()=>Tn,restArguments:()=>O,result:()=>ye,sample:()=>hn,select:()=>en,shuffle:()=>vn,size:()=>kn,some:()=>on,sortBy:()=>mn,sortedIndex:()=>We,tail:()=>Tn,take:()=>On,tap:()=>Ut,template:()=>ge,templateSettings:()=>fe,throttle:()=>je,times:()=>ie,toArray:()=>pn,toPath:()=>Ht,transpose:()=>Rn,unescape:()=>ce,union:()=>Dn,uniq:()=>In,unique:()=>In,uniqueId:()=>we,unzip:()=>Rn,values:()=>Pt,where:()=>ln,without:()=>Ln,wrap:()=>Ie,zip:()=>qn});var e={};n.r(e),n.d(e,{VERSION:()=>s,after:()=>Re,all:()=>rn,allKeys:()=>bt,any:()=>on,assign:()=>Rt,before:()=>qe,bind:()=>Ce,bindAll:()=>Te,chain:()=>_e,chunk:()=>zn,clone:()=>zt,collect:()=>Ye,compact:()=>Nn,compose:()=>Me,constant:()=>et,contains:()=>an,countBy:()=>wn,create:()=>Ft,debounce:()=>Le,default:()=>Kn,defaults:()=>qt,defer:()=>Pe,delay:()=>Ne,detect:()=>$e,difference:()=>jn,drop:()=>Tn,each:()=>Ze,escape:()=>le,every:()=>rn,extend:()=>Mt,extendOwn:()=>Rt,filter:()=>en,find:()=>$e,findIndex:()=>Ue,findKey:()=>Fe,findLastIndex:()=>He,findWhere:()=>Ge,first:()=>On,flatten:()=>Pn,foldl:()=>Je,foldr:()=>tn,forEach:()=>Ze,functions:()=>It,get:()=>Kt,groupBy:()=>yn,has:()=>Qt,head:()=>On,identity:()=>$t,include:()=>an,includes:()=>an,indexBy:()=>bn,indexOf:()=>Ke,initial:()=>Sn,inject:()=>Je,intersection:()=>Mn,invert:()=>Lt,invoke:()=>sn,isArguments:()=>X,isArray:()=>G,isArrayBuffer:()=>F,isBoolean:()=>P,isDataView:()=>$,isDate:()=>M,isElement:()=>j,isEmpty:()=>ft,isEqual:()=>yt,isError:()=>q,isFinite:()=>J,isFunction:()=>H,isMap:()=>Ot,isMatch:()=>dt,isNaN:()=>tt,isNull:()=>A,isNumber:()=>D,isObject:()=>T,isRegExp:()=>R,isSet:()=>At,isString:()=>I,isSymbol:()=>B,isTypedArray:()=>st,isUndefined:()=>N,isWeakMap:()=>Tt,isWeakSet:()=>Nt,iteratee:()=>Jt,keys:()=>ct,last:()=>An,lastIndexOf:()=>Qe,map:()=>Ye,mapObject:()=>ee,matcher:()=>Gt,matches:()=>Gt,max:()=>cn,memoize:()=>Ae,methods:()=>It,min:()=>fn,mixin:()=>Hn,negate:()=>De,noop:()=>ne,now:()=>ae,object:()=>Bn,omit:()=>Cn,once:()=>Be,pairs:()=>jt,partial:()=>Ee,partition:()=>_n,pick:()=>En,pluck:()=>un,property:()=>Zt,propertyOf:()=>re,random:()=>oe,range:()=>Fn,reduce:()=>Je,reduceRight:()=>tn,reject:()=>nn,rest:()=>Tn,restArguments:()=>O,result:()=>ye,sample:()=>hn,select:()=>en,shuffle:()=>vn,size:()=>kn,some:()=>on,sortBy:()=>mn,sortedIndex:()=>We,tail:()=>Tn,take:()=>On,tap:()=>Ut,template:()=>ge,templateSettings:()=>fe,throttle:()=>je,times:()=>ie,toArray:()=>pn,toPath:()=>Ht,transpose:()=>Rn,unescape:()=>ce,union:()=>Dn,uniq:()=>In,unique:()=>In,uniqueId:()=>we,unzip:()=>Rn,values:()=>Pt,where:()=>ln,without:()=>Ln,wrap:()=>Ie,zip:()=>qn});var r={};n.r(r),n.d(r,{ERROR_CODE_CLIENT_VERIFICATION_REQUIRED:()=>Aa,currentState:()=>La,perform:()=>Na,reset:()=>Pa});var i={};n.r(i),n.d(i,{deserialize:()=>Au});var o={};n.r(o),n.d(o,{alwaysShowOptionMarkers:()=>Ph,currentPublicAuthorizationState:()=>Zg,enableForceVerification:()=>Gg,isFetchingActive:()=>Ea});var a={};n.r(a),n.d(a,{ArgumentError:()=>Jn,BackgroundImageTag:()=>yv,Binary:()=>Su,ChildListTag:()=>Kv,ContentTag:()=>bm,CurrentPage:()=>km,FutureBinary:()=>bu,ImageTag:()=>jm,InPlaceEditingOff:()=>Lm,Link:()=>Xg,LinkTag:()=>Rv,NotFoundErrorPage:()=>Mm,Obj:()=>Jg,ObjFacetValue:()=>gc,ObjSearch:()=>ty,RestoreInPlaceEditing:()=>Im,ScrivitoError:()=>Xn,Widget:()=>ey,WidgetTag:()=>qh,_internal:()=>o,configure:()=>_g,configureContentBrowser:()=>Fm,connect:()=>zp,createObjClass:()=>ny,createWidgetClass:()=>ry,currentPage:()=>Tv,currentPageParams:()=>Av,extendMenu:()=>Ig,finishLoading:()=>Ip,getClass:()=>iy,isEditorLoggedIn:()=>$g,isInPlaceEditingActive:()=>td,load:()=>ao,navigateTo:()=>bp,openDialog:()=>Kg,preload:()=>Hg,provideComponent:()=>Uh,provideEditingConfig:()=>Gc,provideObjClass:()=>oy,provideWidgetClass:()=>ay,registerComponent:()=>Hh,renderPage:()=>Fg,unstable_selectSiteId:()=>yf,updateMenuExtensions:()=>Mg,urlFor:()=>pp,useHistory:()=>zl});var s="1.13.7",u="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},l=Array.prototype,c=Object.prototype,f="undefined"!=typeof Symbol?Symbol.prototype:null,d=l.push,p=l.slice,h=c.toString,v=c.hasOwnProperty,m="undefined"!=typeof ArrayBuffer,g="undefined"!=typeof DataView,y=Array.isArray,b=Object.keys,w=Object.create,_=m&&ArrayBuffer.isView,k=isNaN,x=isFinite,E=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S=Math.pow(2,53)-1;function O(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+e];switch(e){case 0:return t.call(this,r);case 1:return t.call(this,arguments[0],r);case 2:return t.call(this,arguments[0],arguments[1],r)}var o=Array(e+1);for(i=0;i<e;i++)o[i]=arguments[i];return o[e]=r,t.apply(this,o)}}function T(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function A(t){return null===t}function N(t){return void 0===t}function P(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)}function j(t){return!(!t||1!==t.nodeType)}function L(t){var e="[object "+t+"]";return function(t){return h.call(t)===e}}const I=L("String"),D=L("Number"),M=L("Date"),R=L("RegExp"),q=L("Error"),B=L("Symbol"),F=L("ArrayBuffer");var z=L("Function"),U=u.document&&u.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof U&&(z=function(t){return"function"==typeof t||!1});const H=z,W=L("Object");var V=g&&(!/\[native code\]/.test(String(DataView))||W(new DataView(new ArrayBuffer(8)))),K="undefined"!=typeof Map&&W(new Map),Q=L("DataView");const $=V?function(t){return null!=t&&H(t.getInt8)&&F(t.buffer)}:Q,G=y||L("Array");function Z(t,e){return null!=t&&v.call(t,e)}var Y=L("Arguments");!function(){Y(arguments)||(Y=function(t){return Z(t,"callee")})}();const X=Y;function J(t){return!B(t)&&x(t)&&!isNaN(parseFloat(t))}function tt(t){return D(t)&&k(t)}function et(t){return function(){return t}}function nt(t){return function(e){var n=t(e);return"number"==typeof n&&n>=0&&n<=S}}function rt(t){return function(e){return null==e?void 0:e[t]}}const it=rt("byteLength"),ot=nt(it);var at=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const st=m?function(t){return _?_(t)&&!$(t):ot(t)&&at.test(h.call(t))}:et(!1),ut=rt("length");function lt(t,e){e=function(t){for(var e={},n=t.length,r=0;r<n;++r)e[t[r]]=!0;return{contains:function(t){return!0===e[t]},push:function(n){return e[n]=!0,t.push(n)}}}(e);var n=C.length,r=t.constructor,i=H(r)&&r.prototype||c,o="constructor";for(Z(t,o)&&!e.contains(o)&&e.push(o);n--;)(o=C[n])in t&&t[o]!==i[o]&&!e.contains(o)&&e.push(o)}function ct(t){if(!T(t))return[];if(b)return b(t);var e=[];for(var n in t)Z(t,n)&&e.push(n);return E&&lt(t,e),e}function ft(t){if(null==t)return!0;var e=ut(t);return"number"==typeof e&&(G(t)||I(t)||X(t))?0===e:0===ut(ct(t))}function dt(t,e){var n=ct(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=n[o];if(e[a]!==i[a]||!(a in i))return!1}return!0}function pt(t){return t instanceof pt?t:this instanceof pt?void(this._wrapped=t):new pt(t)}function ht(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,it(t))}pt.VERSION=s,pt.prototype.value=function(){return this._wrapped},pt.prototype.valueOf=pt.prototype.toJSON=pt.prototype.value,pt.prototype.toString=function(){return String(this._wrapped)};var vt="[object DataView]";function mt(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=typeof t;return("function"===i||"object"===i||"object"==typeof e)&&gt(t,e,n,r)}function gt(t,e,n,r){t instanceof pt&&(t=t._wrapped),e instanceof pt&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;if(V&&"[object Object]"==i&&$(t)){if(!$(e))return!1;i=vt}switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return f.valueOf.call(t)===f.valueOf.call(e);case"[object ArrayBuffer]":case vt:return gt(ht(t),ht(e),n,r)}var o="[object Array]"===i;if(!o&&st(t)){if(it(t)!==it(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(H(a)&&a instanceof a&&H(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}r=r||[];for(var u=(n=n||[]).length;u--;)if(n[u]===t)return r[u]===e;if(n.push(t),r.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!mt(t[u],e[u],n,r))return!1}else{var l,c=ct(t);if(u=c.length,ct(e).length!==u)return!1;for(;u--;)if(!Z(e,l=c[u])||!mt(t[l],e[l],n,r))return!1}return n.pop(),r.pop(),!0}function yt(t,e){return mt(t,e)}function bt(t){if(!T(t))return[];var e=[];for(var n in t)e.push(n);return E&&lt(t,e),e}function wt(t){var e=ut(t);return function(n){if(null==n)return!1;var r=bt(n);if(ut(r))return!1;for(var i=0;i<e;i++)if(!H(n[t[i]]))return!1;return t!==Ct||!H(n[_t])}}var _t="forEach",kt=["clear","delete"],xt=["get","has","set"],Et=kt.concat(_t,xt),Ct=kt.concat(xt),St=["add"].concat(kt,_t,"has");const Ot=K?wt(Et):L("Map"),Tt=K?wt(Ct):L("WeakMap"),At=K?wt(St):L("Set"),Nt=L("WeakSet");function Pt(t){for(var e=ct(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r}function jt(t){for(var e=ct(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r}function Lt(t){for(var e={},n=ct(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e}function It(t){var e=[];for(var n in t)H(t[n])&&e.push(n);return e.sort()}function Dt(t,e){return function(n){var r=arguments.length;if(e&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=t(o),s=a.length,u=0;u<s;u++){var l=a[u];e&&void 0!==n[l]||(n[l]=o[l])}return n}}const Mt=Dt(bt),Rt=Dt(ct),qt=Dt(bt,!0);function Bt(t){if(!T(t))return{};if(w)return w(t);var e=function(){};e.prototype=t;var n=new e;return e.prototype=null,n}function Ft(t,e){var n=Bt(t);return e&&Rt(n,e),n}function zt(t){return T(t)?G(t)?t.slice():Mt({},t):t}function Ut(t,e){return e(t),t}function Ht(t){return G(t)?t:[t]}function Wt(t){return pt.toPath(t)}function Vt(t,e){for(var n=e.length,r=0;r<n;r++){if(null==t)return;t=t[e[r]]}return n?t:void 0}function Kt(t,e,n){var r=Vt(t,Wt(e));return N(r)?n:r}function Qt(t,e){for(var n=(e=Wt(e)).length,r=0;r<n;r++){var i=e[r];if(!Z(t,i))return!1;t=t[i]}return!!n}function $t(t){return t}function Gt(t){return t=Rt({},t),function(e){return dt(e,t)}}function Zt(t){return t=Wt(t),function(e){return Vt(e,t)}}function Yt(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}}function Xt(t,e,n){return null==t?$t:H(t)?Yt(t,e,n):T(t)&&!G(t)?Gt(t):Zt(t)}function Jt(t,e){return Xt(t,e,1/0)}function te(t,e,n){return pt.iteratee!==Jt?pt.iteratee(t,e):Xt(t,e,n)}function ee(t,e,n){e=te(e,n);for(var r=ct(t),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=e(t[s],s,t)}return o}function ne(){}function re(t){return null==t?ne:function(e){return Kt(t,e)}}function ie(t,e,n){var r=Array(Math.max(0,t));e=Yt(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r}function oe(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}pt.toPath=Ht,pt.iteratee=Jt;const ae=Date.now||function(){return(new Date).getTime()};function se(t){var e=function(e){return t[e]},n="(?:"+ct(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}}const ue={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},le=se(ue),ce=se(Lt(ue)),fe=pt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var de=/(.)^/,pe={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},he=/\\|'|\r|\n|\u2028|\u2029/g;function ve(t){return"\\"+pe[t]}var me=/^\s*(\w|\$)+\s*$/;function ge(t,e,n){!e&&n&&(e=n),e=qt({},e,pt.templateSettings);var r=RegExp([(e.escape||de).source,(e.interpolate||de).source,(e.evaluate||de).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,(function(e,n,r,a,s){return o+=t.slice(i,s).replace(he,ve),i=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e})),o+="';\n";var a,s=e.variable;if(s){if(!me.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(t){throw t.source=o,t}var u=function(t){return a.call(this,t,pt)};return u.source="function("+s+"){\n"+o+"}",u}function ye(t,e,n){var r=(e=Wt(e)).length;if(!r)return H(n)?n.call(t):n;for(var i=0;i<r;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=n,i=r),t=H(o)?o.call(t):o}return t}var be=0;function we(t){var e=++be+"";return t?t+e:e}function _e(t){var e=pt(t);return e._chain=!0,e}function ke(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=Bt(t.prototype),a=t.apply(o,i);return T(a)?a:o}var xe=O((function(t,e){var n=xe.placeholder,r=function(){for(var i=0,o=e.length,a=Array(o),s=0;s<o;s++)a[s]=e[s]===n?arguments[i++]:e[s];for(;i<arguments.length;)a.push(arguments[i++]);return ke(t,r,this,this,a)};return r}));xe.placeholder=pt;const Ee=xe,Ce=O((function(t,e,n){if(!H(t))throw new TypeError("Bind must be called on a function");var r=O((function(i){return ke(t,r,e,this,n.concat(i))}));return r})),Se=nt(ut);function Oe(t,e,n,r){if(r=r||[],e||0===e){if(e<=0)return r.concat(t)}else e=1/0;for(var i=r.length,o=0,a=ut(t);o<a;o++){var s=t[o];if(Se(s)&&(G(s)||X(s)))if(e>1)Oe(s,e-1,n,r),i=r.length;else for(var u=0,l=s.length;u<l;)r[i++]=s[u++];else n||(r[i++]=s)}return r}const Te=O((function(t,e){var n=(e=Oe(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=e[n];t[r]=Ce(t[r],t)}return t}));function Ae(t,e){var n=function(r){var i=n.cache,o=""+(e?e.apply(this,arguments):r);return Z(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n}const Ne=O((function(t,e,n){return setTimeout((function(){return t.apply(null,n)}),e)})),Pe=Ee(Ne,pt,1);function je(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:ae(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=ae();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l}function Le(t,e,n){var r,i,o,a,s,u=function(){var l=ae()-i;e>l?r=setTimeout(u,e-l):(r=null,n||(a=t.apply(s,o)),r||(o=s=null))},l=O((function(l){return s=this,o=l,i=ae(),r||(r=setTimeout(u,e),n&&(a=t.apply(s,o))),a}));return l.cancel=function(){clearTimeout(r),r=o=s=null},l}function Ie(t,e){return Ee(e,t)}function De(t){return function(){return!t.apply(this,arguments)}}function Me(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}}function Re(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function qe(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}const Be=Ee(qe,2);function Fe(t,e,n){e=te(e,n);for(var r,i=ct(t),o=0,a=i.length;o<a;o++)if(e(t[r=i[o]],r,t))return r}function ze(t){return function(e,n,r){n=te(n,r);for(var i=ut(e),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(n(e[o],o,e))return o;return-1}}const Ue=ze(1),He=ze(-1);function We(t,e,n,r){for(var i=(n=te(n,r,1))(e),o=0,a=ut(t);o<a;){var s=Math.floor((o+a)/2);n(t[s])<i?o=s+1:a=s}return o}function Ve(t,e,n){return function(r,i,o){var a=0,s=ut(r);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=e(p.call(r,a,s),tt))>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&o<s;o+=t)if(r[o]===i)return o;return-1}}const Ke=Ve(1,Ue,We),Qe=Ve(-1,He);function $e(t,e,n){var r=(Se(t)?Ue:Fe)(t,e,n);if(void 0!==r&&-1!==r)return t[r]}function Ge(t,e){return $e(t,Gt(e))}function Ze(t,e,n){var r,i;if(e=Yt(e,n),Se(t))for(r=0,i=t.length;r<i;r++)e(t[r],r,t);else{var o=ct(t);for(r=0,i=o.length;r<i;r++)e(t[o[r]],o[r],t)}return t}function Ye(t,e,n){e=te(e,n);for(var r=!Se(t)&&ct(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=e(t[s],s,t)}return o}function Xe(t){return function(e,n,r,i){var o=arguments.length>=3;return function(e,n,r,i){var o=!Se(e)&&ct(e),a=(o||e).length,s=t>0?0:a-1;for(i||(r=e[o?o[s]:s],s+=t);s>=0&&s<a;s+=t){var u=o?o[s]:s;r=n(r,e[u],u,e)}return r}(e,Yt(n,i,4),r,o)}}const Je=Xe(1),tn=Xe(-1);function en(t,e,n){var r=[];return e=te(e,n),Ze(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r}function nn(t,e,n){return en(t,De(te(e)),n)}function rn(t,e,n){e=te(e,n);for(var r=!Se(t)&&ct(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!e(t[a],a,t))return!1}return!0}function on(t,e,n){e=te(e,n);for(var r=!Se(t)&&ct(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(e(t[a],a,t))return!0}return!1}function an(t,e,n,r){return Se(t)||(t=Pt(t)),("number"!=typeof n||r)&&(n=0),Ke(t,e,n)>=0}const sn=O((function(t,e,n){var r,i;return H(e)?i=e:(e=Wt(e),r=e.slice(0,-1),e=e[e.length-1]),Ye(t,(function(t){var o=i;if(!o){if(r&&r.length&&(t=Vt(t,r)),null==t)return;o=t[e]}return null==o?o:o.apply(t,n)}))}));function un(t,e){return Ye(t,Zt(e))}function ln(t,e){return en(t,Gt(e))}function cn(t,e,n){var r,i,o=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,u=(t=Se(t)?t:Pt(t)).length;s<u;s++)null!=(r=t[s])&&r>o&&(o=r);else e=te(e,n),Ze(t,(function(t,n,r){((i=e(t,n,r))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)}));return o}function fn(t,e,n){var r,i,o=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,u=(t=Se(t)?t:Pt(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else e=te(e,n),Ze(t,(function(t,n,r){((i=e(t,n,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)}));return o}var dn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function pn(t){return t?G(t)?p.call(t):I(t)?t.match(dn):Se(t)?Ye(t,$t):Pt(t):[]}function hn(t,e,n){if(null==e||n)return Se(t)||(t=Pt(t)),t[oe(t.length-1)];var r=pn(t),i=ut(r);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=oe(a,o),u=r[a];r[a]=r[s],r[s]=u}return r.slice(0,e)}function vn(t){return hn(t,1/0)}function mn(t,e,n){var r=0;return e=te(e,n),un(Ye(t,(function(t,n,i){return{value:t,index:r++,criteria:e(t,n,i)}})).sort((function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index})),"value")}function gn(t,e){return function(n,r,i){var o=e?[[],[]]:{};return r=te(r,i),Ze(n,(function(e,i){var a=r(e,i,n);t(o,e,a)})),o}}const yn=gn((function(t,e,n){Z(t,n)?t[n].push(e):t[n]=[e]})),bn=gn((function(t,e,n){t[n]=e})),wn=gn((function(t,e,n){Z(t,n)?t[n]++:t[n]=1})),_n=gn((function(t,e,n){t[n?0:1].push(e)}),!0);function kn(t){return null==t?0:Se(t)?t.length:ct(t).length}function xn(t,e,n){return e in n}const En=O((function(t,e){var n={},r=e[0];if(null==t)return n;H(r)?(e.length>1&&(r=Yt(r,e[1])),e=bt(t)):(r=xn,e=Oe(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];r(s,a,t)&&(n[a]=s)}return n})),Cn=O((function(t,e){var n,r=e[0];return H(r)?(r=De(r),e.length>1&&(n=e[1])):(e=Ye(Oe(e,!1,!1),String),r=function(t,n){return!an(e,n)}),En(t,r,n)}));function Sn(t,e,n){return p.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))}function On(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[0]:Sn(t,t.length-e)}function Tn(t,e,n){return p.call(t,null==e||n?1:e)}function An(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[t.length-1]:Tn(t,Math.max(0,t.length-e))}function Nn(t){return en(t,Boolean)}function Pn(t,e){return Oe(t,e,!1)}const jn=O((function(t,e){return e=Oe(e,!0,!0),en(t,(function(t){return!an(e,t)}))})),Ln=O((function(t,e){return jn(t,e)}));function In(t,e,n,r){P(e)||(r=n,n=e,e=!1),null!=n&&(n=te(n,r));for(var i=[],o=[],a=0,s=ut(t);a<s;a++){var u=t[a],l=n?n(u,a,t):u;e&&!n?(a&&o===l||i.push(u),o=l):n?an(o,l)||(o.push(l),i.push(u)):an(i,u)||i.push(u)}return i}const Dn=O((function(t){return In(Oe(t,!0,!0))}));function Mn(t){for(var e=[],n=arguments.length,r=0,i=ut(t);r<i;r++){var o=t[r];if(!an(e,o)){var a;for(a=1;a<n&&an(arguments[a],o);a++);a===n&&e.push(o)}}return e}function Rn(t){for(var e=t&&cn(t,ut).length||0,n=Array(e),r=0;r<e;r++)n[r]=un(t,r);return n}const qn=O(Rn);function Bn(t,e){for(var n={},r=0,i=ut(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n}function Fn(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),o=0;o<r;o++,t+=n)i[o]=t;return i}function zn(t,e){if(null==e||e<1)return[];for(var n=[],r=0,i=t.length;r<i;)n.push(p.call(t,r,r+=e));return n}function Un(t,e){return t._chain?pt(e).chain():e}function Hn(t){return Ze(It(t),(function(e){var n=pt[e]=t[e];pt.prototype[e]=function(){var t=[this._wrapped];return d.apply(t,arguments),Un(this,n.apply(pt,t))}})),pt}Ze(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=l[t];pt.prototype[t]=function(){var n=this._wrapped;return null!=n&&(e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Un(this,n)}})),Ze(["concat","join","slice"],(function(t){var e=l[t];pt.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),Un(this,t)}}));const Wn=pt;var Vn=Hn(t);Vn._=Vn;const Kn=Vn;function Qn(t){try{return H(t)?function(t){if(function(t){return!!t._scrivitoPrivateSchema}(t)){return"[class "+t._scrivitoPrivateSchema.name+"]"}if(function(t){var e=t.prototype;return e&&e.isReactComponent}(t)){return'[class React.Component "'+(t.displayName||t.name)+'"]'}return Gn(t.toString())}(t):T(t)?function(t){var e=t._scrivitoPrivateContent;if(e&&H(e.toPrettyPrint))return e.toPrettyPrint();if(j(t))return"[object HTMLElement "+$n(t.outerHTML)+"]";return $n(t)}(t):$n(t)}catch(t){return""}}function $n(t){var e=JSON.stringify(t);return e?Gn(e):e}function Gn(t){return t.length>100?t.slice(0,100)+"...":t}var Zn,Yn=(Zn=function(t,e){return Zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},Zn(t,e)},function(t,e){function n(){this.constructor=t}Zn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Xn=function(t){function e(e,n){var r=this.constructor;void 0===n&&(n=!0);var i=t.call(this,e)||this,o=r.prototype;if(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o,i._captureStackTrace=n,n)if(Error.captureStackTrace)Error.captureStackTrace(i,i.constructor);else{var a=void 0;try{throw new Error}catch(t){a=t.stack}Object.defineProperty(i,"stack",{value:a})}return i}return Yn(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"captureStackTrace",{get:function(){return!!this._captureStackTrace},enumerable:!1,configurable:!0}),e}(Error),Jn=function(t){function e(e){return t.call(this,e)||this}return Yn(e,t),e}(Xn),tr=function(t){function e(e){return t.call(this,e)||this}return Yn(e,t),e}(Xn),er=function(t){function e(e){return t.call(this,e)||this}return Yn(e,t),e}(Xn),nr=n(9294);nr.struct.strict=!0,nr.interface.strict=!0,nr.fail=function(t){throw new TypeError(t)};var rr,ir=[];function or(t){rr?ir.push(t):setTimeout(t,0)}function ar(t){or((function(){throw t}))}function sr(t,e,n){var r=n.docPermalink;return function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];try{n=function(t,e){var n=e.length,r=t.length;if(r>n)return"Expected "+n+" arguments, got "+r;var i=Pn(e.map((function(e,n){var r=e[0],i=e[1],o=t[n];return nr.validate(o,i).errors.map((function(t){return function(t,e){var n=function(t,e){var n="argument '"+t+"'";if(0===e.path.length)return n;return"key '"+e.path.join("/")+"' in "+n}(t,e);if(void 0===e.actual)return"Missing required "+n+".";if(e.expected===nr.Nil)return"Unexpected "+n+".";var r=nr.getTypeName(e.expected),i="got "+Qn(e.actual)+", expected type "+r+".";return"Unexpected value for "+n+": "+i}(r,t)}))})));if(i.length>0)return i.join(" ")}(i,e)}catch(t){ar(t)}if(n)throw new Jn("Invalid arguments for '"+t+"': "+n+" "+("Visit https://scrivito.com/"+r+" for more information."))}}var ur=function(){function t(){}return t.prototype.current=function(){return this.currentContext},t.prototype.runWith=function(t,e){var n=this.currentContext;try{return this.currentContext=t,e()}finally{this.currentContext=n}},t}();const lr=ur;const cr=function(){function t(){var t=this;this.promise=new ai((function(e,n){t.resolve=function(n){t.settled=!0,e(n)},t.reject=function(e){t.settled=!0,n(e)}}))}return t.prototype.isPending=function(){return!this.settled},t}();function fr(t){try{return{errorThrown:!1,result:t()}}catch(t){return{errorThrown:!0,error:t}}}var dr=!1;function pr(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];window&&window.console&&!dr&&(t=window.console).error.apply(t,e)}function hr(){var t="1.6.0-rc1-526-ge714e9a74f52";return t}function vr(t,e){void 0===e&&(e=window.document);var n=e.createElement("script");n.src=t,mr(e.head,n)}function mr(t,e){t.appendChild(e)}var gr=/(_+)(\w)/g,yr=/([A-Z])/g,br=/[A-Z]+|\d+/g,wr=/^_?(_+[A-Z0-9]|[^_])+$/,_r=/[_\s]+/g,kr=/[A-Z][a-z]+/g;function xr(t){return wr.test(t)}function Er(t){return t.replace(yr,(function(t,e){return"_"+e.toLowerCase()}))}function Cr(t){return t.replace(gr,(function(t,e,n,r){return r?n.toUpperCase()===n?t:""+e.substr(1)+n.toUpperCase():t}))}var Sr=nr.interface({size:nr.Number,type:nr.String},{name:"Blob",strict:!1}),Or=Sr.extend({name:nr.String},{name:"File",strict:!1});function Tr(t){return"_"===t[0]}function Ar(){for(var t=Math.floor(Math.random()*Math.pow(16,8)).toString(16);t.length<8;)t="0"+t;return t}var Nr=!1;var Pr=-9007199254740991,jr=9007199254740991,Lr=/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/;function Ir(t){return function(t){return Dr(t)&&Math.floor(t)===t}(t)&&Pr<=t&&t<=jr}function Dr(t){return"number"==typeof t&&J(t)}function Mr(t){if("string"!=typeof t)return null;if(!Br(t))throw new tr('The value is not a valid ISO date time: "'+t+'"');return Rr(t)}function Rr(t){if(!t)return null;var e=t.match(Lr);if(!e)return null;var n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],u=parseInt(n,10),l=parseInt(r,10),c=parseInt(i,10),f=parseInt(o,10),d=parseInt(a,10),p=parseInt(s,10);return new Date(Date.UTC(u,l-1,c,f,d,p))}function qr(t){return""+(""+t.getUTCFullYear()+Fr(t.getUTCMonth()+1))+(""+Fr(t.getUTCDate())+Fr(t.getUTCHours()))+(""+Fr(t.getUTCMinutes())+Fr(t.getUTCSeconds()))}function Br(t){return"string"==typeof t&&!!t.match(/^\d{14}$/)}function Fr(t){return t<10?"0"+t:t}function zr(t){var e=parseInt(t.toString(),10);return 0===e?0:Ir(e)?e:null}function Ur(t){return new ai((function(e){setTimeout(e,t)}))}function Hr(t,e){return Wr(t)&&Wr(e)?t.equals(e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&rn(qn(t,e),(function(t){return Hr(t[0],t[1])})):t&&e?t.valueOf()===e.valueOf():t===e}function Wr(t){return!!t&&"function"==typeof t.equals}function Vr(t,e){return t.then((function(t){return e(),t}),(function(t){throw e(),t}))}const Kr=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))};const Qr=function(t){return new this((function(e,n){if(!t||void 0===t.length)return n(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var i=r.length;function o(t,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(e){o(t,e)}),(function(n){r[t]={status:"rejected",reason:n},0==--i&&e(r)}))}r[t]={status:"fulfilled",value:n},0==--i&&e(r)}for(var a=0;a<r.length;a++)o(a,r[a])}))};function $r(t,e){this.name="AggregateError",this.errors=t,this.message=e||""}$r.prototype=Error.prototype;const Gr=function(t){var e=this;return new e((function(n,r){if(!t||void 0===t.length)return r(new TypeError("Promise.any accepts an array"));var i=Array.prototype.slice.call(t);if(0===i.length)return r();for(var o=[],a=0;a<i.length;a++)try{e.resolve(i[a]).then(n).catch((function(t){o.push(t),o.length===i.length&&r(new $r(o,"All promises were rejected"))}))}catch(t){r(t)}}))};var Zr=setTimeout;function Yr(t){return Boolean(t&&void 0!==t.length)}function Xr(){}function Jr(t){if(!(this instanceof Jr))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],oi(t,this)}function ti(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,Jr._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void ni(e.promise,t)}ei(e.promise,r)}else(1===t._state?ei:ni)(e.promise,t._value)}))):t._deferreds.push(e)}function ei(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof Jr)return t._state=3,t._value=e,void ri(t);if("function"==typeof n)return void oi((r=n,i=e,function(){r.apply(i,arguments)}),t)}t._state=1,t._value=e,ri(t)}catch(e){ni(t,e)}var r,i}function ni(t,e){t._state=2,t._value=e,ri(t)}function ri(t){2===t._state&&0===t._deferreds.length&&Jr._immediateFn((function(){t._handled||Jr._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)ti(t,t._deferreds[e]);t._deferreds=null}function ii(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function oi(t,e){var n=!1;try{t((function(t){n||(n=!0,ei(e,t))}),(function(t){n||(n=!0,ni(e,t))}))}catch(t){if(n)return;n=!0,ni(e,t)}}Jr.prototype.catch=function(t){return this.then(null,t)},Jr.prototype.then=function(t,e){var n=new this.constructor(Xr);return ti(this,new ii(t,e,n)),n},Jr.prototype.finally=Kr,Jr.all=function(t){return new Jr((function(e,n){if(!Yr(t))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var i=r.length;function o(t,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){o(t,e)}),n)}r[t]=a,0==--i&&e(r)}catch(t){n(t)}}for(var a=0;a<r.length;a++)o(a,r[a])}))},Jr.any=Gr,Jr.allSettled=Qr,Jr.resolve=function(t){return t&&"object"==typeof t&&t.constructor===Jr?t:new Jr((function(e){e(t)}))},Jr.reject=function(t){return new Jr((function(e,n){n(t)}))},Jr.race=function(t){return new Jr((function(e,n){if(!Yr(t))return n(new TypeError("Promise.race accepts an array"));for(var r=0,i=t.length;r<i;r++)Jr.resolve(t[r]).then(e,n)}))},Jr._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){Zr(t,0)},Jr._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var ai;ai="undefined"!=typeof Promise?Promise:Jr;var si=function(){function t(t,e){var n=(void 0===e?{}:e).batchSize;this.mget=t,this.batchSize=n||100,this.itemsToBatch=[]}return t.prototype.retrieve=function(t){var e=this;0===this.itemsToBatch.length&&or((function(){return e.performRetrieval()}));var n=new cr;return this.itemsToBatch.push({key:t,deferred:n}),n.promise},t.prototype.reset=function(){this.itemsToBatch=[]},t.prototype.performRetrieval=function(){var t=this,e=this.itemsToBatch.splice(0,this.batchSize);if(0!==e.length){var n=e.map((function(t){return t.key}));this.mget(n).then((function(n){e.forEach((function(e,r){var i=e.key,o=e.deferred;if(r<n.length){var a=n[r];o.resolve(a)}else t.retrieve(i).then(o.resolve,o.reject)}))}),(function(t){e.forEach((function(e){return e.deferred.reject(t)}))})),this.performRetrieval()}},t}();const ui=si;function li(t){var e=ci(t);return JSON.stringify(e)}function ci(t){return Array.isArray(t)?t.map(ci):function(t){return"object"==typeof t&&null!==t}(t)?Object.keys(t).sort().map((function(e){return[e,ci(t[e])]})):t}var fi=Object.assign||Mt;var di=function(){function t(t){this.subscribeFunction=t}return t.prototype.subscribe=function(t){var e=new pi("object"==typeof t?t:{next:t}),n=this.subscribeFunction(e);return e.setUnsubscribeCallback("object"==typeof n?function(){return n.unsubscribe()}:n),e},t.prototype.map=function(e){var n=this;return new t((function(t){return n.subscribe({next:function(n){return t.next(e(n))},complete:function(){return t.complete()}})}))},t.prototype.filter=function(e){var n=this;return new t((function(t){return n.subscribe({next:function(n){e(n)&&t.next(n)},complete:function(){return t.complete()}})}))},t.prototype.toPromise=function(){var t=this;return new ai((function(e){var n;t.subscribe({next:function(t){n=t},complete:function(){e(n)}})}))},t.prototype.takeOne=function(){var e=this;return new t((function(t){var n=e.subscribe({next:function(e){n.unsubscribe(),t.next(e),t.complete()},complete:function(){t.complete()}});return n}))},t.prototype.takeUntil=function(e){var n=this;return new t((function(t){var r,i;if((i=n.subscribe({next:function(e){t.next(e)},complete:function(){o()}})).isClosed())return function(){};function o(){t.complete(),a()}function a(){i&&i.unsubscribe(),r&&r.unsubscribe()}return r=e.subscribe({next:function(){o()},complete:function(){o()}}),a}))},t}(),pi=function(){function t(t){this.subscriber=t}return t.prototype.next=function(t){this.subscriber&&this.subscriber.next&&this.subscriber.next(t)},t.prototype.complete=function(){this.subscriber&&this.subscriber.complete&&this.subscriber.complete(),this.subscriber=void 0},t.prototype.unsubscribe=function(){this.subscriber&&(this.unsubscribeCallback&&this.unsubscribeCallback(),this.subscriber=void 0)},t.prototype.isClosed=function(){return!this.subscriber},t.prototype.setUnsubscribeCallback=function(t){this.unsubscribeCallback=t},t}(),hi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vi=function(t){function e(){var e=t.call(this,(function(t){if(e.isCompleted)return t.complete(),function(){};var n=(e.subscriberIdCounter++).toString();return e.subscribers[n]=t,function(){delete e.subscribers[n]}}))||this;return e.subscribers={},e.subscriberIdCounter=1,e.isCompleted=!1,e}return hi(e,t),e.prototype.next=function(t){var e=this;Object.keys(this.subscribers).forEach((function(n){e.subscribers[n].next(t)}))},e.prototype.complete=function(){var t=this;Object.keys(this.subscribers).forEach((function(e){return t.subscribers[e].complete()})),this.subscribers={},this.isCompleted=!0},e.prototype.subscriberCount=function(){return Object.keys(this.subscribers).length},e.prototype.isClosed=function(){return this.isCompleted},e}(di);var mi=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},gi=new lr,yi=function(){return gi.current()};function bi(t){var e={subscribes:[],missing:!1,outdated:!1},n=gi.runWith(e,t);return new ki(e,n)}function wi(){throw new Xn("Content not yet loaded. Forgot to use Scrivito.load or Scrivito.connect? See https://scrivito.com/content-not-yet-loaded-error")}function _i(){return void 0!==yi()}var ki=function(){function t(t,e){this.captureList=t,this.result=e}return t.prototype.forwardToCurrent=function(){var t,e,n=yi();n?(t=n,e=this.captureList,t.subscribes=mi(t.subscribes,e.subscribes),t.missing=t.missing||e.missing,t.outdated=t.outdated||e.outdated):this.captureList.missing&&wi()},t.prototype.isAllDataLoaded=function(){return!this.captureList.missing},t.prototype.isAllDataUpToDate=function(){return!this.captureList.missing&&!this.captureList.outdated},t.prototype.subscribeLoading=function(t){var e=this.captureList.subscribes.map((function(t){return t()}));t.unsubscribe(),t.storeUnsubscribe((function(){e.forEach((function(t){return t()}))}))},t}(),xi=function(){function t(){}return t.prototype.storeUnsubscribe=function(t){this.unsubscribeCallback=t},t.prototype.unsubscribe=function(){this.unsubscribeCallback&&this.unsubscribeCallback()},t}();var Ei=function(){function t(t,e){this.value=t,this.copy=e,this.valueForReading=new lr}return t.prototype.read=function(t){var e=this.value;return this.valueForReading.runWith(e,(function(){return t(e)}))},t.prototype.write=function(t){this.valueForReading.current()===this.value&&(this.value=this.copy(this.value)),t(this.value)},t}(),Ci=function(){function t(t){this.notifySubscribers=t,this.subscribersStore=new Ei([],(function(t){return t.slice()}))}return t.prototype.create=function(t,e){return void 0===e&&(e=0),new Si(this.subscribersStore,t,e)},t.prototype.count=function(){return this.subscribersStore.read((function(t){return t.length}))},t.prototype.reset=function(){this.subscribersStore.write((function(t){t.length=0}))},t.prototype.notify=function(){var t=this;this.subscribersStore.read((function(e){return t.notifySubscribers(e)}))},t}(),Si=function(){function t(t,e,n){void 0===n&&(n=0),this.subscriberStore=t,this.listener=e,this.rank=n,this.active=!1}return t.prototype.subscribeChanges=function(t){var e=this;this.stateReference=t,this.active||(this.subscriberStore.write((function(t){var n=We(t,e,"rank");t.splice(n,0,e)})),this.active=!0),this.hasChanges()&&this.listener()},t.prototype.unsubscribe=function(){var t=this;this.active&&(this.subscriberStore.write((function(e){var n=e.indexOf(t);n>=0&&e.splice(n,1)})),this.active=!1)},t.prototype.notify=function(){this.active&&this.listener()},t.prototype.hasChanges=function(){return!!this.stateReference&&this.stateReference.hasChanges()},t}(),Oi=new Ci((function(t){t.forEach((function(t){t.hasChanges()&&t.notify()}))})),Ti=new Ci((function(t){t.forEach((function(t){or((function(){t.hasChanges()&&t.notify()}))}))}));const Ai=function(){function t(){this.listenersStore=new Ei([],(function(t){return t.slice()}))}return t.prototype.subscribe=function(t){var e=this,n=!0,r=function(){n&&t()};return this.listenersStore.write((function(t){return t.push(r)})),function(){n=!1,e.listenersStore.write((function(t){var e=t.indexOf(r);t.splice(e,1)}))}},t.prototype.count=function(){return this.listenersStore.read((function(t){return t.length}))},t.prototype.clear=function(){this.listenersStore.write((function(t){t.length=0}))},t.prototype.notify=function(){this.listenersStore.read((function(t){return t.forEach((function(t){return t()}))}))},t}();function Ni(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&!function(t){var e=Object.getPrototypeOf(t);if(null===e)return!1;return null!==Object.getPrototypeOf(e)}(t)}function Pi(t,e){return t===e?e:Ni(e)?function(t,e){var n={},r=!1;void 0===t&&(r=!0);var i=Object.keys(e),o=new Set;t&&Object.keys(t).forEach((function(t){return o.add(t)}));o.size!==i.length&&(r=!0);i.forEach((function(i){o.has(i)||(r=!0);var a=t?t[i]:void 0,s=Pi(a,e[i]);s!==a&&(r=!0),n[i]=s}));var a=r?Object.freeze(n):t;return a}(Ni(t)?t:void 0,e):Array.isArray(e)?function(t,e){var n=!1;void 0!==t&&t.length===e.length||(n=!0);var r=e.map((function(e,r){var i=t?t[r]:void 0,o=Pi(i,e);return o!==i&&(n=!0),o})),i=n?Object.freeze(r):t;return i}(Array.isArray(t)?t:void 0,e):e}var ji=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Li=function(){function t(){}return t.prototype.get=function(){var t=this,e=this.untrackedGet();return this.recordDetector((function(){return e!==t.untrackedGet()})),e},t.prototype.recordDetector=function(t){this.getTree().recordDetector(t)},t.prototype.set=function(t){var e=this.untrackedGet(),n=function(t,e){return Pi(t,e)}(e,t);n!==e&&this.uncheckedSet(n)},t.prototype.clear=function(){this.set(void 0)},t.prototype.subState=function(t){return new Hi(this,t)},t.prototype.reader=function(){return this},t.prototype.setSubState=function(t,e){var n,r=this.untrackedGet();if(void 0!==r){if(void 0===e){var i=Object.keys(r);if(1===i.length&&i[0]===t)return void this.uncheckedSet(void 0)}if(null===r)throw new tr;var o=fi({},r),a=o;void 0===e?delete a[t]:a[t]=e,this.uncheckedSet(Object.freeze(o))}else{var s=Object.freeze(((n={})[t]=e,n));this.uncheckedSet(s)}},t.prototype.getSubState=function(t){var e=this.untrackedGet();if(null!=e)return e[t]},t}(),Ii=function(){function t(t){this.detector=t}return t.prototype.hasChanges=function(){return this.detector()},t}(),Di=function(t){function e(){var e=t.call(this)||this;return e.listeners=new Ai,e.detectorRecording=new lr,e.batchUpdates=new lr,e.version=0,e.frozenContextContainer=new lr,e}return ji(e,t),e.prototype.untrackedGet=function(){return this.state},e.prototype.withFrozenState=function(t,e){return this.frozenContextContainer.runWith(t,e)},e.prototype.failIfTracking=function(t){if(this.detectorRecording.current())throw new tr(t)},e.prototype.failIfFrozen=function(t){var e=this.frozenContextContainer.current();if(e){var n=t+" is not permitted inside '"+e.contextName+"'. "+(e.message||"");throw new Ui(n)}},e.prototype.uncheckedSet=function(t){this.failIfFrozen("Changing state"),this.state=t,this.version++,this.insideBatchUpdate()||this.notifyListeners()},e.prototype.trackStateAccess=function(t){var e=this.trackChanges(t),n=e.detector;return{result:e.result,accessedState:new Ii(n)}},e.prototype.recordDetector=function(t){var e=this.detectorRecording.current();void 0!==e&&e.push(t)},e.prototype.getTree=function(){return this},e.prototype.id=function(){return""},e.prototype.subscribe=function(t){return this.listeners.subscribe(t)},e.prototype.withBatchedUpdates=function(t){var e=this.state;try{this.batchUpdates.runWith(!0,t)}finally{this.insideBatchUpdate()||e===this.state||this.notifyListeners()}},e.prototype.listenerCount=function(){return this.listeners.count()},e.prototype.clearListeners=function(){this.listeners.clear()},e.prototype.trackChanges=function(t){var e=this,n=this.version,r=this.recordDetectors(t),i=r.result,o=r.detectors;return{result:i,detector:function(){return e.version!==n&&!!$e(o,(function(t){return t()}))}}},e.prototype.recordDetectors=function(t){var e=[],n=this.detectorRecording.runWith(e,t),r=this.detectorRecording.current();return void 0!==r&&r.push.apply(r,e),{result:n,detectors:e}},e.prototype.notifyListeners=function(){var t=this;this.withFrozenState({contextName:"state listeners"},(function(){t.listeners.notify()}))},e.prototype.insideBatchUpdate=function(){return!!this.batchUpdates.current()},e}(Li);const Mi=Di;var Ri,qi,Bi,Fi,zi,Ui=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ji(e,t),e}(Xn),Hi=function(t){function e(e,n){var r=t.call(this)||this;return r.parentState=e,r.key=n,r.tree=e.getTree(),r}return ji(e,t),e.prototype.getTree=function(){return this.tree},e.prototype.untrackedGet=function(){return this.parentState.getSubState(this.key)},e.prototype.uncheckedSet=function(t){this.parentState.setSubState(this.key,t)},e.prototype.id=function(){if(void 0===this.cachedId){var t=this.key.replace(/\\/g,"\\\\").replace(/\//g,"\\/");this.cachedId=this.parentState.id()+"/"+t}return this.cachedId},e}(Li);function Wi(t){t?(Ri=void 0,qi=t.stateController(),Bi=t.createAppState(),zi=t.sharedCmsState(),Fi=Bi.subState("localCms")):(Ri=new Mi,qi=Ri,Bi=function(){if(!Ri)throw new tr;var t=(Ki++).toString();return Ri.subState("apps").subState(t)}(),zi=Ri.subState("sharedCms"),Fi=Ri.subState("localCms"),Ri.subState("ui")),Ji()}var Vi,Ki=0;function Qi(t){return qi.withBatchedUpdates(t)}function $i(t){return qi.trackStateAccess(t)}function Gi(t,e){return qi.withFrozenState(t,e)}function Zi(t){return qi.failIfFrozen(t)}function Yi(t){return qi.failIfTracking(t)}function Xi(t,e){return void 0===e&&(e=0),Oi.create(t,e)}function Ji(){Vi=qi.subscribe((function(){Oi.notify(),Ti.notify()}))}var to=[],eo=function(){return 0!==to.length};function no(t){eo()||or((function(){return Qi((function(){return ro(to)}))})),to.push(t)}function ro(t){to=[];try{t.forEach((function(t){return t()}))}finally{eo()&&ro(to)}}function io(t,e){var n,r=!0,i=!1,o=function(t){return Ti.create(t)}(a);function a(){if(r){var a=$i((function(){return Gi({contextName:"observe",message:"Extract all side-effects into the listener function"},t)}));o.subscribeChanges(a.accessedState);var s=a.result;i&&Hr(s,n)||(e(s),n=s,i=!0)}}return or(a),{unsubscribe:function(){r=!1,o.unsubscribe()},forceRefresh:function(){or(a)}}}var oo=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function ao(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];so.apply(void 0,oo([t],e));var r=new cr,i=jo((function(){return fr((function(){return Gi({contextName:"Scrivito.load",message:"Use an async callback: Scrivito.load(/* ... */).then(/* ... */)."},t)}))}),(function(t){if(t.allDataUpToDate){i.unsubscribe();var e=t.result;e.errorThrown?r.reject(e.error):r.resolve(e.result)}}));return r.promise}var so=sr("load",[["loadableFunction",nr.Function]],{docPermalink:"js-sdk/load"});const uo=function(){function t(t){this.container=t}return t.prototype.reader=function(){return this.container.reader().subState("value")},t.prototype.status=function(){return this.getStateKey("status")||"MISSING"},t.prototype.value=function(){return this.getStateKey("value")},t.prototype.error=function(){return this.getStateKey("error")},t.prototype.version=function(){return this.getStateKey("version")},t.prototype.transitionToMissing=function(){this.setState(void 0)},t.prototype.transitionToAvailable=function(t,e){this.setState({status:"AVAILABLE",value:t,version:e})},t.prototype.transitionToError=function(t,e){this.setState({status:"ERROR",error:t,version:e})},t.prototype.setState=function(t){this.container.set(t)},t.prototype.getStateKey=function(t){return this.container.subState(t).get()},t}();var lo={},co={};function fo(t,e){var n=!0;po(t,1);var r=lo[t];r||(lo[t]=e);var i=r||e;return i.notifyDataRequired(),function(){n&&(n=!1,po(t,-1)<1&&i.notifyDataNoLongerRequired())}}function po(t,e){var n=(co[t]||0)+e;return co[t]=n,n}function ho(t){var e=lo[t];e&&e.notifyDataWasSet()}var vo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const mo=function(t){function e(){return t.call(this,"Data is not yet loaded.",!1)||this}return vo(e,t),e}(Xn);var go=function(){function t(t,e){this.loadableValue=t,this.stream=e,this.streamRequired=!1,this.hasBufferedValue=!1,this.isUpdateEnqueued=!1}return t.prototype.notifyDataRequired=function(){this.streamRequired=!0,this.enqueueUpdate()},t.prototype.notifyDataNoLongerRequired=function(){this.streamRequired=!1,this.enqueueUpdate()},t.prototype.notifyDataWasSet=function(){},t.prototype.enqueueUpdate=function(){var t=this;this.isUpdateEnqueued||(or((function(){return t.update()})),this.isUpdateEnqueued=!0)},t.prototype.update=function(){this.isUpdateEnqueued=!1,this.streamRequired?(this.hasBufferedValue&&(this.loadableValue.transitionToAvailable(this.bufferedValue),this.clearBuffer()),this.ensureStreamIsOpen()):this.ensureStreamIsClosed()},t.prototype.ensureStreamIsOpen=function(){var t=this;this.subscription||(this.subscription=this.stream.subscribe((function(e){t.bufferValue(e),t.enqueueUpdate()})))},t.prototype.ensureStreamIsClosed=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0),this.loadableValue.transitionToMissing(),this.clearBuffer()},t.prototype.bufferValue=function(t){this.bufferedValue=t,this.hasBufferedValue=!0},t.prototype.clearBuffer=function(){this.hasBufferedValue=!1,this.bufferedValue=void 0},t}(),yo=0,bo=function(){function t(t,e,n){this.value=t,this.loader=e,this.invalidation=n}return t.prototype.notifyDataRequired=function(){this.triggerLoading()},t.prototype.notifyDataNoLongerRequired=function(){},t.prototype.notifyDataWasSet=function(){this.currentLoad=void 0},t.prototype.isMissing=function(){return"MISSING"===this.value.status()},t.prototype.hasBeenInvalidated=function(){return wo(this.value,this.invalidation)},t.prototype.currentVersion=function(){return _o(this.invalidation)},t.prototype.triggerLoading=function(){var t=this;if(!this.isLoading()&&(this.isMissing()||this.hasBeenInvalidated())){var e=this.currentVersion(),n=yo++,r=function(){return t.currentLoad===n},i=function(e){r()&&no((function(){e(),t.notifyDataWasSet(),a()}))},o=[],a=function(){return o.forEach((function(t){return t()}))};this.loader({push:function(t){return o.push(t)},isReload:function(){return t.hasBeenInvalidated()},wasCancelled:function(){return!r()}}).then((function(n){return i((function(){return t.value.transitionToAvailable(n,e)}))}),(function(n){return i((function(){return t.value.transitionToError(n,e)}))})),this.currentLoad=n}},t.prototype.isLoading=function(){return void 0!==this.currentLoad},t}();function wo(t,e){return!!e&&("MISSING"!==t.status()&&_o(e)!==t.version())}function _o(t){if(t){var e=t();if("number"==typeof e&&isNaN(e))throw new tr("invalidation callback returned unsuitable version "+e);return e}}var ko=function(){function t(t){if(!t.state)throw new tr("LoadableData needs state");this.value=new uo(t.state),this.invalidation=t.invalidation,this.throwNotLoaded=t.throwNotLoaded||!1,this.id=t.state.id(),t.stream?this.loaderProcess=new go(this.value,t.stream):this.loaderProcess=new bo(this.value,t.loader,t.invalidation)}return t.prototype.ensureAvailable=function(){var t,e=this;if(function(t){var e=yi();e&&e.subscribes.push(t)}((function(){return fo(e.id,e.loaderProcess)})),this.isAvailable())return this.notifyIfOutdated(),!0;if(this.isError())throw this.notifyIfOutdated(),this.value.error();if(_i()||(fo(this.id,this.loaderProcess),wi()),(t=yi())&&(t.missing=!0),this.throwNotLoaded)throw new mo;return!1},t.prototype.get=function(){if(this.ensureAvailable())return Co(this.id,this),this.value.value()},t.prototype.reader=function(){return Co(this.id,this),this.value.reader()},t.prototype.set=function(t){this.value.transitionToAvailable(t,this.currentVersion()),ho(this.id)},t.prototype.setError=function(t){this.transitionToError(t),ho(this.id)},t.prototype.reset=function(){this.value.transitionToMissing()},t.prototype.isMissing=function(){return"MISSING"===this.value.status()},t.prototype.isAvailable=function(){return"AVAILABLE"===this.value.status()},t.prototype.isError=function(){return"ERROR"===this.value.status()},t.prototype.numSubscribers=function(){return t=this.id,co[t]||0;var t},t.prototype.transitionToError=function(t,e){void 0===e&&(e=this.currentVersion()),this.value.transitionToError(t,e)},t.prototype.notifyIfOutdated=function(){var t;wo(this.value,this.invalidation)&&(t=yi())&&(t.outdated=!0)},t.prototype.currentVersion=function(){return _o(this.invalidation)},t}();const xo=ko;var Eo=new lr;function Co(t,e){var n=Eo.current();n&&(n[t]=e)}function So(t,e){var n=bi((function(){return function(t,e){var n=Oo(e);return n.allDataLoaded?n.result:t}(t,e)}));return _i()&&n.forwardToCurrent(),n.result}function Oo(t){var e=bi((function(){return fr(t)}));e.forwardToCurrent();var n=e.result,r=e.isAllDataLoaded();if(!n.errorThrown)return{success:!0,result:n.result,allDataLoaded:r};if(!r)return{success:!1,allDataLoaded:!1};throw n.error}var To=function(){function t(t){var e=t.name,n=t.state,r=t.loader,i=t.invalidation;this.name=e,this.state=n,this.loader=r,this.invalidation=i,function(t,e){if(Ao[t])throw new tr("collection name registered twice: "+t);Ao[t]=e}(e,this)}return t.prototype.get=function(t,e){var n=this,r=function(t){if("string"==typeof t)return t;return li(t)}(t),i=this.invalidation,o=new xo({state:this.state().subState(r),loader:function(r){return n.loader(t,r,e)},invalidation:i?function(){return i(t)}:void 0});return function(t,e){t.affiliation=e}(o,{collectionName:this.name,key:t}),o},t}();var Ao={};function No(t){var e=t[0],n=t[1],r=t[2],i=function(t){var e=Ao[t];if(!e)throw new tr("collection with name "+t+" not found");return e}(e).get(n);i.set(r)}function Po(t){var e=function(t){return t.affiliation}(t);if(!e)throw new tr("Tried to record a LoadableData without affiliation");return[e.collectionName,e.key,t.get()]}function jo(t,e){var n=new xi,r=io((function(){return bi((function(){return fr(t)}))}),(function(t){t.subscribeLoading(n);var r=t.result;if(r.errorThrown){if(!t.isAllDataUpToDate())return;throw r.error}e({result:r.result,allDataLoaded:t.isAllDataLoaded(),allDataUpToDate:t.isAllDataUpToDate()})}));return{forceRefresh:function(){return r.forceRefresh()},unsubscribe:function(){r.unsubscribe(),n.unsubscribe()}}}var Lo="GET",Io="SEND",Do=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Mo=1;var Ro=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var qo=function(){function t(t){this.muxedStream=t,this.openStreams={}}return t.prototype.streamWithId=function(t){var e=this;return new di((function(n){e.ensureSubscribed();var r=e.subjectForStreamId(t).subscribe(n);return function(){r.unsubscribe(),e.removeSubjectIfAbandoned(t)}}))},t.prototype.removeSubjectIfAbandoned=function(t){0===this.subjectForStreamId(t).subscriberCount()&&(delete this.openStreams[t],this.unsubscribeIfAbandoned())},t.prototype.subjectForStreamId=function(t){var e=this.openStreams[t];if(e)return e;var n=new vi;return this.openStreams[t]=n,n},t.prototype.ensureSubscribed=function(){var t=this;this.subscription||(this.subscription=this.muxedStream.subscribe({next:function(e){var n=e.streamId,r=t.openStreams[n];r&&r.next(e.data)},complete:function(){return Object.keys(t.openStreams).forEach((function(e){var n=t.openStreams[e];n&&(n.complete(),delete t.openStreams[e])}))}}))},t.prototype.unsubscribeIfAbandoned=function(){0===Object.keys(this.openStreams).length&&this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},t}();function Bo(t){return t&&"number"==typeof t.channel&&"string"==typeof t.verb}function Fo(t){return"string"==typeof t.method&&Array.isArray(t.params)}function zo(t){return"CLOSE"===t.verb}function Uo(t){return"RESPOND"===t.verb}function Ho(t){return"ERROR"===t.verb}var Wo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(){function t(t){this.portLink=t,this.channelCounter=1,this.incomingChannels=new qo(this.portLink.incomingMessages.map((function(t){return t.data})).filter(Bo).map((function(t){return{streamId:t.channel,data:t}})))}t.prototype.stream=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return new di((function(r){var i=e.getNextChannelId();e.postMessage({channel:i,verb:"OPEN",method:t,params:n});var o=e.incomingChannels.streamWithId(i).subscribe((function(t){Uo(t)&&r.next(t.data)}));return function(){e.postMessage({channel:i,verb:"CLOSE"}),o.unsubscribe()}}))},t.prototype.send=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.getNextChannelId();return this.postMessage({channel:r,verb:"SEND",method:t,params:e}),this.incomingChannels.streamWithId(r).filter(Go).takeOne().toPromise().then((function(t){if(!t)throw new Ko;if(Ho(t))throw new Vo;return t.data}))},t.prototype.postMessage=function(t){this.portLink.sendMessage({data:t,transfer:Qo(t)})},t.prototype.getNextChannelId=function(){return this.channelCounter++}}();var Vo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Wo(e,t),e}(Xn),Ko=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Wo(e,t),e}(Xn);function Qo(t){if("SEND"===t.verb)return t.params.filter($o)}function $o(t){return t instanceof MessagePort}function Go(t){return Uo(t)||Ho(t)}function Zo(t,e,n){return t[n.methodName]===e}var Yo=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var Xo=function(){function t(t,e,n){this.portLink=t,this.adapterConnection=e,this.description=n,this.incomingMessages=t.incomingMessages.map((function(t){return t.data})).filter(Bo),this.incomingChannels=new qo(this.incomingMessages.map((function(t){return{streamId:t.channel,data:t}})))}return t.prototype.start=function(){var t=this;this.incomingMessages.subscribe((function(e){!function(t){return"OPEN"===t.verb&&Fo(t)}(e)?function(t){return"SEND"===t.verb&&Fo(t)}(e)&&t.handleSendMessage(e):t.handleOpenStreamMessage(e)}))},t.prototype.handleOpenStreamMessage=function(t){var e,n=this,r=Jo(t);if(Zo(this.description,Lo,r)){var i=(e=this.adapterConnection).stream.apply(e,Yo([r.methodName],r.params)),o=t.channel,a=i.subscribe((function(t){n.postMessage({verb:"RESPOND",data:t,channel:o})}));this.incomingChannels.streamWithId(o).filter(zo).takeOne().toPromise().then((function(){a.unsubscribe()}))}},t.prototype.handleSendMessage=function(t){var e,n=this,r=Jo(t);Zo(this.description,Io,r)&&(e=this.adapterConnection).send.apply(e,Yo([r.methodName],r.params)).then((function(e){return n.postMessage({verb:"RESPOND",data:e,channel:t.channel})}),(function(e){n.postMessage({verb:"ERROR",channel:t.channel}),ar(e)}))},t.prototype.postMessage=function(t){this.portLink.sendMessage({data:t})},t}();function Jo(t){return{methodName:t.method,params:t.params}}var ta,ea={currentWorkspaceId:Lo,getContentStateId:Lo,isInPlaceEditingActive:Lo,isComparisonActive:Lo,translate:Lo,startLinkResolutionFor:Io,finishLinkResolutionFor:Io,retrieveObj:Io,retrieveObjQuery:Io,retrieveFacetQuery:Io,retrieveBinaryMetadata:Io,retrieveBinaryUrls:Io,retrieveObjFieldDiffs:Io,copyBinary:Io,uploadBinary:Io,insertWidget:Io,navigateToExternalUrl:Io,openInNewUiWindow:Io,configureContentBrowser:Io,openContentBrowser:Io,updateMenu:Io,openCustomDialog:Io,setAppAdapter:Io,configureTenant:Io,showWidgetMenu:Io,showWidgetlistMenu:Io,showChildListMenu:Io,registerEmptyWidgetlistDropZoneInDom:Io,registerWidgetDropZoneInDom:Io,startDrag:Io,endDrag:Io,dragTo:Io,drop:Io};function na(t){return ta?ta.getContentStateId(t):""}var ra=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ia="inMemory",oa=!1;function aa(t){if(oa)throw new ua(t)}var sa,ua=function(t){function e(e){return t.call(this,e+" is not supported when using the in-memory tenant")||this}return ra(e,t),e}(Xn),la="&scrivito.authFailedCount=";function ca(){sa=0}const fa={init:function(t){ca();var e=t.location,n=e.hash,r=n.indexOf(la);if(!(r<0)){var i=n.substr(r+26,3),o=n.substring(0,r);"#"===o&&(o="");var a=e.href.toString().replace(n,o);sa=parseInt(i,10)||0,t.history.replaceState({},"",a)}},augmentedRedirectUrl:function(t){var e=t.toString();return t.hash||(e+="#"),""+e+la+(sa+1)},reset:ca,currentFailureCount:function(){return sa}};var da,pa=n(68949),ha=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),va=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.httpCode=n,i.backendCode=r,i}return ha(e,t),e.for=function(t,n,r){return"binary.unprocessable.image.transform.source.too_large"===r?new wa(t,n,r):r&&-1!==r.indexOf("binary.unprocessable.image.transform.source.")?new _a(t,n,r):new e(t,n,r)},e}(Xn),ma=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return ha(e,t),e}(va),ga=function(t){function e(e){var n=t.call(this,"Insufficient authorization - please visit "+e)||this;return n.target=e,n}return ha(e,t),e}(Xn),ya=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ha(e,t),e}(Xn),ba=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.details=i||{},o}return ha(e,t),e}(va),wa=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return ha(e,t),e}(va),_a=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return ha(e,t),e}(va),ka=!1,xa=0;function Ea(){return xa>0}function Ca(t,e,n){var r=n.params,i=n.authorization,o=n.forceVerification;return ka?ai.resolve(new XMLHttpRequest):(xa+=1,new ai((function(n,a){var s=function(t,e,n,r){var i=new XMLHttpRequest;function o(t){!function(t,e){xa-=1,e(t)}(new ya(t),r)}return i.open("POST"===t?"POST":"PUT",e),i.timeout=15e3,i.withCredentials=!0,i.onload=function(){return function(t,e,n){xa-=1;var r=t.status;if(!r||!D(r)){var i="Unexpected response status: "+r+"; body: "+(0===r?t.statusText:t.responseText);n(new ya(i))}e(t)}(i,n,r)},i.onerror=function(){return o("XMLHttpRequest Error")},i.ontimeout=function(){return o("XMLHttpRequest Timeout")},i.onabort=function(){return o("XMLHttpRequest Aborted")},i}(t,e,n,a);i&&s.setRequestHeader("Authorization",i),s.setRequestHeader("Scrivito-Client","jssdk/"+hr()),o&&s.setRequestHeader("Scrivito-Force-Verification","true"),s.setRequestHeader("Content-type","application/json; charset=utf-8"),s.send(JSON.stringify(r))})))}da={},window._scrivitoRegisterVerificator=function(t,e){da[t].resolve(e)};var Sa,Oa,Ta=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Aa="client_verification_required";!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Ta(e,t)}(ba);function Na(t){return t(ja()).catch((function e(n){if(!function(t){return t instanceof ba&&t.backendCode===Aa}(n))throw n;return function(t){if(!Sa){var e=t.verificator,n=t.data,r=function(t,e){var n=da[t];return n||(n=new cr,da[t]=n,vr(e)),n.promise}(e.id,e.url).then((function(t){return new ai((function(e){function r(t){e((Oa=t).authorization)}t(n,r)}))}));Sa={challenge:{verificator:e,data:n},promise:Vr(r,(function(){Sa=void 0}))}}return Sa.promise}(n.details).then(t).catch(e)}))}function Pa(){Sa=void 0,Oa=void 0}function ja(){if(Oa){if(!(Oa.expiresAfter<new Date))return Oa.authorization;Oa=void 0}}function La(){var t=ja();if(t)return"Authorization: "+t;if(Sa){var e=Sa.challenge;return"Pending computation: "+e.verificator.id+" with "+e.data}return null}function Ia(t){return void 0===t&&(t=window),t.devicePixelRatio||1}function Da(){return window.location}function Ma(){return window.screen}function Ra(){return document}function qa(){return window.innerHeight}function Ba(t,e){window.scrollTo(t,e)}var Fa,za,Ua=function(){return Ua=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ua.apply(this,arguments)},Ha=function(){function t(){this.initDeferred=new cr,this.authHeaderValueProvider=r}return t.prototype.init=function(t,e,n){e&&(this.tenant=e,this.endpoint=t,this.url=pa(t+"/tenants/"+e+"/perform").scheme("https").toString(),this.initDeferred.resolve(void 0)),n&&(this.authHeaderValueProvider=n)},t.prototype.get=function(t,e){return this.perform("GET",t,e)},t.prototype.put=function(t,e){return this.perform("PUT",t,e)},t.prototype.post=function(t,e){return this.perform("POST",t,e)},t.prototype.delete=function(t,e){return this.perform("DELETE",t,e)},t.prototype.requestBuiltInUserSession=function(t){var e=this;return this.ensureInitialized().then((function(){return e.ajax("PUT","sessions/"+t)})).then((function(t){return fa.reset(),t}))},t.prototype.requestVisitorSession=function(t,e){var n=this;return this.ensureInitialized().then((function(){return n.ajax("PUT","sessions/"+t,void 0,"id_token "+e)}))},t.prototype.enableForceVerification=function(){this.forceVerification=!0},t.prototype.currentPublicAuthorizationState=function(){return this.authHeaderValueProvider?this.authHeaderValueProvider.currentState?"[API] "+this.authHeaderValueProvider.currentState():"[API]: authorization provider without currentState()":"[API]: no authorization provider"},t.prototype.ensureInitialized=function(){return this.initDeferred.promise},t.prototype.perform=function(t,e,n){var r=this;return this.ensureInitialized().then((function(){return r.send(t,e,n).then((function(t){return function(t){return!!t&&!!t.task&&1===kn(t)}(t)?r.handleTask(t.task):t}))}))},t.prototype.send=function(t,e,n){var r=this;return this.authHeaderValueProvider.perform((function(i){return r.ajax(t,e,n,i)}))},t.prototype.ajax=function(t,e,n,r){var i=this.url,o=this.forceVerification,a={params:{path:e,verb:t,params:n||{}},authorization:r,forceVerification:o};function s(){return Va((function(){return Ca(t,i,a)})).then(Qa)}return"POST"===t?s():Wa(s)},t.prototype.handleTask=function(t){var e,n=this;switch(t.status){case"success":return t.result;case"error":throw va.for(t.message,412,t.code);case"exception":throw new ya(t.message);case"open":return(e=2,Ur(1e3*e)).then((function(){return n.get("tasks/"+t.id).then((function(t){return n.handleTask(t)}))}));default:throw new ya("Invalid task response (unknown status)")}},t}();function Wa(t,e){return void 0===e&&(e=0),za?new ai((function(e){return e(t())})):t().catch((function(n){if(n instanceof ya){if(Fa&&e>5)throw n;return Ur(Ka(e)).then((function(){return Wa(t,e+1)}))}throw n}))}function Va(t,e){return void 0===e&&(e=0),za?new ai((function(e){return e(t())})):t().then((function(n){if(429!==n.status)return n;if(Fa&&e>19)throw new Error("Maximum number of rate limit retries reached");var r=Number(n.getResponseHeader("Retry-After"))||0;return Ur(Math.max(1e3*r,Ka(e))).then((function(){return Va(t,e+1)}))}))}function Ka(t){return 500*Math.pow(2,Math.min(t,16))}function Qa(t){var e,n=t.status;try{e=JSON.parse(t.responseText)}catch(i){throw new ya(t.responseText)}if(n>=200&&n<300)return e;var r,i=function(t,e,n){if("4"!==t.toString()[0])return 500===t&&$a(e.error)?new ya(e.error):new ya(n);var r=function(t){var e=t.error,n=t.code,r=t.details;if(!$a(e))throw Ga("key error is not a string");if(void 0!==n&&!$a(n))throw Ga("optional key code is not a string");if(void 0!==r&&(i=r,"object"!=typeof i||Array.isArray(i)))throw Ga("optional key details is not an object");var i;return Ua(Ua({},t),{error:e,code:n,details:r})}(e);if(function(t){if("auth_missing"!==t.code)return!1;var e=t.details;return!!e&&"string"==typeof e.visit}(r)){var i=(o=r.details.visit,a=fa.augmentedRedirectUrl(Da()),o.replace("retry=RETRY","retry="+fa.currentFailureCount()).replace(/\$RETURN_TO/,encodeURIComponent(a)));return new ga(i)}var o,a;if(401===t)return new ba(r.error,t,r.code,r.details);if(403===t){var s=r.code;return $a(s)?new ma(r.error,t,s):new ya("Authentication failure response no string value for code")}return va.for(r.error,t,r.code)}(n,e,t.responseText);throw i instanceof ga&&(r=i.target,window.location.assign(r)),i}function $a(t){return"string"==typeof t}function Ga(t){return new ya("Malformed error response: "+t)}var Za=new Ha;var Ya=new ui((function(t){return Za.get("blobs/mget",{blobs:t}).then((function(e){return e.results.map((function(e,n){return function(t,e){var n=e.public_access,r=n.get;if(!r.url)throw new tr('Missing public access URL for binary "'+t+'"');var i={public_access:{get:{url:r.url}}},o=e.private_access;if(o){var a=o.get;a.url&&(i.private_access={get:{url:a.url}})}return i}(t[n].id,e)}))}))}));var Xa={};function Ja(t,e){return function(t){var e=Xa[t];e||(e=function(t){var e=function(e){return Za.get("workspaces/"+t+"/objs/mget",{ids:e,include_deleted:!0}).then((function(t){return t.results}))};return new ui(e,{batchSize:17})}(t),Xa[t]=e);return e}(t).retrieve(e).then((function(t){return t||{_deleted:e}}))}var ts=function(){return ts=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ts.apply(this,arguments)};function es(t,e){var n=ts({consistent:!0},e);return Za.get("workspaces/"+t+"/objs/search",n).then((function(t){var e=function(t){var e={results:t.results,total:t.total},n=t.continuation;void 0!==n&&(e.continuation=n);var r=t.objs;void 0!==r&&(e.objs=r);return e}(t);return{results:e.results.map((function(t){return t.id})),continuation:e.continuation,total:e.total,objs:e.objs}}))}var ns={retrieveObj:function(t,e){return Ja(t,e)},retrieveObjQuery:function(t,e){return es(t,e)},retrieveFacetQuery:function(t,e){return function(t,e){return Za.get("workspaces/"+t+"/objs/search",e).then((function(t){return{facets:t.facets.map((function(t){return t.map((function(t){return{total:t.total,value:t.value,results:t.results}}))}))}}))}(t,e)},retrieveBinaryMetadata:function(t){return function(t){return Za.get("blobs/"+encodeURIComponent(t||"")+"/meta_data")}(t)},retrieveBinaryUrls:function(t,e){return function(t,e){var n={id:t};return e&&(n.transformation=e),Ya.retrieve(n)}(t,e)},retrieveObjFieldDiffs:function(t,e){return function(t,e){return Za.get("workspaces/"+t+"/objs/"+e+"/diff").then((function(t){return t}))}(t,e)}};function rs(t){return"widgetlist"===t[0]}var is=new To({name:"facetquery",state:function(){return Fi.subState("facetQuery")},loader:function(t){var e=t[0],n=t[1];return ns.retrieveFacetQuery(e,n)},invalidation:function(t){var e=t[0];t[1];return So(void 0,(function(){return na(e)}))||""}}),os=function(){function t(t,e,n,r){this._requestParams=ss(e,n,r),this._loadableData=is.get([t,this._requestParams])}return t.store=function(t,e,n,r,i){var o=ss(e,n,r);is.get([t,o]).set(i)},t.prototype.result=function(){aa("Search API");var t=this._loadableData.get();return t?t.facets[0].map((function(t){var e=t.value,n=t.total,r=t.results.map((function(t){return t.id}));return{name:e,count:n,includedObjIds:r}})):[]},t}();const as=os;function ss(t,e,n){var r={facets:[{attribute:t,limit:e.limit||10,include_objs:e.includeObjs||0}],size:0};return ft(n)||(r.query=n),r}function us(t,e){var n;return $e(t,(function(t,r){if(t&&!Tr(r)){var i=t;if(rs(i)){var o=i[1];if(o){var a=o.indexOf(e);return-1!==a?(n={attributeName:r,index:a},!0):void 0}}}})),n}function ls(t,e){if(!t)return e;if(!e)return null;var n={};return fs(t,e,(function(r,i,o){"_widget_pool"===r?n._widget_pool=function(t,e){if(!e||Kn.isEmpty(e))return t;var n={};return fs(t,e,(function(t,r,i){Object.prototype.hasOwnProperty.call(e,t)?i&&!r?n[t]=i:i&&(n[t]=ls(r,i)):n[t]=r})),n}(i||{},o):Object.prototype.hasOwnProperty.call(e,r)?o&&(n[r]=o):n[r]=t[r]})),n}function cs(t,e){if(!t)return e;if(!e)return null;var n={};return fs(t,e,(function(t,e,r){if("_widget_pool"===t){var i=function(t,e){if(t===e)return;if(!t)return e;var n={};return fs(t,e||{},(function(t,e,r){var i=ps(e,r,(function(){var t=cs(e,r);if(!Kn.isEmpty(t))return t}));void 0!==i&&(n[t]=i)})),n}(e,r);Kn.isEmpty(i)||(n._widget_pool=i)}else{var o=ps(e,r,(function(){if(!Kn.isEqual(e,r))return r}));void 0!==o&&(n[t]=o)}})),n}function fs(t,e,n){Kn.union(Kn.keys(t),Kn.keys(e)).forEach((function(r){return n(r,ds(t[r]),ds(e[r]))}))}function ds(t){if(Kn.isArray(t)){var e=t[0],n=t[1];return"binary"===e&&n?[e,Kn.omit(n,"url")]:t}return t}function ps(t,e,n){return!t&&e?e:t&&!e?null:t&&e?n():void 0}var hs=function(){function t(t,e){var n,r,i,o=this;this._workspaceId=t,this._objId=e,this._replicationActive=!1,this._scheduledReplication=!1,this._currentRequestDeferred=null,this._nextRequestDeferred=null,this._performThrottledReplication=(n=function(){return o._performReplication()},r=1e3,Nr?n:je(n,r,i))}return t.prototype.start=function(){var t=this;ns.retrieveObj(this._workspaceId,this._objId).then((function(e){no((function(){t.notifyBackendState(e)}))}))},t.prototype.notifyLocalState=function(t){if(!ws.isDisabled()){if(void 0===this._backendState)throw new tr("Can not set local state before backend state.");if(this._backendState&&this._backendState._deleted)throw new tr("Can not update a fully deleted obj.");this._localState=t,this._startReplication()}},t.prototype.notifyBackendState=function(t){if(void 0===this._backendState)return this._backendState=t,void this._updateLocalState(t);if(ys(t,this._bufferedBackendState||this._backendState)>0)if(this._replicationActive)this._bufferedBackendState=t;else{if(t._deleted)this._updateLocalState(null);else{var e=ms(this._backendState,t);this._updateLocalState(gs(this.localState,e))}this._backendState=t}},t.prototype.finishSaving=function(){var t;if(this._nextRequestDeferred)t=this._nextRequestDeferred.promise;else{if(!this._currentRequestDeferred)return ai.resolve();t=this._currentRequestDeferred.promise}return t.catch((function(){return ai.reject()}))},t.prototype._startReplication=function(){var t=this;Kn.isEmpty(ms(this._backendState,this._localState))?this._nextRequestDeferred&&(this._nextRequestDeferred.resolve(),this._nextRequestDeferred=null):this._replicationActive?this._nextRequestDeferred||(this._nextRequestDeferred=new cr):this._scheduledReplication||(this._scheduledReplication=!0,this._initDeferredForRequest(),ws.writeStarted(this._currentRequestDeferred.promise),or((function(){return t._performThrottledReplication()})))},t.prototype._performReplication=function(){var t=this,e=this._localState,n=ms(this._backendState,this._localState);this._scheduledReplication=!1,this._replicationActive=!0,this._replicatePatchToBackend(n).then((function(n){t._handleBackendUpdate(e,n),t._currentRequestDeferred.resolve(t._objId),t._currentRequestDeferred=null,t._replicationActive=!1,t._startReplication()}),(function(e){t._currentRequestDeferred.reject(e),t._currentRequestDeferred=null,t._replicationActive=!1}))},t.prototype._replicatePatchToBackend=function(t){if(Kn.isEmpty(t))return ai.resolve(this._backendState);var e="workspaces/"+this._workspaceId+"/objs/"+this._objId;return Za.put(e,{obj:t})},t.prototype._initDeferredForRequest=function(){if(this._nextRequestDeferred){var t=this._nextRequestDeferred;this._nextRequestDeferred=null,this._currentRequestDeferred=t}else this._currentRequestDeferred=new cr},t.prototype._handleBackendUpdate=function(t,e){var n=ms(t,this._localState);this._backendState=function(t,e){if(ys(t,e)>0)return t;return e}(e,this._bufferedBackendState),this._bufferedBackendState=void 0,this._updateLocalState(gs(this._backendState,n))},t.prototype._updateLocalState=function(t){this._localState=t,Es(this._workspaceId,this._objId,this._localState)},Object.defineProperty(t.prototype,"backendState",{get:function(){return this._backendState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localState",{get:function(){return this._localState},enumerable:!1,configurable:!0}),t.prototype.isNotStoredInBackend=function(){return null===this._backendState},t.prototype.isRequestInFlight=function(){return this._replicationActive},t}();const vs=hs;function ms(t,e){return cs(t,e)}function gs(t,e){return ls(t,e)}function ys(t,e){return t?e?function(t,e){if(t>e)return 1;if(e>t)return-1;return 0}(t._version,e._version):1:-1}var bs=function(){function t(){this.replicationCache={},this.disabled=!1,this.writeWriteCallbacks={},this.subscriptionToken=0}return t.prototype.get=function(t,e){return this.replicationCache[t]||(this.replicationCache[t]={}),this.replicationCache[t][e]||(this.replicationCache[t][e]=new vs(t,e)),this.replicationCache[t][e]},t.prototype.subscribeWrites=function(t){return this.subscriptionToken+=1,this.writeWriteCallbacks[this.subscriptionToken]=t,this.subscriptionToken},t.prototype.unsubscribeWrites=function(t){delete this.writeWriteCallbacks[t]},t.prototype.isDisabled=function(){return this.disabled},t.prototype.writeStarted=function(t){Ze(this.writeWriteCallbacks,(function(e){e(t)}))},t.prototype.disableReplication=function(){this.disabled=!0},t.prototype.enableReplication=function(){this.disabled=!1},t.prototype.clearWriteCallbacks=function(){this.writeWriteCallbacks={}},t.prototype.clearCache=function(){this.replicationCache={}},t}(),ws=new bs;function _s(){return zi.subState("objData")}var ks=new To({name:"objdata",state:_s,loader:function(t){var e=t[0],n=t[1];return ws.get(e,n).start(),new ai((function(){}))}});const xs=function(){function t(t,e){this._workspaceId=t,this._id=e,this._loadableData=ks.get([t,e])}return t.prototype.get=function(){return Yi("for performance reasons, avoid this method when rendering"),this._loadableData.get()},t.prototype.getWidget=function(t){return Yi("for performance reasons, avoid this method when rendering"),this.getWidgetState(t).get()},t.prototype.getWidgetWithBadPerformance=function(t){return this.getWidgetState(t).get()},t.prototype.getAttribute=function(t){if("_widget_pool"===t)throw new tr("_widget_pool is not an attribute, use getWidget or getWidgetAttribute");return this.getSubReader(t).get()},t.prototype.getWidgetAttribute=function(t,e){return this.getWidgetState(t).subState(e).get()},t.prototype.isNonExistent=function(){return!!this.getSubReader("_deleted").get()||!this.getSubReader("_id").get()},t.prototype.set=function(t){Zi("Changing CMS content"),this._loadableData.set(t)},t.prototype.setError=function(t){this._loadableData.setError(t)},t.prototype.ensureAvailable=function(){return this._loadableData.ensureAvailable()},t.prototype.isAvailable=function(){return this._loadableData.isAvailable()},t.prototype.update=function(t){var e=ls(this.get(),t);this.set(e),this._replication().notifyLocalState(e)},t.prototype.finishSaving=function(){return this._replication().finishSaving()},t.prototype.workspaceId=function(){return this._workspaceId},t.prototype.equals=function(e){return e instanceof t&&(this.workspaceId()===e.workspaceId()&&this._id===e._id)},t.prototype._replication=function(){return ws.get(this._workspaceId,this._id)},t.prototype.getWidgetState=function(t){return this.getSubReader("_widget_pool").subState(t)},t.prototype.getSubReader=function(t){return this._loadableData.reader().subState(t)},t}();function Es(t,e,n){Ss(t,e).set(n)}function Cs(t,e){var n=Ss(t,e);if(n.ensureAvailable())return n}function Ss(t,e){return new xs(t,e)}var Os=function(){return Os=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Os.apply(this,arguments)},Ts={results:[],total:0},As=new To({name:"objquery",state:function(){return qs()},loader:function(t,e,n){var r=t[0],i=t[1],o=t[2],a=e.push,s=e.isReload,u=e.wasCancelled;return function(t,e,n,r){if(r>0){var i=new Ns(t,e,n,r-1);return ao((function(){return i.continuationForNextBatch()}))}return ai.resolve()}(r,i,n,o).then((function(t){if(u())throw new Error;var e={size:n,continuation:t,include_objs:!s()},o=Os(Os({},i),e);return ns.retrieveObjQuery(r,o).then((function(t){var e=t.objs;return e&&a((function(){return e.forEach((function(t){t._id&&ws.get(r,t._id).notifyBackendState(t)}))})),function(t,e){e.forEach((function(e){return function(t,e){ao((function(){return Cs(t,e)}))}(t,e)}))}(r,t.results),{results:t.results,total:t.total,continuation:t.continuation}}))}))},invalidation:function(t){var e=t[0];t[1],t[2];return So(void 0,(function(){return na(e)}))||""}}),Ns=function(){function t(t,e,n,r){void 0===r&&(r=0),this._workspaceId=t,this._params=e,this._batchSize=n,this._index=r}return t.store=function(t,e,n,r){void 0===r&&(r=n.length),As.get([t,js(e),0]).set({results:n,total:r})},t.firstBatchFor=function(e,n,r){return new t(e,js(n),r)},t.countFor=function(t,e){return this.firstBatchFor(t,e,0).count()},t.prototype.objIds=function(){return this._response().results},t.prototype.count=function(){return this._response().total||0},t.prototype.nextBatch=function(){if(this.continuationForNextBatch())return new t(this._workspaceId,this._params,this._batchSize,this._index+1)},Object.defineProperty(t.prototype,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),t.prototype.continuationForNextBatch=function(){return this._response().continuation},t.prototype._response=function(){return this._data().get()||Ts},t.prototype._data=function(){return As.get([this._workspaceId,this._params,this._index],this._batchSize)},t}();const Ps=Ns;function js(t){var e=Cn({query:t.query,offset:t.offset,sort_by:t.sortBy,sort_order:t.sortDirection},N);return t.includeDeleted&&(e.options={include_deleted:!0}),e}var Ls=function(){function t(t,e,n){this._workspaceId=t,this._params=e,this._batchSize=n}return t.store=function(t,e,n,r){Ps.store(t,e,n,r)},t.count=function(t,e){return Ps.countFor(t,e)},t.prototype.iterator=function(){var t={},e=Ps.firstBatchFor(this._workspaceId,this._params,this._batchSize),n=0;return{next:function r(){if(!e)return{done:!0};var i=e.objIds();if(n<i.length){var o=i[n];return n++,t[o]?r():(t[o]=!0,{value:o,done:!1})}return e=e.nextBatch(),n=0,r()}}},t}();const Is=Ls;var Ds=function(){function t(t,e,n){this._workspaceId=t,this._params=e,this._batchSize=n}return t.prototype.count=function(){return Is.count(this._workspaceId,this._params)},t.prototype.iterator=function(){return new Rs(this._workspaceId,this._params,this._batchSize)},t}();const Ms=Ds;var Rs=function(){function t(t,e,n){this._workspaceId=t,this._iterator=new Is(t,e,n).iterator()}return t.prototype.next=function(){if(!this._iterator)return{done:!0};var t=this._iterator.next().value;if(!t)return{done:!0};var e=Cs(this._workspaceId,t);return void 0===e?(this._iterator=void 0,{done:!0}):e.isNonExistent()?this.next():{value:e,done:!1}},t}();function qs(){return Fi.subState("objQuery")}var Bs=new To({name:"objFieldDiffs",state:function(){return Fi.subState("objFieldDiffs")},loader:function(t){var e=t[0],n=t[1];return ns.retrieveObjFieldDiffs(e,n)},invalidation:function(t){return function(t,e){var n=Cs(t,e);if(n)return n.getAttribute("_version")||"";return""}(t[0],t[1])}});function Fs(t,e,n,r){if("published"===t)return null;var i=function(t,e){return zs(t,e).get()||{}}(t,n);return r?function(t,e,n){var r=n._widget_pool;if(r){var i=r[e];if(i)return Us(t,i)}return null}(e,r,i):Us(e,i)}function zs(t,e){return Bs.get([t,e])}function Us(t,e){var n=e[Er(t)];return n?n[1]:null}function Hs(t,e,n){var r=Cs("published",e),i=Cs(t,e);return r&&i?r.isNonExistent()&&i.isNonExistent()?null:r.isNonExistent()&&!i.isNonExistent()?"new":!r.isNonExistent()&&i.isNonExistent()?"deleted":function(t,e,n){var r=t.getWidgetWithBadPerformance(n),i=e.getWidgetWithBadPerformance(n);return r?i?function(t,e){var n=cs(t,e);return on(Object.keys(n),(function(t){return!Tr(t)||"_obj_class"===t}))}(r,i)?"edited":null:"deleted":i?"new":null}(r,i,n):null}var Ws=function(){function t(t,e,n){this.container=t,this.attributeName=e,this.typeInfo=n,this.typeOptions=this.typeInfo[1]||{}}return t.prototype.get=function(){return this.container.get(this.attributeName,this.typeInfo)},t.prototype.update=function(t){var e;this.container.update(((e={})[this.attributeName]=[t,this.typeInfo],e))},t.prototype.getContainer=function(){return this.container},t.prototype.obj=function(){return this.container.obj()},t.prototype.name=function(){return this.attributeName},t.prototype.type=function(){return this.typeInfo[0]},t.prototype.workspaceId=function(){return this.obj().workspaceId()},t.prototype.equals=function(e){return e instanceof t&&(this.container.equals(e.getContainer())&&this.attributeName===e.name())},t.prototype.validClasses=function(){return this.typeOptions.validClasses},t.prototype.getDiff=function(){var t=this.obj();return Fs(this.workspaceId(),this.attributeName,t.id(),this.container===t?void 0:this.container.id())},t.prototype.toString=function(){var t=this.obj(),e=this.attributeName;return this.container===t?"<BasicField name="+e+" objId="+t.id()+">":"<BasicField name="+e+" objId="+t.id()+" widgetId="+this.container.id()+">"},t.prototype.id=function(){var t=this.obj();return this.container===t?this.attributeName+"|"+t.id():this.attributeName+"|"+t.id()+"|"+this.container.id()},t}();const Vs=Ws;function Ks(t){return pa.parseQuery(t)}var Qs=n(17340);var $s=function(){function t(t){var e=t.name,n=t.count,r=t.includedObjIds;this._name=e,this._count=n,this._includedObjIds=r}return t.prototype.name=function(){return this._name},t.prototype.count=function(){return this._count},t.prototype.includedObjs=function(){return Nn(this._includedObjIds.map((function(t){return rl.get(t)})))},t}();const Gs=$s;var Zs=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Ys=["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan","linksTo","refersTo"],Xs=["equals","startsWith","isGreaterThan","isLessThan"],Js=["contains","containsPrefix"],tu={query:[]},eu=function(){function t(t){void 0===t&&(t=tu);this._query=[].concat(t.query),this._batchSize=t.batchSize,this._offset=t.offset,this._sortBy=t.sortBy,this._sortDirection=t.sortDirection,this._includeDeleted=t.includeDeleted}return t.prototype.and=function(e,n,r,i){if(e instanceof t)this._query=Zs(this._query,e._query);else{if(void 0===n)throw new Jn("Missing operator to search with");if(void 0===r)throw new Jn('Missing value to search (specify "null" for missing)');var o=ru(e,n,r);i&&(!function(t){if(!an(Js,t))throw new Jn('Boosting operator "'+t+'" is invalid.')}(n),o.boost=function(t){var e={};return Ze(t,(function(t,n){var r=ou(n);e[r]=t})),e}(i)),this._query.push(o)}return this},t.prototype.andNot=function(t,e,n){var r=ru(t,e,n);return function(t){if(!an(Xs,t))throw new Jn('Negating operator "'+t+'" is invalid.')}(e),r.negate=!0,this._query.push(r),this},t.prototype.offset=function(t){return this._offset=t,this},t.prototype.order=function(t,e){return void 0===e&&(e="asc"),this._sortBy=ou(t),this._sortDirection=e,this},t.prototype.batchSize=function(t){return this._batchSize=t,this},t.prototype.includeDeleted=function(){return this._includeDeleted=!0,this},t.prototype.count=function(){return this.getObjDataQuery().count()},t.prototype.first=function(){return this.take(1)[0]||null},t.prototype.take=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];uu.apply(void 0,Zs([t],e));var r=this._batchSize;try{return this._batchSize=void 0===t?1e3:t,function(t,e){for(var n=t.iterator(),r=[];r.length!==e;){var i=n.next();if(i.done)return r;r.push(i.value)}return r}(this,t)}finally{this._batchSize=r}},t.prototype.iterator=function(){var t=this.getObjDataQuery().iterator();return{next:function(){var e=t.next(),n=e.done,r=e.value;return n?{done:!0}:{done:!1,value:new rl(r)}}}},t.prototype.getObjDataQuery=function(){return function(t,e,n){return aa("Search API"),new Ms(t,e,n)}(qu(),this.params(),this.getBatchSize())},t.prototype.getBatchSize=function(){return this._batchSize||100},t.prototype.facet=function(t,e){var n;return n=void 0===e?{}:function(t){var e=Ln.apply(void 0,Zs([Object.keys(t)],au));if(e.length)throw new Jn("Invalid facet options: "+Qn(e)+". Valid options: "+au);return t}(e),new as(qu(),ou(t),n,this._query).result().map((function(t){return new Gs(t)}))},t.prototype.store=function(t,e){!function(t,e,n,r){Is.store(t,e,n,r)}(qu(),this.params(),t,e)},t.prototype.params=function(){return Cn({query:this._query,offset:this._offset,sortBy:this._sortBy,sortDirection:this._sortDirection,includeDeleted:this._includeDeleted,batchSize:this._batchSize},N)},t}();const nu=eu;function ru(t,e,n){return{field:function(t){if(G(t))return Ye(t,ou);return ou(t)}(t),operator:function(t){if(!function(t){return an(Ys,t)}(t))throw new Jn('Operator "'+t+'" is invalid.');return Er(t)}(e),value:function(t){if(G(t))return Ye(t,iu);return iu(t)}(n)}}function iu(t){return M(t)?qr(t):t instanceof rl?t.id():t}function ou(t){if(!xr(t))throw new Jn('Attribute name "'+t+'" is not camel case.');return Er(t)}var au=["limit","includeObjs"];var su=nr.refinement(nr.Number,(function(t){return t>=0}),"Number (positive)"),uu=sr("objSearch.take",[["count",nr.maybe(su)]],{docPermalink:"js-sdk/ObjSearch-take"}),lu=nr.irreducible("Obj",(function(t){return hu(t,rl)})),cu=nr.irreducible("Widget",(function(t){return hu(t,Uu)})),fu=nr.irreducible("Link",(function(t){return hu(t,fl)})),du=nr.irreducible("ObjSearch",(function(t){return hu(t,nu)})),pu=nr.irreducible("Binary",(function(t){return t instanceof Su}));function hu(t,e){return!!t&&t._scrivitoPrivateContent instanceof e}var vu,mu=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var gu=function(){function t(t,e){void 0===e&&(e={});var n=e.filename;if(this.contentType=e.contentType,t.idToCopy)this.idToCopy=t.idToCopy;else{var r=t.source;this.source=r,this.contentType||(this.contentType=r.type),n||(n=r.name)}n&&(this.filename=n.replace(/[^\w\-_\.$]/g,"-"))}return t.prototype.into=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return yu.apply(void 0,mu([t],e)),Zi("Changing CMS content"),this.intoId(t._scrivitoPrivateContent.id())},t.prototype.intoId=function(t){if(!vu)throw new tr("No binaryHandler defined!");var e;if(this.idToCopy)e=vu.copyBinary(this.idToCopy,t,this.filename,this.contentType);else{if(!this.source)throw new tr("Source is not defined!");e=vu.uploadBinary(t,this.source,this.filename,this.contentType)}return e.then((function(t){var e=t.id;return new Su(e,!1)}))},t}(),yu=sr("FutureBinary#into",[["target",lu]],{docPermalink:"js-sdk/FutureBinary-into"});const bu=gu;var wu;!function(t){t.Date="date",t.Number="number",t.String="string",t.Stringlist="stringlist"}(wu||(wu={}));var _u=new To({name:"metadata",state:function(){return Fi.subState("metadataCollection")},loader:function(t){return ns.retrieveBinaryMetadata(t)}});const ku=function(){function t(t){this.binaryId=t,t&&(this.loadableData=_u.get(t))}return t.store=function(t,e){xu(e),_u.get(t).set(e)},t.prototype.get=function(t){aa("MetadataCollection#get"),function(t){if(!xr(t))throw new Jn('Metadata key "'+t+'" is not in camel case.')}(t);var e=this.getData();if(e){var n=Er(t);return e.hasOwnProperty(n)?e[n]:null}return null},t.prototype.keys=function(){var t=this.getData();return t?Ye(ct(t),Cr):[]},t.prototype.contentLength=function(){var t=this.get("contentLength");return"number"!=typeof t?0:t},t.prototype.contentType=function(){var t=this.get("contentType");return"string"!=typeof t?"":t},t.prototype.getData=function(){if(this.loadableData){var t=this.loadableData.get();if(t)return xu(t)}},t}();function xu(t){for(var e=t.meta_data,n={},r=0,i=Object.keys(e);r<i.length;r++){var o=i[r],a=e[o],s=a[0],u=a[1];if(null==u)throw new tr('Invalid backend value "null" or "undefined" for metadata "'+o+'"');var l=void 0;if(s===wu.Date){if("string"!=typeof u)throw new tr('Invalid non-string backend value for a date metadata "'+o+'"');l=Mr(u)}else l=u;n[o]=l}return n}var Eu=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Cu=new To({name:"binary",state:function(){return Fi.subState("binary")},loader:function(t){var e=t[0],n=t[1];return ns.retrieveBinaryUrls(e,n)}});const Su=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n={}),this._id=t,this._isPublic=!!e,this._transformation=n||void 0,this._loadableData=Cu.get([t,this._transformation])}return t.upload=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(Tu.apply(void 0,Eu([t,e],n)),!(Or.is(t)||e&&e.filename))throw new Jn("Expected a filename to be passed with Blob as the source.");return new bu({source:t},e)},t.store=function(e,n,r){var i=n.transformation;Cu.get([e,i]).set(r);var o=new t(e).raw();return i?o.optimizeFor(i):o},t.storeMetadata=function(t,e){ku.store(t,e)},t.prototype.id=function(){return this._id},t.prototype.copy=function(t){return new bu({idToCopy:this._id},t)},t.prototype.isPrivate=function(){return!this._isPublic},t.prototype.optimizeFor=function(e){return new t(this._id,this._isPublic,Mt({},this._transformation,e))},t.prototype.original=function(){return new t(this._id,this._isPublic,{})},t.prototype.raw=function(){return new t(this._id,this._isPublic,null)},t.prototype.isExplicitlyTransformed=function(){return this.isTransformed()&&!ft(this._transformation)},t.prototype.isRaw=function(){return!this.isTransformed()},t.prototype.url=function(){return aa("Binary#url"),this.urlWithoutPlaceholder()||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},t.prototype.urlWithoutPlaceholder=function(){var t=this._loadableData.get();if(t){var e=t[this.accessType()];if(!e)throw new tr("Missing key "+this.accessType+" in binary data");return e.get.url}},t.prototype.filename=function(){var t=this.url();return!t||t.match(/^data:/)?"":pa(t).path().split("/").pop()||""},t.prototype.metadata=function(){return this.assertNotTransformed("Metadata"),new ku(this._id)},t.prototype.contentType=function(){return this.assertNotTransformed("Content type"),this.metadata().contentType()},t.prototype.contentLength=function(){return this.assertNotTransformed("Content length"),this.metadata().contentLength()},t.prototype.extname=function(){if(this.raw().filename().indexOf(".")>-1){var t=/[^.\\]*$/.exec(this.raw().filename());if(t)return t[0].toLowerCase()}return""},t.prototype.equals=function(e){return e instanceof t&&e.id()===this.id()&&e.isPrivate()===this.isPrivate()&&yt(e.definition(),this.definition())},t.prototype.isImage=function(){var t=this.raw().contentType();return!!t&&"image"===t.split("/")[0]},t.prototype.definition=function(){return this._transformation||null},t.prototype.accessType=function(){return this.isPrivate()?"private_access":"public_access"},t.prototype.assertNotTransformed=function(t){if(this.isTransformed())throw new Xn('"'+t+'" is not available for transformed images. Use "Scrivito.Binary#raw" to access the untransformed version of the image.')},t.prototype.isTransformed=function(){return!!this._transformation},t}();var Ou=nr.struct({contentType:nr.maybe(nr.String),filename:nr.maybe(nr.String)}),Tu=sr("Binary.upload",[["source",nr.refinement(nr.Object,(function(t){return Sr.is(t)||Or.is(t)}),"Blob or File")],["options",nr.maybe(Ou)]],{docPermalink:"js-sdk/Binary-static-upload"});function Au(t,e,n,r){var i=e[0],o=e[1];switch(n){case"binary":return function(t,e){if("binary"===t&&e){var n=e.id,r="published"===qu();return new Su(n,r)}return null}(i,o);case"date":return function(t,e){if("date"!==t)return null;return Mr(e)}(i,o);case"float":return function(t,e){switch(t){case"string":return e.match(/^-?\d+(\.\d+)?$/)?Nu(e):null;case"number":return Nu(e);default:return null}}(i,o);case"enum":return function(t,e,n){var r=n.values;if("string"===t&&Kn.contains(r,e))return e;return null}(i,o,r);case"html":case"string":return function(t,e){if(Kn.contains(["html","string"],t)&&Kn.isString(e))return e;return""}(i,o);case"integer":return function(t,e){switch(t){case"string":case"number":return"string"==typeof(n=e)&&n.match(/^-?\d+$/)||"number"==typeof n?zr(n):null;default:return null}var n}(i,o);case"link":return function(t,e){if("link"!==t||!Kn.isObject(e))return null;return Pu(e)}(i,o);case"linklist":return function(t,e){if(!Kn.isArray(e))return[];return Kn.compact(e.map(Pu))}(0,o);case"multienum":return function(t,e,n){var r=n.values;if("stringlist"!==t||!Array.isArray(e))return[];return Kn.intersection(e,r)}(i,o,r);case"reference":return function(t,e,n){if("reference"===t&&e)return ju(e,n);return null}(i,o,t);case"referencelist":return function(t,e,n){if("referencelist"!==t)return[];if(!e)return[];var r=e.map((function(t){return ju(t,n)}));return Kn.compact(r)}(i,o,t);case"stringlist":return function(t,e){if("stringlist"!==t||!Array.isArray(e))return[];return e}(i,o);case"widgetlist":return function(t,e,n){if("widgetlist"!==t)return[];return Kn.map(e,(function(t){return n.widget(t)}))}(i,o,t);default:return null}}function Nu(t){var e=parseFloat(t);return Dr(e)?e:null}function Pu(t){var e=Kn.pick(t,"query","rel","target","title","url");"fragment"in t&&(e.hash=t.fragment),"obj_id"in t&&(e.objId=t.obj_id);var n=new fl(e);return n.isBroken()?null:n}function ju(t,e){var n=rl.getInWorkspace(e.workspaceId(),t);return n||null}var Lu=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};const Iu=function(){function t(){}return t.prototype.get=function(t,e){var n=Er(t),r=this.getAttributeData(n);return r&&G(r)||(r=[]),"string"==typeof e?Au(this,r,e):Au.apply(i,Lu([this,r],e))},t.prototype.serializeAttributes=function(t){var e=this;return ee(t,(function(t,n){if(function(t){return G(t)&&"widgetlist"===t[0]}(t)){var r=Cr(n);return["widgetlist",sn(e.get(r,["widgetlist"]),"serializeAttributes")]}return t}))},t.prototype.persistWidgets=function(t,e){Ze(e,(function(e){if(function(t){if(!t)return!1;if(!G(t))return!1;if(t.length<2)return!1;var e=t[1];return G(e)&&e.length>0&&"widgetlist"===e[0]}(e)){var n=e[0];if(n)Ze(G(n)?n:[n],(function(e){e.isPersisted()||e.persistInObj(t)}))}}))},t}();function Du(t){return ee(t,(function(t,e){if(Tr(e))return G(t)?t:[t];if(!G(t))throw new tr("Value for "+e+" should be a tuple: [value, typeInfo]");var n=t[0],r=t[1];return"string"==typeof r?[n,[r]]:[n,r]}))}var Mu,Ru="published";function qu(){return Mu||Ru}function Bu(t){Mu=t}var Fu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zu=function(t){function e(e){var n=t.call(this)||this;return n._attributesToBeSaved=Du(e),function(t){if(!t)throw new Jn('Please provide a widget class as the "_objClass" property.')}(e._objClass),n}return Fu(e,t),e.build=function(t,n){var r=Object.create(e.prototype);return r._obj=n,r._id=t,r},e.newWithSerializedAttributes=function(t){var n={},r={};Kn.each(t,(function(t,i){if("_obj_class"!==i)if(Kn.isArray(t)&&"widgetlist"===Kn.first(t)){var o=Kn.map(Kn.last(t),(function(t){return e.newWithSerializedAttributes(t)})),a=Cr(i);n[a]=[o,["widgetlist"]]}else r[i]=t;else n._objClass=[t]}));var i=new e(n);return i.preserializedAttributes=r,i},e.prototype.id=function(){return this._failIfNotPersisted(),this._id},e.prototype.objClass=function(){return this.isPersisted()?this.getAttributeData("_obj_class"):this._attributesToBeSaved._objClass[0]},e.prototype.obj=function(){return this._failIfNotPersisted(),this._obj},e.prototype.widget=function(t){return this.obj().widget(t)},e.prototype.workspaceId=function(){return this.obj().workspaceId()},e.prototype.modification=function(){return Hs(qu(),this.obj().id(),this.id())},e.prototype.update=function(t){var e=this,n=Du(t);Qi((function(){e.persistWidgets(e.obj(),n);var t=Vu(n);e._updateSelf(t)}))},e.prototype.insertBefore=function(t){t.obj().insertWidget(this,{before:t})},e.prototype.insertAfter=function(t){t.obj().insertWidget(this,{after:t})},e.prototype.remove=function(){this.obj().removeWidget(this)},e.prototype.copy=function(){return this.isPersisted()?this._copyPersisted():this._copyUnpersisted()},e.prototype.persistInObj=function(t){this.persistWidgets(t,this._attributesToBeSaved);var e=Vu(this._attributesToBeSaved);Kn.extend(e,this.preserializedAttributes||{}),this._obj=t,this._id=t.generateWidgetId(),this._updateSelf(e),this._executeDidPersistCallback()},e.prototype.isPersisted=function(){return!!this._obj},e.prototype.onDidPersist=function(t){if(this.isPersisted())throw new Xn('Cannot call "onDidPersist" of an already persisted widget');this._onDidPersistCallback=t},e.prototype.hasOnDidPersistCallback=function(){return!!this._onDidPersistCallback},Object.defineProperty(e.prototype,"attributesToBeSaved",{get:function(){return this._attributesToBeSaved},enumerable:!1,configurable:!0}),e.prototype.finishSaving=function(){return this.obj().finishSaving()},e.prototype.equals=function(t){return t instanceof e&&(this.id()===t.id()&&this.obj().id()===t.obj().id())},e.prototype.containingField=function(){return this.obj().fieldContainingWidget(this)},e.prototype.toPrettyPrint=function(){return"[object "+this.objClass()+' id="'+this.id()+'" objId="'+this.obj().id()+'"]'},e.prototype.getAttributeData=function(t){return this.obj().getWidgetAttribute(this.id(),t)},e.prototype.getData=function(){return this.obj().getWidgetData(this.id())},e.prototype.serializeAttributes=function(){return t.prototype.serializeAttributes.call(this,this.getData())},e.prototype._failIfNotPersisted=function(){if(!this.isPersisted())throw new Xn("Can not access a new widget before it has been saved.")},e.prototype._updateSelf=function(t){var e,n={_widgetPool:[(e={},e[this.id()]=t,e)]};this.obj().update(n)},e.prototype._executeDidPersistCallback=function(){this._onDidPersistCallback&&(this._onDidPersistCallback(this),delete this._onDidPersistCallback)},e.prototype._copyPersisted=function(){var t=this.serializeAttributes();return e.newWithSerializedAttributes(t)},e.prototype._copyUnpersisted=function(){var t=Kn.mapObject(this._attributesToBeSaved,(function(t){var e=t[0],n=t[1];return n&&"widgetlist"===n[0]?[Kn.invoke(e,"copy"),n]:[e,n]})),n=new e(t);return this._onDidPersistCallback&&n.onDidPersist(this._onDidPersistCallback),n},e}(Iu);const Uu=zu;function Hu(t){return t instanceof fl||!!T(t)&&ft(Ln(ct(t),"hash","obj_id","query","rel","target","title","url"))}function Wu(t){var e,n=t instanceof fl?{rel:(e=t).rel()||void 0,query:e.query(),target:e.target(),title:e.title(),url:e.url(),obj_id:e.objId(),fragment:e.hash()}:function(t){return{obj_id:t.obj_id||null,query:t.query||null,rel:t.rel||void 0,target:t.target||null,title:t.title||null,url:t.url||null,fragment:t.hash||null}}(t);return n.rel||delete n.rel,n}function Vu(t){var e={};return Kn.each(t,(function(t,n){var r=t[0],i=t[1],o=function(t){if(!xr(t))throw new Jn("Attribute names have to be in camel case.");return Er(t)}(n);if(Tr(o))e[o]=r;else{var a=i[0],s=i[1];e[o]=[Ku(a,n),$u(Qu(a,s,r,n))]}})),e}function Ku(t,e){switch(t){case"enum":return"string";case"float":case"integer":return"number";case"multienum":return"stringlist";case"binary":case"date":case"html":case"link":case"linklist":case"reference":case"referencelist":case"string":case"stringlist":case"widgetlist":return t;default:throw new Jn('Attribute "'+e+'" is of unsupported type "'+t+'".')}}function Qu(t,e,n,r){if(null===n)return n;switch(t){case"binary":return function(t,e){if(t instanceof Su)return{id:t.id()};Gu(t,e,"A Binary.")}(n,r);case"date":return function(t,e){if(Kn.isDate(t))return qr(t);if(Br(t))return t;Gu(t,e,"A Date.")}(n,r);case"enum":return function(t,e,n){var r=t.values;if(Kn.contains(r,e))return e;var i='Valid attribute values are contained in its "values" array ['+r+"].";Gu(e,n,i)}(e,n,r);case"float":return function(t,e){if(Dr(t))return t;var n=t;Kn.isNumber(t)&&(n=String(t));Gu(n,e,"A Number, that is #isFinite().")}(n,r);case"html":return function(t,e){if(Kn.isString(t))return t;Gu(t,e,"A String.")}(n,r);case"integer":return function(t,e){if(Ir(t))return t;Gu(t,e,"A Number, that is #isSafeInteger().")}(n,r);case"link":return function(t,e){if(Hu(t))return Wu(t);Gu(t,e,"A Link instance.")}(n,r);case"linklist":return function(t,e){if(Kn.isArray(t)&&Kn.every(t,Hu))return Kn.map(t,Wu);Gu(t,e,"An array of Link instances.")}(n,r);case"multienum":return function(t,e,n){var r=t.values,i="An array with values from "+Qn(r)+".";Kn.isArray(e)&&Kn.every(e,Kn.isString)||Gu(e,n,i);var o=Kn.difference(e,r);if(o.length){Gu(e,n,i+" Forbidden values: "+Qn(o)+".")}return e}(e,n,r);case"reference":return function(t,e){if(Yu(t))return Zu(t);Gu(t,e,"A BasicObj or a String ID.")}(n,r);case"referencelist":return function(t,e){if(function(t){return Kn.isArray(t)&&Kn.every(t,(function(t){return Yu(t)}))}(t))return Kn.map(t,Zu);Gu(t,e,"An array with BasicObjs or String IDs.")}(n,r);case"string":return function(t,e){if(Xu(t))return t.toString();Gu(t,e,"A String.")}(n,r);case"stringlist":return function(t,e){if(Kn.isArray(t)&&Kn.every(t,(function(t){return Xu(t)})))return Kn.invoke(t,"toString");Gu(t,e,"An array of strings.")}(n,r);case"widgetlist":return Ju(n,r);default:throw new tr('serializeAttributeValue is not implemented for "'+t+'".')}}function $u(t){return(Kn.isString(t)||Kn.isArray(t))&&Kn.isEmpty(t)?null:t}function Gu(t,e,n){throw new Jn("Unexpected value "+Qn(t)+' for attribute "'+e+'". Expected: '+n)}function Zu(t){return t instanceof rl?t.id():t}function Yu(t){return Kn.isString(t)||t instanceof rl}function Xu(t){return Kn.isString(t)||Kn.isNumber(t)}function Ju(t,e){return t instanceof Uu?Ju([t],e):Kn.isArray(t)&&Kn.every(t,(function(t){return t instanceof Uu}))?Kn.invoke(t,"id"):void Gu(t,e,"An array of BasicWidget instances.")}var tl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),el=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},nl=function(t){function e(e){var n=t.call(this)||this;return n.objData=e,n}return tl(e,t),e.get=function(t){var e=this.getIncludingDeleted(t);return!e||e.isDeleted()?null:e},e.getInWorkspace=function(t,e){var n=this.getIncludingDeletedInWorkspace(t,e);return!n||n.isDeleted()?null:n},e.getIncludingDeleted=function(t){return this.getIncludingDeletedInWorkspace(qu(),t)},e.getIncludingDeletedInWorkspace=function(t,n){var r=Cs(t,n);if(!r)return null;var i=new e(r);return i.isFinallyDeleted()?null:i},e.create=function(t){return this.createInWorkspace(qu(),t)},e.createInWorkspace=function(t,e){var n=Du(e);!function(t){if(!t)throw new Jn('Please provide an obj class as the "_objClass" property.')}(n._objClass),n._id||(n._id=[this.generateId()]);var r={_id:n._id,_obj_class:n._objClass};return this.createWithSerializedAttributes(t,ee(r,(function(t){return t[0]})),Cn(e,"_objClass","_id"))},e.createFromFile=function(t,e){var n=this.create(e);return Su.upload(t).intoId(n.id()).then((function(t){return n.update({blob:[t,["binary"]]}),n.finishSaving().then((function(){return n}))}))},e.addChildWithSerializedAttributes=function(t,n){var r=e.generateId();return this.createWithSerializedAttributes(qu(),Mt({},n,{_id:r,_path:t+"/"+r}))},e.createWithSerializedAttributes=function(t,n,r){if(!r){var i=il(n),o=i[0],a=i[1];return this.createWithSerializedAttributes(t,o,a)}var s=function(t,e){var n=Ss(t,e);return n.set(null),ws.get(t,e).notifyBackendState(null),n}(t,n._id);s.update(n);var u=new e(s);return u.update(r),u},e.generateId=function(){return Ar()+Ar()},e.all=function(){return(new nu).batchSize(1e3)},e.root=function(){return e.getByPath("/")},e.where=function(t,e,n,r){return(new nu).and(t,e,n,r)},e.getByPath=function(t){var e=this.where("_path","equals",t).first();return e||null},e.getByPermalink=function(t){var e=this.where("_permalink","equals",t).first();return e||null},e.getAllByPermalink=function(t){return this.where("_permalink","equals",t).take()},e.generateWidgetId=function(){return Ar()},e.prototype.id=function(){return this.getAttributeData("_id")},e.prototype.objClass=function(){return this.getAttributeData("_obj_class")},e.prototype.obj=function(){return this},e.prototype.createdAt=function(){return Rr(this.getAttributeData("_created_at"))},e.prototype.createdBy=function(){return this.getAttributeData("_created_by")||null},e.prototype.lastChanged=function(){var t=this.getAttributeData("_last_changed");return t?Rr(t):null},e.prototype.lastChangedBy=function(){return this.getAttributeData("_last_changed_by")||null},e.prototype.version=function(){return this.getAttributeData("_version")},e.prototype.workspaceId=function(){return this.objData.workspaceId()},e.prototype.path=function(){return this.getAttributeData("_path")||null},e.prototype.permalink=function(){return this.getAttributeData("_permalink")||null},e.prototype.parentPath=function(){var t=this.path();return t&&"/"!==t?function(t){var e=t.split("/");if(e.pop(),1===e.length)return"/";return e.join("/")}(t):null},e.prototype.parent=function(){var t=this.parentPath();return t?e.getByPath(t):null},e.prototype.hasConflicts=function(){return!!this.getAttributeData("_conflicts")},e.prototype.modification=function(){return this.isFinallyDeleted()||this.getAttributeData("_marked_deleted")?"deleted":this.getAttributeData("_modification")||null},e.prototype.isModified=function(){return!!this.modification()},e.prototype.isNew=function(){return"new"===this.modification()},e.prototype.isEdited=function(){return"edited"===this.modification()},e.prototype.isDeleted=function(){return"deleted"===this.modification()},e.prototype.isFinallyDeleted=function(){return this.objData.isNonExistent()},e.prototype.contentLength=function(){return this.metadata().contentLength()},e.prototype.contentType=function(){return this.metadata().contentType()},e.prototype.contentUrl=function(){var t=this.blob();return t?t.url():""},e.prototype.metadata=function(){var t=this.blob();return t?new ku(t.id()):new ku},e.prototype.children=function(){var t=this.path();return t?al(t).take():[]},e.prototype.hasChildren=function(){var t=this.path();return!!t&&al(t).batchSize(0).count()>0},e.prototype.orderedChildren=function(){var t=this.children(),e=this.get("childOrder","referencelist");return G(e)?mn(t,(function(t){var n=sn(e,"id").indexOf(t.id());return-1===n?e.length:n})):t},e.prototype.backlinks=function(){return e.where("*","linksTo",this).take()},e.prototype.ancestors=function(){var t=this.parentPath();return t?function(t){var e=["/"];if("/"===t)return e;var n=t.split("/").slice(1),r="";return n.forEach((function(t){r=r+"/"+t,e.push(r)})),e}(t).map((function(t){return e.getByPath(t)})):[]},e.prototype.isRestricted=function(){var t=this.restriction();return!!t&&t.length>0},e.prototype.restriction=function(){return this.getAttributeData("_restriction")||null},e.prototype.restrict=function(){this.isRestricted()||this.update({_restriction:[["_auth"]]})},e.prototype.unrestrict=function(){this.update({_restriction:null})},e.prototype.update=function(t){var e=this,n=Du(t);Qi((function(){e.persistWidgets(e,n);var t=Vu(n);e.objData.update(t)})),this.startLinkResolution()},e.prototype.destroy=function(){this.update({_markedDeleted:[!0]})},e.prototype.insertWidget=function(t,e){var n,r=function(t){if(function(t){return!!t.before}(t))return t.before.id();return t.after.id()}(e),i=this._widgetPlacementFor(r);if(i){var o=i.attributeValue,a=i.attributeName,s=i.container,u=i.index,l=e.before?u:u+1,c=el(o.slice(0,l),[t],o.slice(l));s.update(((n={})[a]=[c,["widgetlist"]],n))}},e.prototype.removeWidget=function(t){var e=this.fieldContainingWidget(t);if(e){var n=nn(e.get(),(function(e){return e.equals(t)}));e.update(n)}},e.prototype.siblingWidget=function(t,e){var n=this._widgetPlacementFor(t.id());if(n)return n.attributeValue[n.index+e]},e.prototype.copyAsync=function(t){return void 0===t&&(t={}),function(t){var e=["_path"];if(jn(ct(t),e).length)throw new Jn('Currently only "_path" copy option is supported.')}(t),this._copyAttributes().then((function(n){var r=Mt(n,t),i=e.createWithSerializedAttributes(qu(),r);return i.objData.finishSaving().then((function(){return i}))}))},e.prototype.moveToAsync=function(t){return this.moveTo(t),this.finishSaving()},e.prototype.moveTo=function(t){this.update({_path:[t+"/"+this.id()]})},e.prototype.markResolvedAsync=function(){return this.update({_conflicts:[null]}),this.finishSaving()},e.prototype.finishSaving=function(){var t=this;return this.finishLinkResolution().then((function(){return t.objData.finishSaving()}))},e.prototype.equals=function(t){return t instanceof e&&this.id()===t.id()},e.prototype.widget=function(t){return this.getWidgetAttribute(t,"_obj_class")?Uu.build(t,this):null},e.prototype.getWidgetAttribute=function(t,e){return this.objData.getWidgetAttribute(t,e)},e.prototype.widgets=function(){var t=this.getData();if(!ll(t))return[];var e=t._widget_pool;if(!e)return[];var n=[];return this.collectWidgets(n,t,e,{}),n},e.prototype.fieldContainingWidget=function(t){var e=t.id(),n=this._widgetPlacementFor(e);if(n){var r=n.container,i=n.attributeName;return new Vs(r,i,["widgetlist"])}},e.prototype.generateWidgetId=function(){for(var t=0;t<10;t++){var n=e.generateWidgetId();if(!this.widget(n))return n}throw new tr("Could not generate a new unused widget id.")},e.prototype.serializeAttributes=function(){var e=t.prototype.serializeAttributes.call(this,this.getData());return delete e._conflicts,delete e._modification,delete e._created_at,delete e._created_by,delete e._last_changed,delete e._last_changed_by,e},e.prototype.slug=function(){var t,e=this.get("title","string");return"string"!=typeof(t=e)?"":Qs(t)},e.prototype.getWidgetData=function(t){return this.objData.getWidget(t)},e.prototype.startLinkResolution=function(){oa||ul().startLinkResolutionFor(qu(),this.id())},e.prototype.finishLinkResolution=function(){return ul().finishLinkResolutionFor(qu(),this.id())},e.prototype.toPrettyPrint=function(){return"[object "+this.objClass()+' id="'+this.id()+'"]'},e.prototype.getAttributeData=function(t){return this.objData.getAttribute(t)},e.prototype.getData=function(){return this.objData.get()},e.prototype.blob=function(){return this.get("blob",["binary"])},e.prototype._copyAttributes=function(){var t=e.generateId(),n=this.serializeAttributes(),r=[];return Ze(n,(function(e,i){if("_"!==i[0]){if(function(t){return"binary"===t[0]&&!!t[1]}(e)){var o=e[1],a=new bu({idToCopy:o.id}).intoId(t).then((function(t){return{name:i,binary:t}}));r.push(a)}}else delete n[i]})),n._id=t,n._obj_class=this.objClass(),n._restriction=this.restriction(),this.path()&&(n._path=this.parentPath()+"/"+t),ai.all(r).then((function(t){return Ze(t,(function(t){var e=t.name,r={id:t.binary.id()};n[e]=["binary",r]})),n}))},e.prototype.collectWidgets=function(t,e,n,r){var i=this;Ye(e,(function(t,e){if(t&&!Tr(e)){var n=t;return rs(n)?n[1]:void 0}})).forEach((function(e){e&&e.forEach((function(e){if(!r[e]){r[e]=!0;var o=i.widget(e);if(o){t.push(o);var a=n[e];i.collectWidgets(t,a,n,r)}}}))}))},e.prototype._widgetPlacementFor=function(t){var e=this.getData();if(ll(e)){var n=function(t,e){var n=us(t,e);return n||($e(t._widget_pool,(function(t,r){if(t&&(n=us(t,e)))return n.parentWidgetId=r,!0})),n)}(e,t);if(n){var r,i=Cr(n.attributeName),o=n.parentWidgetId;if(o){if(!(r=this.widget(o)))return}else r=this;return{container:r,attributeName:i,attributeValue:r.get(i,["widgetlist"]),index:n.index,parentWidgetId:o}}}},e}(Iu);const rl=nl;function il(t){var e={},n={};return Ze(t,(function(t,r){if(G(a=t)&&"widgetlist"===On(a)){var i=Ye(t[1],ol),o=Cr(r);n[o]=[i,["widgetlist"]]}else e[r]=t;var a})),e._id||(e._id=nl.generateId()),[e,n]}function ol(t){return Uu.newWithSerializedAttributes(t)}function al(t){return nl.all().and("_parentPath","equals",t)}var sl;function ul(){if(!sl)throw new Error("No Link Handler");return sl}function ll(t){return!!t&&function(t){return!t._deleted}(t)}var cl=function(){return cl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},cl.apply(this,arguments)};const fl=function(){function t(t){this.attributes=cl({},t)}return t.prototype.title=function(){return this.attributes.title||null},t.prototype.query=function(){return this.attributes.query||null},t.prototype.hash=function(){return this.attributes.hash||null},t.prototype.rel=function(){return this.attributes.rel||null},t.prototype.target=function(){return this.attributes.target||null},t.prototype.url=function(){return this.attributes.url||null},t.prototype.objId=function(){return this.attributes.objId||null},t.prototype.obj=function(){var t=this.objId();return t?rl.get(t):null},t.prototype.queryParameters=function(){return Ks(this.query()||"")},t.prototype.isExternal=function(){return!!this.url()},t.prototype.isInternal=function(){return!this.isExternal()},t.prototype.equals=function(e){return e instanceof t&&(this.isExternal()?this.hash()===e.hash()&&this.query()===e.query()&&this.rel()===e.rel()&&this.target()===e.target()&&this.title()===e.title()&&this.url()===e.url():this.objId()===e.objId()&&this.title()===e.title())},t.prototype.copy=function(e){void 0===e&&(e={});var n=cl(cl({},this.attributes),e);if(e.objId&&e.url)throw new Jn('Link#copy refused: both "objId" and "url" have been specified with truthy values');return e.objId?n.url=null:e.url&&(n.objId=null),new t(n)},t.prototype.isBroken=function(){return!this.isExternal()&&!this.obj()},t.prototype.toPrettyPrint=function(){return this.isInternal()?'[object Link objId="'+this.objId()+'"]':'[object Link url="'+this.url()+'"]'},t}();function dl(t){var e=t.get(),n=function(t){var e=t.getDiff();if(function(t){return!!t&&"widgetlist_diff"===t.format}(e))return e.content}(t);return n?Nn(n.map((function(n){var r,i=n[0],o=n[1];switch(i){case"+":if(r=pl(e,o))return{widget:r,modification:"new"};break;case"=":if(r=pl(e,o))return{widget:r,modification:null};break;case"-":if(r=function(t,e){var n=rl.getInWorkspace("published",t);if(n)return n.widget(e);return null}(t.obj().id(),o),r)return{widget:r,modification:"deleted"}}}))):e.map((function(t){return{widget:t,modification:null}}))}function pl(t,e){return $e(t,(function(t){return t.id()===e}))||null}function hl(t){if(!t)return t;switch(typeof t){case"string":case"number":case"boolean":return t;case"object":return t._scrivitoPrivateContent instanceof nu?hl(t._scrivitoPrivateContent.params()):M(t)?t:G(t)?(e=[],t.forEach((function(t){var n=hl(t);void 0!==n&&e.push(n)})),e):function(t){var e={};return Ze(t,(function(t,n){var r=hl(t);void 0!==r&&(e[n]=r)})),e}(t)}var e}var vl;var ml=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},gl=0,yl={};function bl(){return Bi.subState("editors")}function wl(){return wl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},wl.apply(null,arguments)}function _l(t){return"/"===t.charAt(0)}function kl(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}const xl=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],i=e&&e.split("/")||[],o=t&&_l(t),a=e&&_l(e),s=o||a;if(t&&_l(t)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var l=0,c=i.length;c>=0;c--){var f=i[c];"."===f?kl(i,c):".."===f?(kl(i,c),l++):l&&(kl(i,c),l--)}if(!s)for(;l--;l)i.unshift("..");!s||""===i[0]||i[0]&&_l(i[0])||i.unshift("");var d=i.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var El=!0,Cl="Invariant failed";function Sl(t){return"/"===t.charAt(0)?t:"/"+t}function Ol(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function Tl(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function Al(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function Nl(t,e,n,r){var i;"string"==typeof t?(i=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),i.state=e):(void 0===(i=wl({},t)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=xl(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function Pl(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"==typeof t?t(e,n):t;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}var jl=!("undefined"==typeof window||!window.document||!window.document.createElement);function Ll(t,e){e(window.confirm(t))}var Il="popstate",Dl="hashchange";function Ml(){try{return window.history.state||{}}catch(t){return{}}}function Rl(t){void 0===t&&(t={}),jl||function(t,e){if(!t){if(El)throw new Error(Cl);var n="function"==typeof e?e():e,r=n?"".concat(Cl,": ").concat(n):Cl;throw new Error(r)}}(!1);var e,n=window.history,r=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=t,a=o.forceRefresh,s=void 0!==a&&a,u=o.getUserConfirmation,l=void 0===u?Ll:u,c=o.keyLength,f=void 0===c?6:c,d=t.basename?Tl(Sl(t.basename)):"";function p(t){var e=t||{},n=e.key,r=e.state,i=window.location,o=i.pathname+i.search+i.hash;return d&&(o=Ol(o,d)),Nl(o,r,n)}function h(){return Math.random().toString(36).substr(2,f)}var v=Pl();function m(t){wl(T,t),T.length=n.length,v.notifyListeners(T.location,T.action)}function g(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||w(p(t.state))}function y(){w(p(Ml()))}var b=!1;function w(t){if(b)b=!1,m();else{v.confirmTransitionTo(t,"POP",l,(function(e){e?m({action:"POP",location:t}):function(t){var e=T.location,n=k.indexOf(e.key);-1===n&&(n=0);var r=k.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(b=!0,E(i))}(t)}))}}var _=p(Ml()),k=[_.key];function x(t){return d+Al(t)}function E(t){n.go(t)}var C=0;function S(t){1===(C+=t)&&1===t?(window.addEventListener(Il,g),i&&window.addEventListener(Dl,y)):0===C&&(window.removeEventListener(Il,g),i&&window.removeEventListener(Dl,y))}var O=!1;var T={length:n.length,action:"POP",location:_,createHref:x,push:function(t,e){var i="PUSH",o=Nl(t,e,h(),T.location);v.confirmTransitionTo(o,i,l,(function(t){if(t){var e=x(o),a=o.key,u=o.state;if(r)if(n.pushState({key:a,state:u},null,e),s)window.location.href=e;else{var l=k.indexOf(T.location.key),c=k.slice(0,l+1);c.push(o.key),k=c,m({action:i,location:o})}else window.location.href=e}}))},replace:function(t,e){var i="REPLACE",o=Nl(t,e,h(),T.location);v.confirmTransitionTo(o,i,l,(function(t){if(t){var e=x(o),a=o.key,u=o.state;if(r)if(n.replaceState({key:a,state:u},null,e),s)window.location.replace(e);else{var l=k.indexOf(T.location.key);-1!==l&&(k[l]=o.key),m({action:i,location:o})}else window.location.replace(e)}}))},go:E,goBack:function(){E(-1)},goForward:function(){E(1)},block:function(t){void 0===t&&(t=!1);var e=v.setPrompt(t);return O||(S(1),O=!0),function(){return O&&(O=!1,S(-1)),e()}},listen:function(t){var e=v.appendListener(t);return S(1),function(){S(-1),e()}}};return T}var ql,Bl;var Fl=0;function zl(t){if("/"!==t.createHref({pathname:"/"}))throw new Jn("Expected a history without a preconfigured basename. For further details, see: https://www.scrivito.com/js-sdk/useHistory");if(t!==ql){var e=!ql;!function(t){Bl&&Bl();Bl=t.listen($l)}(t),ql=t,e||$l()}}function Ul(){var t=Ql().location;return""+t.pathname+t.search+t.hash}function Hl(){return""+Da().origin+Ul()}function Wl(t){return Ql().push(t)}function Vl(t){return Ql().replace(t)}function Kl(){ql||zl(Rl())}function Ql(){return Kl(),ql}function $l(){Fl++,Gl().set(Fl)}function Gl(){return Bi.subState("historyChangesCount")}var Zl,Yl={},Xl=new lr;function Jl(){var t=So(void 0,(function(){return na(qu())}))||"";t!==Zl&&(Yl={},Zl=t)}var tc=function(){return tc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},tc.apply(this,arguments)},ec=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const nc=function(){function t(t,e){var n={};e._scrivitoPrivateSchema&&Mt(n,e._scrivitoPrivateSchema.attributes),t.attributes&&Ze(t.attributes,(function(t,e){n[e]=function(t){if("string"==typeof t)return[t];return[t[0],ic(t[1])]}(t)}));var r=t.onlyInside;this.definition=tc(tc({},t),r?{attributes:n,onlyInside:G(r)?r:[r]}:{attributes:n})}return t.forInstance=function(t){return this.forClass(t.constructor)},t.forClass=function(t){return t._scrivitoPrivateSchema},t.basicFieldFor=function(e,n){var r=t.forInstance(e);if(r){var i=r.attributes[n];if(i)return new Vs(e._scrivitoPrivateContent,n,i)}},Object.defineProperty(t.prototype,"attributes",{get:function(){return this.definition.attributes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.definition.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onlyInside",{get:function(){return this.definition.onlyInside},enumerable:!1,configurable:!0}),t.prototype.isBinary=function(){var t=this.definition.attributes.blob;return!!t&&"binary"===t[0]},t}();function rc(t){return!(!t||!t._scrivitoPrivateSchema)}function ic(t){if(!("only"in t))return t;var e=t.only,n=ec(t,["only"]),r="string"==typeof e?[e]:e;return tc(tc({},n),{validClasses:r})}function oc(t,e){if(G(e))return Ye(e,(function(e){return oc(t,e)}));if(e instanceof rl)return ac(e,t.objClassFor(e.objClass()));if(e instanceof Uu){var n=e.objClass();return ac(e,t.widgetClassFor(n))}if(e instanceof fl){var r=Object.create(t.defaultClassForLinks.prototype);return r._scrivitoPrivateContent=e,r}return e}function ac(t,e){var n=Object.create(e.prototype);return n._scrivitoPrivateContent=t,n}function sc(t){return G(t)?Ye(t,sc):t&&t._scrivitoPrivateContent?t._scrivitoPrivateContent:t}function uc(t,e,n){return ee(t,(function(t,r){if(Tr(r))return[t];var i=e.attributes[r];if(!i)throw new Jn('Attribute "'+r+'" is not defined for CMS object class "'+n+'".');return[sc(t),i]}))}var lc=function(){function t(t){this._registry=t}return t.prototype.getObj=function(t,e){var n=rl.get(e);return this._checkObjClassAndWrapInAppClass(t,n)},t.prototype.getObjIncludingDeleted=function(t,e){var n=rl.getIncludingDeleted(e);return this._checkObjClassAndWrapInAppClass(t,n)},t.prototype.read=function(t,e){var n=nc.basicFieldFor(t,e);if(!n)return null;var r=n.get();return oc(this._registry,r)},t.prototype.update=function(t,e){var n=this._registry.objClassNameFor(t.constructor);if(!n){var r=void 0;throw r=t.constructor===this._registry.defaultClassForObjs?"Obj":"Widget",new Jn('Updating is not supported on the base class "'+r+'".')}if(e.constructor!==Object)throw new Jn("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");var i=uc(e,nc.forInstance(t),n);t._scrivitoPrivateContent.update(i)},t.prototype.wrapInAppClass=function(t){return oc(this._registry,t)},t.prototype._checkObjClassAndWrapInAppClass=function(t,e){if(!e)return null;var n=this._registry.objClassNameFor(t);if(n&&n!==e.objClass())throw new er('Obj with id "'+e.id()+'" is not of type "'+n+'".');return this.wrapInAppClass(e)},t}();const cc=lc;function fc(t){return function(){function e(){}return e.prototype.id=function(){return this._scrivitoPrivateContent.id()},e.prototype.objClass=function(){return this._scrivitoPrivateContent.objClass()},e.prototype.finishSaving=function(){return this._scrivitoPrivateContent.finishSaving()},e.prototype.get=function(e){if(!xr(e))throw new Jn("Attribute names have to be in camel case.");if(Tr(e))throw new Jn('Attribute name "'+e+'" is not a valid custom attribute name.');return t.read(this,e)},e.prototype.update=function(e){t.update(this,e)},e}()}function dc(t,e,n,r){var i={};return Object.keys(n.definition.attributes).forEach((function(n){if(!Object.prototype.hasOwnProperty.call(t,n)){var o=e.initialContentFor(r,n);void 0!==o&&(i[n]=o)}})),i}var pc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function hc(t){var e=new cc(t);function n(e,n){var r=new t.ObjSearch;return e&&r.and("_objClass","equals",e),n&&r._scrivitoPrivateContent.batchSize(n),r}function r(e){return oc(t,e)}var i=function(i){function o(){return null!==i&&i.apply(this,arguments)||this}return pc(o,i),o.get=function(t){return e.getObj(this,t)},o.getIncludingDeleted=function(t){return e.getObjIncludingDeleted(this,t)},o.getByPath=function(t){return r(rl.getByPath(t))},o.getByPermalink=function(t){return r(rl.getByPermalink(t))},o.all=function(){return n(t.objClassNameFor(this),1e3)},o.root=function(){return r(rl.root())},o.where=function(e,r,i,o){return void 0===o&&(o=null),n(t.objClassNameFor(this)).and(e,r,i,o)},o.create=function(t){void 0===t&&(t={}),vc(t,this._appClassName());var e=this._prepareAttributesForCreate(t);return r(rl.create(e))},o.createFromFile=function(t,e){void 0===e&&(e={}),function(t){if(!Or.is(t)){if(Sr.is(t))throw new Jn('Creating CMS objects from file is only available with instances of "File", but an instance of "Blob" is given');throw new Jn('Creating CMS objects from file is only available with instances of "File"')}}(t),function(t,e,n){if(vc(t,e),Object.prototype.hasOwnProperty.call(t,"blob"))throw new Jn('Setting attribute "blob" is not allowed when creating CMS objects from file, because the file will be assigned to that attribute');if(!n.isBinary())throw new Jn('Creating CMS objects from file is only available for classes with a binary attribute "blob"')}(e,this._appClassName(),this._schema());var n=this._prepareAttributesForCreate(e);return rl.createFromFile(t,n).then((function(t){return r(t)}))},o.prototype.lastChanged=function(){return this._scrivitoPrivateContent.lastChanged()},o.prototype.path=function(){return this._scrivitoPrivateContent.path()},o.prototype.parent=function(){return r(this._scrivitoPrivateContent.parent())},o.prototype.ancestors=function(){return r(this._scrivitoPrivateContent.ancestors())},o.prototype.backlinks=function(){return r(this._scrivitoPrivateContent.backlinks())},o.prototype.children=function(){return r(this._scrivitoPrivateContent.children())},o.prototype.orderedChildren=function(){return r(this._scrivitoPrivateContent.orderedChildren())},o.prototype.permalink=function(){return this._scrivitoPrivateContent.permalink()},o.prototype.slug=function(){return this._scrivitoPrivateContent.slug()},o.prototype.isBinary=function(){var t=nc.forInstance(this);return!!t&&t.isBinary()},o.prototype.isRestricted=function(){return this._scrivitoPrivateContent.isRestricted()},o.prototype.contentLength=function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0},o.prototype.contentType=function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():""},o.prototype.contentUrl=function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():""},o.prototype.metadata=function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new ku},o.prototype.restrict=function(){this._scrivitoPrivateContent.restrict()},o.prototype.unrestrict=function(){this._scrivitoPrivateContent.unrestrict()},o.prototype.widget=function(t){return r(this._scrivitoPrivateContent.widget(t))},o.prototype.widgets=function(){return r(this._scrivitoPrivateContent.widgets())},o.prototype.destroy=function(){this._scrivitoPrivateContent.destroy()},o._prepareAttributesForCreate=function(e){var n=this._schema(),r=this._appClassName(),i=dc(e,t,n,r);return uc(Mt({},e,i,{_objClass:r}),n,r)},o._appClassName=function(){return t.objClassNameFor(this)},o._schema=function(){return nc.forClass(this)},o}(fc(e));return i}function vc(t,e){if(!e)throw new Jn("Creating CMS objects is not supported for the class Obj or abstract classes.");if(t.constructor!==Object)throw new Jn("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(t._objClass)throw new Jn('Invalid attribute "_objClass". "'+t._objClass+'.create" will automatically set the CMS object class correctly.')}var mc=function(){function t(t,e){this._registry=t,this._basicObjFacetValue=e}return t.prototype.name=function(){return this._basicObjFacetValue.name()},t.prototype.count=function(){return this._basicObjFacetValue.count()},t.prototype.includedObjs=function(){var t=this._basicObjFacetValue.includedObjs();return oc(this._registry,t)},t}();const gc=mc;function yc(t){return G(t)?t.map((function(t){return sc(t)})):sc(t)}var bc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function wc(t){return function(e){function n(n){void 0===n&&(n={});var r=e.call(this)||this,i=nc.forInstance(r),o=t.objClassNameFor(r.constructor),a=r._prepareAttributesForConstructor(n,i,o),s=new Uu(a);return s.onDidPersist((function(e){var n=oc(t,e),r=dc(a,t,i,o);n.update(r)})),r._scrivitoPrivateContent=s,r}return bc(n,e),n.prototype.obj=function(){var e=this._scrivitoPrivateContent.obj();return oc(t,e)},n.prototype.copy=function(){var e=t.widgetClassFor(this.objClass());return ac(this._scrivitoPrivateContent.copy(),e)},n.prototype.destroy=function(){this._scrivitoPrivateContent.remove()},n.prototype._prepareAttributesForConstructor=function(t,e,n){return function(t,e){if(!t)throw new Jn("Creating widgets is not supported for the class Widget or abstract classes.");if(e.constructor!==Object)throw new Jn("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(e._objClass)throw new Jn('Invalid attribute "_objClass". "new '+e._objClass+'" will automatically set the CMS object class correctly.')}(n,t),uc(Mt({},t,{_objClass:n}),e,n)},n}(fc(new cc(t)))}var _c=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var kc=["hash","obj","query","rel","target","title","url"];function xc(t){return function(t){var n=Ln.apply(e,_c([ct(t)],kc));if(!ft(n))throw new Jn("Unexpected attributes "+Qn(n)+". Available attributes: "+Qn(kc))}(t),Qt(t,"obj")?Mt({},t,{objId:Ec(t.obj)}):t}function Ec(t){return t?sc(t).id():null}var Cc=function(){function t(){this.mapping={},this.defaultClassForObjs=hc(this),this.defaultClassForWidgets=wc(this),this.defaultClassForLinks=function(t){return function(){function e(t){var e=xc(t);this._scrivitoPrivateContent=new fl(e)}return e.prototype.title=function(){return this._scrivitoPrivateContent.title()},e.prototype.query=function(){return this._scrivitoPrivateContent.query()},e.prototype.hash=function(){return this._scrivitoPrivateContent.hash()},e.prototype.rel=function(){return this._scrivitoPrivateContent.rel()},e.prototype.target=function(){return this._scrivitoPrivateContent.target()},e.prototype.url=function(){return this._scrivitoPrivateContent.url()},e.prototype.obj=function(){var e=this._scrivitoPrivateContent.obj();return e?oc(t,e):null},e.prototype.queryParameters=function(){return this._scrivitoPrivateContent.queryParameters()},e.prototype.copy=function(e){var n=this._scrivitoPrivateContent.copy(xc(e)),r=Object.create(t.defaultClassForLinks.prototype);return r._scrivitoPrivateContent=n,r},e.prototype.isExternal=function(){return this._scrivitoPrivateContent.isExternal()},e.prototype.isInternal=function(){return this._scrivitoPrivateContent.isInternal()},e}()}(this),this.ObjSearch=function(t){var e=function(){function e(){this._scrivitoPrivateContent=new nu}return e.prototype.and=function(t,n,r,i){if(t instanceof e){var o=t;this._scrivitoPrivateContent.and(o._scrivitoPrivateContent)}else{if(void 0===n)throw new Jn("Missing operator to search with");if(void 0===r)throw new Jn('Missing value to search (specify "null" for missing)');var a=yc(r),s=t;this._scrivitoPrivateContent.and(s,n,a,i)}return this},e.prototype.andNot=function(t,e,n){var r=yc(n);return this._scrivitoPrivateContent.andNot(t,e,r),this},e.prototype.facet=function(e,n){return this._scrivitoPrivateContent.facet(e,n).map((function(e){return new gc(t,e)}))},e.prototype.first=function(){var e=this._scrivitoPrivateContent.first();return e?oc(t,e):null},e.prototype.take=function(e){return this._scrivitoPrivateContent.take(e).map((function(e){return oc(t,e)}))},e.prototype.toArray=function(){return this._scrivitoPrivateContent.take().map((function(e){return oc(t,e)}))},e.prototype.offset=function(t){return this._scrivitoPrivateContent.offset(t),this},e.prototype.order=function(t,e){return this._scrivitoPrivateContent.order(t,e),this},e.prototype.count=function(){return this._scrivitoPrivateContent.count()},e}();if("function"==typeof Symbol){var n=Symbol.iterator;n&&(e.prototype[n]=function(){var e=this._scrivitoPrivateContent.iterator();return{next:function(){var n=e.next();return n.done?{done:n.done}:{done:n.done,value:oc(t,n.value)}}}})}return e}(this)}return t.prototype.register=function(t,e){this.mapping[t]=e},t.prototype.getClass=function(t){return this.mapping[t]||null},t.prototype.allObjClasses=function(){var t=this;return En(this.mapping,(function(e){return t.defaultClassForObjs.isPrototypeOf(e)}))},t.prototype.allWidgetClasses=function(){var t=this;return En(this.mapping,(function(e){return t.defaultClassForWidgets.isPrototypeOf(e)}))},t.prototype.objClassFor=function(t){return this.appClassFor(t,this.defaultClassForObjs)},t.prototype.widgetClassFor=function(t){return this.appClassFor(t,this.defaultClassForWidgets)},t.prototype.objClassNameFor=function(t){return Fe(this.mapping,(function(e){return e===t}))},t.prototype.setInitialContentFor=function(t){this.initialContentForFunction=t},t.prototype.initialContentFor=function(t,e){if(this.initialContentForFunction)return this.initialContentForFunction(t,e)},t.prototype.appClassFor=function(t,e){var n=this.getClass(t);return n&&e.isPrototypeOf(n)?n:e},t}();const Sc=Cc;var Oc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Tc(t,e){if(e.extend&&!jc(e.extend,t.defaultClassForObjs))throw new Jn('Invalid value for "extend": not a Scrivito Obj class');var n=e.extend||t.defaultClassForObjs,r=new nc(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Oc(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!1,configurable:!0}),e}(n)}function Ac(t,e){if(e.extend&&!jc(e.extend,t.defaultClassForWidgets))throw new Jn('Invalid value for "extend": not a Scrivito Widget class');var n=e.extend||t.defaultClassForWidgets,r=new nc(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Oc(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!1,configurable:!0}),e}(n)}function Nc(t,e,n){var r=function(t,e,n){if(rc(n))return n;var r=Mt({},n,{name:e});return Tc(t,r)}(t,e,n);return t.register(e,r),r}function Pc(t,e,n){var r=function(t,e,n){if(rc(n))return n;var r=Mt({},n,{name:e});return Ac(t,r)}(t,e,n);return t.register(e,r),r}function jc(t,e){return!!t&&(t===e||t.prototype instanceof e)}var Lc=nr.refinement(nr.Function,rc,"ObjClass"),Ic=nr.interface({attributes:nr.maybe(nr.dict(nr.refinement(nr.String,(function(t){return/^[a-z](_+[A-Z0-9]|[A-Za-z0-9])*$/.test(t)}),"String (alphanumeric, starting with a lower-case character)"),nr.union([nr.enums.of(["binary","date","float","html","integer","link","linklist","reference","referencelist","string","stringlist","widgetlist"]),nr.tuple([nr.enums.of(["enum","multienum"]),nr.interface({values:nr.list(nr.String)})]),nr.tuple([nr.enums.of(["reference","referencelist"]),nr.interface({only:nr.union([nr.String,nr.list(nr.String)])})]),nr.tuple([nr.enums.of(["widgetlist"]),nr.interface({only:nr.union([nr.String,nr.list(nr.String)])})])]),"Attributes Specification")),extend:nr.maybe(Lc)}),Dc=nr.refinement(nr.Function,rc,"WidgetClass"),Mc=nr.interface({attributes:Ic.meta.props.attributes,extend:nr.maybe(Dc),onlyInside:nr.maybe(nr.union([nr.String,nr.Array]))}),Rc=sr("createObjClass",[["options",Ic]],{docPermalink:"js-sdk/createObjClass"}),qc=sr("createWidgetClass",[["options",Mc]],{docPermalink:"js-sdk/createWidgetClass"}),Bc=nr.union([Ic,Lc]),Fc=sr("provideObjClass",[["name",nr.String],["objClassOrDefinition",Bc]],{docPermalink:"js-sdk/provideObjClass"}),zc=nr.union([Dc,Mc]),Uc=sr("provideWidgetClass",[["name",nr.String],["widgetClassOrDefinition",zc]],{docPermalink:"js-sdk/provideWidgetClass"});var Hc=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Wc=function(){function t(){this._registry=new Sc,this.appModelAccessor=new cc(this._registry)}return t.init=function(e){var n=new t;return e.Obj=n.Obj,e.Widget=n.Widget,e.Link=n.Link,e.ObjSearch=n.ObjSearch,e.appModelAccessor=n.appModelAccessor,e.provideObjClass=function(t,e){return n.provideObjClass(t,e)},e.provideWidgetClass=function(t,e){return n.provideWidgetClass(t,e)},e.createObjClass=function(t){return n.createObjClass(t)},e.createWidgetClass=function(t){return n.createWidgetClass(t)},e.getClass=function(t){return n.getClass(t)},e.allObjClasses=function(){return n.allObjClasses()},e.allWidgetClasses=function(){return n.allWidgetClasses()},e._privateRealm=n,n},Object.defineProperty(t.prototype,"Obj",{get:function(){return this._registry.defaultClassForObjs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Widget",{get:function(){return this._registry.defaultClassForWidgets},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Link",{get:function(){return this._registry.defaultClassForLinks},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ObjSearch",{get:function(){return this._registry.ObjSearch},enumerable:!1,configurable:!0}),t.prototype.provideObjClass=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return Fc.apply(void 0,Hc([t,e],n)),Nc(this._registry,t,e)},t.prototype.provideWidgetClass=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return Uc.apply(void 0,Hc([t,e],n)),Pc(this._registry,t,e)},t.prototype.createObjClass=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Rc.apply(void 0,Hc([t],e)),Tc(this._registry,t)},t.prototype.createWidgetClass=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return qc.apply(void 0,Hc([t],e)),Ac(this._registry,t)},t.prototype.getClass=function(t){return this._registry.getClass(t)},t.prototype.allObjClasses=function(){return this._registry.allObjClasses()},t.prototype.allWidgetClasses=function(){return this._registry.allWidgetClasses()},t.prototype.setInitialContentFor=function(t){this._registry.setInitialContentFor(t)},t}();const Vc=Wc;var Kc=nr.list(nr.union([nr.Function,nr.list(nr.union([nr.String,nr.Function,nr.Object]))]));var Qc=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},$c={};function Gc(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];nf.apply(void 0,Qc([t,e],n)),$c[t]=e}function Zc(t,e){var n=$c[t];if(n)return n[e]}var Yc=nr.struct({value:nr.String,title:nr.String}),Xc=nr.dict(nr.String,nr.struct({title:nr.maybe(nr.String),description:nr.maybe(nr.String),values:nr.maybe(nr.list(Yc))})),Jc=nr.list(nr.struct({title:nr.String,component:nr.maybe(nr.String),properties:nr.maybe(nr.list(nr.String))})),tf=nr.dict(nr.String,nr.union([fu,nr.Date,nr.Function,nr.Nil,nr.Number,nr.String,nr.list(fu),nr.list(cu),nr.list(nr.String)])),ef=nr.struct({attributes:nr.maybe(Xc),propertiesGroups:nr.maybe(Jc),title:nr.maybe(nr.String),description:nr.maybe(nr.String),thumbnail:nr.maybe(nr.String),titleForContent:nr.maybe(nr.Function),descriptionForContent:nr.maybe(nr.Function),hideInSelectionDialogs:nr.maybe(nr.Boolean),properties:nr.maybe(nr.list(nr.String)),initialContent:nr.maybe(tf),validations:nr.maybe(Kc)}),nf=sr("provideEditingConfig",[["className",nr.String],["editingConfig",ef]],{docPermalink:"js-sdk/provideEditingConfig"});function rf(t,e){var n,r=Zc(t,"initialContent");if(r){var i=r[e];if(H(i))return i();if(G(n=i)&&rn(n,of)){var o=cf();return i.map((function(t){var e=t._scrivitoPrivateContent.copy();return oc(o,e)}))}return i}}function of(t){return t._scrivitoPrivateContent&&t._scrivitoPrivateContent instanceof Uu}function af(t){var e=t.objClass(),n=lf().getClass(e)._scrivitoPrivateSchema,r={};Ze(n.attributes,(function(n,i){if(ft(t.get(i,n))){var o=rf(e,i);o&&(r[i]=o)}}));var i=uc(r,n,e);t.update(i)}var sf,uf={};function lf(){return uf}function cf(){return lf()._privateRealm._registry}function ff(t){sf=t}function df(){return sf?sf():null}Vc.init(uf).setInitialContentFor(rf);var pf,hf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vf=function(t){function e(e){return t.call(this,e)||this}return hf(e,t),e}(Xn);function mf(){return!!pf}function gf(t){var e=pf(oc(cf(),t));return"string"==typeof e&&e.length>0?e:null}function yf(t){if(!pf)throw new vf("Scrivito.unstable_selectSiteId is only available in the multi-site mode");if(bf())throw new vf("Scrivito.unstable_selectSiteId can be called only once");if("string"!=typeof t||!t)throw new vf("Scrivito.unstable_selectSiteId can only be called with a non-empty string");_f().set(t)}function bf(){if(!pf)throw new tr("Calling getSelectedSiteId is only available in multi-site mode");return _f().get()||null}function wf(t){if(!bf())throw new vf("Used "+t+" in the multi-site mode, but the site ID is not yet selected. Forgot to use Scrivito.unstable_selectSiteId?")}function _f(){return Bi.subState("selectedSiteId")}function kf(t){if(!(t instanceof rl))throw new Jn("Parameter obj needs to be a BasicObj.");if(function(t){var e=So(null,df);if(!e)return!1;return e.id()===t.id()}(t))return"/";var e=t.permalink();if(e){if(!mf())return Ef(t,e);if(wf("routing-related API (e.g. Scrivito.navigateTo)"),function(t){var e=gf(t),n=bf();return!e||e===n}(t))return Ef(t,e)}var n=function(t){var e=cf(),n=oc(e,t);if(function(t){var e=t;return e.slug&&"function"==typeof e.slug}(n)){var r=n.slug();if("string"==typeof r)return r}}(t);return n?"/"+n+"-"+t.id():"/"+t.id()}function xf(t){var e=t.replace(new RegExp("^/+|/+$","g"),"");if(""===e)return df();var n=function(t){if(t.length<16)return null;if(t.length>16&&"-"!==t.slice(-17,-16))return null;var e=t.slice(-16);if(e.match(/[^0-9a-f]/))return null;return e}(e);return n?rl.get(n):function(t){var e=function(t){if(!Xl.current())return Jl(),Yl[t]}(t);if(e)return rl.get(e);if(mf())return function(t){wf("routing-related API (e.g. Scrivito.currentPage, Scrivito.urlFor)");var e=bf(),n=rl.getAllByPermalink(t);return $e(n,(function(t){var n=gf(t);return!n||n===e}))||null}(t);return rl.getByPermalink(t)}(e)}function Ef(t,e){return function(t,e){Xl.current()||(Jl(),Yl[e]=t)}(t.id(),e),"/"+e}var Cf="",Sf=!1;function Of(t){var e=t.obj,n=t.queryParameters,r=t.hash,i=t.origin;Pf("generateUrl");var o=jf({path:kf(e),queryParameters:n,hash:r});return i&&o.origin(i),o.toString()}function Tf(t){var e=t.path;return Pf("generatePath"),jf({path:e})}function Af(t){Pf("recognize");var e="string"==typeof t?pa(t):t,n=function(t){if(Nf(t))return function(t){var e=t.path();if(e.substring(0,Cf.length)!==Cf)return null;return e.substring(Cf.length)}(t);return null}(e),r=e.query(!0),i=function(t){var e=t.hash();if(""===e)return null;return e}(e);return I(n)?{path:n,obj:xf(n),queryParameters:r,hash:i}:{path:n,obj:null,queryParameters:r,hash:i}}function Nf(t){return!t.is("absolute")||t.origin()===Lf()}function Pf(t){if(!Sf)throw pr("Error from Scrivito SDK: No application configured, cannot initialize routing."),new tr(t+" can't be called before init.")}function jf(t){var e=t.path,n=t.queryParameters,r=t.hash,i=("/"+Cf+"/"+e).replace(/\/+/g,"/"),o=pa("").pathname(i);return n&&o.query(n),r&&o.hash(r),o}function Lf(){return pa(Da()).origin()}function If(t){vl?vl.navigateToExternalUrl(t):Df(t)}function Df(t){window.location.assign(t)}function Mf(t,e){window.open(t,e)}function Rf(t){vl&&function(t){return Nf(pa(t))}(t)?vl.openInNewUiWindow(t):Mf(t,"_blank")}function qf(t){var e=t.objClass();if(!e)return!1;var n=lf().getClass(e);return!!n&&nc.forClass(n).isBinary()}var Bf=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Ff={type:"not found",page:null},zf={type:"not responsible"};function Uf(){var t=So(void 0,(function(){return new xo({state:Bi.subState("currentPage"),invalidation:function(){return Gl().get()||0},loader:Vf}).get()}));if(t&&Hf(t)&&!rl.get(t.objId))return Ff;return t}function Hf(t){return"page"===t.type}function Wf(t){return"not found"===t.type}function Vf(){return ao((function(){return function(){var t=Ul();return{route:Af(t),location:t}}()})).then(Kf)}function Kf(t){var e=t.route,n=t.location;if(null===e.path)return zf;var r=e.obj;if(!r)return Ff;if(!qf(r)){var i=e.queryParameters,o=(i._scrivito_workspace_id,i._scrivito_editing,i._scrivito_comparison,Bf(i,["_scrivito_workspace_id","_scrivito_editing","_scrivito_comparison"]));return{type:"page",objId:r.id(),queryParameters:o,location:n}}var a=ao((function(){return function(t){var e=t.get("blob",["binary"]),n=e?e.url():null;if(!n)return Ff;return{type:"binary",objId:t.id(),url:n,page:!1}}(r)}));return a.then(Qf),a}function Qf(t){"binary"===t.type&&If(t.url)}function $f(t){var e;return io((function(){return bi(Uf).result}),(function(n){void 0!==n&&(void 0!==e&&function(t,e){if(Hf(t))return!!Hf(e)&&(t.objId===e.objId&&t.location===e.location);if(Hf(e))return!1;return Wf(t)===Wf(e)}(e,n)||(e=n,t(n)))}))}function Gf(t){if(Hf(t)){var e=t.location;ao((function(){if(Ul()===e){var n=Of({obj:rl.get(t.objId)});return pa(e).path(n).toString()}})).then((function(t){if(t){var n=Ul();e===n&&t!==n&&Vl(t)}}))}}function Zf(t){(Hf(t)||Wf(t))&&window.scrollTo(0,0)}var Yf=!1,Xf=!1;function Jf(){var t=function(t){return new pa(t).query(!0)}(Da().href),e=t._scrivito_workspace_id||"published";"string"==typeof e?(Bu(e),"published"!==e&&(Yf=t.hasOwnProperty("_scrivito_editing"),Xf=!Yf&&t.hasOwnProperty("_scrivito_comparison"))):ar(new tr("Expected value of _scrivito_workspace_id to be a string, but it is "+typeof e))}function td(){return Yf}function ed(){return Xf}function nd(){if(!vl)throw new Error("Not expected to be rendered without UI");return vl}function rd(){var t=Ra();t.addEventListener("dragover",(function(t){return function(t){t.dataTransfer.dropEffect="move",t.preventDefault();var e={x:t.pageX,y:t.pageY};nd().dragTo(e)}(t)})),t.addEventListener("drop",(function(){nd().drop()}))}function id(){Ra().addEventListener("dragover",(function(t){var e=t.clientY,n=window.pageXOffset,r=window.pageYOffset;r>0&&e<30?Ba(n,r-25):window.document.body.scrollHeight>r+qa()&&e>qa()-30&&Ba(n,r+25)}))}function od(){jo(ad,(function(t){var e;t.allDataLoaded&&((e=t.result).workspaceId===qu()&&e.inPlaceEditingActive===td()&&e.comparisonActive===ed()||function(t){var e=function(t,e){var n=e.workspaceId,r=e.inPlaceEditingActive,i=e.comparisonActive,o={_scrivito_workspace_id:n};return r?o._scrivito_editing="true":i&&(o._scrivito_comparison="true"),new pa(t).removeSearch(["_scrivito_workspace_id","_scrivito_editing","_scrivito_comparison"]).addSearch(o)}(Hl(),t);Df(e.toString())}(e))}))}function ad(){var t=nd();return{workspaceId:t.currentWorkspaceId(),inPlaceEditingActive:t.isInPlaceEditingActive(),comparisonActive:t.isComparisonActive()}}window.scrivito||(window.scrivito={}),scrivito.registerEditor=function(t){var e=++gl;yl[e]=t;var n=bl(),r=n.get()||[];n.set(ml(r,[e]))},scrivito.openContentBrowser=function(t){if(void 0===t&&(t={}),!vl)throw new Error("Cannot open ContentBrowser without UI present");return vl.openContentBrowser(hl(t))};var sd=function(){function t(t){var e=t.controller;this._controller=e}return t.canEdit=function(t){return!1},t.prototype.onClick=function(t){},t.prototype.contentDidChange=function(){},t.prototype.editorWillBeActivated=function(){},t.prototype.editorWillBeDeactivated=function(){},t.prototype.editorDomWasMounted=function(t){},t.prototype.editorDomWasUnmounted=function(){},t}();const ud=sd;var ld=n(94707),cd=n.n(ld),fd=n(91058),dd=n.n(fd),pd=n(70908);var hd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var vd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hd(e,t),e.create=function(e){var n=t.create.call(this,e);return n.removeAttribute("target"),n},e.prototype.format=function(e,n){return e!==this.statics.blotName||n||this.domNode.removeAttribute("target"),t.prototype.format.call(this,e,n)},e}(dd().import("formats/link")),md=function(t){var e=this,n=t.getModule("scrivitoApi").getTooltip(),r=n.hide.bind(n);n.hide=function(){var i=!n.root.classList.contains("ql-hidden"),o=n.root.classList.contains("ql-editing"),a=n.linkRange||e.lastActiveRange;i&&o&&a&&(n.textbox.value&&t.formatText(a.index,a.length,"link",n.textbox.value,"user"),gd(t,a)),delete e.lastActiveRange,r()};var i=n.root.querySelector("a.ql-svt-browse"),o=n.root.querySelector("a.ql-svt-target");i.addEventListener("click",(function(e){t.getModule("scrivitoInternalLink").fromContentBrowser(),e.preventDefault()})),o.addEventListener("click",(function(e){var r=n.root.getAttribute("data-svt-target")?"":"_blank";n.root.setAttribute("data-svt-target",r),gd(t,n.linkRange),e.preventDefault()})),t.on("selection-change",(function(r){if(r){e.lastActiveRange=r;var i=t.getFormat(r).link,o=t.getModule("scrivitoApi").getLinkRange(r);if(o&&i){var a=t.getFormat(o).target||"";!function(t,e,n){t.linkRange=e,t.root.setAttribute("data-svt-target",n)}(n,o,a)}else!function(t){t.root.setAttribute("data-mode",""),t.root.setAttribute("data-svt-target",""),delete t.linkRange}(n)}}))};function gd(t,e){if(e&&t.getFormat(e).link){var n=t.getModule("scrivitoApi").getTooltip().root.getAttribute("data-svt-target");t.formatText(e.index,e.length,"target",n||"","user")}}dd().register("modules/scrivitoLinkTooltip",md);var yd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bd=dd().import("core/module"),wd=dd().import("formats/link"),_d=function(t){function e(e){var n=t.call(this,e)||this;return n.setHtml=function(t){var n=0===e.history.stack.undo.length,r=e.clipboard;e.setContents(r.convert(t),"silent"),n&&e.history.clear()},n.getTooltip=function(){return e.theme.tooltip},n.getLinkRange=function(t){if(t){var n=e.scroll.scroll.descendant(wd,t.index),r=n[0],i=n[1];return r?{index:t.index-i,length:r.length()}:void 0}},n}return yd(e,t),e}(bd);var kd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xd=function(t){function e(e){var n=t.call(this,e)||this;return n.fromContentBrowser=function(){return function(t){scrivito.openContentBrowser({selection:[],selectionMode:"single"}).then((function(e){if(e.isSelected&&e.selection.length){var n=e.selection[0];t.getModule("scrivitoApi").getTooltip().edit("link","/"+n)}}))}(e)},n}return kd(e,t),e}(dd().import("core/module"));dd().register("modules/scrivitoInternalLink",xd);var Ed=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cd=dd().import("themes/bubble"),Sd=dd().import("themes/snow"),Od=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.snowTheme=new Sd(e,n),r}return Ed(e,t),e.prototype.extendToolbar=function(e){this.snowTheme.extendToolbar(e),this.snowTheme.tooltip.root.classList.add("ql-svt-tooltip-snow"),t.prototype.extendToolbar.call(this,e),this.tooltip.root.classList.add("ql-svt-tooltip-bubble"),this.tooltip=this.snowTheme.tooltip,this.tooltip.textbox.setAttribute("data-link","Paste or type a link"),this.tooltip.textbox.insertAdjacentHTML("beforebegin",Td),this.tooltip.textbox.insertAdjacentHTML("afterend",Ad)},e}(Cd),Td='\n <a class="ql-svt ql-svt-browse" title="Browse">\n <i class="scrivito_icon scrivito_icon_content_browser"></i>\n </a>\n',Ad='\n <a class="ql-svt ql-svt-target" title="Open link in new tab">\n <i class="scrivito_icon scrivito_icon_new_window"></i>\n <i class="scrivito_icon scrivito_icon_ok"></i>\n </a>\n';dd().register("themes/scrivito",Od);var Nd,Pd,jd=function(t){t.on("selection-change",(function(e){if(t.root.parentElement){var n=!t.getModule("scrivitoApi").getTooltip().root.classList.contains("ql-hidden"),r=e&&e.length>0;t.root.parentElement.setAttribute("data-scrivito-ql-tools",r||n?"visible":"")}}))};dd().register({"formats/target":(Nd=dd().import("parchment"),Pd=new Nd.Attributor.Attribute("target","target",{scope:Nd.Scope.INLINE}),Pd)}),dd().register(vd,!0),dd().register("modules/scrivitoApi",_d),dd().register("modules/scrivitoZIndex",jd);const Ld=function(t,e){var n=document.createElement("div");n.classList.add("ql-svt-container"),t.appendChild(n);var r=new(dd())(n,{formats:["blockquote","bold","code","code-block","header","image","indent","italic","link","list","script","strike","target","underline","video"],modules:{scrivitoApi:!0,scrivitoInternalLink:!0,scrivitoLinkTooltip:!0,scrivitoZIndex:!0,toolbar:{container:["bold","italic",window.ScrivitoEditors&&window.ScrivitoEditors._config&&window.ScrivitoEditors._config.showHtmlEditorCodeButton?"code":void 0,"link",{header:2},{header:3},{list:"bullet"},{list:"ordered"}]}},placeholder:"Click to edit",theme:"scrivito"});return r.getModule("scrivitoApi").setHtml(e.getContent()),r.on("text-change",(function(){return e.setContent(function(t){if("\n"===t.getText())return"";var e=t.getContents().ops;return new pd.Ss(e,{linkTarget:"",multiLineParagraph:!1}).convert()}(r))})),r};const Id=function(t){t.getAttribute("data-scrivito-editors-placeholder")||t.setAttribute("data-scrivito-editors-placeholder","Click to edit")};var Dd=n(93392),Md=n.n(Dd);const Rd=function(){function t(t,e){this.domNode=t,this.controller=e}return t.prototype.content=function(){return this.controller.getContent()},t.prototype.idFromPath=function(t){if(t.match(/^objid:/))return t.replace(/^objid:/,"")},t.prototype.edQuery=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Md().apply(void 0,t)},t.prototype.jQueryElement=function(){return this.edQuery(this.domNode)},t.prototype.pathForId=function(t){return"objid:"+t},t.prototype.save=function(t){this.controller.setContent(t);var e={done:function(t){return t(),e}};return e},t.prototype.trigger=function(){},t}();var qd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qd(e,t),e.canEdit=function(t){return"html"===t.type},e.prototype.contentDidChange=function(){this._updateContent&&this._updateContent()},e.prototype.editorWillBeActivated=function(){this._controller.setDomMode("Replace")},e.prototype.editorDomWasMounted=function(t){var e=this;if(Id(t),"yes"===window.top.localStorage.getItem("__scrivito_enable_quill")){var n=Ld(t,this._controller);this._updateContent=function(){var t=n.getSelection();n.getModule("scrivitoApi").setHtml(e._controller.getContent()),n.hasFocus()&&n.setSelection(t)}}else{t.innerHTML=this._controller.getContent();var r=new Rd(t,this._controller),i=cd()(r);this._updateContent=function(){var n=i.exportSelection();t.innerHTML=e._controller.getContent(),i.importSelection(n)}}},e.prototype.editorDomWasUnmounted=function(){this._updateContent=void 0},e}(ud);const Fd=Bd;var zd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ud=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zd(e,t),e.canEdit=function(t){return"reference"===t.type},e.prototype.onClick=function(t){var e=this;scrivito.openContentBrowser({selection:this.currentSelection(),selectionMode:"single",validObjClasses:this._controller.validObjClasses()}).then((function(t){t.isSelected&&e._controller.setContent(t.selection[0]||null)}))},e.prototype.currentSelection=function(){var t=this._controller.getContent();return t?[t.id()]:[]},e}(ud);const Hd=Ud;function Wd(t,e){var n=e.jQueryElement();switch(t.keyCode||t.which){case 13:$d(n)||(t.preventDefault(),n.blur());break;case 27:t.stopPropagation(),n.blur()}}function Vd(t){!function(t){var e=document.getSelection();if(!e.anchorNode||!e.focusNode)return;t.find(e.anchorNode).addBack(e.anchorNode).length&&t.find(e.focusNode).addBack(e.focusNode).length||e.selectAllChildren(t[0])}(t.jQueryElement())}function Kd(t){var e,n=(Qd(e=t.jQueryElement()),e[0].innerText.replace(/\r\n/g,"\n").replace(/\n+$/,""));return t.save(n).done((function(){return t.trigger("scrivito_editors:save")}))}function Qd(t){var e=function(t){var e=t.data("scrivito_editors_siblings_before_edit"),n=t.siblings(),r=!e||n.filter(e).length<e.length;if(r)return t.data("scrivito_editors_siblings_before_edit",n);return t.siblings().addBack().not(e)}(t),n=e.not(t);n.length>0&&(n.remove(),t.text(e.text()))}function $d(t){return!0===t.data("scrivitoEditorsMultiline")||!1!==t.data("scrivitoEditorsMultiline")&&t.css("white-space").match(/pre/)}function Gd(t){if($d(t)&&!t.data("scrivito_editors_prepared_for_editing")){t.data("scrivito_editors_prepared_for_editing",!0);var e=t.html(),n=e.replace(/\r?\n/g,"<br />");e!==n&&t.html(n)}}const Zd=function(t){var e=t.jQueryElement();e.attr("contenteditable","true").blur((function(){return function(t){Kd(t).done((function(){return t.trigger("scrivito_editors:blur")})),function(t){var e=t.jQueryElement();e.data("scrivito_editors_prepared_for_editing",!1),e.text(t.content())}(t),Gd(t.jQueryElement())}(t)})).click((function(){return Vd(t)})).focus((function(){return function(t){Gd(t.jQueryElement())}(t)})).keypress((function(e){return Wd(e,t)})).keyup((function(e){return Wd(e,t)})),"false"!==e.attr("data-scrivito-editors-autosave")&&e.on("cut input keypress keyup paste",(function(){return function(t){Kd(t)}(t)})),Gd(e),e.on("click",(function(t){e.attr("contenteditable","true"),Qd(e),t.timeStamp-e.data("scrivito_editors_last_click")>=300&&t.preventDefault(),e.data("scrivito_editors_last_click",t.timeStamp)}))};var Yd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Yd(e,t),e.canEdit=function(t){return"string"===t.type},e.prototype.contentDidChange=function(){this._setCurrentContent()},e.prototype.editorWillBeActivated=function(){this._controller.setDomMode("Replace")},e.prototype.editorDomWasMounted=function(t){this._currentDomNode=t,Id(t);var e=new Rd(t,this._controller);this._setCurrentContent(),Zd(e)},e.prototype.editorDomWasUnmounted=function(){this._currentDomNode=void 0},e.prototype._setCurrentContent=function(){this._currentDomNode&&(this._currentDomNode.textContent=this._controller.getContent())},e}(ud);const Jd=Xd;var tp,ep={descriptionForObj:Lo,getClasses:Lo,getContentBrowserConfiguration:Lo,getHomepageId:Lo,getSiteIdForObj:Lo,replaceInternalLinks:Lo,titleForObj:Lo,titleForWidget:Lo,getElementBoundaries:Lo,getContentZoneData:Lo,getCustomComponentDimensions:Lo,getScrollPosition:Lo,getApplicationUrl:Lo,getCurrentPageId:Lo,executeCustomCommand:Io,initializeContentForObj:Io,initializeContentForWidget:Io,navigateTo:Io,resolveUrl:Io,showCustomComponent:Io,urlFor:Io};function np(t,e){!function(t,e){void 0===e&&(e=window.document);var n=e.createElement("link");n.rel="stylesheet",n.href=t,mr(e.head,n)}(t+"/scrivito_editing.css",e),vr(t+"/scrivito_editing.js",e)}var rp=function(){return rp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},rp.apply(this,arguments)};function ip(t,e){return void 0===e&&(e={}),up(t),ap(t,{origin:e.origin||Lf(),query:e.query,hash:e.hash})}function op(t,e){return up(t),ap(t,e)}function ap(t,e){return t instanceof fl?function(t,e){void 0===e&&(e={});if(t.isExternal())return t.url();var n=t.obj();if(!n)throw new Jn("Missing link target.");var r=rp({},e);e.queryParameters||"string"==typeof e.query||(r.query=t.query()||void 0);"string"!=typeof e.hash&&(r.hash=t.hash()||void 0);return sp(n,r)}(t,e):t instanceof Su?lp(t):sp(t,e)}function sp(t,e){return qf(t)?function(t,e){var n=t.get("blob",["binary"]);if(n)return lp(n);return cp(t,e)}(t,e):cp(t,e)}function up(t){if(!t)throw new Jn("Missing target.");if(!(t instanceof fl||t instanceof rl||t instanceof Su))throw new Jn("Target is invalid. Valid targets are instances of Obj or Link.")}function lp(t){return t.url()}function cp(t,e){void 0===e&&(e={});var n=e.origin,r=e.query,i=e.queryParameters,o=e.hash;return Of({obj:t,origin:n,queryParameters:i||r&&Ks(r)||void 0,hash:o})}var fp,dp=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function pp(t,e){for(var n,r,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return aa("Scrivito.urlFor"),mp.apply(void 0,dp([t,e],i)),e&&(n=e.query,r=e.hasOwnProperty("hash")?e.hash:e.fragment),ip(sc(t),{origin:fp,query:n,hash:r})}var hp=nr.union([lu,fu,pu]),vp=nr.struct({query:nr.maybe(nr.String),hash:nr.maybe(nr.String),fragment:nr.maybe(nr.String)}),mp=sr("urlFor",[["target",hp],["options",nr.maybe(vp)]],{docPermalink:"js-sdk/urlFor"}),gp=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},yp=0;function bp(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=++yp;if(Zi("navigateTo"),null!==t){var o,a;if(Op.apply(void 0,gp([t,e],n)),e){var s=Cn(e,"hash","params");Tp(t,s),o=Mt(s,e.params||{}),a=e.hash}ao((function(){return H(t)?t():t})).then((function(t){var e=function(t,e,n){Ap(t);var r=sc(t);if(r instanceof rl)return ao((function(){return _p(r,e,n||null)}));if(r instanceof fl)return ao((function(){return function(t,e,n){if(t.isExternal())return{url:t.url()};var r,i=n||t.hash();r=e&&!ft(e)?e:t.queryParameters();var o=t.obj();if(!o){var a=t.objId();return a?{objId:a,queryParameters:r,hash:i}:{}}return _p(o,r,i)}(r,e,n||null)})).then(wp)}(t,o,a);if(e)return e.then((function(t){yp===i&&function(t){kp(t)?function(t){var e=Of(t),n=Ul();e===n?Vl(e):Wl(e)}(t):xp(t)?If(t.url):function(t){var e=t.objId;if(t.isBinary){ar(new Jn("The target provided to navigateTo leads to the binary obj "+e+" which has no binary data."))}else{var n=Tf({path:e});t.queryParameters&&n.query(t.queryParameters),t.hash&&n.hash(t.hash),Wl(n.resource())}}(t)}(t)}))})).catch((function(t){yp===i&&ar(t)}))}else or((function(){return Op.apply(void 0,gp([t,e],n))}))}function wp(t){if(kp(t)||xp(t)||function(t){return!!t.objId}(t))return t;throw new Jn("The link provided to navigateTo has no destination.")}function _p(t,e,n){if(qf(t)){var r=t.get("blob",["binary"]);return r?{url:r.url()}:{isBinary:!0,objId:t.id(),queryParameters:e,hash:n}}return{obj:t,queryParameters:e,hash:n}}function kp(t){return!!t.obj}function xp(t){return!!t.url}var Ep=nr.union([lu,fu]),Cp=nr.union([nr.Function,Ep]),Sp=nr.dict(nr.String,nr.maybe(nr.union([nr.String,nr.list(nr.String),nr.Nil]))),Op=sr("navigateTo",[["target",Cp],["options",nr.maybe(nr.struct({hash:nr.maybe(nr.String),params:nr.maybe(Sp)},{strict:!1}))]],{docPermalink:"js-sdk/navigateTo"}),Tp=sr("navigateTo",[["target",Cp],["options",nr.maybe(Sp)]],{docPermalink:"js-sdk/navigateTo"}),Ap=sr("navigateTo",[["target",Ep]],{docPermalink:"js-sdk/navigateTo"});function Np(t,e,n){var r=Zc(t,e);if("function"==typeof r)try{return r(n)}catch(t){ar(t)}}var Pp,jp=n(63696),Lp=0;function Ip(){return Pp||(Pp=new cr,or(Mp)),Pp.promise}function Dp(){return Lp+=1,t=!1,function(){if(t)throw new tr("Unregister must not be called twice");t=!0,0==(Lp-=1)&&or(Mp)};var t}function Mp(){Pp&&0===Lp&&(Pp.resolve(void 0),Pp=void 0)}const Rp=function(t){return t.displayName||t.name};function qp(t){if(jp.isValidElement(t))return t.props.__scrivitoForwardElementType||t.type}var Bp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fp=function(){return Fp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Fp.apply(this,arguments)};function zp(t){if("function"!=typeof t)throw new Jn("Scrivito.connect expects either a plain function or a subclass of React.Component");return function(t){return!0===t._isScrivitoConnectedComponent}(t)?t:function(t){return"function"==typeof t&&t.prototype&&t.prototype.isReactComponent}(t)?Up(t):Up((e=t,n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Bp(n,t),n.prototype.render=function(){return e(this.props)},n}(jp.Component),n.displayName=Rp(e),n));var e,n}function Up(t){var e,n=((e=function(t){function e(e){var n=t.call(this,e)||this;return n._scrivitoPrivateConnector=new Wp(n),n}return Bp(e,t),e.prototype.componentDidMount=function(){this._scrivitoPrivateConnector.componentDidMount(),t.prototype.componentDidMount&&t.prototype.componentDidMount.call(this)},e.prototype.componentWillUnmount=function(){this._scrivitoPrivateConnector.componentWillUnmount(),t.prototype.componentWillUnmount&&t.prototype.componentWillUnmount.call(this)},e.prototype.render=function(){var e=this;return this._scrivitoPrivateConnector.render((function(){return t.prototype.render.call(e)}))},e}(t))._isScrivitoConnectedComponent=!0,e);return n.displayName=Rp(t),n}var Hp=jp.createContext(0),Wp=function(){function t(t){this.component=t,this.isMounted=!1,this.loadingSubscriber=new xi}return t.prototype.componentDidMount=function(){var t=this;if(void 0===this.hierachyLevel)throw new tr;if(this.stateSubscriber=Xi((function(){return t.component.forceUpdate()}),this.hierachyLevel),this.isMounted=!0,this.onMount){var e=this.onMount.bind(this);delete this.onMount,e()}},t.prototype.componentWillUnmount=function(){this.stateSubscriber&&this.stateSubscriber.unsubscribe(),this.unregisterLoadingActivity(),this.isMounted=!1,this.loadingSubscriber.unsubscribe()},t.prototype.render=function(t){var e=this,n=this.renderLoadingAware(t);return jp.createElement(Hp.Consumer,Fp({},{__scrivitoForwardElementType:qp(n)}),(function(t){return e.grabHierarchyLevel(t,jp.createElement(Hp.Provider,{value:t+1},n))}))},t.prototype.grabHierarchyLevel=function(t,e){return this.hierachyLevel=t,e},t.prototype.renderLoadingAware=function(t){var e=this;if(_i())return Vp(t);var n=bi((function(){return $i((function(){return Vp(t)}))})),r=n.result,i=r.accessedState,o=r.result;return this.whenMounted((function(){if(!e.stateSubscriber)throw new tr;e.stateSubscriber.subscribeChanges(i),n.subscribeLoading(e.loadingSubscriber),n.isAllDataLoaded()?e.unregisterLoadingActivity():e.unregisterLoadingActivityCallback||(e.unregisterLoadingActivityCallback=Dp())})),n.isAllDataLoaded()?o:this.handleLoading(o)},t.prototype.whenMounted=function(t){this.isMounted?t():this.onMount=t},t.prototype.handleLoading=function(t){return this.component._scrivitoRenderWhileLoading?this.component._scrivitoRenderWhileLoading():t},t.prototype.unregisterLoadingActivity=function(){var t=this.unregisterLoadingActivityCallback;t&&(delete this.unregisterLoadingActivityCallback,t())},t}();function Vp(t){var e=Oo((function(){return Gi({contextName:"React.Component#render",message:"Use one of the React lifecycle hooks."},t)}));return e.success?e.result:null}function Kp(t){if(t instanceof rl)return t.id();if(t instanceof Uu)return t.obj().id()+"|"+t.id();var e=Qn(t).substr(0,100);throw new tr('keyForBasicContent called with "'+e+'". Expected an instance of BasicObj or BasicWidget.')}var Qp,$p={};function Gp(t,e){$p[t]=e}function Zp(t){return $p[t]||null}function Yp(t){return Zp(Xp(t))}function Xp(t){return"appClass-"+t}var Jp=0,th={};const eh=function(t){t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain",t.target.id)}catch(t){}};function nh(t,e){return rh(qu(),t,e)}function rh(t,e,n){var r=rl.getIncludingDeletedInWorkspace(t,e);if(null!==r){var i,o=r.widget(n);if(null!==o)return function(t){var e=oc(cf(),t),n=t.objClass();return Np(n,"titleForContent",e)}(o)||(Zc(i=o.objClass(),"title")||i.replace(_r," ").replace(kr,(function(t){return" "+t.toLowerCase()})).replace(br,(function(t){return" "+t})).trim().replace(/./,(function(t){return t.toUpperCase()})))}}var ih={};function oh(t){return ih[t]?function(t){return new xo({state:ah(t),stream:new di((function(e){var n=function(){var n=ih[t];e.next(n?function(t){var e=t.getBoundingClientRect(),n=e.left,r=e.top,i=e.width,o=e.height;return{x:n+window.pageXOffset,y:r+window.pageYOffset,width:i,height:o}}(n):null)};n();var r=window.setInterval(n,1e3);return function(){return window.clearInterval(r)}}))})}(t).get():null}function ah(t){return Bi.subState("elementBoundaries").subState(t.toString())}var sh=function(){return sh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},sh.apply(this,arguments)};function uh(t){var e=sh({},lh());t(e),ch().set(e)}function lh(){return ch().get()||{}}function ch(){return Bi.subState("contentZoneRegistry")}var fh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function dh(t){var e;return(e=function(e){function n(t){var n=e.call(this,t)||this;return n.registeredElement=new mh,n}return fh(n,e),n.prototype.render=function(){return jp.createElement(t,fi({},this.props,{registeredElement:this.registeredElement}))},n}(jp.Component)).displayName=Rp(t)+"WithRegisteredElement",e}function ph(t,e){var n;return n=function(n){function r(t){var e=n.call(this,t)||this;return e.registeredElement=new mh,e}return fh(r,n),r.prototype.componentDidMount=function(){var e,n,r;this.unregisterContentZone=(e=this.registeredElement.id(),n=t(this.props),r=this.context,or((function(){return uh((function(t){t[e]={content:n,parentElementId:r}}))})),function(){return or((function(){return uh((function(t){delete t[e]}))}))})},r.prototype.componentWillUnmount=function(){this.unregisterContentZone&&this.unregisterContentZone()},r.prototype.render=function(){return jp.createElement(vh.Provider,{value:this.registeredElement.id()},jp.createElement(e,fi({},this.props,{registeredElement:this.registeredElement})))},r}(jp.Component),n.displayName=Rp(e)+"WithContentZone",n.contextType=vh,n}var hh,vh=jp.createContext(void 0),mh=function(){function t(){this.elementId=t.generateId()}return t.generateId=function(){return this.currentId++,this.currentId},t.prototype.id=function(){return this.elementId},t.prototype.set=function(t){var e;t?function(t,e){ih[t]=e}(this.elementId,t):(e=this.elementId,delete ih[e])},t.currentId=0,t}(),gh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const yh=dh(zp(((hh=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n.onDragStart=n.onDragStart.bind(n),n.onDragEnd=n.onDragEnd.bind(n),n}return gh(e,t),e.prototype.render=function(){var t=this;return jp.createElement("span",{ref:function(e){return t.props.registeredElement.set(e)},className:"scrivito_editing_marker",onClick:this.onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,draggable:!0,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd},jp.createElement("i",{className:"scrivito_icon"}),jp.createElement("span",{className:"scrivito_editing_marker_title"},this.title()))},e.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),nd().showWidgetMenu(this.props.registeredElement.id(),this.props.widget.obj().id(),this.props.widget.id())},e.prototype.onDragStart=function(t){eh(t),nd().startDrag(this.props.widget.obj().id(),this.props.widget.id()),this.props.setDragState(!0)},e.prototype.onDragEnd=function(){nd().endDrag(),this.props.setDragState(!1)},e.prototype.title=function(){return nh(this.props.widget.obj().id(),this.props.widget.id())},e}(jp.Component)).displayName="Scrivito.ContentTag.EditingMenuMarker",hh)));var bh,wh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const _h=dh(zp((bh=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return wh(e,t),e.prototype.render=function(){var t,e=this,n=function(t,e){var n={iconClassName:"scrivito_icon",markerClassName:"scrivito_editing_marker"};switch(t){case"new":n.iconClassName+=" scrivito_icon_inv_plus",n.tooltip=kh("widget_is_new");break;case"edited":switch(n.iconClassName+=" scrivito_icon_edited",e){case"new":n.markerClassName+=" scrivito_widget_moved_icon",n.tooltip=kh("widget_is_edited_and_dragged_here");break;case"deleted":n.markerClassName+=" scrivito_widget_moved_icon",n.tooltip=kh("widget_is_edited_and_dragged_away"),n.disableMenu=!0;break;default:n.tooltip=kh("widget_is_edited")}break;case"deleted":n.iconClassName+=" scrivito_icon_trash",n.tooltip=kh("widget_is_deleted");break;default:switch(n.iconClassName+=" scrivito_icon_moved",e){case"new":n.tooltip=kh("widget_is_dragged_here");break;case"deleted":n.tooltip=kh("widget_is_dragged_away"),n.disableMenu=!0}}return n}(this.props.modification,this.props.placementModification),r=n.iconClassName,i=n.markerClassName,o=n.tooltip,a=n.disableMenu?void 0:this.onClick;return jp.createElement("span",{ref:function(t){return e.props.registeredElement.set(t)},className:a?i:i+" scrivito_disabled",title:o,onClick:a,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},jp.createElement("i",{className:r}),jp.createElement("span",{className:"scrivito_editing_marker_title"},rh((t=this.props.widget).workspaceId(),t.obj().id(),t.id())||""))},e.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),nd().showWidgetMenu(this.props.registeredElement.id(),this.props.widget.obj().id(),this.props.widget.id())},e}(jp.Component),bh.displayName="Scrivito.ContentTag.ComparisonMenuMarker",bh)));function kh(t){return function(t){if(vl)return vl.translate(t)}("widget_marker."+t)}var xh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Eh=function(t){function e(e){var n=t.call(this,e)||this;return n._onClick=n._onClick.bind(n),n}return xh(e,t),e.prototype.render=function(){var t="scrivito_option_marker scrivito_"+this.props.position;return this.props.isAlwaysShown&&(t+=" scrivito_visible"),jp.createElement("span",{className:t,onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},jp.createElement("i",{className:"scrivito_icon scrivito_icon_marker_plus"}))},e.prototype._onClick=function(t){t.preventDefault(),t.stopPropagation(),this.props.insertWidget(this.props.widget,this.props.position)},e}(jp.Component);Eh.displayName="Scrivito.OptionMarker";const Ch=zp(Eh);function Sh(t){var e=zp((function(t){return(0,t.callback)(t.value)}));return function(n){var r=n.children;return jp.createElement(t,null,(function(t){return jp.createElement(e,{callback:r,value:t})}))}}var Oh,Th=(Oh=function(t){var e=jp.createContext(t);return{Provider:e.Provider,Consumer:Sh(e.Consumer)}}(!0),Oh.Consumer),Ah=Oh.Provider,Nh=!1;function Ph(){Nh=!0}var jh,Lh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ih=function(){return Ih=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ih.apply(this,arguments)},Dh=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Mh=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Rh=jp.createContext({});const qh=zp((function(t){var e=Ih({},t);return delete e.widget,delete e.placementModification,delete e.registeredElement,jp.createElement(Rh.Consumer,null,(function(t){return jp.createElement(Bh,Ih({},t,e))}))}));var Bh=ph((function(t){var e=t.widget;if(!e)throw new tr("Missing widget");return{type:"widget",objId:e.obj().id(),widgetId:e.id()}}),zp((jh=function(t){function e(e){var n=t.call(this,e)||this;return n.state={hasFocus:!1,isDragging:!1,isFocusFadedOut:!0},n.onMouseOver=n.onMouseOver.bind(n),n.onMouseOut=n.onMouseOut.bind(n),n.onWidgetFocus=n.onWidgetFocus.bind(n),n.onWidgetBlur=n.onWidgetBlur.bind(n),n.lockFocus=n.lockFocus.bind(n),n.unlockFocus=n.unlockFocus.bind(n),n.setDragState=n.setDragState.bind(n),n}return Lh(e,t),e.prototype.componentDidMount=function(){var t,e;this.focusToken=(t={onFocus:this.onWidgetFocus,onBlur:this.onWidgetBlur},th[e=Jp]=t,Jp+=1,e)},e.prototype.componentWillUnmount=function(){var t;t=this.focusToken,delete th[t]},e.prototype.render=function(){var t=this;if(td())return jp.createElement(Th,null,(function(e){return e?t.renderWithEditingMarker():t.renderWithoutMarker()}));if(ed()){var e=this.getWidget().modification(),n=this.props.placementModification;if((e||n)&&!this.isChildOfDeletedWidget(e,n))return this.renderWithComparisonMarker(e,n)}return this.renderWithoutMarker()},e.prototype.isChildOfDeletedWidget=function(t,e){return"deleted"===t&&!e},e.prototype.renderWithEditingMarker=function(){var t=this;return jp.createElement(this.props.tag,Ih(Ih(Ih({},this.forwardedPropsWithMarker()),{ref:function(e){return t.props.registeredElement.set(e)},className:this.className(),style:this.style(),onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,children:Mh([jp.createElement(yh,{key:"menuMarker",widget:this.getWidget(),setDragState:this.setDragState,onMouseOver:this.lockFocus,onMouseOut:this.unlockFocus})],jp.Children.toArray(this.props.children),[this.renderOptionMarker("top"),this.renderOptionMarker("bottom")])}),this.dataProps()))},e.prototype.renderWithComparisonMarker=function(t,e){return jp.createElement(this.props.tag,Ih(Ih(Ih({},this.forwardedPropsWithMarker()),{className:this.className(),style:this.style(),onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,children:Mh([jp.createElement(_h,{key:"menuMarker",widget:this.getWidget(),modification:t,placementModification:e,onMouseOver:this.lockFocus,onMouseOut:this.unlockFocus})],jp.Children.toArray(this.props.children))}),this.dataProps(t||e)))},e.prototype.renderWithoutMarker=function(){return jp.createElement(this.props.tag,this.forwardedProps())},e.prototype.getWidget=function(){var t=this.props.widget;if(!t)throw new Xn("Detected inappropriate placing of Scrivito.WidgetTag: It is intended to be used exclusively as top-level element inside a Widget component.");return t},e.prototype.forwardedProps=function(){var t=this.props;t.tag,t.widget,t.placementModification,t.registeredElement;return Dh(t,["tag","widget","placementModification","registeredElement"])},e.prototype.forwardedPropsWithMarker=function(){var t=this.forwardedProps();t.className,t.style;return Dh(t,["className","style"])},e.prototype.setDragState=function(t){this.setState({isDragging:t})},e.prototype.className=function(){var t=this.props.className||"";return td()&&this.hasVisibleFocus()&&(t+=" scrivito_active scrivito_entered"),ed()&&this.isDeleted()&&(t+=" scrivito_modification_opacity"),t},e.prototype.hasVisibleFocus=function(){return this.state.hasFocus&&!this.state.isFocusFadedOut},e.prototype.isDeleted=function(){return"deleted"===this.props.placementModification||"deleted"===this.getWidget().modification()},e.prototype.dataProps=function(t){var e={"data-scrivito-private-widget":"true","data-scrivito-private-dropzone":"true"};return this.isStructureWidget()&&(e["data-scrivito-private-structure-widget"]="true"),t&&(e["data-scrivito-private-widget-modification"]=t),e},e.prototype.style=function(){return this.state.isDragging?this.props.style?Ih(Ih({},this.props.style),{opacity:.5}):{opacity:.5}:this.props.style},e.prototype.isStructureWidget=function(){var t=cf(),e=this.getWidget();if(e){var n=t.widgetClassFor(e.objClass()),r=nc.forClass(n);if(r)return on(r.attributes,(function(t,e){return"widgetlist"===t[0]}))}return!1},e.prototype.onMouseOver=function(t){var e,n;t.stopPropagation(),e=this.focusToken,(n=th[Qp=e])&&n.onFocus()},e.prototype.onMouseOut=function(t){t.stopPropagation(),function(t){if(t===Qp){var e=th[t];e&&e.onBlur()}}(this.focusToken)},e.prototype.onWidgetFocus=function(){var t=this;this.setState({hasFocus:!0,isFocusFadedOut:!1}),this.fadeOutFocusTimeout&&window.clearTimeout(this.fadeOutFocusTimeout),this.isStructureWidget()||(this.fadeOutFocusTimeout=window.setTimeout((function(){return t.fadeOutFocus()}),1e3))},e.prototype.fadeOutFocus=function(){this.state.isFocusFadedOut||this.isFocusLocked||this.setState({isFocusFadedOut:!0})},e.prototype.lockFocus=function(){this.isFocusLocked=!0},e.prototype.unlockFocus=function(){this.isFocusLocked=!1},e.prototype.onWidgetBlur=function(){this.setState({hasFocus:!1})},e.prototype.renderOptionMarker=function(t){return jp.createElement(Ch,{key:"optionMarker-"+t,position:t,widget:this.getWidget(),insertWidget:Fh,isAlwaysShown:Nh,onMouseOver:this.lockFocus,onMouseOut:this.unlockFocus})},e}(jp.Component),jh.displayName="Scrivito.WidgetTag",jh.defaultProps={tag:"div"},jh)));function Fh(t,e){vl.insertWidget(t.obj().id(),t.id(),e)}var zh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Uh(t,e){!function(t){if("function"!=typeof t)throw new Jn("Scrivito.provideComponent expected a valid React component, but received "+Qn(t))}(e),function(t){return!(t.displayName||t.name&&"_class"!==t.name&&"class_"!==t.name.substring(0,6))}(e)&&(e.displayName=t);var n=function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zh(e,t),e.prototype.render=function(){if(this.props.widget){var e=t.prototype.render.call(this);return qp(e)!==qh?jp.createElement(qh,{children:e}):e}return t.prototype.render.call(this)},e}(t);return e.displayName=Rp(t),e}(zp(e));!function(t,e){Gp(Xp(t),e)}(t,n)}function Hh(t,e){Gp(t,zp(e))}var Wh,Vh=n(78325);function Kh(t,e){var n=Zp(t);!function(t,e){if(!t)throw new Jn('Component with ID "'+e+'" not found. Please make sure you registered it using "Scrivito.registerComponent".')}(n,t);var r=function(t){if(t.widgetId)return function(t){var e=rl.get(t.objId),n=e.widget(t.widgetId);return{widget:oc(cf(),n)}}(t);if(t.objId)return function(t){var e=rl.get(t.objId),n=oc(cf(),e);return{obj:n,page:n}}(t)}(e);Wh?(0,Vh.render)(jp.createElement(n,r),Wh):Wh=function(t,e,n){var r=t.createElement("div");return t.body.innerHTML="",t.body.appendChild(r),(0,Vh.render)(jp.createElement(e,n),r),r}(Ra(),n,r)}var Qh=new lr,$h=128;function Gh(t){if(t.isRaw()||t.isExplicitlyTransformed())return{initialUrl:t.url()};var e=function(t){return t.optimizeFor({width:$h})}(t).url();if(Qh.current())return{initialUrl:e};var n=function(t){return t.optimizeFor({width:Ma().width*Ia()})}(t).urlWithoutPlaceholder();return n&&e!==n?{initialUrl:e,highResUrlToDecode:n}:{initialUrl:e}}var Zh=n(27580);function Yh(t){var e=new Image;return Xh(e)?function(t,e){if(!Xh(t))throw new Error("Browser does not support decode!");return t.src=e,function(t){return t.decode&&t.decode.bind(t)}(t)().then((function(){return t}))}(e,t):function(t,e){return new ai((function(n,r){t.onload=function(){return n(t)},t.onerror=function(t){return r(t)},t.src=e}))}(e,t)}function Xh(t){return!!t.decode}function Jh(t,e,n,r){if(!tv())throw new Error("Browser does not support getCSSCanvasContext!");return tv()(t,e,n,r)}function tv(){return document.getCSSCanvasContext&&document.getCSSCanvasContext.bind(document)}function ev(){return!!nv()}function nv(){return document.mozSetImageElement&&document.mozSetImageElement.bind(document)}function rv(t){var e=document.createElement("canvas");return e.height=t.height,e.width=t.width,iv(t,e.getContext("2d")),e}function iv(t,e){e.drawImage(t,0,0)}function ov(t){return Yh(t).then((function(e){return ev()?function(t){var e=rv(t),n="ScrivitoBackgroundImage"+sv();return function(t,e){if(!ev())throw new Error("Browser does not support mozSetImageElement!");nv()(t,e)}(n,e),{decodedBackgroundUrl:"-moz-element(#"+n+")",clear:function(){return function(t){if(!ev())throw new Error("Browser does not support mozSetImageElement!");nv()(t,null)}(n)}}}(e):tv()?function(t){var e="ScrivitoBackgroundImage"+sv(),n=Jh("2d",e,t.width,t.height);return iv(t,n),{decodedBackgroundUrl:"-webkit-canvas("+e+")",clear:function(){Jh("2d",e,0,0)}}}(e):Xh(e)?{decodedBackgroundUrl:"url("+t+")"}:function(t){return rv(t),{decodedBackgroundUrl:"url("+t.src+")"}}(e)})).catch((function(){return{decodedBackgroundUrl:"url("+t+")"}}))}var av=0;function sv(){return av+=1}var uv=function(){function t(t){this.onUpdateCallback=t,this.decodedUrls={},this.loadingRegistry={},this.clears=[]}return t.prototype.getBackgroundImage=function(t){var e=this.decodedUrls[t];return e||this.ensureLoading(t),e},t.prototype.clear=function(){this.clears.map((function(t){return t()}))},t.prototype.ensureLoading=function(t){var e=this;if(!this.decodedUrls[t]&&!this.loadingRegistry[t]){var n=ov(t).then((function(n){var r=n.decodedBackgroundUrl,i=n.clear;i&&e.clears.push(i),e.decodedUrls[t]=r,e.onUpdateCallback()}));this.loadingRegistry[t]=Vr(n,(function(){return delete e.loadingRegistry[t]}))}},t}(),lv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cv=function(){return cv=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},cv.apply(this,arguments)},fv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},dv=nr.struct({image:nr.String,attachment:nr.maybe(nr.String),clip:nr.maybe(nr.String),color:nr.maybe(nr.String),origin:nr.maybe(nr.String),position:nr.maybe(nr.String),repeat:nr.maybe(nr.String),size:nr.maybe(nr.String)}),pv=nr.struct({image:nr.union([pu,lu,nr.String,nr.Nil]),attachment:nr.maybe(nr.enums.of(["fixed","scroll"])),clip:nr.maybe(nr.enums.of(["border-box"])),color:nr.maybe(nr.enums.of(["transparent"])),origin:nr.maybe(nr.enums.of(["padding-box"])),position:nr.maybe(nr.enums.of(["center","left","right","top","bottom"])),repeat:nr.maybe(nr.enums.of(["no-repeat"])),size:nr.maybe(nr.enums.of(["contain","cover"]))}),hv=nr.union([dv,pv]);hv.dispatch=function(t){return Cv(t)?dv:pv};var vv=nr.list(hv),mv=nr.union([hv,vv]);mv.dispatch=function(t){return G(t)?vv:hv};var gv=function(t){function e(e){var n=t.call(this,e)||this;return n.decoder=new uv((function(){return n.forceUpdate()})),n.binaryToUrl=n.binaryToUrl.bind(n),n}return lv(e,t),e.prototype.componentWillUnmount=function(){this.decoder.clear()},e.prototype.render=function(){var t=this.props,e=t.style,n=t.tag,r=fv(t,["style","tag"]),i=n;return function(t){if(T(t))for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n[e];r.match(/^background.+/)&&ar(new Jn('Invalid background related CSS property "'+r+'". Expected property "background" alongside with any non-background propertiesFor further details, see https://www.scrivito.com/js-sdk/background-image-tag'))}}(e),jp.createElement(i,cv({},r,{style:bv(e,this.binaryToUrl)}))},e.prototype.binaryToUrl=function(t){var e=Gh(t),n=e.initialUrl,r=e.highResUrlToDecode;return r&&this.decoder.getBackgroundImage(r)||"url("+n+")"},e.displayName="Scrivito.BackgroundImageTag",e.propTypes=(0,Zh.propTypes)({tag:nr.maybe(nr.String),style:nr.maybe(nr.interface({background:nr.maybe(mv)},{strict:!1}))},{strict:!1}),e.defaultProps={tag:"div",style:{}},e}(jp.Component);const yv=zp(gv);function bv(t,e){if(T(t)){var n=t,r=n.background,i=fv(n,["background"]);return cv(cv({},i),function(t,e){if(void 0===t)return{};if(G(t))return{backgroundImage:wv(n=t.map((function(t){return kv(t,e)})),"backgroundImage"),backgroundAttachment:wv(n,"backgroundAttachment"),backgroundClip:wv(n,"backgroundClip"),backgroundOrigin:wv(n,"backgroundOrigin"),backgroundPosition:wv(n,"backgroundPosition"),backgroundRepeat:wv(n,"backgroundRepeat"),backgroundSize:wv(n,"backgroundSize"),backgroundColor:_v(n)};var n;return kv(t,e)}(r,e))}return{}}function wv(t,e){return t.map((function(t){return t[e]})).join(", ")}function _v(t){var e=An(t);if(e)return e.backgroundColor}function kv(t,e){return Cv(t)?xv(t):function(t,e){var n=t.image;if(n instanceof Su)return Ev(n,t,e);if(n instanceof lf().Obj){var r=sc(n);if(qf(r)){var i=r.get("blob",["binary"]);if(i)return Ev(i,t,e)}}return xv({image:"none"})}(t,e)}function xv(t){return{backgroundImage:t.image,backgroundAttachment:t.attachment||"scroll",backgroundClip:t.clip||"border-box",backgroundColor:t.color||"transparent",backgroundOrigin:t.origin||"padding-box",backgroundPosition:t.position||"0% 0%",backgroundRepeat:t.repeat||"repeat",backgroundSize:t.size||"auto"}}function Ev(t,e,n){return{backgroundImage:n(t),backgroundAttachment:e.attachment||"scroll",backgroundClip:e.clip||"border-box",backgroundColor:e.color||"transparent",backgroundOrigin:e.origin||"padding-box",backgroundPosition:e.position||"center center",backgroundRepeat:e.repeat||"no-repeat",backgroundSize:e.size||"cover"}}function Cv(t){return I(t.image)}var Sv=Object.freeze({}),Ov=new lr;function Tv(){aa("Scrivito.currentPage");var t=Nv();return t.page?oc(cf(),t.page):null}function Av(){return aa("Scrivito.currentPageParams"),Nv().queryParameters||Sv}function Nv(){return Ov.current()||function(){var t=Uf();if(void 0===t)return;if(!Hf(t))return{page:t.page};return{page:rl.get(t.objId),queryParameters:t.queryParameters}}()||{}}function Pv(t){return t.ctrlKey||t.metaKey||t.shiftKey||2===t.which}var jv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lv=function(){return Lv=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Lv.apply(this,arguments)},Iv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Dv=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return jv(e,t),e.prototype.render=function(){var t=this.props,e=t.children,n=t.to,r=t.params,i=Iv(t,["children","to","params"]),o=Lv(Lv({},i),{href:n&&this.hrefFor(n,r)||"#",onClick:this.onClick,rel:this.rel(),target:this.target()});return jp.createElement("a",Lv({},o),e)},e.prototype.hrefFor=function(t,e){return"string"==typeof t?t:this.urlFor(t,e||void 0)},e.prototype.onClick=function(t){if(!this.props.onClick||(this.props.onClick(t),!t.defaultPrevented)){t.preventDefault();var e=this.props.to;if(e)if("string"!=typeof e){var n=this.props.params||void 0,r=this.urlFor(e,n);if(r){var i=this.target();"_blank"===i||Pv(t)?Rf(r):i?Mf(r,i):bp(e,{params:n})}}else Rf(e)}},e.prototype.target=function(){if(this.props.target)return this.props.target;var t=Mv(this.props.to);return t&&t.target()||void 0},e.prototype.rel=function(){if("rel"in this.props)return this.props.rel;var t=Mv(this.props.to);return t&&t.rel()||void 0},e.prototype.urlFor=function(t,e){var n=sc(t);if(n instanceof rl||n instanceof fl)return op(n,{queryParameters:e||void 0})},e.displayName="Scrivito.LinkTag",e.propTypes=(0,Zh.propTypes)({to:nr.maybe(nr.union([lu,fu,nr.String])),params:nr.union([nr.dict(nr.String,nr.union([nr.Nil,nr.String,nr.list(nr.String)])),nr.maybe(nr.irreducible("false",(function(t){return!1===t})))]),onClick:nr.maybe(nr.Function)},{strict:!1}),e}(jp.Component);function Mv(t){if(t){var e=sc(t);return e instanceof fl?e:void 0}}const Rv=zp(Dv);function qv(t){var e=t.child,n=t.renderChild,r=lf().appModelAccessor.wrapInAppClass(e);return n?n(r):jp.createElement("li",null,jp.createElement(Rv,{to:r},e.get("title","string")))}qv.displayName="Scrivito.ChildListTag.ChildItem";const Bv=zp(qv);var Fv,zv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Uv=dh(zp(((Fv=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return zv(e,t),e.prototype.render=function(){var t=this;return jp.createElement("span",{ref:function(e){return t.props.registeredElement.set(e)},className:"scrivito_editing_marker",onClick:this.onClick},jp.createElement("i",{className:"scrivito_icon"}),jp.createElement("span",{className:"scrivito_editing_marker_title"},this.props.parent.objClass()))},e.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),nd().showChildListMenu(this.props.registeredElement.id(),this.props.parent.id())},e}(jp.Component)).displayName="Scrivito.ChildListTag.MenuMarker",Fv)));var Hv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wv=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Vv=function(t){function e(e){var n=t.call(this,e)||this;return n.state={hasFocus:!1},n._onMouseOver=n._onMouseOver.bind(n),n._onMouseOut=n._onMouseOut.bind(n),n}return Hv(e,t),e.prototype.render=function(){var t=this,e=this.props.parent||Tv();if(!e)return null;e=e._scrivitoPrivateContent;var n=Cn(this.props,"parent","tag","renderChild"),r=e.orderedChildren();return jp.createElement(Th,null,(function(i){var o;return td()&&i&&(n.onMouseOver=t._onMouseOver,n.onMouseOut=t._onMouseOut,n["data-scrivito-private-child-list-path"]=!0,t.state.hasFocus&&(n.className="scrivito_active scrivito_entered "+n.className),o=jp.createElement(Uv,{parent:e,key:"menuMarker"})),jp.createElement(t.props.tag,n,Wv([o],r.map((function(e){return jp.createElement(Bv,{key:e.id(),child:e,renderChild:t.props.renderChild})}))))}))},e.prototype._onMouseOver=function(t){t.stopPropagation(),this.setState({hasFocus:!0})},e.prototype._onMouseOut=function(t){t.stopPropagation(),this.setState({hasFocus:!1})},e}(jp.Component);Vv.displayName="Scrivito.ChildListTag",Vv.defaultProps={tag:"ul"};const Kv=zp(Vv);var Qv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$v=function(){return $v=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},$v.apply(this,arguments)},Gv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Zv=function(t){function e(e){var n=t.call(this,e)||this;return n.state={hasError:!1},n}return Qv(e,t),e.prototype.componentDidCatch=function(t){ar(t),this.setState({hasError:!0})},e.prototype.shouldComponentUpdate=function(t){return this.props.widget.equals(t.widget)},e.prototype.render=function(){return this.state.hasError?td()?Xv(this.props.widget,jp.createElement(qh,null,jp.createElement("div",{className:"content_error"},"Widget could not be rendered due to application error.")),this.props.placementModification):Xv(this.props.widget,jp.createElement(qh,null),this.props.placementModification):jp.createElement(Yv,{widget:this.props.widget,widgetProps:this.props.widgetProps,placementModification:this.props.placementModification})},e.displayName="Scrivito.ContentTag.WidgetContent",e}(jp.Component),Yv=function(t){function e(e){return t.call(this,e)||this}return Qv(e,t),e.prototype.render=function(){return Xv(this.props.widget,jp.createElement(this.getAppWidgetComponent(),this.getAppWidgetProps()),this.props.placementModification)},e.prototype.getAppWidgetComponent=function(){var t=this.props.widget.objClass(),e=Yp(t);if(!e)throw new Jn('No component registered for widget class "'+t+'"');return e},e.prototype.getAppWidgetProps=function(){var t={widget:oc(cf(),this.props.widget)};if(this.props.widgetProps&&this.props.widgetProps.hasOwnProperty("widget")){ar(new Jn('The prop "widget" is not allowed inside "widgetProps"'));var e=this.props.widgetProps,n=(e.widget,Gv(e,["widget"]));return $v($v({},t),n)}return $v($v({},t),this.props.widgetProps)},e}(jp.Component);function Xv(t,e,n){return jp.createElement(Rh.Provider,{value:{widget:t,placementModification:n},children:e})}const Jv=zp(Zv);var tm,em=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nm=function(){return nm=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},nm.apply(this,arguments)};const rm=ph((function(t){return nm({type:"widgetlist"},im(t.field))}),zp((tm=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return em(e,t),e.prototype.render=function(){var t=this;return jp.createElement("div",{ref:function(e){t.widgetlistPlaceholder=e,t.props.registeredElement.set(e)},className:"scrivito_empty_widget_field","data-scrivito-private-dropzone":"true",onClick:this.onClick})},e.prototype.onClick=function(t){if(t.preventDefault(),t.stopPropagation(),this.widgetlistPlaceholder){var e=im(this.props.field),n=e.objId,r=e.widgetId,i=e.attributeName;nd().showWidgetlistMenu(this.props.registeredElement.id(),function(t,e){var n=t.clientX,r=t.clientY,i=e.getBoundingClientRect();return{x:n-i.left,y:r-i.top}}(t,this.widgetlistPlaceholder),n,i,r)}},e}(jp.Component),tm.displayName="Scrivito.ContentTag.WidgetlistPlaceholder",tm)));function im(t){var e=t.getContainer();return e instanceof rl?{objId:e.id(),attributeName:t.name()}:{objId:e.obj().id(),widgetId:e.id(),attributeName:t.name()}}function om(t){return am(t.target,t.currentTarget,Pv(t))}function am(t,e,n){if(t===e)return null;if("A"===t.nodeName){var r=t.href,i=pa(r);return Nf(i)?n||"_blank"===t.getAttribute("target")?{openInNewWindow:r}:{openInCurrentWindow:i.resource()}:null}return t.parentNode?am(t.parentNode,e,n):null}var sm=/\bobjid:[a-f0-9]{16}\b[^"']*/g;function um(t){return t.replace(sm,(function(t){return function(t){var e,n,r=t.slice(6,22),i=rl.get(r);i?n=Nf(e=pa(op(i))):(e=Tf({path:r}),n=!0);if(n){var o=pa(t);e.query(o.query()).hash(o.hash())}return e}(t).toString()}))}var lm,cm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const fm=zp((lm=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return cm(e,t),e.prototype.render=function(){switch(this.props.field.type()){case"html":return this.renderHtml();case"string":return this.renderString();case"float":case"integer":return this.renderNumber();case"widgetlist":return this.renderWidgetlist();default:return this.renderContent({children:this.props.children})}},e.prototype.renderHtml=function(){if(this.props.children)return this.renderContent({children:this.props.children});var t=this.attributeValue();return this.renderContent({props:{dangerouslySetInnerHTML:{__html:um(ed()&&this.getHtmlDiffContent()||t)},onClick:this.onClick}})},e.prototype.renderString=function(){if(this.props.children)return this.renderContent({children:this.props.children});if(ed()){var t=this.getHtmlDiffContent();if(t)return this.renderContent({props:{dangerouslySetInnerHTML:{__html:t}}})}return this.renderContent({children:this.attributeValue()})},e.prototype.renderNumber=function(){var t=this.props.children||this.attributeValue();return this.renderContent({children:t})},e.prototype.renderWidgetlist=function(){return this.renderContent({children:this.widgetlistChildren()})},e.prototype.widgetlistChildren=function(){var t=this;if(ed()&&"published"!==this.props.field.workspaceId())return this.widgetlistChildrenForComparison();var e=this.attributeValue();return e.length?e.map((function(e){return jp.createElement(Jv,{key:e.id(),widget:e,widgetProps:t.props.widgetProps})})):this.renderPlaceholderIfEditable()},e.prototype.widgetlistChildrenForComparison=function(){var t=this,e=dl(this.props.field);if(e.length)return e.map((function(e){return jp.createElement(Jv,{key:e.widget.id()+"-"+e.modification,widget:e.widget,widgetProps:t.props.widgetProps,placementModification:e.modification})}))},e.prototype.renderPlaceholderIfEditable=function(){var t=this;if(td())return jp.createElement(Th,null,(function(e){return e&&jp.createElement(rm,{field:t.props.field})}))},e.prototype.renderContent=function(t){var e=Mt({},this.props.customProps,t.props,this.editingProps());return t.children&&(e.children=t.children),jp.createElement(this.props.tag,e)},e.prototype.onClick=function(t){var e,n=om(t);n&&((e=n)&&e.openInNewWindow?this.openInNewWindow(t,n):this.openInCurrentWindow(t,n))},e.prototype.openInNewWindow=function(t,e){var n=e.openInNewWindow;vl&&(t.preventDefault(),t.stopPropagation(),Rf(n))},e.prototype.openInCurrentWindow=function(t,e){var n=e.openInCurrentWindow;t.preventDefault(),t.stopPropagation(),Wl(n)},e.prototype.editingProps=function(){return this.props.onClick?{onClick:this.props.onClick,"data-scrivito-is-clickable":!0}:{}},e.prototype.attributeValue=function(){return this.props.field.get()},e.prototype.getHtmlDiffContent=function(){var t=this.props.field.getDiff();if(t&&"html"===t.format)return t.content},e}(jp.Component),lm.displayName="Scrivito.ContentTag.AttributeValue",lm));var dm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pm=function(){return pm=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},pm.apply(this,arguments)},hm=function(t){function e(e){var n=t.call(this,e)||this;n._field=n.props.field,n.state={domMode:"None"},n._isPendingUpdate=!1;var r=n.props.editorClass;if(r){var i={getContent:n._getContent.bind(n),setContent:n._setContent.bind(n),setDomMode:n._setDomMode.bind(n),validObjClasses:n.validObjClasses.bind(n)};n._editor=new r({controller:i})}return n}return dm(e,t),e.prototype.componentDidMount=function(){var t=this;this._editorWillBeActivated();var e,n,r,i,o,a=(e=function(){return t._getContent()},n=function(e){if(t._isPendingUpdate&&t._pendingUpdateValue===e)return t._isPendingUpdate=!1,void(t._pendingUpdateValue=void 0);t._contentDidChange()},r=$i((function(){return Gi({contextName:"observeSync",message:"Use non-sync observe or nextTick"},e)})),i=r.result,(o=Xi((function(){var t=$i(e);o.subscribeChanges(t.accessedState);var r=t.result;Hr(r,i)||(n(r),i=r)}))).subscribeChanges(r.accessedState),{initialValue:i,unsubscribe:function(){o.unsubscribe()}});this._unsubscribe=a.unsubscribe,"Replace"===this.state.domMode&&this._editorDomWasMounted()},e.prototype.componentDidUpdate=function(t,e){var n=e.domMode,r=this.state.domMode;n!==r&&("Replace"===r?this._editorDomWasMounted():this._editorDomWasUnmounted())},e.prototype.componentWillUnmount=function(){this._editorWillBeDeactivated(),this._unsubscribe&&this._unsubscribe()},e.prototype.render=function(){var t,e=this;if("Replace"===this.state.domMode)return jp.createElement(this.props.tag,pm(pm({},Cn(this.props.customProps,"children")),{ref:function(t){e._editorComponent=t}}));var n=this._editor;n&&n.onClick&&(t=function(t){var e={stopPropagation:t.stopPropagation.bind(t),preventDefault:t.preventDefault.bind(t)};n.onClick(e)});var r={ref:function(t){e._editorComponent=t},children:this.props.children,widgetProps:this.props.widgetProps,customProps:this.props.customProps,field:this.props.field,key:this.state.domMode,tag:this.props.tag,onClick:t};return jp.createElement(fm,r)},e.prototype._contentDidChange=function(){this._editor&&this._editor.contentDidChange()},e.prototype._editorWillBeActivated=function(){this._editor&&this._editor.editorWillBeActivated()},e.prototype._editorWillBeDeactivated=function(){this._editor&&this._editor.editorWillBeDeactivated()},e.prototype._editorDomWasMounted=function(){if(this._editor&&this._editorComponent){var t=(0,Vh.findDOMNode)(this._editorComponent);this._editor.editorDomWasMounted(t)}},e.prototype._editorDomWasUnmounted=function(){this._editor&&this._editor.editorDomWasUnmounted()},e.prototype._setDomMode=function(t){this.setState({domMode:t})},e.prototype._getContent=function(){var t=this;return bi((function(){var e=t._field.get();"html"===t._field.type()&&(e=um(e));return e})).result},e.prototype._setContent=function(t){this._isPendingUpdate=!0,this._pendingUpdateValue=t,this._field.update(t)},e.prototype.validObjClasses=function(){return this._field.validClasses()},e.displayName="Scrivito.ContentTag.Editor",e}(jp.Component);const vm=zp(hm);var mm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gm=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},ym=function(t){function e(e){return t.call(this,e)||this}return mm(e,t),e.prototype.render=function(){var t=this,e=this.props,n=e.content,r=e.attribute,i=e.tag,o=(e.widgetProps,gm(e,["content","attribute","tag","widgetProps"]));if(!n)return null;var a=nc.basicFieldFor(n,r);if(!a)return ar(new Jn('Component "Scrivito.ContentTag" received prop "attribute" with invalid value: Attribute "'+r+'" is not defined for content specified in prop "content".')),null;var s=a.type();return jp.createElement(Th,null,(function(e){if(td()&&e){var r=void 0,u=void 0,l=function(t){var e=t.type,n=t.tag,r=bl().get();if(r){var i=$e(r,(function(t){return yl[t]&&yl[t].canEdit({type:e,tag:n})}));if(i)return{id:i,editorClass:yl[i]}}}({type:s,tag:i});if(l)return r=l.id,u=l.editorClass,jp.createElement(vm,{key:t.editorKey(r),field:a,editorClass:u,tag:i,widgetProps:t.widgetProps(s),customProps:o,content:n},t.props.children)}return jp.createElement(fm,{field:a,tag:i,widgetProps:t.widgetProps(s),customProps:o},t.props.children)}))},e.prototype.widgetProps=function(t){if(this.props.widgetProps){if("widgetlist"===t)return this.props.widgetProps;ar(new Jn('The prop "widgetProps" is only allowed for widgetlist attributes'))}},e.prototype.editorKey=function(t){var e=sc(this.props.content);return[this.props.tag,Kp(e),this.props.attribute,t].join("|")},e.displayName="Scrivito.ContentTag",e.defaultProps={tag:"div"},e}(jp.Component);const bm=zp(ym);var wm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wm(e,t),e.prototype.render=function(){var t=Tv(),e=Av();if(!t)return null;var n=t.objClass(),r=Yp(n);if(!r)throw new Jn('No component registered for obj class "'+n+'"');return jp.createElement(r,{page:t,params:e})},e}(jp.Component);_m.displayName="Scrivito.CurrentPage";const km=zp(_m);var xm=new lr,Em=1448;function Cm(t){return t.isRaw()||t.isExplicitlyTransformed()?t.url():xm.current()?Sm(t).url():function(t){var e=(n=function(){return Sm(t).urlWithoutPlaceholder()},bi(n).result);var n;if(e&&function(t){var e=Om[t];void 0===e&&(e=function(t){var e=new Image;return e.src=t,e.complete}(t),Om[t]=e);return e}(e))return e}(t)||function(t){return t.optimizeFor({width:Ma().width*Ia()}).url()}(t)}function Sm(t){return t.optimizeFor({width:Em})}var Om={};var Tm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Am=function(){return Am=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Am.apply(this,arguments)},Nm=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Pm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Tm(e,t),e.prototype.render=function(){var t=this.props,e=t.content,n=t.attribute,r=Nm(t,["content","attribute"]);if(!e)return null;if(e instanceof Su)return jp.createElement("img",Am({src:Cm(e)},r));var i,o=function(t,e){var n=nc.forInstance(t);if(!n)return;var r=sc(t),i=n.attributes[e];if(!i)return void ar(new Jn('Component "Scrivito.ImageTag" received prop "content" with an object missing attribute "'+e+'".'));var o=i[0];if("binary"===o)return r.get(e,"binary");if("reference"===o)return function(t){if(t){var e=t.get("blob","binary");if(e)return e}return null}(r.get(e,"reference"));ar(new Jn('Component "Scrivito.ImageTag" received prop "content" with an object, whose attribute "'+e+'" is of unexpected type "'+o+'". Valid attribute types are "binary" and "reference".'))}(e,n);return void 0===o?null:(null===o?(i="data:image/gif;base64,R0lGODlhyADIAIAAAP///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMjEgNzkuMTU0OTExLCAyMDEzLzEwLzI5LTExOjQ3OjE2ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDBEQjBEMDdFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDBEQjBEMDhFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMERCMEQwNUU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMERCMEQwNkU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAAAALAAAAADIAMgAAAL/hI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpfMpvMJjUqn1Kr1is1qt9yu9wsOi8fksvmMTqvX7Lb7DY/L5/S6/Y7P6/f8vv8PGCg4SFhoeIiYqLjI2Oj4CBkpOUlZaXmJmam5ydnp+QkaKjpKWmp6ipqqusra6voKGys7S1tre4ubq7vL2+v7CxwsPExcbHyMnKy8zNzs/AwdLT1NXW19jZ2tvc3d7f0NHi4+Tl5ufo6err7O3u7+Dh8vP09fb3+Pn6+/z9/v/w8woMCBBAsaPIgwocKFDBs6fAgxosSJFCtavIgxo8aNBhw7eixTAAA7",r["data-scrivito-image-placeholder"]=!0):i=Cm(o),jp.createElement(bm,Am({attribute:n,content:e,tag:"img",src:i},r)))},e.displayName="Scrivito.ImageTag",e.defaultProps={attribute:"blob"},e}(jp.Component);const jm=zp(Pm);var Lm=function(t){var e=t.children;return td()?jp.createElement(Ah,{children:e,value:!1}):e},Im=function(t){var e=t.children;return td()?jp.createElement(Ah,{children:e,value:!0}):e},Dm=function(t){var e=t.children;return null===Nv().page?e?jp.createElement("div",null,e):jp.createElement("div",null,jp.createElement("h1",null,"The page you were looking for doesn't exist."),jp.createElement("p",null,"You may have mistyped the address or the page may have moved.")):null};Dm.displayName="Scrivito.NotFoundErrorPage";const Mm=zp(Dm);var Rm,qm,Bm=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function Fm(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(vl){try{ng.apply(void 0,Bm([t],e))}catch(t){throw new Jn(t.message.replace(/key 'filters.\d/,"key 'filters"))}t.filters&&(Rm=t.filters,"function"==typeof Rm?(qm=Rm,Rm=void 0):(Rm=t.filters,qm=void 0));var r=t.baseFilter;if(r){var i=r.query;i&&vl.configureContentBrowser(hl({baseQuery:i}))}}}var zm=nr.union([nr.String,nr.list(nr.String)]),Um=nr.enums.of(Mn(Ys,["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan"])),Hm=nr.union([nr.String,nr.Date,nr.Nil,nr.Number,nr.list(nr.union([nr.String,nr.Nil])),nr.list(nr.union([nr.Date,nr.Nil])),nr.list(nr.union([nr.Number,nr.Nil]))],"SearchValue"),Wm=nr.struct({title:nr.maybe(nr.String)}),Vm=Wm.extend({field:nr.maybe(zm),operator:nr.maybe(Um),expanded:nr.maybe(nr.Boolean)}),Km=Wm.extend({value:nr.maybe(Hm),query:nr.maybe(du),selected:nr.maybe(nr.Boolean)}),Qm=Vm.extend({type:nr.enums.of(["radioButton"]),options:nr.dict(nr.String,Km)},"RadioFilterDefinition"),$m=Wm.extend({value:nr.maybe(Hm),selected:nr.maybe(nr.Boolean)}),Gm=Vm.extend({type:nr.enums.of(["checkbox"]),options:nr.dict(nr.String,$m)},"CheckboxFilterDefinition"),Zm=nr.declare("TreeFilterDefinition");Zm.define(Wm.extend({type:nr.maybe(nr.enums.of(["tree"])),icon:nr.maybe(nr.String),query:nr.maybe(du),expanded:nr.maybe(nr.Boolean),value:nr.maybe(Hm),field:nr.maybe(zm),operator:nr.maybe(Um),selected:nr.maybe(nr.Boolean),options:nr.maybe(nr.dict(nr.String,Zm))}));var Ym={tree:Zm,radioButton:Qm,checkbox:Gm},Xm=nr.union([Ym.tree,Ym.checkbox,Ym.radioButton]);Xm.dispatch=function(t){return Ym[t.type||"tree"]};var Jm=nr.dict(nr.String,Xm),tg=nr.union([nr.Function,Jm]);tg.dispatch=function(t){return nr.Function.is(t)?tg.meta.types[0]:tg.meta.types[1]};var eg=nr.struct({query:du}),ng=sr("configureContentBrowser",[["configuration",nr.struct({filters:nr.maybe(tg),baseFilter:nr.maybe(eg)},"Configuration")]],{docPermalink:"js-sdk/configureContentBrowser"}),rg=[];function ig(){return rg}var og=function(){function t(t){this.id=t}return t.prototype.insert=function(t){t&&t.id===this.id&&(this.onClick=t.onClick)},t.prototype.modify=function(){},t.prototype.remove=function(){},t.prototype.onClickHandler=function(){return this.onClick},t}();function ag(){var t=window.navigator.userAgent;return t.indexOf("MSIE")>=0||t.indexOf("Trident")>=0}function sg(t,e){var n=t;if(!n._scrivitoResizeListeners){n._scrivitoResizeListeners=[],t.style.position="relative";var r=function(t){var e=document.createElement("object");return e.observedElement=t,e.type="text/html",e.onload=function(){return function(t){var e=t.contentDocument;if(!e)throw new tr("Trigger object is missing the content document");var n=e.defaultView;n&&(n._scrivitoObservedElement=t.observedElement,n.addEventListener("resize",ug))}(e)},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e}(n);n._scrivitoResizeTrigger=r,ag()&&t.appendChild(r),r.data="about:blank",ag()||t.appendChild(r)}return n._scrivitoResizeListeners.push(e),function(){n._scrivitoResizeListeners.splice(n._scrivitoResizeListeners.indexOf(e),1)}}function ug(t){var e=t.target||t.srcElement;if(!e)throw new tr("Resize event is missing a target");if(function(t){return!!t._scrivitoObservedElement}(e)){var n=e._scrivitoObservedElement;n&&n._scrivitoResizeListeners.forEach((function(t){return t()}))}}function lg(t){return function(t){return new xo({state:Bi.subState("customComponentDimensions"),stream:new di((function(e){var n=function(){var n=t.getBoundingClientRect(),r=n.width,i=n.height;e.next({width:r,height:i})};return n(),sg(t,n)}))})}(t).get()||null}function cg(t){return function(t){return new xo({state:Bi.subState("scrollPosition"),stream:new di((function(e){var n=function(){e.next({x:t.scrollLeft,y:t.scrollTop})};n();var r=window.setInterval(n,1e3);return function(){return window.clearInterval(r)}}))})}(t).get()||null}function fg(){return new xo({state:Bi.subState("applicationUrl"),stream:new di((function(t){var e=function(){return t.next(Hl())};e();var n=$f(e);return function(){return n.unsubscribe()}}))}).get()||null}var dg=function(){function t(){}return t.prototype.getContentBrowserConfiguration=function(t){return hl(function(t){if(qm){var e={};t&&(e._validObjClasses=t);var n=qm(e);if(n)return{filters:n}}else if(Rm)return{filters:Rm}}(t))},t.prototype.titleForObj=function(t){return vg("titleForContent",t)},t.prototype.descriptionForObj=function(t){return vg("descriptionForContent",t)},t.prototype.executeCustomCommand=function(t){var e=function(t){var e=new og(t);return ig().forEach((function(t){return t.call(null,e)})),e.onClickHandler()}(t);e&&e.call(null)},t.prototype.titleForWidget=function(t,e){return nh(t,e)},t.prototype.initializeContentForObj=function(t){!function(t){af(rl.get(t))}(t)},t.prototype.initializeContentForWidget=function(t,e){!function(t,e){af(rl.get(t).widget(e))}(t,e)},t.prototype.getClasses=function(){var t=lf(),e=[];return Ze(t.allObjClasses(),(function(t,n){return e.push(function(t,e){var n=nc.forClass(e);return En({name:t,type:"Obj",attributes:hg(n.attributes,Zc(t,"attributes")),description:Zc(t,"description"),hideInSelectionDialogs:Zc(t,"hideInSelectionDialogs"),properties:Zc(t,"properties"),propertiesGroups:Zc(t,"propertiesGroups"),thumbnail:Zc(t,"thumbnail"),title:Zc(t,"title")},$t)}(n,t))})),Ze(t.allWidgetClasses(),(function(t,n){return e.push(function(t,e){var n=nc.forClass(e);return En({name:t,type:"Widget",attributes:hg(n.attributes,Zc(t,"attributes")),onlyInside:n.onlyInside,description:Zc(t,"description"),hideInSelectionDialogs:Zc(t,"hideInSelectionDialogs"),properties:Zc(t,"properties"),propertiesGroups:Zc(t,"propertiesGroups"),thumbnail:Zc(t,"thumbnail"),title:Zc(t,"title")},$t)}(n,t))})),e},t.prototype.navigateTo=function(t){ao((function(){var e=rl.get(t);if(e)return oc(cf(),e)})).then((function(t){t&&bp(t)}))},t.prototype.showCustomComponent=function(t,e){Kh(t,e)},t.prototype.urlFor=function(t){return ao((function(){var e=rl.getIncludingDeleted(t);return e?ip(e):null}))},t.prototype.resolveUrl=function(t){return function(t){var e=pa(t);return ao((function(){return Af(e)})).then((function(t){return t&&t.path?an(["/",""],t.path)?null:{obj:t.obj,url:e}:null}))}(t).then((function(t){if(!t||!t.obj)return null;var e=t.obj,n=t.url.fragment(),r=t.url.search(),i={obj_id:e.id()};return n&&(i.fragment=n),r&&(i.query=r),i}))},t.prototype.replaceInternalLinks=function(t){return um(t)},t.prototype.getHomepageId=function(){var t=df();return t?t.id():null},t.prototype.getSiteIdForObj=function(t){if(mf()){var e=rl.get(t);if(e)return gf(e)}return null},t.prototype.getElementBoundaries=function(t){return oh(t)},t.prototype.getContentZoneData=function(){return function(){var t=lh();return Object.keys(t).map((function(e){var n=parseInt(e,10);return sh({elementId:n},t[n])}))}()},t.prototype.getCustomComponentDimensions=function(){return lg(Ra().querySelector("html"))},t.prototype.getScrollPosition=function(){return cg(Ra().querySelector("html"))},t.prototype.getApplicationUrl=function(){return fg()},t.prototype.getCurrentPageId=function(){return(t=Uf())&&Hf(t)?t.objId:null;var t},t}();const pg=dg;function hg(t,e){var n=Ye(t,(function(t,e){var n={name:e,type:t[0]};if(t.length>1){var r=t[1];"validClasses"in r&&r.validClasses&&(n.validClasses=r.validClasses),"values"in r&&r.values&&(n.values=r.values)}return n}));return e&&Object.keys(e).forEach((function(t){var r=Ge(n,{name:t});if(r){var i=e[t],o=i.title,a=i.description,s=i.values;Mt(r,s?{title:o,description:a,valuesLocalization:s}:{title:o,description:a})}})),n}function vg(t,e){var n=rl.getIncludingDeleted(e);if(n){var r=oc(cf(),n);return Np(n.objClass(),t,r)}}function mg(t){0}var gg=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},yg=nr.refinement(nr.String,(function(t){return pa(t).origin()===t})),bg=sr("configure",[["configuration",nr.struct({tenant:nr.String,endpoint:nr.maybe(nr.String),homepage:nr.maybe(nr.Function),origin:nr.maybe(yg),routingBasePath:nr.maybe(nr.String),constraintsValidation:nr.maybe(nr.Function),unstable:nr.maybe(nr.Object)})]],{docPermalink:"js-sdk/configure"}),wg=!1;function _g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(bg.apply(void 0,gg([t],e)),wg)throw new Xn("Scrivito.configure has already been called.");wg=!0;var r=t.unstable;if(r){var i=r.getSiteIdForObj;i&&(pf=i)}if(t.tenant===ia)oa=!0,ws.disableReplication();else{var o=t.tenant,a=t.endpoint||"api.scrivito.com";vl?(!function(t,e,n,r){var i={tenant:e,endpoint:t};if(r){var o=r.assetUrlBase,a=r.useRailsAuth;a&&(i.useRailsAuth=a),o&&function(t){if(tp)throw new Error("Refusing attempt to reconfigure asset url base (again or after first access).");tp=t}(o)}n.configureTenant(i),mf()?function(t){var e=setTimeout((function(){pr("Warning: No site ID was selected within 30 seconds. In the multi-site mode a site ID must be selected before Scrivito can render content. Forgot to use Scrivito.unstable_selectSiteId?")}),3e4);(n=bf,new ai((function(t){var e=io(n,(function(n){null!=n&&(e.unsubscribe(),t(n))}))}))).then((function(){clearTimeout(e),kg(t)}));var n}(n):kg(n)}(a,o,vl,r),np((tp||(tp="https://assets.scrivito.com/sjs/"+hr()),tp))):Za.init(a,o)}!function(t){var e=t.homepage,n=t.routingBasePath,r=e?function(){return sc(e())}:function(){return rl.root()};(function(t){var e=void 0===t?{}:t,n=e.routingBasePath,r=e.homepageCallback;Sf=!0,Cf=n||"",r&&ff(r)})({routingBasePath:n,homepageCallback:r}),i=t.origin||void 0,fp=i;var i}(t),function(t){var e=t.constraintsValidation;e&&mg(e)}(t)}function kg(t){var e,n,r,i=new MessageChannel,o=(e=new pg,{stream:function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=e[t];return new di((function(t){return jo((function(){return i.call.apply(i,Ro([e],n))}),(function(e){e.allDataLoaded&&t.next(e.result)})).unsubscribe}))},send:function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=e[t],o=new ai((function(t){or((function(){return t(i.call.apply(i,Ro([e],n)))}))}));return o}});r=i.port1,n={incomingMessages:new di((function(t){function e(e){t.next({data:e.data})}return r.addEventListener("message",e),r.start(),function(){r.removeEventListener("message",e)}})),sendMessage:function(t){r.postMessage(t.data,t.transfer)}},new Xo(n,o,ep).start(),t.setAppAdapter(hr(),i.port2)}var xg=function(){return xg=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},xg.apply(this,arguments)},Eg=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};const Cg=function(){function t(){this.patch={insertIds:[],removeIds:[],items:{},modifyItems:{}}}return t.prototype.insert=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Tg.apply(void 0,Eg([t],e)),this.patch.insertIds=In(Eg(this.patch.insertIds,[t.id])),this.patch.items[t.id]=xg(xg({},En(t,"description","group","icon","position","title")),ee(En(t,"enabled"),(function(t){return!!t})))},t.prototype.modify=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Ag.apply(void 0,Eg([t],e)),this.patch.modifyItems[t.id]=xg(xg({},this.patch.modifyItems[t.id]),En(t,"group","icon","position","title"))},t.prototype.remove=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Ng.apply(void 0,Eg([t],e)),this.patch.removeIds.push(t)},t.prototype.getPatch=function(){return this.patch},t}();var Sg,Og=nr.struct({after:nr.maybe(nr.String),before:nr.maybe(nr.String)}),Tg=sr("menu.insert",[["options",nr.struct({id:nr.String,description:nr.maybe(nr.String),enabled:nr.maybe(nr.Boolean),group:nr.maybe(nr.String),icon:nr.maybe(nr.String),onClick:nr.maybe(nr.Function),position:nr.maybe(Og),title:nr.maybe(nr.String)})]],{docPermalink:"js-sdk/extendMenu"}),Ag=sr("menu.modify",[["options",nr.struct({id:nr.String,group:nr.maybe(nr.String),icon:nr.maybe(nr.String),position:nr.maybe(Og),title:nr.maybe(nr.String)})]],{docPermalink:"js-sdk/extendMenu"}),Ng=sr("menu.remove",[["id",nr.String]],{docPermalink:"js-sdk/extendMenu"});function Pg(){var t=new Cg;return ig().forEach((function(e){return e.call(null,t)})),t.getPatch()}function jg(){Sg&&Sg.forceRefresh()}var Lg=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function Ig(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Dg.apply(void 0,Lg([t],e)),vl&&(Sg||(Sg=jo((function(){return fr(Pg)}),(function(t){if(t.allDataLoaded&&vl){var e=t.result;if(e.errorThrown)throw vl.updateMenu({}),e.error;vl.updateMenu(e.result)}}))),function(t){rg.push(t)}(t),jg())}var Dg=sr("extendMenu",[["menuCallback",nr.Function]],{docPermalink:"js-sdk/extendMenu"});function Mg(){vl&&jg()}function Rg(t){return e={version:hr(),recording:(n=t,n.map(Po))},JSON.stringify(e);var e,n}function qg(t){var e,n=function(t){var e=function(t){try{return JSON.parse(t)}catch(t){return}}(t);if("object"!=typeof e||null===e||Array.isArray(e))return;if(function(t){return!!t.version}(e))return e}(t);n?n.version===hr()?(e=n.recording,Qi((function(){return e.forEach(No)}))):pr("could not preload: dump is from version "+n.version+", this is version "+hr()):pr("could not preload: parsing dump failed")}var Bg=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function Fg(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];aa("Scrivito.renderPage"),zg.apply(void 0,Bg([t,e],n));var i=sc(t);return ao((function(){return t=function(){return function(t){var e;e=function(){return xf(kf(t))},Xl.runWith(!0,e)}(i),function(t,e){return Ov.runWith({page:t,queryParameters:Sv},e)}(i,(function(){return t=e,Qh.runWith(!0,t);var t}))},r={},{result:Eo.runWith(r,t),usedData:(n=r,Object.keys(n).map((function(t){return n[t]})))};var t,n,r})).then((function(t){return{result:t.result,preloadDump:Rg(t.usedData)}}))}var zg=sr("renderPage",[["page",lu],["render",nr.Function]],{docPermalink:"js-sdk/renderPage"}),Ug=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function Hg(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Wg.apply(void 0,Ug([t],e)),ai.resolve().then((function(){return vl||qg(t),ao((function(){Tv()}))}))}var Wg=sr("preload",[["preloadDump",nr.String]],{docPermalink:"js-sdk/preload"}),Vg=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function Kg(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Qg.apply(void 0,Vg([t],e)),vl&&vl.openCustomDialog(t)}var Qg=sr("openDialog",[["name",nr.String]],{docPermalink:"js-sdk/openDialog"});function $g(){return!!vl}function Gg(){Za.enableForceVerification()}function Zg(){return Za.currentPublicAuthorizationState()}var Yg=lf(),Xg=Yg.Link,Jg=Yg.Obj,ty=Yg.ObjSearch,ey=Yg.Widget,ny=Yg.createObjClass,ry=Yg.createWidgetClass,iy=Yg.getClass,oy=Yg.provideObjClass,ay=Yg.provideWidgetClass;window.Scrivito=a,function(t){if(Wi(t),t){var e=(i=ea,o=t.uiAdapter(),a=Mo++,s={},Object.keys(i).forEach((function(t){var e=i[t];e===Lo&&(s[t]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Bi.subState("adapters").subState(a.toString()),i=t,s=r.subState(i).subState(li(e));return new xo({state:s,stream:o.stream.apply(o,Do([i],e))}).get()}),e===Io&&(s[t]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o.send.apply(o,Do([t],e))})})),s);vl=e,ns=e,vu=e,function(t){sl=t}(e),function(t){ta=t}(e),r=t.getObjReplicationPool(),ws=r,Jf(),od(),rd(),id(),(n=Ra().body).classList.add("scrivito_editing_active"),td()&&n.setAttribute("data-scrivito-editing",""),ed()&&n.setAttribute("data-scrivito-comparison","")}var n,r,i,o,a,s;$f(Gf),$f(Zf),window.addEventListener("unload",(function(){Vi&&Vi(),Bi.clear()}))}(function(){var t=function(){if(window.parent!==window){var t;try{t=window.parent.connectAppDocument}catch(t){}return t?t(window.document):void 0}}();return t?t.installRailsApi():function(){window.scrivito||(window.scrivito={});var t=window.scrivito;t.on||(t.on=function(t,e){"content"===t&&function(t,e){"interactive"===t.readyState||"complete"===t.readyState?e():t.addEventListener("DOMContentLoaded",e)}(document,(function(){return e(window.document)}))});t.in_editable_view||(t.in_editable_view=function(){return!1})}(),t}()),scrivito.registerEditor(Fd),scrivito.registerEditor(Hd),scrivito.registerEditor(Jd)})()})();
2
+ (()=>{var t={94707:(t,e,n)=>{var r,i,o,a,s,u;i=n(95894),r=n(66302),o=i.extensions.anchor.extend({name:"scrivito_anchor",proxy:null,contentDefault:'<i class="scrivito_customer_icon sci_link"></i>',init:function(){var t;return i.extensions.anchor.prototype.init.apply(this,arguments),this.targetCheckbox=null!=(t=this.getEditorOption("anchor"))?t.targetCheckbox:void 0},showForm:function(t){return i.extensions.anchor.prototype.showForm.call(this,t),this.updateRelUi(t)},handleClick:function(t){var e,n,r,o,a,s;return t.preventDefault(),t.stopPropagation(),this.proxy.edQuery(".scrivito_medium_link_collapse").removeClass("show"),this.isDisplayed()||(a=i.selection.getSelectionRange(this.document),o=i.selection.getSelectedParentElement(a),e=s=r=null,(n=i.util.getClosestTag(o,"a"))&&(e=(n=this.proxy.edQuery(n)).attr("href")||null,s=n.attr("target")||null,r=n.attr("rel")||null),this.showForm({value:e,target:s,rel:r})),!1},getTemplate:function(){var t,e;return e="",t="scrivito_target_checkbox_not_available",this.targetCheckbox&&(e="<div class='medium-editor-toolbar-form-row medium-editor-toolbar-anchor-target-toggle'>\n <label>\n <input type='checkbox' class='medium-editor-toolbar-anchor-target'>\n <i class='scrivito_icon scrivito_link_icon scrivito_icon_new_window scrivito_active_open_in_new_tab ' title='Open link in new tab'></i>\n <i class='scrivito_icon scrivito_link_icon scrivito_icon_new_window' title='Open link in new tab'></i>\n </label>\n</div>",t=""),("<i class='medium-editor-toolbar-browse scrivito_customer_icon sci_collection' title='Open Content Browser'></i>\n<input type='text' class='medium-editor-toolbar-input "+t+"' placeholder='"+this.placeholderText+"'>\n<div class='medium-editor-toolbar-form-wrapper'>\n "+e+"\n <i class='scrivito_icon scrivito_icon_gear' data-scrivito-medium-editor=\"rel_button\" title='SEO settings'></i>\n <span class='medium-editor-toolbar-save'>Save</span>\n <i class='medium-editor-toolbar-close scrivito_customer_icon sci_cross' style='display: none'></i>\n</div>\n<div class='scrivito_medium_link_collapse'>\n <div class='scrivito_medium_link_collapse_body'>\n <div class='scrivito_medium_detail_label'>Rel attribute value</div>\n <div class='scrivito_medium_notice_body'>\n Search engines use a link's rel attribute to determine how to handle the linked document or resource.\n </div>\n <ul class='scrivito_enum_attribute scrivito_multi'>\n <li data-scrivito-rel=\"noindex\">noindex</li>\n <li data-scrivito-rel=\"nofollow\">nofollow</li>\n <li data-scrivito-rel=\"noarchive\">noarchive</li>\n <li data-scrivito-rel=\"nosnippet\">nosnippet</li>\n <li data-scrivito-rel=\"noopener\">noopener</li>\n <li data-scrivito-rel=\"noreferrer\">noreferrer</li>\n <li data-scrivito-rel=\"notranslate\">notranslate</li>\n </ul>\n </div>\n</div>").replace(/\n\s*/g,"")},attachFormEvents:function(t){var e,n;return i.extensions.anchor.prototype.attachFormEvents.call(this,t),t=this.proxy.edQuery(t),e=t.find(".medium-editor-toolbar-input"),t.find("[data-scrivito-rel]").on("click",(n=this,function(t){return n.onRelSelectionButtonClick(t)})),t.find(".scrivito_icon_gear").on("click",function(e){return function(){return e.onToggleRelPanelButtonClick(t)}}(this)),t.find(".medium-editor-toolbar-browse").on("click",function(t){return function(){return t.onContentBrowserButtonClick(e)}}(this))},completeFormSave:function(t){return this.base.restoreSelection(),t.value?(this.execAction(this.action,t),this.updateRelAttribute(t)):this.execAction("unlink"),this.base.checkSelection()},getFormOpts:function(){var t;return(t=i.extensions.anchor.prototype.getFormOpts.call(this)).rel=this.selectedRelValues(),t},relButtons:function(){return this.proxy.edQuery(this.getForm()).find(".scrivito_enum_attribute.scrivito_multi [data-scrivito-rel]")},selectedRelValues:function(){return this.relButtons().filter(".scrivito_enum_attribute_active").toArray().map((function(t){return t.attributes["data-scrivito-rel"].value})).join(" ")},updateRelIndicator:function(){var t,e;return e=this.proxy.edQuery(this.getForm().querySelector(".scrivito_icon_gear")),t="scrivito_active_rel_selected",this.relButtons().hasClass("scrivito_enum_attribute_active")?e.addClass(t):e.removeClass(t)},updateRelAttribute:function(t){var e,n,r,o;return o=i.selection.getSelectionRange(this.document),r=i.selection.getSelectedParentElement(o),n=this.proxy.edQuery(i.util.getClosestTag(r,"a")),t.rel?n.attr("rel",t.rel):n.removeAttr("rel"),e=this.getEditorElements()[0],this.base.trigger("editableInput",{},e)},updateRelUi:function(t){var e,n;return e=null!=(n=t.rel)?n.split(/\s+/):void 0,this.relButtons().each((function(t,n){return e&&-1!==e.indexOf(n.getAttribute("data-scrivito-rel"))?n.className="scrivito_enum_attribute_active":n.className=""})),this.updateRelIndicator()},onToggleRelPanelButtonClick:function(t){return this.proxy.edQuery(t.find(".scrivito_medium_link_collapse")).toggleClass("show")},onRelSelectionButtonClick:function(t){return this.proxy.edQuery(t.target).toggleClass("scrivito_enum_attribute_active"),this.updateRelIndicator()},onContentBrowserButtonClick:function(t){var e,n,r;return n=(e=this.proxy.idFromPath(t.val()))?[e]:[],scrivito.openContentBrowser({selection:n,selectionMode:"single"}).catch((function(e){throw t.focus(),e})).then((r=this,function(e){var n,i;return n=e.isSelected,i=e.selection,n&&(t.focus(),i.length?t.val(r.proxy.pathForId(i[0])):t.val("")),!1}))}}),s=function(){var t,e;return t=["bold","italic","scrivito_anchor","h2","h3","unorderedlist","orderedlist"],("undefined"!=typeof ScrivitoEditors&&null!==ScrivitoEditors&&null!=(e=ScrivitoEditors._config)?e.showHtmlEditorCodeButton:void 0)&&t.splice(2,0,"scrivito_code"),t},u=function(){return{anchor:{targetCheckbox:!0},anchorPreview:!1,extensions:{scrivito_anchor:new o,scrivito_code:new r({label:'<i class="scrivito_customer_icon sci_code"></i>',start:"<code>",end:"</code>"}),imageDragging:{}},placeholder:!1,toolbar:{buttons:s(),standardizeSelectionStart:!0}}},a=function(t){var e,n,r;return e=t.jQueryElement(),null!=(r=(n=u()).extensions.scrivito_anchor)&&(r.proxy=t),new i(e,n).subscribe("editableInput",(function(){return t.save(e.html())}))},t.exports=a},66302:(t,e)=>{"use strict";function n(t){if(void 0!==t.label&&/\S{1}/.test(t.label)&&void 0!==t.start&&/\S{1}/.test(t.start)&&void 0!==t.end&&/\S{1}/.test(t.end)||void 0!==t.label&&/\S{1}/.test(t.label)&&void 0!==t.action&&/\S{1}/.test(t.action)){t.start=void 0===t.start?"":t.start,t.end=void 0===t.end?"":t.end;var e=this;this.options=t,this.button=document.createElement("button"),this.button.className="medium-editor-action",this.button.innerHTML=t.label,this.button.onclick=function(){var n,i,o=r(),a=window.getSelection(),s=a.anchorNode.parentElement;if(void 0===t.start||-1==o.indexOf(t.start)&&-1==o.indexOf(t.end)?(null!=t.action&&(o=t.action(o,!0,s)),o=t.start+o+t.end):(null!=t.action&&(o=t.action(o,!1,s)),o=String(o).split(t.start).join(""),o=String(o).split(t.end).join("")),a.getRangeAt&&a.rangeCount){if((n=window.getSelection().getRangeAt(0)).deleteContents(),n.createContextualFragment)i=n.createContextualFragment(o);else{var u=document.createElement("div");for(u.innerHTML=o,i=document.createDocumentFragment();child=u.firstChild;)i.appendChild(child)}var l=i.firstChild,c=i.lastChild;n.insertNode(i),l&&(n.setStartBefore(l),n.setEndAfter(c)),a.removeAllRanges(),a.addRange(n)}e.base.checkContentChanged()}}else console.error('[Custom-Button] You need to specify "label", "start" and "end" OR "label" and "action"')}function r(){var t,e="";if(void 0!==window.getSelection){if((t=window.getSelection()).rangeCount){for(var n=document.createElement("div"),r=0,i=t.rangeCount;r<i;++r)n.appendChild(t.getRangeAt(r).cloneContents());e=n.innerHTML}}else void 0!==document.selection&&"Text"==document.selection.type&&(e=document.selection.createRange().htmlText);return e}n.prototype.getButton=function(){return this.button},n.prototype.checkState=function(t){var e=r();""!=this.options.start&&e.indexOf(this.options.start)>-1&&e.indexOf(this.options.end)>-1?this.button.classList.add("medium-editor-button-active"):this.button.classList.remove("medium-editor-button-active")},t.exports&&(e=t.exports=n),e.MediumButton=n},95894:function(t,e,n){var r;"classList"in document.createElement("_")||function(t){"use strict";if("Element"in t){var e="classList",n="prototype",r=t.Element[n],i=Object,o=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},s=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},u=function(t,e){if(""===e)throw new s("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new s("INVALID_CHARACTER_ERR","String contains an invalid character");return a.call(t,e)},l=function(t){for(var e=o.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,i=n.length;r<i;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},c=l[n]=[],f=function(){return new l(this)};if(s[n]=Error[n],c.item=function(t){return this[t]||null},c.contains=function(t){return-1!==u(this,t+="")},c.add=function(){var t,e=arguments,n=0,r=e.length,i=!1;do{-1===u(this,t=e[n]+"")&&(this.push(t),i=!0)}while(++n<r);i&&this._updateClassName()},c.remove=function(){var t,e,n=arguments,r=0,i=n.length,o=!1;do{for(e=u(this,t=n[r]+"");-1!==e;)this.splice(e,1),o=!0,e=u(this,t)}while(++r<i);o&&this._updateClassName()},c.toggle=function(t,e){t+="";var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},c.toString=function(){return this.join(" ")},i.defineProperty){var d={get:f,enumerable:!0,configurable:!0};try{i.defineProperty(r,e,d)}catch(t){-2146823252===t.number&&(d.enumerable=!1,i.defineProperty(r,e,d))}}else i[n].__defineGetter__&&r.__defineGetter__(e,f)}}(self),function(t){"use strict";if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return void new Blob}catch(t){}var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},r=function(t,e,n){this.data=t,this.size=t.length,this.type=e,this.encoding=n},i=n.prototype,o=r.prototype,a=t.FileReaderSync,s=function(t){this.code=this[this.name=t]},u="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),l=u.length,c=t.URL||t.webkitURL||t,f=c.createObjectURL,d=c.revokeObjectURL,p=c,h=t.btoa,v=t.atob,m=t.ArrayBuffer,g=t.Uint8Array,y=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(r.fake=o.fake=!0;l--;)s.prototype[u[l]]=l+1;return c.createObjectURL||(p=t.URL=function(t){var e,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=t,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(e=t.match(y),n.origin=e&&e[1])),n}),p.createObjectURL=function(t){var e,n=t.type;return null===n&&(n="application/octet-stream"),t instanceof r?(e="data:"+n,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):h?e+";base64,"+h(t.data):e+","+encodeURIComponent(t.data)):f?f.call(c,t):void 0},p.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&d&&d.call(c,t)},i.append=function(t){var n=this.data;if(g&&(t instanceof m||t instanceof g)){for(var i="",o=new g(t),u=0,l=o.length;u<l;u++)i+=String.fromCharCode(o[u]);n.push(i)}else if("Blob"===e(t)||"File"===e(t)){if(!a)throw new s("NOT_READABLE_ERR");var c=new a;n.push(c.readAsBinaryString(t))}else t instanceof r?"base64"===t.encoding&&v?n.push(v(t.data)):"URI"===t.encoding?n.push(decodeURIComponent(t.data)):"raw"===t.encoding&&n.push(t.data):("string"!=typeof t&&(t+=""),n.push(unescape(encodeURIComponent(t))))},i.getBlob=function(t){return arguments.length||(t=null),new r(this.data.join(""),t,"raw")},i.toString=function(){return"[object BlobBuilder]"},o.slice=function(t,e,n){var i=arguments.length;return i<3&&(n=null),new r(this.data.slice(t,i>1?e:this.data.length),n,this.encoding)},o.toString=function(){return"[object Blob]"},o.close=function(){this.size=0,delete this.data},n}(t);t.Blob=function(t,n){var r=n&&n.type||"",i=new e;if(t)for(var o=0,a=t.length;o<a;o++)Uint8Array&&t[o]instanceof Uint8Array?i.append(t[o].buffer):i.append(t[o]);var s=i.getBlob(r);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var n=Object.getPrototypeOf||function(t){return t.__proto__};t.Blob.prototype=n(new t.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(i,o){"use strict";"undefined"!=typeof process&&process&&process.versions&&process.versions.electron?void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r):t.exports=o}(0,function(){"use strict";function t(t,e){return this.init(t,e)}var e,n,r,i,o,a,s,u,l,c,f;return t.extensions={},function(e){function n(t,e){var n,r=Array.prototype.slice.call(arguments,2);e=e||{};for(var i=0;i<r.length;i++){var o=r[i];if(o)for(n in o)o.hasOwnProperty(n)&&void 0!==o[n]&&(t||!1===e.hasOwnProperty(n))&&(e[n]=o[n])}return e}var r=!1;try{var i=document.createElement("div"),o=document.createTextNode(" ");i.appendChild(o),r=i.contains(o)}catch(t){}var a={isIE:"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent),isEdge:null!==/Edge\/\d+/.exec(navigator.userAgent),isFF:navigator.userAgent.toLowerCase().indexOf("firefox")>-1,isMac:e.navigator.platform.toUpperCase().indexOf("MAC")>=0,keyCode:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,K:75,M:77,V:86},isMetaCtrlKey:function(t){return!!(a.isMac&&t.metaKey||!a.isMac&&t.ctrlKey)},isKey:function(t,e){var n=a.getKeyCode(t);return!1===Array.isArray(e)?n===e:-1!==e.indexOf(n)},getKeyCode:function(t){var e=t.which;return null===e&&(e=null!==t.charCode?t.charCode:t.keyCode),e},blockContainerElementNames:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","li","ol","address","article","aside","audio","canvas","dd","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","main","nav","noscript","output","section","video","table","thead","tbody","tfoot","tr","th","td"],emptyElementNames:["br","col","colgroup","hr","img","input","source","wbr"],extend:function(){var t=[!0].concat(Array.prototype.slice.call(arguments));return n.apply(this,t)},defaults:function(){var t=[!1].concat(Array.prototype.slice.call(arguments));return n.apply(this,t)},createLink:function(t,e,n,r){var i=t.createElement("a");return a.moveTextRangeIntoElement(e[0],e[e.length-1],i),i.setAttribute("href",n),r&&("_blank"===r&&i.setAttribute("rel","noopener noreferrer"),i.setAttribute("target",r)),i},findOrCreateMatchingTextNodes:function(t,e,n){for(var r=t.createTreeWalker(e,NodeFilter.SHOW_ALL,null,!1),i=[],o=0,s=!1,u=null,l=null;null!==(u=r.nextNode());)if(!(u.nodeType>3))if(3===u.nodeType){if(!s&&n.start<o+u.nodeValue.length&&(s=!0,l=a.splitStartNodeIfNeeded(u,n.start,o)),s&&a.splitEndNodeIfNeeded(u,l,n.end,o),s&&o===n.end)break;if(s&&o>n.end+1)throw new Error("PerformLinking overshot the target!");s&&i.push(l||u),o+=u.nodeValue.length,null!==l&&(o+=l.nodeValue.length,r.nextNode()),l=null}else"img"===u.tagName.toLowerCase()&&(!s&&n.start<=o&&(s=!0),s&&i.push(u));return i},splitStartNodeIfNeeded:function(t,e,n){return e!==n?t.splitText(e-n):null},splitEndNodeIfNeeded:function(t,e,n,r){var i,o;i=r+t.nodeValue.length+(e?e.nodeValue.length:0)-1,o=n-r-(e?t.nodeValue.length:0),i>=n&&r!==i&&0!==o&&(e||t).splitText(o)},splitByBlockElements:function(e){if(3!==e.nodeType&&1!==e.nodeType)return[];var n=[],r=t.util.blockContainerElementNames.join(",");if(3===e.nodeType||0===e.querySelectorAll(r).length)return[e];for(var i=0;i<e.childNodes.length;i++){var o=e.childNodes[i];if(3===o.nodeType)n.push(o);else if(1===o.nodeType){0===o.querySelectorAll(r).length?n.push(o):n=n.concat(t.util.splitByBlockElements(o))}}return n},findAdjacentTextNodeWithContent:function(t,e,n){var r,i=!1,o=n.createNodeIterator(t,NodeFilter.SHOW_TEXT,null,!1);for(r=o.nextNode();r;){if(r===e)i=!0;else if(i&&3===r.nodeType&&r.nodeValue&&r.nodeValue.trim().length>0)break;r=o.nextNode()}return r},findPreviousSibling:function(t){if(!t||a.isMediumEditorElement(t))return!1;for(var e=t.previousSibling;!e&&!a.isMediumEditorElement(t.parentNode);)e=(t=t.parentNode).previousSibling;return e},isDescendant:function(t,e,n){if(!t||!e)return!1;if(t===e)return!!n;if(1!==t.nodeType)return!1;if(r||3!==e.nodeType)return t.contains(e);for(var i=e.parentNode;null!==i;){if(i===t)return!0;i=i.parentNode}return!1},isElement:function(t){return!(!t||1!==t.nodeType)},throttle:function(t,e){var n,r,i,o=null,a=0,s=function(){a=Date.now(),o=null,i=t.apply(n,r),o||(n=r=null)};return e||0===e||(e=50),function(){var u=Date.now(),l=e-(u-a);return n=this,r=arguments,l<=0||l>e?(o&&(clearTimeout(o),o=null),a=u,i=t.apply(n,r),o||(n=r=null)):o||(o=setTimeout(s,l)),i}},traverseUp:function(t,e){if(!t)return!1;do{if(1===t.nodeType){if(e(t))return t;if(a.isMediumEditorElement(t))return!1}t=t.parentNode}while(t);return!1},htmlEntities:function(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},insertHTMLCommand:function(e,n){var r,i,o,s,u,l,c,f=!1,d=["insertHTML",!1,n];if(!t.util.isEdge&&e.queryCommandSupported("insertHTML"))try{return e.execCommand.apply(e,d)}catch(t){}if((r=e.getSelection()).rangeCount){if(c=(i=r.getRangeAt(0)).commonAncestorContainer,a.isMediumEditorElement(c)&&!c.firstChild)i.selectNode(c.appendChild(e.createTextNode("")));else if(3===c.nodeType&&0===i.startOffset&&i.endOffset===c.nodeValue.length||3!==c.nodeType&&c.innerHTML===i.toString()){for(;!a.isMediumEditorElement(c)&&c.parentNode&&1===c.parentNode.childNodes.length&&!a.isMediumEditorElement(c.parentNode);)c=c.parentNode;i.selectNode(c)}for(i.deleteContents(),(o=e.createElement("div")).innerHTML=n,s=e.createDocumentFragment();o.firstChild;)u=o.firstChild,l=s.appendChild(u);i.insertNode(s),l&&((i=i.cloneRange()).setStartAfter(l),i.collapse(!0),t.selection.selectRange(e,i)),f=!0}return e.execCommand.callListeners&&e.execCommand.callListeners(d,f),f},execFormatBlock:function(e,n){var r=a.getTopBlockContainer(t.selection.getSelectionStart(e));if("blockquote"===n){if(r&&Array.prototype.slice.call(r.childNodes).some((function(t){return a.isBlockContainer(t)})))return e.execCommand("outdent",!1,null);if(a.isIE)return e.execCommand("indent",!1,n)}if(r&&n===r.nodeName.toLowerCase()&&(n="p"),a.isIE&&(n="<"+n+">"),r&&"blockquote"===r.nodeName.toLowerCase()){if(a.isIE&&"<p>"===n)return e.execCommand("outdent",!1,n);if((a.isFF||a.isEdge)&&"p"===n)return Array.prototype.slice.call(r.childNodes).some((function(t){return!a.isBlockContainer(t)}))&&e.execCommand("formatBlock",!1,n),e.execCommand("outdent",!1,n)}return e.execCommand("formatBlock",!1,n)},setTargetBlank:function(t,e){var n,r=e||!1;if("a"===t.nodeName.toLowerCase())t.target="_blank",t.rel="noopener noreferrer";else for(t=t.getElementsByTagName("a"),n=0;n<t.length;n+=1)!1!==r&&r!==t[n].attributes.href.value||(t[n].target="_blank",t[n].rel="noopener noreferrer")},removeTargetBlank:function(t,e){var n;if("a"===t.nodeName.toLowerCase())t.removeAttribute("target"),t.removeAttribute("rel");else for(t=t.getElementsByTagName("a"),n=0;n<t.length;n+=1)e===t[n].attributes.href.value&&(t[n].removeAttribute("target"),t[n].removeAttribute("rel"))},addClassToAnchors:function(t,e){var n,r,i=e.split(" ");if("a"===t.nodeName.toLowerCase())for(r=0;r<i.length;r+=1)t.classList.add(i[r]);else{var o=t.getElementsByTagName("a");if(0===o.length){var s=a.getClosestTag(t,"a");t=s?[s]:[]}else t=o;for(n=0;n<t.length;n+=1)for(r=0;r<i.length;r+=1)t[n].classList.add(i[r])}},isListItem:function(t){if(!t)return!1;if("li"===t.nodeName.toLowerCase())return!0;for(var e=t.parentNode,n=e.nodeName.toLowerCase();"li"===n||!a.isBlockContainer(e)&&"div"!==n;){if("li"===n)return!0;if(!(e=e.parentNode))return!1;n=e.nodeName.toLowerCase()}return!1},cleanListDOM:function(e,n){if("li"===n.nodeName.toLowerCase()){var r=n.parentElement;"p"===r.parentElement.nodeName.toLowerCase()&&(a.unwrap(r.parentElement,e),t.selection.moveCursor(e,n.firstChild,n.firstChild.textContent.length))}},splitOffDOMTree:function(t,e,n){for(var r=e,i=null,o=!n;r!==t;){var a,s=r.parentNode,u=s.cloneNode(!1),l=o?r:s.firstChild;for(i&&(o?u.appendChild(i):a=i),i=u;l;){var c=l.nextSibling;l===r?(l.hasChildNodes()?l=l.cloneNode(!1):l.parentNode.removeChild(l),l.textContent&&i.appendChild(l),l=o?c:null):(l.parentNode.removeChild(l),(l.hasChildNodes()||l.textContent)&&i.appendChild(l),l=c)}a&&i.appendChild(a),r=s}return i},moveTextRangeIntoElement:function(t,e,n){if(!t||!e)return!1;var r=a.findCommonRoot(t,e);if(!r)return!1;if(e===t){var i=t.parentNode,o=t.nextSibling;return i.removeChild(t),n.appendChild(t),o?i.insertBefore(n,o):i.appendChild(n),n.hasChildNodes()}for(var s,u,l,c=[],f=0;f<r.childNodes.length;f++)if(l=r.childNodes[f],s){if(a.isDescendant(l,e,!0)){u=l;break}c.push(l)}else a.isDescendant(l,t,!0)&&(s=l);var d=u.nextSibling,p=r.ownerDocument.createDocumentFragment();return s===t?(s.parentNode.removeChild(s),p.appendChild(s)):p.appendChild(a.splitOffDOMTree(s,t)),c.forEach((function(t){t.parentNode.removeChild(t),p.appendChild(t)})),u===e?(u.parentNode.removeChild(u),p.appendChild(u)):p.appendChild(a.splitOffDOMTree(u,e,!0)),n.appendChild(p),u.parentNode===r?r.insertBefore(n,u):d?r.insertBefore(n,d):r.appendChild(n),n.hasChildNodes()},depthOfNode:function(t){for(var e=0,n=t;null!==n.parentNode;)n=n.parentNode,e++;return e},findCommonRoot:function(t,e){for(var n=a.depthOfNode(t),r=a.depthOfNode(e),i=t,o=e;n!==r;)n>r?(i=i.parentNode,n-=1):(o=o.parentNode,r-=1);for(;i!==o;)i=i.parentNode,o=o.parentNode;return i},isElementAtBeginningOfBlock:function(t){for(var e;!a.isBlockContainer(t)&&!a.isMediumEditorElement(t);){for(e=t;e=e.previousSibling;)if((3===e.nodeType?e.nodeValue:e.textContent).length>0)return!1;t=t.parentNode}return!0},isMediumEditorElement:function(t){return t&&t.getAttribute&&!!t.getAttribute("data-medium-editor-element")},getContainerEditorElement:function(t){return a.traverseUp(t,(function(t){return a.isMediumEditorElement(t)}))},isBlockContainer:function(t){return t&&3!==t.nodeType&&-1!==a.blockContainerElementNames.indexOf(t.nodeName.toLowerCase())},getClosestBlockContainer:function(t){return a.traverseUp(t,(function(t){return a.isBlockContainer(t)||a.isMediumEditorElement(t)}))},getTopBlockContainer:function(t){var e=!!a.isBlockContainer(t)&&t;return a.traverseUp(t,(function(t){return a.isBlockContainer(t)&&(e=t),!(e||!a.isMediumEditorElement(t))&&(e=t,!0)})),e},getFirstSelectableLeafNode:function(t){for(;t&&t.firstChild;)t=t.firstChild;if("table"===(t=a.traverseUp(t,(function(t){return-1===a.emptyElementNames.indexOf(t.nodeName.toLowerCase())}))).nodeName.toLowerCase()){var e=t.querySelector("th, td");e&&(t=e)}return t},getFirstTextNode:function(t){return a.warn("getFirstTextNode is deprecated and will be removed in version 6.0.0"),a._getFirstTextNode(t)},_getFirstTextNode:function(t){if(3===t.nodeType)return t;for(var e=0;e<t.childNodes.length;e++){var n=a._getFirstTextNode(t.childNodes[e]);if(null!==n)return n}return null},ensureUrlHasProtocol:function(t){return-1===t.indexOf("://")?"http://"+t:t},warn:function(){void 0!==e.console&&"function"==typeof e.console.warn&&e.console.warn.apply(e.console,arguments)},deprecated:function(t,e,n){var r=t+" is deprecated, please use "+e+" instead.";n&&(r+=" Will be removed in "+n),a.warn(r)},deprecatedMethod:function(t,e,n,r){a.deprecated(t,e,r),"function"==typeof this[e]&&this[e].apply(this,n)},cleanupAttrs:function(t,e){e.forEach((function(e){t.removeAttribute(e)}))},cleanupTags:function(t,e){-1!==e.indexOf(t.nodeName.toLowerCase())&&t.parentNode.removeChild(t)},unwrapTags:function(e,n){-1!==n.indexOf(e.nodeName.toLowerCase())&&t.util.unwrap(e,document)},getClosestTag:function(t,e){return a.traverseUp(t,(function(t){return t.nodeName.toLowerCase()===e.toLowerCase()}))},unwrap:function(t,e){for(var n=e.createDocumentFragment(),r=Array.prototype.slice.call(t.childNodes),i=0;i<r.length;i++)n.appendChild(r[i]);n.childNodes.length?t.parentNode.replaceChild(n,t):t.parentNode.removeChild(t)},guid:function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};t.util=a}(window),(e=function(e){t.util.extend(this,e)}).extend=function(e){var n,r=this;n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return r.apply(this,arguments)},t.util.extend(n,r);var i=function(){this.constructor=n};return i.prototype=r.prototype,n.prototype=new i,e&&t.util.extend(n.prototype,e),n},e.prototype={init:function(){},base:void 0,name:void 0,checkState:void 0,destroy:void 0,queryCommandState:void 0,isActive:void 0,isAlreadyApplied:void 0,setActive:void 0,setInactive:void 0,getInteractionElements:void 0,window:void 0,document:void 0,getEditorElements:function(){return this.base.elements},getEditorId:function(){return this.base.id},getEditorOption:function(t){return this.base.options[t]}},["execAction","on","off","subscribe","trigger"].forEach((function(t){e.prototype[t]=function(){return this.base[t].apply(this.base,arguments)}})),t.Extension=e,function(){function e(e){return t.util.isBlockContainer(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}var n={findMatchingSelectionParent:function(e,n){var r,i=n.getSelection();return 0!==i.rangeCount&&(r=i.getRangeAt(0).commonAncestorContainer,t.util.traverseUp(r,e))},getSelectionElement:function(e){return this.findMatchingSelectionParent((function(e){return t.util.isMediumEditorElement(e)}),e)},exportSelection:function(t,e){if(!t)return null;var n=null,r=e.getSelection();if(r.rangeCount>0){var i,o=r.getRangeAt(0),a=o.cloneRange();a.selectNodeContents(t),a.setEnd(o.startContainer,o.startOffset),n={start:i=a.toString().length,end:i+o.toString().length},this.doesRangeStartWithImages(o,e)&&(n.startsWithImage=!0);var s=this.getTrailingImageCount(t,n,o.endContainer,o.endOffset);if(s&&(n.trailingImageCount=s),0!==i){var u=this.getIndexRelativeToAdjacentEmptyBlocks(e,t,o.startContainer,o.startOffset);-1!==u&&(n.emptyBlocksIndex=u)}}return n},importSelection:function(t,e,n,r){if(t&&e){var i=n.createRange();i.setStart(e,0),i.collapse(!0);var o,a=e,s=[],u=0,l=!1,c=!1,f=0,d=!1,p=!1,h=null;for((r||t.startsWithImage||void 0!==t.emptyBlocksIndex)&&(p=!0);!d&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||c){if(t.trailingImageCount&&c&&("img"===a.nodeName.toLowerCase()&&f++,f===t.trailingImageCount)){for(var v=0;a.parentNode.childNodes[v]!==a;)v++;i.setEnd(a.parentNode,v+1),d=!0}if(!d&&1===a.nodeType)for(var m=a.childNodes.length-1;m>=0;)s.push(a.childNodes[m]),m-=1}else o=u+a.length,!l&&t.start>=u&&t.start<=o&&(p||t.start<o?(i.setStart(a,t.start-u),l=!0):h=a),l&&t.end>=u&&t.end<=o&&(t.trailingImageCount?c=!0:(i.setEnd(a,t.end-u),d=!0)),u=o;d||(a=s.pop())}!l&&h&&(i.setStart(h,h.length),i.setEnd(h,h.length)),void 0!==t.emptyBlocksIndex&&(i=this.importSelectionMoveCursorPastBlocks(n,e,t.emptyBlocksIndex,i)),r&&(i=this.importSelectionMoveCursorPastAnchor(t,i)),this.selectRange(n,i)}},importSelectionMoveCursorPastAnchor:function(e,n){if(e.start===e.end&&3===n.startContainer.nodeType&&n.startOffset===n.startContainer.nodeValue.length&&t.util.traverseUp(n.startContainer,(function(t){return"a"===t.nodeName.toLowerCase()}))){for(var r=n.startContainer,i=n.startContainer.parentNode;null!==i&&"a"!==i.nodeName.toLowerCase();)i.childNodes[i.childNodes.length-1]!==r?i=null:(r=i,i=i.parentNode);if(null!==i&&"a"===i.nodeName.toLowerCase()){for(var o=null,a=0;null===o&&a<i.parentNode.childNodes.length;a++)i.parentNode.childNodes[a]===i&&(o=a);n.setStart(i.parentNode,o+1),n.collapse(!0)}}return n},importSelectionMoveCursorPastBlocks:function(n,r,i,o){var a,s,u=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),l=o.startContainer,c=0;for(i=i||1,a=3===l.nodeType&&t.util.isBlockContainer(l.previousSibling)?l.previousSibling:t.util.getClosestBlockContainer(l);u.nextNode();)if(s){if(s=u.currentNode,++c===i)break;if(s.textContent.length>0)break}else a===u.currentNode&&(s=u.currentNode);return s||(s=a),o.setStart(t.util.getFirstSelectableLeafNode(s),0),o},getIndexRelativeToAdjacentEmptyBlocks:function(n,r,i,o){if(i.textContent.length>0&&o>0)return-1;var a=i;if(3!==a.nodeType&&(a=i.childNodes[o]),a){if(!t.util.isElementAtBeginningOfBlock(a))return-1;var s=t.util.findPreviousSibling(a);if(!s)return-1;if(s.nodeValue)return-1}for(var u=t.util.getClosestBlockContainer(i),l=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),c=0;l.nextNode();){var f=""===l.currentNode.textContent;if((f||c>0)&&(c+=1),l.currentNode===u)return c;f||(c=0)}return c},doesRangeStartWithImages:function(t,e){if(0!==t.startOffset||1!==t.startContainer.nodeType)return!1;if("img"===t.startContainer.nodeName.toLowerCase())return!0;var n=t.startContainer.querySelector("img");if(!n)return!1;for(var r=e.createTreeWalker(t.startContainer,NodeFilter.SHOW_ALL,null,!1);r.nextNode();){var i=r.currentNode;if(i===n)break;if(i.nodeValue)return!1}return!0},getTrailingImageCount:function(t,e,n,r){if(0===r||1!==n.nodeType)return 0;if("img"!==n.nodeName.toLowerCase()&&!n.querySelector("img"))return 0;for(var i=n.childNodes[r-1];i.hasChildNodes();)i=i.lastChild;for(var o,a=t,s=[],u=0,l=!1,c=!1,f=!1,d=0;!f&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||c){if("img"===a.nodeName.toLowerCase()&&d++,a===i)f=!0;else if(1===a.nodeType)for(var p=a.childNodes.length-1;p>=0;)s.push(a.childNodes[p]),p-=1}else d=0,o=u+a.length,!l&&e.start>=u&&e.start<=o&&(l=!0),l&&e.end>=u&&e.end<=o&&(c=!0),u=o;f||(a=s.pop())}return d},selectionContainsContent:function(t){var e=t.getSelection();if(!e||e.isCollapsed||!e.rangeCount)return!1;if(""!==e.toString().trim())return!0;var n=this.getSelectedParentElement(e.getRangeAt(0));return!(!n||!("img"===n.nodeName.toLowerCase()||1===n.nodeType&&n.querySelector("img")))},selectionInContentEditableFalse:function(t){var e,n=this.findMatchingSelectionParent((function(t){var n=t&&t.getAttribute("contenteditable");return"true"===n&&(e=!0),"#text"!==t.nodeName&&"false"===n}),t);return!e&&n},getSelectionHtml:function(t){var e,n,r,i="",o=t.getSelection();if(o.rangeCount){for(r=t.createElement("div"),e=0,n=o.rangeCount;e<n;e+=1)r.appendChild(o.getRangeAt(e).cloneContents());i=r.innerHTML}return i},getCaretOffsets:function(t,e){var n,r;return e||(e=window.getSelection().getRangeAt(0)),n=e.cloneRange(),r=e.cloneRange(),n.selectNodeContents(t),n.setEnd(e.endContainer,e.endOffset),r.selectNodeContents(t),r.setStart(e.endContainer,e.endOffset),{left:n.toString().length,right:r.toString().length}},rangeSelectsSingleNode:function(t){var e=t.startContainer;return e===t.endContainer&&e.hasChildNodes()&&t.endOffset===t.startOffset+1},getSelectedParentElement:function(t){return t?this.rangeSelectsSingleNode(t)&&3!==t.startContainer.childNodes[t.startOffset].nodeType?t.startContainer.childNodes[t.startOffset]:3===t.startContainer.nodeType?t.startContainer.parentNode:t.startContainer:null},getSelectedElements:function(t){var e,n,r,i=t.getSelection();if(!i.rangeCount||i.isCollapsed||!i.getRangeAt(0).commonAncestorContainer)return[];if(3===(e=i.getRangeAt(0)).commonAncestorContainer.nodeType){for(n=[],r=e.commonAncestorContainer;r.parentNode&&1===r.parentNode.childNodes.length;)n.push(r.parentNode),r=r.parentNode;return n}return[].filter.call(e.commonAncestorContainer.getElementsByTagName("*"),(function(t){return"function"!=typeof i.containsNode||i.containsNode(t,!0)}))},selectNode:function(t,e){var n=e.createRange();n.selectNodeContents(t),this.selectRange(e,n)},select:function(t,e,n,r,i){var o=t.createRange();return o.setStart(e,n),r?o.setEnd(r,i):o.collapse(!0),this.selectRange(t,o),o},clearSelection:function(t,e){e?t.getSelection().collapseToStart():t.getSelection().collapseToEnd()},moveCursor:function(t,e,n){this.select(t,e,n)},getSelectionRange:function(t){var e=t.getSelection();return 0===e.rangeCount?null:e.getRangeAt(0)},selectRange:function(t,e){var n=t.getSelection();n.removeAllRanges(),n.addRange(e)},getSelectionStart:function(t){var e=t.getSelection().anchorNode;return e&&3===e.nodeType?e.parentNode:e}};t.selection=n}(),function(){function e(e,n){return!!e&&e.some((function(e){if("function"!=typeof e.getInteractionElements)return!1;var r=e.getInteractionElements();return!!r&&(Array.isArray(r)||(r=[r]),r.some((function(e){return t.util.isDescendant(e,n,!0)})))}))}var n=function(t){this.base=t,this.options=this.base.options,this.events=[],this.disabledEvents={},this.customEvents={},this.listeners={}};n.prototype={InputEventOnContenteditableSupported:!t.util.isIE&&!t.util.isEdge,attachDOMEvent:function(e,n,r,i){var o=this.base.options.contentWindow,a=this.base.options.ownerDocument;e=t.util.isElement(e)||[o,a].indexOf(e)>-1?[e]:e,Array.prototype.forEach.call(e,function(t){t.addEventListener(n,r,i),this.events.push([t,n,r,i])}.bind(this))},detachDOMEvent:function(e,n,r,i){var o,a,s=this.base.options.contentWindow,u=this.base.options.ownerDocument;e&&(e=t.util.isElement(e)||[s,u].indexOf(e)>-1?[e]:e,Array.prototype.forEach.call(e,function(t){-1!==(o=this.indexOfListener(t,n,r,i))&&(a=this.events.splice(o,1)[0])[0].removeEventListener(a[1],a[2],a[3])}.bind(this)))},indexOfListener:function(t,e,n,r){var i,o,a;for(i=0,o=this.events.length;i<o;i+=1)if((a=this.events[i])[0]===t&&a[1]===e&&a[2]===n&&a[3]===r)return i;return-1},detachAllDOMEvents:function(){for(var t=this.events.pop();t;)t[0].removeEventListener(t[1],t[2],t[3]),t=this.events.pop()},detachAllEventsFromElement:function(t){for(var e=this.events.filter((function(e){return e&&e[0].getAttribute&&e[0].getAttribute("medium-editor-index")===t.getAttribute("medium-editor-index")})),n=0,r=e.length;n<r;n++){var i=e[n];this.detachDOMEvent(i[0],i[1],i[2],i[3])}},attachAllEventsToElement:function(t){this.listeners.editableInput&&(this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML),this.eventsCache&&this.eventsCache.forEach((function(e){this.attachDOMEvent(t,e.name,e.handler.bind(this))}),this)},enableCustomEvent:function(t){void 0!==this.disabledEvents[t]&&delete this.disabledEvents[t]},disableCustomEvent:function(t){this.disabledEvents[t]=!0},attachCustomEvent:function(t,e){this.setupListener(t),this.customEvents[t]||(this.customEvents[t]=[]),this.customEvents[t].push(e)},detachCustomEvent:function(t,e){var n=this.indexOfCustomListener(t,e);-1!==n&&this.customEvents[t].splice(n,1)},indexOfCustomListener:function(t,e){return this.customEvents[t]&&this.customEvents[t].length?this.customEvents[t].indexOf(e):-1},detachAllCustomEvents:function(){this.customEvents={}},triggerCustomEvent:function(t,e,n){this.customEvents[t]&&!this.disabledEvents[t]&&this.customEvents[t].forEach((function(t){t(e,n)}))},destroy:function(){this.detachAllDOMEvents(),this.detachAllCustomEvents(),this.detachExecCommand(),this.base.elements&&this.base.elements.forEach((function(t){t.removeAttribute("data-medium-focused")}))},attachToExecCommand:function(){this.execCommandListener||(this.execCommandListener=function(t){this.handleDocumentExecCommand(t)}.bind(this),this.wrapExecCommand(),this.options.ownerDocument.execCommand.listeners.push(this.execCommandListener))},detachExecCommand:function(){var t=this.options.ownerDocument;if(this.execCommandListener&&t.execCommand.listeners){var e=t.execCommand.listeners.indexOf(this.execCommandListener);-1!==e&&t.execCommand.listeners.splice(e,1),t.execCommand.listeners.length||this.unwrapExecCommand()}},wrapExecCommand:function(){var t=this.options.ownerDocument;if(!t.execCommand.listeners){var e=function(e,n){t.execCommand.listeners&&t.execCommand.listeners.forEach((function(t){t({command:e[0],value:e[2],args:e,result:n})}))},n=function(){var n=t.execCommand.orig.apply(this,arguments);if(!t.execCommand.listeners)return n;var r=Array.prototype.slice.call(arguments);return e(r,n),n};n.orig=t.execCommand,n.listeners=[],n.callListeners=e,t.execCommand=n}},unwrapExecCommand:function(){var t=this.options.ownerDocument;t.execCommand.orig&&(t.execCommand=t.execCommand.orig)},setupListener:function(t){if(!this.listeners[t]){switch(t){case"externalInteraction":this.attachDOMEvent(this.options.ownerDocument.body,"mousedown",this.handleBodyMousedown.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"click",this.handleBodyClick.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"focus",this.handleBodyFocus.bind(this),!0);break;case"blur":case"focus":this.setupListener("externalInteraction");break;case"editableInput":this.contentCache={},this.base.elements.forEach((function(t){this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML}),this),this.InputEventOnContenteditableSupported&&this.attachToEachElement("input",this.handleInput),this.InputEventOnContenteditableSupported||(this.setupListener("editableKeypress"),this.keypressUpdateInput=!0,this.attachDOMEvent(document,"selectionchange",this.handleDocumentSelectionChange.bind(this)),this.attachToExecCommand());break;case"editableClick":this.attachToEachElement("click",this.handleClick);break;case"editableBlur":this.attachToEachElement("blur",this.handleBlur);break;case"editableKeypress":this.attachToEachElement("keypress",this.handleKeypress);break;case"editableKeyup":this.attachToEachElement("keyup",this.handleKeyup);break;case"editableKeydown":this.attachToEachElement("keydown",this.handleKeydown);break;case"editableKeydownSpace":case"editableKeydownEnter":case"editableKeydownTab":case"editableKeydownDelete":this.setupListener("editableKeydown");break;case"editableMouseover":this.attachToEachElement("mouseover",this.handleMouseover);break;case"editableDrag":this.attachToEachElement("dragover",this.handleDragging),this.attachToEachElement("dragleave",this.handleDragging);break;case"editableDrop":this.attachToEachElement("drop",this.handleDrop);break;case"editablePaste":this.attachToEachElement("paste",this.handlePaste)}this.listeners[t]=!0}},attachToEachElement:function(t,e){this.eventsCache||(this.eventsCache=[]),this.base.elements.forEach((function(n){this.attachDOMEvent(n,t,e.bind(this))}),this),this.eventsCache.push({name:t,handler:e})},cleanupElement:function(t){var e=t.getAttribute("medium-editor-index");e&&(this.detachAllEventsFromElement(t),this.contentCache&&delete this.contentCache[e])},focusElement:function(t){t.focus(),this.updateFocus(t,{target:t,type:"focus"})},updateFocus:function(n,r){var i,o=this.base.getFocusedElement();o&&"click"===r.type&&this.lastMousedownTarget&&(t.util.isDescendant(o,this.lastMousedownTarget,!0)||e(this.base.extensions,this.lastMousedownTarget))&&(i=o),i||this.base.elements.some((function(e){return!i&&t.util.isDescendant(e,n,!0)&&(i=e),!!i}),this);var a=!t.util.isDescendant(o,n,!0)&&!e(this.base.extensions,n);i!==o&&(o&&a&&(o.removeAttribute("data-medium-focused"),this.triggerCustomEvent("blur",r,o)),i&&(i.setAttribute("data-medium-focused",!0),this.triggerCustomEvent("focus",r,i))),a&&this.triggerCustomEvent("externalInteraction",r)},updateInput:function(t,e){if(this.contentCache){var n=t.getAttribute("medium-editor-index"),r=t.innerHTML;r!==this.contentCache[n]&&this.triggerCustomEvent("editableInput",e,t),this.contentCache[n]=r}},handleDocumentSelectionChange:function(e){if(e.currentTarget&&e.currentTarget.activeElement){var n,r=e.currentTarget.activeElement;this.base.elements.some((function(e){return!!t.util.isDescendant(e,r,!0)&&(n=e,!0)}),this),n&&this.updateInput(n,{target:r,currentTarget:n})}},handleDocumentExecCommand:function(){var t=this.base.getFocusedElement();t&&this.updateInput(t,{target:t,currentTarget:t})},handleBodyClick:function(t){this.updateFocus(t.target,t)},handleBodyFocus:function(t){this.updateFocus(t.target,t)},handleBodyMousedown:function(t){this.lastMousedownTarget=t.target},handleInput:function(t){this.updateInput(t.currentTarget,t)},handleClick:function(t){this.triggerCustomEvent("editableClick",t,t.currentTarget)},handleBlur:function(t){this.triggerCustomEvent("editableBlur",t,t.currentTarget)},handleKeypress:function(t){if(this.triggerCustomEvent("editableKeypress",t,t.currentTarget),this.keypressUpdateInput){var e={target:t.target,currentTarget:t.currentTarget};setTimeout(function(){this.updateInput(e.currentTarget,e)}.bind(this),0)}},handleKeyup:function(t){this.triggerCustomEvent("editableKeyup",t,t.currentTarget)},handleMouseover:function(t){this.triggerCustomEvent("editableMouseover",t,t.currentTarget)},handleDragging:function(t){this.triggerCustomEvent("editableDrag",t,t.currentTarget)},handleDrop:function(t){this.triggerCustomEvent("editableDrop",t,t.currentTarget)},handlePaste:function(t){this.triggerCustomEvent("editablePaste",t,t.currentTarget)},handleKeydown:function(e){return this.triggerCustomEvent("editableKeydown",e,e.currentTarget),t.util.isKey(e,t.util.keyCode.SPACE)?this.triggerCustomEvent("editableKeydownSpace",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.ENTER)||e.ctrlKey&&t.util.isKey(e,t.util.keyCode.M)?this.triggerCustomEvent("editableKeydownEnter",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.TAB)?this.triggerCustomEvent("editableKeydownTab",e,e.currentTarget):t.util.isKey(e,[t.util.keyCode.DELETE,t.util.keyCode.BACKSPACE])?this.triggerCustomEvent("editableKeydownDelete",e,e.currentTarget):void 0}},t.Events=n}(),n=t.Extension.extend({action:void 0,aria:void 0,tagNames:void 0,style:void 0,useQueryState:void 0,contentDefault:void 0,contentFA:void 0,classList:void 0,attrs:void 0,constructor:function(e){n.isBuiltInButton(e)?t.Extension.call(this,this.defaults[e]):t.Extension.call(this,e)},init:function(){t.Extension.prototype.init.apply(this,arguments),this.button=this.createButton(),this.on(this.button,"click",this.handleClick.bind(this))},getButton:function(){return this.button},getAction:function(){return"function"==typeof this.action?this.action(this.base.options):this.action},getAria:function(){return"function"==typeof this.aria?this.aria(this.base.options):this.aria},getTagNames:function(){return"function"==typeof this.tagNames?this.tagNames(this.base.options):this.tagNames},createButton:function(){var t=this.document.createElement("button"),e=this.contentDefault,n=this.getAria(),r=this.getEditorOption("buttonLabels");return t.classList.add("medium-editor-action"),t.classList.add("medium-editor-action-"+this.name),this.classList&&this.classList.forEach((function(e){t.classList.add(e)})),t.setAttribute("data-action",this.getAction()),n&&(t.setAttribute("title",n),t.setAttribute("aria-label",n)),this.attrs&&Object.keys(this.attrs).forEach((function(e){t.setAttribute(e,this.attrs[e])}),this),"fontawesome"===r&&this.contentFA&&(e=this.contentFA),t.innerHTML=e,t},handleClick:function(t){t.preventDefault(),t.stopPropagation();var e=this.getAction();e&&this.execAction(e)},isActive:function(){return this.button.classList.contains(this.getEditorOption("activeButtonClass"))},setInactive:function(){this.button.classList.remove(this.getEditorOption("activeButtonClass")),delete this.knownState},setActive:function(){this.button.classList.add(this.getEditorOption("activeButtonClass")),delete this.knownState},queryCommandState:function(){var t=null;return this.useQueryState&&(t=this.base.queryCommandState(this.getAction())),t},isAlreadyApplied:function(t){var e,n,r=!1,i=this.getTagNames();return!1===this.knownState||!0===this.knownState?this.knownState:(i&&i.length>0&&(r=-1!==i.indexOf(t.nodeName.toLowerCase())),!r&&this.style&&(e=this.style.value.split("|"),n=this.window.getComputedStyle(t,null).getPropertyValue(this.style.prop),e.forEach((function(t){this.knownState||((r=-1!==n.indexOf(t))||"text-decoration"!==this.style.prop)&&(this.knownState=r)}),this)),r)}}),n.isBuiltInButton=function(e){return"string"==typeof e&&t.extensions.button.prototype.defaults.hasOwnProperty(e)},t.extensions.button=n,t.extensions.button.prototype.defaults={bold:{name:"bold",action:"bold",aria:"bold",tagNames:["b","strong"],style:{prop:"font-weight",value:"700|bold"},useQueryState:!0,contentDefault:"<b>B</b>",contentFA:'<i class="fa fa-bold"></i>'},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"<b><i>I</i></b>",contentFA:'<i class="fa fa-italic"></i>'},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"<b><u>U</u></b>",contentFA:'<i class="fa fa-underline"></i>'},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"<s>A</s>",contentFA:'<i class="fa fa-strikethrough"></i>'},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"<b>x<sup>1</sup></b>",contentFA:'<i class="fa fa-superscript"></i>'},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"<b>x<sub>1</sub></b>",contentFA:'<i class="fa fa-subscript"></i>'},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"<b>image</b>",contentFA:'<i class="fa fa-picture-o"></i>'},html:{name:"html",action:"html",aria:"evaluate html",tagNames:["iframe","object"],contentDefault:"<b>html</b>",contentFA:'<i class="fa fa-code"></i>'},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"<b>1.</b>",contentFA:'<i class="fa fa-list-ol"></i>'},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"<b>&bull;</b>",contentFA:'<i class="fa fa-list-ul"></i>'},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"<b>&rarr;</b>",contentFA:'<i class="fa fa-indent"></i>'},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"<b>&larr;</b>",contentFA:'<i class="fa fa-outdent"></i>'},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"<b>C</b>",contentFA:'<i class="fa fa-align-center"></i>'},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"<b>J</b>",contentFA:'<i class="fa fa-align-justify"></i>'},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"<b>L</b>",contentFA:'<i class="fa fa-align-left"></i>'},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"<b>R</b>",contentFA:'<i class="fa fa-align-right"></i>'},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"<b>X</b>",contentFA:'<i class="fa fa-eraser"></i>'},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"<b>&ldquo;</b>",contentFA:'<i class="fa fa-quote-right"></i>'},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"<b>0101</b>",contentFA:'<i class="fa fa-code fa-lg"></i>'},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"<b>H1</b>",contentFA:'<i class="fa fa-header"><sup>1</sup>'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"<b>H2</b>",contentFA:'<i class="fa fa-header"><sup>2</sup>'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"<b>H3</b>",contentFA:'<i class="fa fa-header"><sup>3</sup>'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"<b>H4</b>",contentFA:'<i class="fa fa-header"><sup>4</sup>'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"<b>H5</b>",contentFA:'<i class="fa fa-header"><sup>5</sup>'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"<b>H6</b>",contentFA:'<i class="fa fa-header"><sup>6</sup>'}},r=t.extensions.button.extend({init:function(){t.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"&#10003;",formCloseLabel:"&times;",activeClass:"medium-editor-toolbar-form-active",hasForm:!0,getForm:function(){},isDisplayed:function(){return!!this.hasForm&&this.getForm().classList.contains(this.activeClass)},showForm:function(){this.hasForm&&this.getForm().classList.add(this.activeClass)},hideForm:function(){this.hasForm&&this.getForm().classList.remove(this.activeClass)},showToolbarDefaultActions:function(){var t=this.base.getExtensionByName("toolbar");t&&t.showToolbarDefaultActions()},hideToolbarDefaultActions:function(){var t=this.base.getExtensionByName("toolbar");t&&t.hideToolbarDefaultActions()},setToolbarPosition:function(){var t=this.base.getExtensionByName("toolbar");t&&t.setToolbarPosition()}}),t.extensions.form=r,i=t.extensions.form.extend({customClassOption:null,customClassOptionText:"Button",linkValidation:!1,placeholderText:"Paste or type a link",targetCheckbox:!1,targetCheckboxText:"Open in new window",name:"anchor",action:"createLink",aria:"link",tagNames:["a"],contentDefault:"<b>#</b>",contentFA:'<i class="fa fa-link"></i>',init:function(){t.extensions.form.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this))},handleClick:function(e){e.preventDefault(),e.stopPropagation();var n=t.selection.getSelectionRange(this.document);return"a"===n.startContainer.nodeName.toLowerCase()||"a"===n.endContainer.nodeName.toLowerCase()||t.util.getClosestTag(t.selection.getSelectedParentElement(n),"a")?this.execAction("unlink"):(this.isDisplayed()||this.showForm(),!1)},handleKeydown:function(e){t.util.isKey(e,t.util.keyCode.K)&&t.util.isMetaCtrlKey(e)&&!e.shiftKey&&this.handleClick(e)},getForm:function(){return this.form||(this.form=this.createForm()),this.form},getTemplate:function(){var t=['<input type="text" class="medium-editor-toolbar-input" placeholder="',this.placeholderText,'">'];return t.push('<a href="#" class="medium-editor-toolbar-save">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':this.formSaveLabel,"</a>"),t.push('<a href="#" class="medium-editor-toolbar-close">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':this.formCloseLabel,"</a>"),this.targetCheckbox&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-target" id="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">','<label for="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">',this.targetCheckboxText,"</label>","</div>"),this.customClassOption&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-button">',"<label>",this.customClassOptionText,"</label>","</div>"),t.join("")},isDisplayed:function(){return t.extensions.form.prototype.isDisplayed.apply(this)},hideForm:function(){t.extensions.form.prototype.hideForm.apply(this),this.getInput().value=""},showForm:function(e){var n=this.getInput(),r=this.getAnchorTargetCheckbox(),i=this.getAnchorButtonCheckbox();if("string"==typeof(e=e||{value:""})&&(e={value:e}),this.base.saveSelection(),this.hideToolbarDefaultActions(),t.extensions.form.prototype.showForm.apply(this),this.setToolbarPosition(),n.value=e.value,n.focus(),r&&(r.checked="_blank"===e.target),i){var o=e.buttonClass?e.buttonClass.split(" "):[];i.checked=-1!==o.indexOf(this.customClassOption)}},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},getFormOpts:function(){var t=this.getAnchorTargetCheckbox(),e=this.getAnchorButtonCheckbox(),n={value:this.getInput().value.trim()};return this.linkValidation&&(n.value=this.checkLinkFormat(n.value)),n.target="_self",t&&t.checked&&(n.target="_blank"),e&&e.checked&&(n.buttonClass=this.customClassOption),n},doFormSave:function(){var t=this.getFormOpts();this.completeFormSave(t)},completeFormSave:function(t){this.base.restoreSelection(),this.execAction(this.action,t),this.base.checkSelection()},ensureEncodedUri:function(t){return t===decodeURI(t)?encodeURI(t):t},ensureEncodedUriComponent:function(t){return t===decodeURIComponent(t)?encodeURIComponent(t):t},ensureEncodedParam:function(t){var e=t.split("="),n=e[0],r=e[1];return n+(void 0===r?"":"="+this.ensureEncodedUriComponent(r))},ensureEncodedQuery:function(t){return t.split("&").map(this.ensureEncodedParam.bind(this)).join("&")},checkLinkFormat:function(t){var e=/^([a-z]+:)?\/\/|^(mailto|tel|maps):|^\#/i.test(t),n="",r=t.match(/^(.*?)(?:\?(.*?))?(?:#(.*))?$/),i=r[1],o=r[2],a=r[3];if(/^\+?\s?\(?(?:\d\s?\-?\)?){3,20}$/.test(t))return"tel:"+t;if(!e){var s=i.split("/")[0];(s.match(/.+(\.|:).+/)||"localhost"===s)&&(n="http://")}return n+this.ensureEncodedUri(i)+(void 0===o?"":"?"+this.ensureEncodedQuery(o))+(void 0===a?"":"#"+a)},doFormCancel:function(){this.base.restoreSelection(),this.base.checkSelection()},attachFormEvents:function(t){var e=t.querySelector(".medium-editor-toolbar-close"),n=t.querySelector(".medium-editor-toolbar-save"),r=t.querySelector(".medium-editor-toolbar-input");this.on(t,"click",this.handleFormClick.bind(this)),this.on(r,"keyup",this.handleTextboxKeyup.bind(this)),this.on(e,"click",this.handleCloseClick.bind(this)),this.on(n,"click",this.handleSaveClick.bind(this),!0)},createForm:function(){var t=this.document.createElement("div");return t.className="medium-editor-toolbar-form",t.id="medium-editor-toolbar-form-anchor-"+this.getEditorId(),t.innerHTML=this.getTemplate(),this.attachFormEvents(t),t},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},getAnchorTargetCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-target")},getAnchorButtonCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-button")},handleTextboxKeyup:function(e){if(e.keyCode===t.util.keyCode.ENTER)return e.preventDefault(),void this.doFormSave();e.keyCode===t.util.keyCode.ESCAPE&&(e.preventDefault(),this.doFormCancel())},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}}),t.extensions.anchor=i,o=t.Extension.extend({name:"anchor-preview",hideDelay:500,previewValueSelector:"a",showWhenToolbarIsVisible:!1,showOnEmptyLinks:!0,init:function(){this.anchorPreview=this.createPreview(),this.getEditorOption("elementsContainer").appendChild(this.anchorPreview),this.attachToEditables()},getInteractionElements:function(){return this.getPreviewElement()},getPreviewElement:function(){return this.anchorPreview},createPreview:function(){var t=this.document.createElement("div");return t.id="medium-editor-anchor-preview-"+this.getEditorId(),t.className="medium-editor-anchor-preview",t.innerHTML=this.getTemplate(),this.on(t,"click",this.handleClick.bind(this)),t},getTemplate:function(){return'<div class="medium-editor-toolbar-anchor-preview" id="medium-editor-toolbar-anchor-preview"> <a class="medium-editor-toolbar-anchor-preview-inner"></a></div>'},destroy:function(){this.anchorPreview&&(this.anchorPreview.parentNode&&this.anchorPreview.parentNode.removeChild(this.anchorPreview),delete this.anchorPreview)},hidePreview:function(){this.anchorPreview&&this.anchorPreview.classList.remove("medium-editor-anchor-preview-active"),this.activeAnchor=null},showPreview:function(t){return!(!this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")&&!t.getAttribute("data-disable-preview"))||(this.previewValueSelector&&(this.anchorPreview.querySelector(this.previewValueSelector).textContent=t.attributes.href.value,this.anchorPreview.querySelector(this.previewValueSelector).href=t.attributes.href.value),this.anchorPreview.classList.add("medium-toolbar-arrow-over"),this.anchorPreview.classList.remove("medium-toolbar-arrow-under"),this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")||this.anchorPreview.classList.add("medium-editor-anchor-preview-active"),this.activeAnchor=t,this.positionPreview(),this.attachPreviewHandlers(),this)},positionPreview:function(t){t=t||this.activeAnchor;var e,n,r,i,o,a=this.window.innerWidth,s=this.anchorPreview.offsetHeight,u=t.getBoundingClientRect(),l=this.diffLeft,c=this.diffTop,f=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(f).getPropertyValue("position"))>-1,p={};e=this.anchorPreview.offsetWidth/2;var h=this.base.getExtensionByName("toolbar");h&&(l=h.diffLeft,c=h.diffTop),n=l-e,d?(i=f.getBoundingClientRect(),["top","left"].forEach((function(t){p[t]=u[t]-i[t]})),p.width=u.width,p.height=u.height,u=p,a=i.width,o=f.scrollTop):o=this.window.pageYOffset,r=u.left+u.width/2,o+=s+u.top+u.height-c-this.anchorPreview.offsetHeight,this.anchorPreview.style.top=Math.round(o)+"px",this.anchorPreview.style.right="initial",r<e?(this.anchorPreview.style.left=n+e+"px",this.anchorPreview.style.right="initial"):a-r<e?(this.anchorPreview.style.left="auto",this.anchorPreview.style.right=0):(this.anchorPreview.style.left=n+r+"px",this.anchorPreview.style.right="initial")},attachToEditables:function(){this.subscribe("editableMouseover",this.handleEditableMouseover.bind(this)),this.subscribe("positionedToolbar",this.handlePositionedToolbar.bind(this))},handlePositionedToolbar:function(){this.showWhenToolbarIsVisible||this.hidePreview()},handleClick:function(t){var e=this.base.getExtensionByName("anchor"),n=this.activeAnchor;e&&n&&(t.preventDefault(),this.base.selectElement(this.activeAnchor),this.base.delay(function(){if(n){var t={value:n.attributes.href.value,target:n.getAttribute("target"),buttonClass:n.getAttribute("class")};e.showForm(t),n=null}}.bind(this))),this.hidePreview()},handleAnchorMouseout:function(){this.anchorToPreview=null,this.off(this.activeAnchor,"mouseout",this.instanceHandleAnchorMouseout),this.instanceHandleAnchorMouseout=null},handleEditableMouseover:function(e){var n=t.util.getClosestTag(e.target,"a");if(!1!==n){if(!this.showOnEmptyLinks&&(!/href=["']\S+["']/.test(n.outerHTML)||/href=["']#\S+["']/.test(n.outerHTML)))return!0;var r=this.base.getExtensionByName("toolbar");if(!this.showWhenToolbarIsVisible&&r&&r.isDisplayed&&r.isDisplayed())return!0;this.activeAnchor&&this.activeAnchor!==n&&this.detachPreviewHandlers(),this.anchorToPreview=n,this.instanceHandleAnchorMouseout=this.handleAnchorMouseout.bind(this),this.on(this.anchorToPreview,"mouseout",this.instanceHandleAnchorMouseout),this.base.delay(function(){this.anchorToPreview&&this.showPreview(this.anchorToPreview)}.bind(this))}},handlePreviewMouseover:function(){this.lastOver=(new Date).getTime(),this.hovering=!0},handlePreviewMouseout:function(t){t.relatedTarget&&/anchor-preview/.test(t.relatedTarget.className)||(this.hovering=!1)},updatePreview:function(){if(this.hovering)return!0;(new Date).getTime()-this.lastOver>this.hideDelay&&this.detachPreviewHandlers()},detachPreviewHandlers:function(){clearInterval(this.intervalTimer),this.instanceHandlePreviewMouseover&&(this.off(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.activeAnchor&&(this.off(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout))),this.hidePreview(),this.hovering=this.instanceHandlePreviewMouseover=this.instanceHandlePreviewMouseout=null},attachPreviewHandlers:function(){this.lastOver=(new Date).getTime(),this.hovering=!0,this.instanceHandlePreviewMouseover=this.handlePreviewMouseover.bind(this),this.instanceHandlePreviewMouseout=this.handlePreviewMouseout.bind(this),this.intervalTimer=setInterval(this.updatePreview.bind(this),200),this.on(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.on(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout)}}),t.extensions.anchorPreview=o,function(){var e,n,r,i,o;e=[" ","\t","\n","\r"," "," "," "," "," ","\u2028","\u2029"],r="(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.]("+(n="com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw")+")\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.("+n+"))",i=new RegExp("^("+n+")$","i"),o=new RegExp(r,"gi");var a=t.Extension.extend({init:function(){t.Extension.prototype.init.apply(this,arguments),this.disableEventHandling=!1,this.subscribe("editableKeypress",this.onKeypress.bind(this)),this.subscribe("editableBlur",this.onBlur.bind(this)),this.document.execCommand("AutoUrlDetect",!1,!1)},isLastInstance:function(){for(var t=0,e=0;e<this.window._mediumEditors.length;e++){var n=this.window._mediumEditors[e];null!==n&&void 0!==n.getExtensionByName("autoLink")&&t++}return 1===t},destroy:function(){this.document.queryCommandSupported("AutoUrlDetect")&&this.isLastInstance()&&this.document.execCommand("AutoUrlDetect",!1,!0)},onBlur:function(t,e){this.performLinking(e)},onKeypress:function(e){this.disableEventHandling||t.util.isKey(e,[t.util.keyCode.SPACE,t.util.keyCode.ENTER])&&(clearTimeout(this.performLinkingTimeout),this.performLinkingTimeout=setTimeout(function(){try{var t=this.base.exportSelection();this.performLinking(e.target)&&this.base.importSelection(t,!0)}catch(t){window.console&&window.console.error("Failed to perform linking",t),this.disableEventHandling=!0}}.bind(this),0))},performLinking:function(e){var n=t.util.splitByBlockElements(e),r=!1;0===n.length&&(n=[e]);for(var i=0;i<n.length;i++)r=this.removeObsoleteAutoLinkSpans(n[i])||r,r=this.performLinkingWithinElement(n[i])||r;return this.base.events.updateInput(e,{target:e,currentTarget:e}),r},removeObsoleteAutoLinkSpans:function(e){if(!e||3===e.nodeType)return!1;for(var n,r=e.querySelectorAll('span[data-auto-link="true"]'),i=!1,o=0;o<r.length;o++){var a=r[o].textContent;if(-1===a.indexOf("://")&&(a=t.util.ensureUrlHasProtocol(a)),r[o].getAttribute("data-href")!==a&&(n=r[o],!t.util.getClosestTag(n,"a"))){i=!0;var s=a.replace(/\s+$/,"");if(r[o].getAttribute("data-href")===s){var u=a.length-s.length,l=t.util.splitOffDOMTree(r[o],this.splitTextBeforeEnd(r[o],u));r[o].parentNode.insertBefore(l,r[o].nextSibling)}else t.util.unwrap(r[o],this.document)}}return i},splitTextBeforeEnd:function(t,e){for(var n,r,i,o=this.document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),a=!0;a;)a=null!==o.lastChild();for(;e>0&&null!==i;)(r=(n=o.currentNode).nodeValue).length>e?(i=n.splitText(r.length-e),e=0):(i=o.previousNode(),e-=r.length);return i},performLinkingWithinElement:function(e){for(var n=this.findLinkableText(e),r=0;r<n.length;r++){var i=t.util.findOrCreateMatchingTextNodes(this.document,e,n[r]);this.shouldNotLink(i)||this.createAutoLink(i,n[r].href)}return!1},shouldNotLink:function(e){for(var n=!1,r=0;r<e.length&&!1===n;r++)n=!!t.util.traverseUp(e[r],(function(t){return"a"===t.nodeName.toLowerCase()||t.getAttribute&&"true"===t.getAttribute("data-auto-link")}));return n},findLinkableText:function(t){for(var n=t.textContent,r=null,a=[];null!==(r=o.exec(n));){var s=r.index+r[0].length;!(0!==r.index&&-1===e.indexOf(n[r.index-1])||s!==n.length&&-1===e.indexOf(n[s]))&&(-1!==r[0].indexOf("/")||i.test(r[0].split(".").pop().split("?").shift()))&&a.push({href:r[0],start:r.index,end:s})}return a},createAutoLink:function(e,n){n=t.util.ensureUrlHasProtocol(n);var r=t.util.createLink(this.document,e,n,this.getEditorOption("targetBlank")?"_blank":null),i=this.document.createElement("span");for(i.setAttribute("data-auto-link","true"),i.setAttribute("data-href",n),r.insertBefore(i,r.firstChild);r.childNodes.length>1;)i.appendChild(r.childNodes[1])}});t.extensions.autoLink=a}(),function(){var e="medium-editor-dragover";function n(n){var r=t.util.getContainerEditorElement(n);Array.prototype.slice.call(r.parentElement.querySelectorAll("."+e)).forEach((function(t){t.classList.remove(e)}))}var r=t.Extension.extend({name:"fileDragging",allowedTypes:["image"],init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(t){t.preventDefault(),t.dataTransfer.dropEffect="copy";var r=t.target.classList?t.target:t.target.parentElement;n(r),"dragover"===t.type&&r.classList.add(e)},handleDrop:function(t){t.preventDefault(),t.stopPropagation(),this.base.selectElement(t.target);var e=this.base.exportSelection();e.start=e.end,this.base.importSelection(e),t.dataTransfer.files&&Array.prototype.slice.call(t.dataTransfer.files).forEach((function(t){this.isAllowedFile(t)&&t.type.match("image")&&this.insertImageFile(t)}),this),n(t.target)},isAllowedFile:function(t){return this.allowedTypes.some((function(e){return!!t.type.match(e)}))},insertImageFile:function(e){if("function"==typeof FileReader){var n=new FileReader;n.readAsDataURL(e),n.addEventListener("load",function(e){var n=this.document.createElement("img");n.src=e.target.result,t.util.insertHTMLCommand(this.document,n.outerHTML)}.bind(this))}}});t.extensions.fileDragging=r}(),a=t.Extension.extend({name:"keyboard-commands",commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1},{command:"underline",key:"U",meta:!0,shift:!1,alt:!1}],init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.keys={},this.commands.forEach((function(t){var e=t.key.charCodeAt(0);this.keys[e]||(this.keys[e]=[]),this.keys[e].push(t)}),this)},handleKeydown:function(e){var n=t.util.getKeyCode(e);if(this.keys[n]){var r=t.util.isMetaCtrlKey(e),i=!!e.shiftKey,o=!!e.altKey;this.keys[n].forEach((function(t){t.meta!==r||t.shift!==i||t.alt!==o&&void 0!==t.alt||(e.preventDefault(),e.stopPropagation(),"function"==typeof t.command?t.command.apply(this):!1!==t.command&&this.execAction(t.command))}),this)}}}),t.extensions.keyboardCommands=a,s=t.extensions.form.extend({name:"fontname",action:"fontName",aria:"change font name",contentDefault:"&#xB1;",contentFA:'<i class="fa fa-font"></i>',fonts:["","Arial","Verdana","Times New Roman"],init:function(){t.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(t){if(t.preventDefault(),t.stopPropagation(),!this.isDisplayed()){var e=this.document.queryCommandValue("fontName")+"";this.showForm(e)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getSelect().value=""},showForm:function(t){var e=this.getSelect();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),e.value=t||"",e.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontName(),this.base.checkSelection()},createForm:function(){var t,e=this.document,n=e.createElement("div"),r=e.createElement("select"),i=e.createElement("a"),o=e.createElement("a");n.className="medium-editor-toolbar-form",n.id="medium-editor-toolbar-form-fontname-"+this.getEditorId(),this.on(n,"click",this.handleFormClick.bind(this));for(var a=0;a<this.fonts.length;a++)(t=e.createElement("option")).innerHTML=this.fonts[a],t.value=this.fonts[a],r.appendChild(t);return r.className="medium-editor-toolbar-select",n.appendChild(r),this.on(r,"change",this.handleFontChange.bind(this)),o.setAttribute("href","#"),o.className="medium-editor-toobar-save",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"&#10003;",n.appendChild(o),this.on(o,"click",this.handleSaveClick.bind(this),!0),i.setAttribute("href","#"),i.className="medium-editor-toobar-close",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"&times;",n.appendChild(i),this.on(i,"click",this.handleCloseClick.bind(this)),n},getSelect:function(){return this.getForm().querySelector("select.medium-editor-toolbar-select")},clearFontName:function(){t.selection.getSelectedElements(this.document).forEach((function(t){"font"===t.nodeName.toLowerCase()&&t.hasAttribute("face")&&t.removeAttribute("face")}))},handleFontChange:function(){var t=this.getSelect().value;""===t?this.clearFontName():this.execAction("fontName",{value:t})},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}}),t.extensions.fontName=s,u=t.extensions.form.extend({name:"fontsize",action:"fontSize",aria:"increase/decrease font size",contentDefault:"&#xB1;",contentFA:'<i class="fa fa-text-height"></i>',init:function(){t.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(t){if(t.preventDefault(),t.stopPropagation(),!this.isDisplayed()){var e=this.document.queryCommandValue("fontSize")+"";this.showForm(e)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getInput().value=""},showForm:function(t){var e=this.getInput();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),e.value=t||"",e.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontSize(),this.base.checkSelection()},createForm:function(){var t=this.document,e=t.createElement("div"),n=t.createElement("input"),r=t.createElement("a"),i=t.createElement("a");return e.className="medium-editor-toolbar-form",e.id="medium-editor-toolbar-form-fontsize-"+this.getEditorId(),this.on(e,"click",this.handleFormClick.bind(this)),n.setAttribute("type","range"),n.setAttribute("min","1"),n.setAttribute("max","7"),n.className="medium-editor-toolbar-input",e.appendChild(n),this.on(n,"change",this.handleSliderChange.bind(this)),i.setAttribute("href","#"),i.className="medium-editor-toobar-save",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"&#10003;",e.appendChild(i),this.on(i,"click",this.handleSaveClick.bind(this),!0),r.setAttribute("href","#"),r.className="medium-editor-toobar-close",r.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"&times;",e.appendChild(r),this.on(r,"click",this.handleCloseClick.bind(this)),e},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},clearFontSize:function(){t.selection.getSelectedElements(this.document).forEach((function(t){"font"===t.nodeName.toLowerCase()&&t.hasAttribute("size")&&t.removeAttribute("size")}))},handleSliderChange:function(){var t=this.getInput().value;"4"===t?this.clearFontSize():this.execAction("fontSize",{value:t})},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}}),t.extensions.fontSize=u,function(){var e="%ME_PASTEBIN%",n=null,r=null,i=function(t){t.stopPropagation()};function o(t,e,n){var r=t.clipboardData||e.clipboardData||n.dataTransfer,i={};if(!r)return i;if(r.getData){var o=r.getData("Text");o&&o.length>0&&(i["text/plain"]=o)}if(r.types)for(var a=0;a<r.types.length;a++){var s=r.types[a];i[s]=r.getData(s)}return i}var a=t.Extension.extend({forcePlainText:!0,cleanPastedHTML:!1,preCleanReplacements:[],cleanReplacements:[],cleanAttrs:["class","style","dir"],cleanTags:["meta"],unwrapTags:[],init:function(){t.Extension.prototype.init.apply(this,arguments),(this.forcePlainText||this.cleanPastedHTML)&&(this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.getEditorElements().forEach((function(t){this.on(t,"paste",this.handlePaste.bind(this))}),this),this.subscribe("addElement",this.handleAddElement.bind(this)))},handleAddElement:function(t,e){this.on(e,"paste",this.handlePaste.bind(this))},destroy:function(){(this.forcePlainText||this.cleanPastedHTML)&&this.removePasteBin()},handlePaste:function(t,e){if(!t.defaultPrevented){var n=o(t,this.window,this.document),r=n["text/html"],i=n["text/plain"];this.window.clipboardData&&void 0===t.clipboardData&&!r&&(r=i),(r||i)&&(t.preventDefault(),this.doPaste(r,i,e))}},doPaste:function(e,n,r){var i,o,a="";if(this.cleanPastedHTML&&e)return this.cleanPaste(e);if(n){if(this.getEditorOption("disableReturn")||r&&r.getAttribute("data-disable-return"))a=t.util.htmlEntities(n);else if((i=n.split(/[\r\n]+/g)).length>1)for(o=0;o<i.length;o+=1)""!==i[o]&&(a+="<p>"+t.util.htmlEntities(i[o])+"</p>");else a=t.util.htmlEntities(i[0]);t.util.insertHTMLCommand(this.document,a)}},handlePasteBinPaste:function(t){if(t.defaultPrevented)this.removePasteBin();else{var e=o(t,this.window,this.document),n=e["text/html"],i=e["text/plain"],a=r;if(!this.cleanPastedHTML||n)return t.preventDefault(),this.removePasteBin(),this.doPaste(n,i,a),void this.trigger("editablePaste",{currentTarget:a,target:a},a);setTimeout(function(){this.cleanPastedHTML&&(n=this.getPasteBinHtml()),this.removePasteBin(),this.doPaste(n,i,a),this.trigger("editablePaste",{currentTarget:a,target:a},a)}.bind(this),0)}},handleKeydown:function(e,n){t.util.isKey(e,t.util.keyCode.V)&&t.util.isMetaCtrlKey(e)&&(e.stopImmediatePropagation(),this.removePasteBin(),this.createPasteBin(n))},createPasteBin:function(o){var a,s=t.selection.getSelectionRange(this.document),u=this.window.pageYOffset;r=o,s&&((a=s.getClientRects()).length?u+=a[0].top:void 0!==s.startContainer.getBoundingClientRect?u+=s.startContainer.getBoundingClientRect().top:u+=s.getBoundingClientRect().top),n=s;var l=this.document.createElement("div");l.id=this.pasteBinId="medium-editor-pastebin-"+ +Date.now(),l.setAttribute("style","border: 1px red solid; position: absolute; top: "+u+"px; width: 10px; height: 10px; overflow: hidden; opacity: 0"),l.setAttribute("contentEditable",!0),l.innerHTML=e,this.document.body.appendChild(l),this.on(l,"focus",i),this.on(l,"focusin",i),this.on(l,"focusout",i),l.focus(),t.selection.selectNode(l,this.document),this.boundHandlePaste||(this.boundHandlePaste=this.handlePasteBinPaste.bind(this)),this.on(l,"paste",this.boundHandlePaste)},removePasteBin:function(){null!==n&&(t.selection.selectRange(this.document,n),n=null),null!==r&&(r=null);var e=this.getPasteBin();e&&e&&(this.off(e,"focus",i),this.off(e,"focusin",i),this.off(e,"focusout",i),this.off(e,"paste",this.boundHandlePaste),e.parentElement.removeChild(e))},getPasteBin:function(){return this.document.getElementById(this.pasteBinId)},getPasteBinHtml:function(){var t=this.getPasteBin();if(!t)return!1;if(t.firstChild&&"mcepastebin"===t.firstChild.id)return!1;var n=t.innerHTML;return!(!n||n===e)&&n},cleanPaste:function(t){var e,n,r,i,o=/<p|<br|<div/.test(t),a=[].concat(this.preCleanReplacements||[],[[new RegExp(/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/<!--StartFragment-->|<!--EndFragment-->/g),""],[new RegExp(/<br>$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(<br[^>]*>)?$/gi),""],[new RegExp(/<span class="Apple-converted-space">\s+<\/span>/g)," "],[new RegExp(/<br class="Apple-interchange-newline">/g),"<br>"],[new RegExp(/<span[^>]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),'<span class="replace-with italic bold">'],[new RegExp(/<span[^>]*font-style:italic[^>]*>/gi),'<span class="replace-with italic">'],[new RegExp(/<span[^>]*font-weight:(bold|700)[^>]*>/gi),'<span class="replace-with bold">'],[new RegExp(/&lt;(\/?)(i|b|a)&gt;/gi),"<$1$2>"],[new RegExp(/&lt;a(?:(?!href).)+href=(?:&quot;|&rdquo;|&ldquo;|"|“|”)(((?!&quot;|&rdquo;|&ldquo;|"|“|”).)*)(?:&quot;|&rdquo;|&ldquo;|"|“|”)(?:(?!&gt;).)*&gt;/gi),'<a href="$1">'],[new RegExp(/<\/p>\n+/gi),"</p>"],[new RegExp(/\n+<p/gi),"<p"],[new RegExp(/<\/?o:[a-z]*>/gi),""],[new RegExp(/<!\[if !supportLists\]>(((?!<!).)*)<!\[endif]\>/gi),"$1"]],this.cleanReplacements||[]);for(e=0;e<a.length;e+=1)t=t.replace(a[e][0],a[e][1]);if(!o)return this.pasteHTML(t);for((r=this.document.createElement("div")).innerHTML="<p>"+t.split("<br><br>").join("</p><p>")+"</p>",n=r.querySelectorAll("a,p,div,br"),e=0;e<n.length;e+=1)switch((i=n[e]).innerHTML=i.innerHTML.replace(/\n/gi," "),i.nodeName.toLowerCase()){case"p":case"div":this.filterCommonBlocks(i);break;case"br":this.filterLineBreak(i)}this.pasteHTML(r.innerHTML)},pasteHTML:function(e,n){n=t.util.defaults({},n,{cleanAttrs:this.cleanAttrs,cleanTags:this.cleanTags,unwrapTags:this.unwrapTags});var r,i,o,a,s=this.document.createDocumentFragment();for(s.appendChild(this.document.createElement("body")),(a=s.querySelector("body")).innerHTML=e,this.cleanupSpans(a),r=a.querySelectorAll("*"),o=0;o<r.length;o+=1)"a"===(i=r[o]).nodeName.toLowerCase()&&this.getEditorOption("targetBlank")&&t.util.setTargetBlank(i),t.util.cleanupAttrs(i,n.cleanAttrs),t.util.cleanupTags(i,n.cleanTags),t.util.unwrapTags(i,n.unwrapTags);t.util.insertHTMLCommand(this.document,a.innerHTML.replace(/&nbsp;/g," "))},isCommonBlock:function(t){return t&&("p"===t.nodeName.toLowerCase()||"div"===t.nodeName.toLowerCase())},filterCommonBlocks:function(t){/^\s*$/.test(t.textContent)&&t.parentNode&&t.parentNode.removeChild(t)},filterLineBreak:function(t){this.isCommonBlock(t.previousElementSibling)?this.removeWithParent(t):!this.isCommonBlock(t.parentNode)||t.parentNode.firstChild!==t&&t.parentNode.lastChild!==t?t.parentNode&&1===t.parentNode.childElementCount&&""===t.parentNode.textContent&&this.removeWithParent(t):this.removeWithParent(t)},removeWithParent:function(t){t&&t.parentNode&&(t.parentNode.parentNode&&1===t.parentNode.childElementCount?t.parentNode.parentNode.removeChild(t.parentNode):t.parentNode.removeChild(t))},cleanupSpans:function(e){var n,r,i,o=e.querySelectorAll(".replace-with"),a=function(t){return t&&"#text"!==t.nodeName&&"false"===t.getAttribute("contenteditable")};for(n=0;n<o.length;n+=1)r=o[n],i=this.document.createElement(r.classList.contains("bold")?"b":"i"),r.classList.contains("bold")&&r.classList.contains("italic")?i.innerHTML="<i>"+r.innerHTML+"</i>":i.innerHTML=r.innerHTML,r.parentNode.replaceChild(i,r);for(o=e.querySelectorAll("span"),n=0;n<o.length;n+=1){if(r=o[n],t.util.traverseUp(r,a))return!1;t.util.unwrap(r,this.document)}}});t.extensions.paste=a}(),l=t.Extension.extend({name:"placeholder",text:"Type your text",hideOnClick:!0,init:function(){t.Extension.prototype.init.apply(this,arguments),this.initPlaceholders(),this.attachEventHandlers()},initPlaceholders:function(){this.getEditorElements().forEach(this.initElement,this)},handleAddElement:function(t,e){this.initElement(e)},initElement:function(t){t.getAttribute("data-placeholder")||t.setAttribute("data-placeholder",this.text),this.updatePlaceholder(t)},destroy:function(){this.getEditorElements().forEach(this.cleanupElement,this)},handleRemoveElement:function(t,e){this.cleanupElement(e)},cleanupElement:function(t){t.getAttribute("data-placeholder")===this.text&&t.removeAttribute("data-placeholder")},showPlaceholder:function(e){e&&(t.util.isFF&&0===e.childNodes.length?(e.classList.add("medium-editor-placeholder-relative"),e.classList.remove("medium-editor-placeholder")):(e.classList.add("medium-editor-placeholder"),e.classList.remove("medium-editor-placeholder-relative")))},hidePlaceholder:function(t){t&&(t.classList.remove("medium-editor-placeholder"),t.classList.remove("medium-editor-placeholder-relative"))},updatePlaceholder:function(t,e){if(t.querySelector("img, blockquote, ul, ol, table")||""!==t.textContent.replace(/^\s+|\s+$/g,""))return this.hidePlaceholder(t);e||this.showPlaceholder(t)},attachEventHandlers:function(){this.hideOnClick&&this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableInput",this.handleInput.bind(this)),this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("addElement",this.handleAddElement.bind(this)),this.subscribe("removeElement",this.handleRemoveElement.bind(this))},handleInput:function(t,e){var n=this.hideOnClick&&e===this.base.getFocusedElement();this.updatePlaceholder(e,n)},handleFocus:function(t,e){this.hidePlaceholder(e)},handleBlur:function(t,e){this.updatePlaceholder(e)}}),t.extensions.placeholder=l,c=t.Extension.extend({name:"toolbar",align:"center",allowMultiParagraphSelection:!0,buttons:["bold","italic","underline","anchor","h2","h3","quote"],diffLeft:0,diffTop:-10,firstButtonClass:"medium-editor-button-first",lastButtonClass:"medium-editor-button-last",standardizeSelectionStart:!1,static:!1,sticky:!1,stickyTopOffset:0,updateOnEmptySelection:!1,relativeContainer:null,init:function(){t.Extension.prototype.init.apply(this,arguments),this.initThrottledMethods(),this.relativeContainer?this.relativeContainer.appendChild(this.getToolbarElement()):this.getEditorOption("elementsContainer").appendChild(this.getToolbarElement())},forEachExtension:function(t,e){return this.base.extensions.forEach((function(n){if(n!==this)return t.apply(e||this,arguments)}),this)},createToolbar:function(){var t=this.document.createElement("div");return t.id="medium-editor-toolbar-"+this.getEditorId(),t.className="medium-editor-toolbar",this.static?t.className+=" static-toolbar":this.relativeContainer?t.className+=" medium-editor-relative-toolbar":t.className+=" medium-editor-stalker-toolbar",t.appendChild(this.createToolbarButtons()),this.forEachExtension((function(e){e.hasForm&&t.appendChild(e.getForm())})),this.attachEventHandlers(),t},createToolbarButtons:function(){var e,n,r,i,o,a,s=this.document.createElement("ul");return s.id="medium-editor-toolbar-actions"+this.getEditorId(),s.className="medium-editor-toolbar-actions",s.style.display="block",this.buttons.forEach((function(r){"string"==typeof r?(o=r,a=null):(o=r.name,a=r),(i=this.base.addBuiltInExtension(o,a))&&"function"==typeof i.getButton&&(n=i.getButton(this.base),e=this.document.createElement("li"),t.util.isElement(n)?e.appendChild(n):e.innerHTML=n,s.appendChild(e))}),this),(r=s.querySelectorAll("button")).length>0&&(r[0].classList.add(this.firstButtonClass),r[r.length-1].classList.add(this.lastButtonClass)),s},destroy:function(){this.toolbar&&(this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar),delete this.toolbar)},getInteractionElements:function(){return this.getToolbarElement()},getToolbarElement:function(){return this.toolbar||(this.toolbar=this.createToolbar()),this.toolbar},getToolbarActionsElement:function(){return this.getToolbarElement().querySelector(".medium-editor-toolbar-actions")},initThrottledMethods:function(){this.throttledPositionToolbar=t.util.throttle(function(){this.base.isActive&&this.positionToolbarIfShown()}.bind(this))},attachEventHandlers:function(){this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableClick",this.handleEditableClick.bind(this)),this.subscribe("editableKeyup",this.handleEditableKeyup.bind(this)),this.on(this.document.documentElement,"mouseup",this.handleDocumentMouseup.bind(this)),this.static&&this.sticky&&this.on(this.window,"scroll",this.handleWindowScroll.bind(this),!0),this.on(this.window,"resize",this.handleWindowResize.bind(this))},handleWindowScroll:function(){this.positionToolbarIfShown()},handleWindowResize:function(){this.throttledPositionToolbar()},handleDocumentMouseup:function(e){if(e&&e.target&&t.util.isDescendant(this.getToolbarElement(),e.target))return!1;this.checkState()},handleEditableClick:function(){setTimeout(function(){this.checkState()}.bind(this),0)},handleEditableKeyup:function(){this.checkState()},handleBlur:function(){clearTimeout(this.hideTimeout),clearTimeout(this.delayShowTimeout),this.hideTimeout=setTimeout(function(){this.hideToolbar()}.bind(this),1)},handleFocus:function(){this.checkState()},isDisplayed:function(){return this.getToolbarElement().classList.contains("medium-editor-toolbar-active")},showToolbar:function(){clearTimeout(this.hideTimeout),this.isDisplayed()||(this.getToolbarElement().classList.add("medium-editor-toolbar-active"),this.trigger("showToolbar",{},this.base.getFocusedElement()))},hideToolbar:function(){this.isDisplayed()&&(this.getToolbarElement().classList.remove("medium-editor-toolbar-active"),this.trigger("hideToolbar",{},this.base.getFocusedElement()))},isToolbarDefaultActionsDisplayed:function(){return"block"===this.getToolbarActionsElement().style.display},hideToolbarDefaultActions:function(){this.isToolbarDefaultActionsDisplayed()&&(this.getToolbarActionsElement().style.display="none")},showToolbarDefaultActions:function(){this.hideExtensionForms(),this.isToolbarDefaultActionsDisplayed()||(this.getToolbarActionsElement().style.display="block"),this.delayShowTimeout=this.base.delay(function(){this.showToolbar()}.bind(this))},hideExtensionForms:function(){this.forEachExtension((function(t){t.hasForm&&t.isDisplayed()&&t.hideForm()}))},multipleBlockElementsSelected:function(){var e=new RegExp("<("+t.util.blockContainerElementNames.join("|")+")[^>]*>","g"),n=t.selection.getSelectionHtml(this.document).replace(/<[^\/>][^>]*><\/[^>]+>/gim,"").match(e);return!!n&&n.length>1},modifySelection:function(){var e=this.window.getSelection().getRangeAt(0);if(this.standardizeSelectionStart&&e.startContainer.nodeValue&&e.startOffset===e.startContainer.nodeValue.length){var n=t.util.findAdjacentTextNodeWithContent(t.selection.getSelectionElement(this.window),e.startContainer,this.document);if(n){for(var r=0;0===n.nodeValue.substr(r,1).trim().length;)r+=1;e=t.selection.select(this.document,n,r,e.endContainer,e.endOffset)}}},checkState:function(){if(!this.base.preventSelectionUpdates){if(!this.base.getFocusedElement()||t.selection.selectionInContentEditableFalse(this.window))return this.hideToolbar();var e=t.selection.getSelectionElement(this.window);return!e||-1===this.getEditorElements().indexOf(e)||e.getAttribute("data-disable-toolbar")?this.hideToolbar():this.updateOnEmptySelection&&this.static?this.showAndUpdateToolbar():!t.selection.selectionContainsContent(this.document)||!1===this.allowMultiParagraphSelection&&this.multipleBlockElementsSelected()?this.hideToolbar():void this.showAndUpdateToolbar()}},showAndUpdateToolbar:function(){this.modifySelection(),this.setToolbarButtonStates(),this.trigger("positionToolbar",{},this.base.getFocusedElement()),this.showToolbarDefaultActions(),this.setToolbarPosition()},setToolbarButtonStates:function(){this.forEachExtension((function(t){"function"==typeof t.isActive&&"function"==typeof t.setInactive&&t.setInactive()})),this.checkActiveButtons()},checkActiveButtons:function(){var e,n=[],r=null,i=t.selection.getSelectionRange(this.document),o=function(t){"function"==typeof t.checkState?t.checkState(e):"function"==typeof t.isActive&&"function"==typeof t.isAlreadyApplied&&"function"==typeof t.setActive&&!t.isActive()&&t.isAlreadyApplied(e)&&t.setActive()};if(i&&(this.forEachExtension((function(t){"function"!=typeof t.queryCommandState||null===(r=t.queryCommandState())?n.push(t):r&&"function"==typeof t.setActive&&t.setActive()})),e=t.selection.getSelectedParentElement(i),this.getEditorElements().some((function(n){return t.util.isDescendant(n,e,!0)}))))for(;e&&(n.forEach(o),!t.util.isMediumEditorElement(e));)e=e.parentNode},positionToolbarIfShown:function(){this.isDisplayed()&&this.setToolbarPosition()},setToolbarPosition:function(){var t=this.base.getFocusedElement(),e=this.window.getSelection();if(!t)return this;!this.static&&e.isCollapsed||(this.showToolbar(),this.relativeContainer||(this.static?this.positionStaticToolbar(t):this.positionToolbar(e)),this.trigger("positionedToolbar",{},this.base.getFocusedElement()))},positionStaticToolbar:function(t){this.getToolbarElement().style.left="0";var e,n=this.document.documentElement&&this.document.documentElement.scrollTop||this.document.body.scrollTop,r=this.window.innerWidth,i=this.getToolbarElement(),o=t.getBoundingClientRect(),a=o.top+n,s=o.left+o.width/2,u=i.offsetHeight,l=i.offsetWidth,c=l/2;switch(this.sticky?n>a+t.offsetHeight-u-this.stickyTopOffset?(i.style.top=a+t.offsetHeight-u+"px",i.classList.remove("medium-editor-sticky-toolbar")):n>a-u-this.stickyTopOffset?(i.classList.add("medium-editor-sticky-toolbar"),i.style.top=this.stickyTopOffset+"px"):(i.classList.remove("medium-editor-sticky-toolbar"),i.style.top=a-u+"px"):i.style.top=a-u+"px",this.align){case"left":e=o.left;break;case"right":e=o.right-l;break;case"center":e=s-c}e<0?e=0:e+l>r&&(e=r-Math.ceil(l)-1),i.style.left=e+"px"},positionToolbar:function(t){this.getToolbarElement().style.left="0",this.getToolbarElement().style.right="initial";var e=t.getRangeAt(0),n=e.getBoundingClientRect();(!n||0===n.height&&0===n.width&&e.startContainer===e.endContainer)&&(n=1===e.startContainer.nodeType&&e.startContainer.querySelector("img")?e.startContainer.querySelector("img").getBoundingClientRect():e.startContainer.getBoundingClientRect());var r,i,o=this.window.innerWidth,a=this.getToolbarElement(),s=a.offsetHeight,u=a.offsetWidth/2,l=this.diffLeft-u,c=this.getEditorOption("elementsContainer"),f=["absolute","fixed"].indexOf(window.getComputedStyle(c).getPropertyValue("position"))>-1,d={},p={};f?(i=c.getBoundingClientRect(),["top","left"].forEach((function(t){p[t]=n[t]-i[t]})),p.width=n.width,p.height=n.height,n=p,o=i.width,d.top=c.scrollTop):d.top=this.window.pageYOffset,r=n.left+n.width/2,d.top+=n.top-s,n.top<50?(a.classList.add("medium-toolbar-arrow-over"),a.classList.remove("medium-toolbar-arrow-under"),d.top+=50+n.height-this.diffTop):(a.classList.add("medium-toolbar-arrow-under"),a.classList.remove("medium-toolbar-arrow-over"),d.top+=this.diffTop),r<u?(d.left=l+u,d.right="initial"):o-r<u?(d.left="auto",d.right=0):(d.left=l+r,d.right="initial"),["top","left","right"].forEach((function(t){a.style[t]=d[t]+(isNaN(d[t])?"":"px")}))}}),t.extensions.toolbar=c,f=t.Extension.extend({init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(t){var e="medium-editor-dragover";t.preventDefault(),t.dataTransfer.dropEffect="copy","dragover"===t.type?t.target.classList.add(e):"dragleave"===t.type&&t.target.classList.remove(e)},handleDrop:function(e){e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&Array.prototype.slice.call(e.dataTransfer.files,0).some(function(e){var n,r;e.type.match("image")&&((n=new FileReader).readAsDataURL(e),r="medium-img-"+ +new Date,t.util.insertHTMLCommand(this.document,'<img class="medium-editor-image-loading" id="'+r+'" />'),n.onload=function(){var t=this.document.getElementById(r);t&&(t.removeAttribute("id"),t.removeAttribute("class"),t.src=n.result)}.bind(this))}.bind(this)),e.target.classList.remove("medium-editor-dragover")}}),t.extensions.imageDragging=f,function(){function e(e){var n=t.selection.getSelectionStart(this.options.ownerDocument),r=n.textContent,i=t.selection.getCaretOffsets(n);(void 0===r[i.left-1]||""===r[i.left-1].trim()||void 0!==r[i.left]&&""===r[i.left].trim())&&e.preventDefault()}function n(e,n){if(this.options.disableReturn||n.getAttribute("data-disable-return"))e.preventDefault();else if(this.options.disableDoubleReturn||n.getAttribute("data-disable-double-return")){var r=t.selection.getSelectionStart(this.options.ownerDocument);(r&&""===r.textContent.trim()&&"li"!==r.nodeName.toLowerCase()||r.previousElementSibling&&"br"!==r.previousElementSibling.nodeName.toLowerCase()&&""===r.previousElementSibling.textContent.trim())&&e.preventDefault()}}function r(e){var n=t.selection.getSelectionStart(this.options.ownerDocument);"pre"===(n&&n.nodeName.toLowerCase())&&(e.preventDefault(),t.util.insertHTMLCommand(this.options.ownerDocument," ")),t.util.isListItem(n)&&(e.preventDefault(),e.shiftKey?this.options.ownerDocument.execCommand("outdent",!1,null):this.options.ownerDocument.execCommand("indent",!1,null))}function i(e){var n,r=t.selection.getSelectionStart(this.options.ownerDocument),i=r.nodeName.toLowerCase(),o=/^(\s+|<br\/?>)?$/i,a=/h\d/i;t.util.isKey(e,[t.util.keyCode.BACKSPACE,t.util.keyCode.ENTER])&&r.previousElementSibling&&a.test(i)&&0===t.selection.getCaretOffsets(r).left?t.util.isKey(e,t.util.keyCode.BACKSPACE)&&o.test(r.previousElementSibling.innerHTML)?(r.previousElementSibling.parentNode.removeChild(r.previousElementSibling),e.preventDefault()):!this.options.disableDoubleReturn&&t.util.isKey(e,t.util.keyCode.ENTER)&&((n=this.options.ownerDocument.createElement("p")).innerHTML="<br>",r.previousElementSibling.parentNode.insertBefore(n,r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.DELETE)&&r.nextElementSibling&&r.previousElementSibling&&!a.test(i)&&o.test(r.innerHTML)&&a.test(r.nextElementSibling.nodeName.toLowerCase())?(t.selection.moveCursor(this.options.ownerDocument,r.nextElementSibling),r.previousElementSibling.parentNode.removeChild(r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&"li"===i&&o.test(r.innerHTML)&&!r.previousElementSibling&&!r.parentElement.previousElementSibling&&r.nextElementSibling&&"li"===r.nextElementSibling.nodeName.toLowerCase()?((n=this.options.ownerDocument.createElement("p")).innerHTML="<br>",r.parentElement.parentElement.insertBefore(n,r.parentElement),t.selection.moveCursor(this.options.ownerDocument,n),r.parentElement.removeChild(r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&!1!==t.util.getClosestTag(r,"blockquote")&&0===t.selection.getCaretOffsets(r).left?(e.preventDefault(),t.util.execFormatBlock(this.options.ownerDocument,"p")):t.util.isKey(e,t.util.keyCode.ENTER)&&!1!==t.util.getClosestTag(r,"blockquote")&&0===t.selection.getCaretOffsets(r).right?((n=this.options.ownerDocument.createElement("p")).innerHTML="<br>",r.parentElement.insertBefore(n,r.nextSibling),t.selection.moveCursor(this.options.ownerDocument,n),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&t.util.isMediumEditorElement(r.parentElement)&&!r.previousElementSibling&&r.nextElementSibling&&o.test(r.innerHTML)&&(e.preventDefault(),t.selection.moveCursor(this.options.ownerDocument,r.nextSibling),r.parentElement.removeChild(r))}function o(e){var n=t.selection.getSelectionStart(this.options.ownerDocument);n&&(t.util.isMediumEditorElement(n)&&0===n.children.length&&!t.util.isBlockContainer(n)&&this.options.ownerDocument.execCommand("formatBlock",!1,"p"),!t.util.isKey(e,t.util.keyCode.ENTER)||t.util.isListItem(n)||t.util.isBlockContainer(n)||("a"===n.nodeName.toLowerCase()?this.options.ownerDocument.execCommand("unlink",!1,null):e.shiftKey||e.ctrlKey||this.options.ownerDocument.execCommand("formatBlock",!1,"p")))}function a(t,e){var n=e.parentNode.querySelector('textarea[medium-editor-textarea-id="'+e.getAttribute("medium-editor-textarea-id")+'"]');n&&(n.value=e.innerHTML.trim())}function s(t){t._mediumEditors||(t._mediumEditors=[null]),this.id||(this.id=t._mediumEditors.length),t._mediumEditors[this.id]=this}function u(t){t._mediumEditors&&t._mediumEditors[this.id]&&(t._mediumEditors[this.id]=null)}function l(e,n,r){var i=[];if(e||(e=[]),"string"==typeof e&&(e=n.querySelectorAll(e)),t.util.isElement(e)&&(e=[e]),r)for(var o=0;o<e.length;o++){var a=e[o];!t.util.isElement(a)||a.getAttribute("data-medium-editor-element")||a.getAttribute("medium-editor-textarea-id")||i.push(a)}else i=Array.prototype.slice.apply(e);return i}function c(t){var e=t.parentNode.querySelector('textarea[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]');e&&(e.classList.remove("medium-editor-hidden"),e.removeAttribute("medium-editor-textarea-id")),t.parentNode&&t.parentNode.removeChild(t)}function f(t,e,n){return"function"==typeof(t=function(t,e){return Object.keys(e).forEach((function(n){void 0===t[n]&&(t[n]=e[n])})),t}(t,{window:n.options.contentWindow,document:n.options.ownerDocument,base:n})).init&&t.init(),t.name||(t.name=e),t}function d(){return!this.elements.every((function(t){return!!t.getAttribute("data-disable-toolbar")}))&&!1!==this.options.toolbar}function p(){return!!d.call(this)&&!1!==this.options.anchorPreview}function h(){return!1!==this.options.placeholder}function v(){return!1!==this.options.autoLink}function m(){return!1!==this.options.imageDragging}function g(){return!1!==this.options.keyboardCommands}function y(){return!this.options.extensions.imageDragging}function b(t){for(var e=this.options.ownerDocument.createElement("div"),n=Date.now(),r="medium-editor-"+n,i=t.attributes;this.options.ownerDocument.getElementById(r);)n++,r="medium-editor-"+n;e.className=t.className,e.id=r,e.innerHTML=t.value,t.setAttribute("medium-editor-textarea-id",r);for(var o=0,a=i.length;o<a;o++)e.hasAttribute(i[o].nodeName)||e.setAttribute(i[o].nodeName,i[o].value);return t.form&&this.on(t.form,"reset",function(t){t.defaultPrevented||this.resetContent(this.options.ownerDocument.getElementById(r))}.bind(this)),t.classList.add("medium-editor-hidden"),t.parentNode.insertBefore(e,t),e}function w(e,r){if(!e.getAttribute("data-medium-editor-element")){"textarea"===e.nodeName.toLowerCase()&&(e=b.call(this,e),this.instanceHandleEditableInput||(this.instanceHandleEditableInput=a.bind(this),this.subscribe("editableInput",this.instanceHandleEditableInput))),this.options.disableEditing||e.getAttribute("data-disable-editing")||(e.setAttribute("contentEditable",!0),e.setAttribute("spellcheck",this.options.spellcheck)),this.instanceHandleEditableKeydownEnter||(e.getAttribute("data-disable-return")||e.getAttribute("data-disable-double-return"))&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter)),this.options.disableReturn||e.getAttribute("data-disable-return")||this.on(e,"keyup",o.bind(this));var i=t.util.guid();e.setAttribute("data-medium-editor-element",!0),e.classList.add("medium-editor-element"),e.setAttribute("role","textbox"),e.setAttribute("aria-multiline",!0),e.setAttribute("data-medium-editor-editor-index",r),e.setAttribute("medium-editor-index",i),S[i]=e.innerHTML,this.events.attachAllEventsToElement(e)}return e}function _(){this.subscribe("editableKeydownTab",r.bind(this)),this.subscribe("editableKeydownDelete",i.bind(this)),this.subscribe("editableKeydownEnter",i.bind(this)),this.options.disableExtraSpaces&&this.subscribe("editableKeydownSpace",e.bind(this)),this.instanceHandleEditableKeydownEnter||(this.options.disableReturn||this.options.disableDoubleReturn)&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter))}function k(){if(this.extensions=[],Object.keys(this.options.extensions).forEach((function(t){"toolbar"!==t&&this.options.extensions[t]&&this.extensions.push(f(this.options.extensions[t],t,this))}),this),y.call(this)){var e=this.options.fileDragging;e||(e={},m.call(this)||(e.allowedTypes=[])),this.addBuiltInExtension("fileDragging",e)}var n={paste:!0,"anchor-preview":p.call(this),autoLink:v.call(this),keyboardCommands:g.call(this),placeholder:h.call(this)};Object.keys(n).forEach((function(t){n[t]&&this.addBuiltInExtension(t)}),this);var r=this.options.extensions.toolbar;if(!r&&d.call(this)){var i=t.util.extend({},this.options.toolbar,{allowMultiParagraphSelection:this.options.allowMultiParagraphSelection});r=new t.extensions.toolbar(i)}r&&this.extensions.push(f(r,"toolbar",this))}function x(e,n){return n&&[["allowMultiParagraphSelection","toolbar.allowMultiParagraphSelection"]].forEach((function(e){n.hasOwnProperty(e[0])&&void 0!==n[e[0]]&&t.util.deprecated(e[0],e[1],"v6.0.0")})),t.util.defaults({},n,e)}function E(e,n){var r,i;if(r=/^append-(.+)$/gi.exec(e))return t.util.execFormatBlock(this.options.ownerDocument,r[1]);if("fontSize"===e)return n.size&&t.util.deprecated(".size option for fontSize command",".value","6.0.0"),i=n.value||n.size,this.options.ownerDocument.execCommand("fontSize",!1,i);if("fontName"===e)return n.name&&t.util.deprecated(".name option for fontName command",".value","6.0.0"),i=n.value||n.name,this.options.ownerDocument.execCommand("fontName",!1,i);if("createLink"===e)return this.createLink(n);if("image"===e){var o=this.options.contentWindow.getSelection().toString().trim();return this.options.ownerDocument.execCommand("insertImage",!1,o)}if("html"===e){var a=this.options.contentWindow.getSelection().toString().trim();return t.util.insertHTMLCommand(this.options.ownerDocument,a)}if(/justify([A-Za-z]*)$/g.exec(e)){var s=this.options.ownerDocument.execCommand(e,!1,null),u=t.selection.getSelectedParentElement(t.selection.getSelectionRange(this.options.ownerDocument));return u&&C.call(this,t.util.getTopBlockContainer(u)),s}return i=n&&n.value,this.options.ownerDocument.execCommand(e,!1,i)}function C(e){if(e){var n,r=Array.prototype.slice.call(e.childNodes).filter((function(t){var e="div"===t.nodeName.toLowerCase();return e&&!n&&(n=t.style.textAlign),e}));r.length&&(this.saveSelection(),r.forEach((function(e){if(e.style.textAlign===n){var r=e.lastChild;if(r){t.util.unwrap(e,this.options.ownerDocument);var i=this.options.ownerDocument.createElement("BR");r.parentNode.insertBefore(i,r.nextSibling)}}}),this),e.style.textAlign=n,this.restoreSelection())}}var S={};t.prototype={init:function(t,e){return this.options=x.call(this,this.defaults,e),this.origElements=t,this.options.elementsContainer||(this.options.elementsContainer=this.options.ownerDocument.body),this.setup()},setup:function(){this.isActive||(s.call(this,this.options.contentWindow),this.events=new t.Events(this),this.elements=[],this.addElements(this.origElements),0!==this.elements.length&&(this.isActive=!0,k.call(this),_.call(this)))},destroy:function(){this.isActive&&(this.isActive=!1,this.extensions.forEach((function(t){"function"==typeof t.destroy&&t.destroy()}),this),this.events.destroy(),this.elements.forEach((function(t){this.options.spellcheck&&(t.innerHTML=t.innerHTML),t.removeAttribute("contentEditable"),t.removeAttribute("spellcheck"),t.removeAttribute("data-medium-editor-element"),t.classList.remove("medium-editor-element"),t.removeAttribute("role"),t.removeAttribute("aria-multiline"),t.removeAttribute("medium-editor-index"),t.removeAttribute("data-medium-editor-editor-index"),t.getAttribute("medium-editor-textarea-id")&&c(t)}),this),this.elements=[],this.instanceHandleEditableKeydownEnter=null,this.instanceHandleEditableInput=null,u.call(this,this.options.contentWindow))},on:function(t,e,n,r){return this.events.attachDOMEvent(t,e,n,r),this},off:function(t,e,n,r){return this.events.detachDOMEvent(t,e,n,r),this},subscribe:function(t,e){return this.events.attachCustomEvent(t,e),this},unsubscribe:function(t,e){return this.events.detachCustomEvent(t,e),this},trigger:function(t,e,n){return this.events.triggerCustomEvent(t,e,n),this},delay:function(t){var e=this;return setTimeout((function(){e.isActive&&t()}),this.options.delay)},serialize:function(){var t,e={},n=this.elements.length;for(t=0;t<n;t+=1)e[""!==this.elements[t].id?this.elements[t].id:"element-"+t]={value:this.elements[t].innerHTML.trim()};return e},getExtensionByName:function(t){var e;return this.extensions&&this.extensions.length&&this.extensions.some((function(n){return n.name===t&&(e=n,!0)})),e},addBuiltInExtension:function(e,n){var r,i=this.getExtensionByName(e);if(i)return i;switch(e){case"anchor":r=t.util.extend({},this.options.anchor,n),i=new t.extensions.anchor(r);break;case"anchor-preview":i=new t.extensions.anchorPreview(this.options.anchorPreview);break;case"autoLink":i=new t.extensions.autoLink;break;case"fileDragging":i=new t.extensions.fileDragging(n);break;case"fontname":i=new t.extensions.fontName(this.options.fontName);break;case"fontsize":i=new t.extensions.fontSize(n);break;case"keyboardCommands":i=new t.extensions.keyboardCommands(this.options.keyboardCommands);break;case"paste":i=new t.extensions.paste(this.options.paste);break;case"placeholder":i=new t.extensions.placeholder(this.options.placeholder);break;default:t.extensions.button.isBuiltInButton(e)&&(n?(r=t.util.defaults({},n,t.extensions.button.prototype.defaults[e]),i=new t.extensions.button(r)):i=new t.extensions.button(e))}return i&&this.extensions.push(f(i,e,this)),i},stopSelectionUpdates:function(){this.preventSelectionUpdates=!0},startSelectionUpdates:function(){this.preventSelectionUpdates=!1},checkSelection:function(){var t=this.getExtensionByName("toolbar");return t&&t.checkState(),this},queryCommandState:function(t){var e,n=null;(e=/^full-(.+)$/gi.exec(t))&&(t=e[1]);try{n=this.options.ownerDocument.queryCommandState(t)}catch(t){n=null}return n},execAction:function(e,n){var r,i;return(r=/^full-(.+)$/gi.exec(e))?(this.saveSelection(),this.selectAllContents(),i=E.call(this,r[1],n),this.restoreSelection()):i=E.call(this,e,n),"insertunorderedlist"!==e&&"insertorderedlist"!==e||t.util.cleanListDOM(this.options.ownerDocument,this.getSelectedParentElement()),this.checkSelection(),i},getSelectedParentElement:function(e){return void 0===e&&(e=this.options.contentWindow.getSelection().getRangeAt(0)),t.selection.getSelectedParentElement(e)},selectAllContents:function(){var e=t.selection.getSelectionElement(this.options.contentWindow);if(e){for(;1===e.children.length;)e=e.children[0];this.selectElement(e)}},selectElement:function(e){t.selection.selectNode(e,this.options.ownerDocument);var n=t.selection.getSelectionElement(this.options.contentWindow);n&&this.events.focusElement(n)},getFocusedElement:function(){var t;return this.elements.some((function(e){return!t&&e.getAttribute("data-medium-focused")&&(t=e),!!t}),this),t},exportSelection:function(){var e=t.selection.getSelectionElement(this.options.contentWindow),n=this.elements.indexOf(e),r=null;return n>=0&&(r=t.selection.exportSelection(e,this.options.ownerDocument)),null!==r&&0!==n&&(r.editableElementIndex=n),r},saveSelection:function(){this.selectionState=this.exportSelection()},importSelection:function(e,n){if(e){var r=this.elements[e.editableElementIndex||0];t.selection.importSelection(e,r,this.options.ownerDocument,n)}},restoreSelection:function(){this.importSelection(this.selectionState)},createLink:function(e){var n,r=t.selection.getSelectionElement(this.options.contentWindow),i={};if(-1!==this.elements.indexOf(r)){try{if(this.events.disableCustomEvent("editableInput"),e.url&&t.util.deprecated(".url option for createLink",".value","6.0.0"),(n=e.url||e.value)&&n.trim().length>0){var o=this.options.contentWindow.getSelection();if(o){var a,s,u,l,c=o.getRangeAt(0),f=c.commonAncestorContainer;if(3===c.endContainer.nodeType&&3!==c.startContainer.nodeType&&0===c.startOffset&&c.startContainer.firstChild===c.endContainer&&(f=c.endContainer),s=t.util.getClosestBlockContainer(c.startContainer),u=t.util.getClosestBlockContainer(c.endContainer),3!==f.nodeType&&0!==f.textContent.length&&s===u){var d=s||r,p=this.options.ownerDocument.createDocumentFragment();this.execAction("unlink"),a=this.exportSelection(),p.appendChild(d.cloneNode(!0)),r===d?t.selection.select(this.options.ownerDocument,d.firstChild,0,d.lastChild,3===d.lastChild.nodeType?d.lastChild.nodeValue.length:d.lastChild.childNodes.length):t.selection.select(this.options.ownerDocument,d,0,d,d.childNodes.length);var h=this.exportSelection();0===(l=t.util.findOrCreateMatchingTextNodes(this.options.ownerDocument,p,{start:a.start-h.start,end:a.end-h.start,editableElementIndex:a.editableElementIndex})).length&&((p=this.options.ownerDocument.createDocumentFragment()).appendChild(f.cloneNode(!0)),l=[p.firstChild.firstChild,p.firstChild.lastChild]),t.util.createLink(this.options.ownerDocument,l,n.trim());var v=(p.firstChild.innerHTML.match(/^\s+/)||[""])[0].length;t.util.insertHTMLCommand(this.options.ownerDocument,p.firstChild.innerHTML.replace(/^\s+/,"")),a.start-=v,a.end-=v,this.importSelection(a)}else this.options.ownerDocument.execCommand("createLink",!1,n);this.options.targetBlank||"_blank"===e.target?t.util.setTargetBlank(t.selection.getSelectionStart(this.options.ownerDocument),n):t.util.removeTargetBlank(t.selection.getSelectionStart(this.options.ownerDocument),n),e.buttonClass&&t.util.addClassToAnchors(t.selection.getSelectionStart(this.options.ownerDocument),e.buttonClass)}}if(this.options.targetBlank||"_blank"===e.target||e.buttonClass){(i=this.options.ownerDocument.createEvent("HTMLEvents")).initEvent("input",!0,!0,this.options.contentWindow);for(var m=0,g=this.elements.length;m<g;m+=1)this.elements[m].dispatchEvent(i)}}finally{this.events.enableCustomEvent("editableInput")}this.events.triggerCustomEvent("editableInput",i,r)}},cleanPaste:function(t){this.getExtensionByName("paste").cleanPaste(t)},pasteHTML:function(t,e){this.getExtensionByName("paste").pasteHTML(t,e)},setContent:function(t,e){if(e=e||0,this.elements[e]){var n=this.elements[e];n.innerHTML=t,this.checkContentChanged(n)}},getContent:function(t){return t=t||0,this.elements[t]?this.elements[t].innerHTML.trim():null},checkContentChanged:function(e){e=e||t.selection.getSelectionElement(this.options.contentWindow),this.events.updateInput(e,{target:e,currentTarget:e})},resetContent:function(t){if(t){var e=this.elements.indexOf(t);-1!==e&&this.setContent(S[t.getAttribute("medium-editor-index")],e)}else this.elements.forEach((function(t,e){this.setContent(S[t.getAttribute("medium-editor-index")],e)}),this)},addElements:function(t){var e=l(t,this.options.ownerDocument,!0);if(0===e.length)return!1;e.forEach((function(t){t=w.call(this,t,this.id),this.elements.push(t),this.trigger("addElement",{target:t,currentTarget:t},t)}),this)},removeElements:function(t){var e=l(t,this.options.ownerDocument).map((function(t){return t.getAttribute("medium-editor-textarea-id")&&t.parentNode?t.parentNode.querySelector('div[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]'):t}));this.elements=this.elements.filter((function(t){return-1===e.indexOf(t)||(this.events.cleanupElement(t),t.getAttribute("medium-editor-textarea-id")&&c(t),this.trigger("removeElement",{target:t,currentTarget:t},t),!1)}),this)}},t.getEditorFromElement=function(t){var e=t.getAttribute("data-medium-editor-editor-index"),n=t&&t.ownerDocument&&(t.ownerDocument.defaultView||t.ownerDocument.parentWindow);return n&&n._mediumEditors&&n._mediumEditors[e]?n._mediumEditors[e]:null}}(),t.prototype.defaults={activeButtonClass:"medium-editor-button-active",buttonLabels:!1,delay:0,disableReturn:!1,disableDoubleReturn:!1,disableExtraSpaces:!1,disableEditing:!1,autoLink:!1,elementsContainer:!1,contentWindow:window,ownerDocument:document,targetBlank:!1,extensions:{},spellcheck:!0},t.parseVersionString=function(t){var e=t.split("-"),n=e[0].split("."),r=e.length>1?e[1]:"";return{major:parseInt(n[0],10),minor:parseInt(n[1],10),revision:parseInt(n[2],10),preRelease:r,toString:function(){return[n[0],n[1],n[2]].join(".")+(r?"-"+r:"")}}},t.version=t.parseVersionString.call(this,"5.23.3"),t}())},21664:t=>{"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))n.call(o,l)&&(s[l]=o[l]);if(e){a=e(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},52901:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(88788),i=n(78484),o=function(){function t(t,e){"string"==typeof t&&(t=new i.InsertDataQuill(r.DataType.Text,t+"")),this.insert=t,this.attributes=e||{}}return t.createNewLineOp=function(){return new t(r.NewLine)},t.prototype.isContainerBlock=function(){var t=this.attributes;return!!(t.blockquote||t.list||t["code-block"]||t.header||t.align||t.direction||t.indent)},t.prototype.isBlockquote=function(){return!!this.attributes.blockquote},t.prototype.isHeader=function(){return!!this.attributes.header},t.prototype.isSameHeaderAs=function(t){return t.attributes.header===this.attributes.header&&this.isHeader()},t.prototype.hasSameAdiAs=function(t){return this.attributes.align===t.attributes.align&&this.attributes.direction===t.attributes.direction&&this.attributes.indent===t.attributes.indent},t.prototype.hasSameIndentationAs=function(t){return this.attributes.indent===t.attributes.indent},t.prototype.hasHigherIndentThan=function(t){return(Number(this.attributes.indent)||0)>(Number(t.attributes.indent)||0)},t.prototype.isInline=function(){return!(this.isContainerBlock()||this.isVideo()||this.isCustomBlock())},t.prototype.isCodeBlock=function(){return!!this.attributes["code-block"]},t.prototype.isJustNewline=function(){return this.insert.value===r.NewLine},t.prototype.isList=function(){return this.isOrderedList()||this.isBulletList()||this.isCheckedList()||this.isUncheckedList()},t.prototype.isOrderedList=function(){return this.attributes.list===r.ListType.Ordered},t.prototype.isBulletList=function(){return this.attributes.list===r.ListType.Bullet},t.prototype.isCheckedList=function(){return this.attributes.list===r.ListType.Checked},t.prototype.isUncheckedList=function(){return this.attributes.list===r.ListType.Unchecked},t.prototype.isACheckList=function(){return this.attributes.list==r.ListType.Unchecked||this.attributes.list===r.ListType.Checked},t.prototype.isSameListAs=function(t){return!!t.attributes.list&&(this.attributes.list===t.attributes.list||t.isACheckList()&&this.isACheckList())},t.prototype.isText=function(){return this.insert.type===r.DataType.Text},t.prototype.isImage=function(){return this.insert.type===r.DataType.Image},t.prototype.isFormula=function(){return this.insert.type===r.DataType.Formula},t.prototype.isVideo=function(){return this.insert.type===r.DataType.Video},t.prototype.isLink=function(){return this.isText()&&!!this.attributes.link},t.prototype.isCustom=function(){return this.insert instanceof i.InsertDataCustom},t.prototype.isCustomBlock=function(){return this.isCustom()&&!!this.attributes.renderAsBlock},t.prototype.isMentions=function(){return this.isText()&&!!this.attributes.mentions},t}();e.DeltaInsertOp=o},78484:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){this.type=t,this.value=e};e.InsertDataQuill=n;var r=function(t,e){this.type=t,this.value=e};e.InsertDataCustom=r},16275:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(88788),i=n(93806),o=n(37792),a=function(){function t(){}return t.denormalize=function(t){if(!t||"object"!=typeof t)return[];if("object"==typeof t.insert||t.insert===r.NewLine)return[t];var e=i.tokenizeWithNewLines(t.insert+"");if(1===e.length)return[t];var n=o.assign({},t,{insert:r.NewLine});return e.map((function(e){return e===r.NewLine?n:o.assign({},t,{insert:e})}))},t}();e.InsertOpDenormalizer=a},62680:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(52901),i=n(88788),o=n(78484),a=n(36965),s=n(16275),u=function(){function t(){}return t.convert=function(e,n){if(!Array.isArray(e))return[];for(var i,o,u=[],l=0,c=[].concat.apply([],e.map(s.InsertOpDenormalizer.denormalize));l<c.length;l++){var f=c[l];f.insert&&((i=t.convertInsertVal(f.insert,n))&&(o=a.OpAttributeSanitizer.sanitize(f.attributes,n),u.push(new r.DeltaInsertOp(i,o))))}return u},t.convertInsertVal=function(t,e){if("string"==typeof t)return new o.InsertDataQuill(i.DataType.Text,t);if(!t||"object"!=typeof t)return null;var n=Object.keys(t);return n.length?i.DataType.Image in t?new o.InsertDataQuill(i.DataType.Image,a.OpAttributeSanitizer.sanitizeLinkUsingOptions(t[i.DataType.Image]+"",e)):i.DataType.Video in t?new o.InsertDataQuill(i.DataType.Video,a.OpAttributeSanitizer.sanitizeLinkUsingOptions(t[i.DataType.Video]+"",e)):i.DataType.Formula in t?new o.InsertDataQuill(i.DataType.Formula,t[i.DataType.Formula]):new o.InsertDataCustom(n[0],t[n[0]]):null},t}();e.InsertOpsConverter=u},36965:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(88788),i=n(50288),o=n(69142),a=n(29690),s=n(67210),u=function(){function t(){}return t.sanitize=function(e,n){var o={};if(!e||"object"!=typeof e)return o;var a=["bold","italic","underline","strike","code","blockquote","code-block","renderAsBlock"],u=["background","color"],l=e.font,c=e.size,f=e.link,d=e.script,p=e.list,h=e.header,v=e.align,m=e.direction,g=e.indent,y=e.mentions,b=e.mention,w=e.width,_=e.target,k=e.rel,x=a.concat(u,["font","size","link","script","list","header","align","direction","indent","mentions","mention","width","target","rel"]);if(a.forEach((function(t){var n=e[t];n&&(o[t]=!!n)})),u.forEach((function(n){var r=e[n];r&&(t.IsValidHexColor(r+"")||t.IsValidColorLiteral(r+"")||t.IsValidRGBColor(r+""))&&(o[n]=r)})),l&&t.IsValidFontName(l+"")&&(o.font=l),c&&t.IsValidSize(c+"")&&(o.size=c),w&&t.IsValidWidth(w+"")&&(o.width=w),f&&(o.link=t.sanitizeLinkUsingOptions(f+"",n)),_&&t.isValidTarget(_)&&(o.target=_),k&&t.IsValidRel(k)&&(o.rel=k),d!==r.ScriptType.Sub&&r.ScriptType.Super!==d||(o.script=d),p!==r.ListType.Bullet&&p!==r.ListType.Ordered&&p!==r.ListType.Checked&&p!==r.ListType.Unchecked||(o.list=p),Number(h)&&(o.header=Math.min(Number(h),6)),s.find([r.AlignType.Center,r.AlignType.Right,r.AlignType.Justify,r.AlignType.Left],(function(t){return t===v}))&&(o.align=v),m===r.DirectionType.Rtl&&(o.direction=m),g&&Number(g)&&(o.indent=Math.min(Number(g),30)),y&&b){var E=i.MentionSanitizer.sanitize(b,n);Object.keys(E).length>0&&(o.mentions=!!y,o.mention=b)}return Object.keys(e).reduce((function(t,n){return-1===x.indexOf(n)&&(t[n]=e[n]),t}),o)},t.sanitizeLinkUsingOptions=function(t,e){var n=function(){};e&&"function"==typeof e.urlSanitizer&&(n=e.urlSanitizer);var r=n(t);return"string"==typeof r?r:a.encodeLink(o.sanitize(t))},t.IsValidHexColor=function(t){return!!t.match(/^#([0-9A-F]{6}|[0-9A-F]{3})$/i)},t.IsValidColorLiteral=function(t){return!!t.match(/^[a-z]{1,50}$/i)},t.IsValidRGBColor=function(t){return!!t.match(/^rgb\(((0|25[0-5]|2[0-4]\d|1\d\d|0?\d?\d),\s*){2}(0|25[0-5]|2[0-4]\d|1\d\d|0?\d?\d)\)$/i)},t.IsValidFontName=function(t){return!!t.match(/^[a-z\s0-9\- ]{1,30}$/i)},t.IsValidSize=function(t){return!!t.match(/^[a-z0-9\-]{1,20}$/i)},t.IsValidWidth=function(t){return!!t.match(/^[0-9]*(px|em|%)?$/)},t.isValidTarget=function(t){return!!t.match(/^[_a-zA-Z0-9\-]{1,50}$/)},t.IsValidRel=function(t){return!!t.match(/^[a-zA-Z\s\-]{1,250}$/i)},t}();e.OpAttributeSanitizer=u},72516:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29690),i=n(88788),o=n(37792),a=n(67210),s=n(36965),u={serif:"font-family: Georgia, Times New Roman, serif",monospace:"font-family: Monaco, Courier New, monospace"};e.DEFAULT_INLINE_STYLES={font:function(t){return u[t]||"font-family:"+t},size:{small:"font-size: 0.75em",large:"font-size: 1.5em",huge:"font-size: 2.5em"},indent:function(t,e){var n=3*parseInt(t,10);return"padding-"+("rtl"===e.attributes.direction?"right":"left")+":"+n+"em"},direction:function(t,e){return"rtl"===t?"direction:rtl"+(e.attributes.align?"":"; text-align:inherit"):void 0}};var l=function(){function t(t,e){this.op=t,this.options=o.assign({},{classPrefix:"ql",inlineStyles:void 0,encodeHtml:!0,listItemTag:"li",paragraphTag:"p"},e)}return t.prototype.prefixClass=function(t){return this.options.classPrefix?this.options.classPrefix+"-"+t:t+""},t.prototype.getHtml=function(){var t=this.getHtmlParts();return t.openingTag+t.content+t.closingTag},t.prototype.getHtmlParts=function(){var t=this;if(this.op.isJustNewline()&&!this.op.isContainerBlock())return{openingTag:"",closingTag:"",content:i.NewLine};var e=this.getTags(),n=this.getTagAttributes();!e.length&&n.length&&e.push("span");for(var o=[],a=[],s=function(e){return"img"===e&&!!t.op.attributes.link},u=0,l=e;u<l.length;u++){var c=l[u];s(c)&&o.push(r.makeStartTag("a",this.getLinkAttrs())),o.push(r.makeStartTag(c,n)),a.push("img"===c?"":r.makeEndTag(c)),s(c)&&a.push(r.makeEndTag("a")),n=[]}return a.reverse(),{openingTag:o.join(""),content:this.getContent(),closingTag:a.join("")}},t.prototype.getContent=function(){if(this.op.isContainerBlock())return"";if(this.op.isMentions())return this.op.insert.value;var t=this.op.isFormula()||this.op.isText()?this.op.insert.value:"";return this.options.encodeHtml&&r.encodeHtml(t)||t},t.prototype.getCssClasses=function(){var t=this.op.attributes;if(this.options.inlineStyles)return[];var e=["indent","align","direction","font","size"];return this.options.allowBackgroundClasses&&e.push("background"),e.filter((function(e){return!!t[e]})).filter((function(e){return"background"!==e||s.OpAttributeSanitizer.IsValidColorLiteral(t[e])})).map((function(e){return e+"-"+t[e]})).concat(this.op.isFormula()?"formula":[]).concat(this.op.isVideo()?"video":[]).concat(this.op.isImage()?"image":[]).map(this.prefixClass.bind(this))},t.prototype.getCssStyles=function(){var t=this,n=this.op.attributes,r=[["color"]];return!this.options.inlineStyles&&this.options.allowBackgroundClasses||r.push(["background","background-color"]),this.options.inlineStyles&&(r=r.concat([["indent"],["align","text-align"],["direction"],["font","font-family"],["size"]])),r.filter((function(t){return!!n[t[0]]})).map((function(r){var i=r[0],o=n[i],s=t.options.inlineStyles&&t.options.inlineStyles[i]||e.DEFAULT_INLINE_STYLES[i];return"object"==typeof s?s[o]:"function"==typeof s?s(o,t.op):a.preferSecond(r)+":"+o})).filter((function(t){return void 0!==t}))},t.prototype.getTagAttributes=function(){if(this.op.attributes.code&&!this.op.isLink())return[];var t=this.makeAttr.bind(this),e=this.getCssClasses(),n=e.length?[t("class",e.join(" "))]:[];if(this.op.isImage())return this.op.attributes.width&&(n=n.concat(t("width",this.op.attributes.width))),n.concat(t("src",this.op.insert.value));if(this.op.isACheckList())return n.concat(t("data-checked",this.op.isCheckedList()?"true":"false"));if(this.op.isFormula())return n;if(this.op.isVideo())return n.concat(t("frameborder","0"),t("allowfullscreen","true"),t("src",this.op.insert.value));if(this.op.isMentions()){var r=this.op.attributes.mention;return r.class&&(n=n.concat(t("class",r.class))),n=r["end-point"]&&r.slug?n.concat(t("href",r["end-point"]+"/"+r.slug)):n.concat(t("href","about:blank")),r.target&&(n=n.concat(t("target",r.target))),n}var i=this.getCssStyles();return i.length&&n.push(t("style",i.join(";"))),this.op.isContainerBlock()||this.op.isLink()&&(n=n.concat(this.getLinkAttrs())),n},t.prototype.makeAttr=function(t,e){return{key:t,value:e}},t.prototype.getLinkAttrs=function(){var t=s.OpAttributeSanitizer.isValidTarget(this.options.linkTarget||"")?this.options.linkTarget:void 0,e=s.OpAttributeSanitizer.IsValidRel(this.options.linkRel||"")?this.options.linkRel:void 0,n=this.op.attributes.target||t,r=this.op.attributes.rel||e;return[].concat(this.makeAttr("href",this.op.attributes.link)).concat(n?this.makeAttr("target",n):[]).concat(r?this.makeAttr("rel",r):[])},t.prototype.getTags=function(){var t=this.op.attributes;if(!this.op.isText())return[this.op.isVideo()?"iframe":this.op.isImage()?"img":"span"];for(var e=this.options.paragraphTag||"p",n=0,r=[["blockquote"],["code-block","pre"],["list",this.options.listItemTag],["header"],["align",e],["direction",e],["indent",e]];n<r.length;n++){var o=r[n],s=o[0];if(t[s])return"header"===s?["h"+t[s]]:[a.preferSecond(o)]}return[["link","a"],["mentions","a"],["script"],["bold","strong"],["italic","em"],["strike","s"],["underline","u"],["code"]].filter((function(e){return!!t[e[0]]})).map((function(e){return"script"===e[0]?t[e[0]]===i.ScriptType.Sub?"sub":"sup":a.preferSecond(e)}))},t}();e.OpToHtmlConverter=l},37746:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(62680),i=n(72516),o=n(60754),a=n(88977),s=n(80249),u=n(29690),l=n(37792),c=n(88788),f="<br/>",d=function(){function t(t,e){var n;this.rawDeltaOps=[],this.callbacks={},this.options=l.assign({paragraphTag:"p",encodeHtml:!0,classPrefix:"ql",inlineStyles:!1,multiLineBlockquote:!0,multiLineHeader:!0,multiLineCodeblock:!0,multiLineParagraph:!0,allowBackgroundClasses:!1,linkTarget:"_blank"},e,{orderedListTag:"ol",bulletListTag:"ul",listItemTag:"li"}),n=this.options.inlineStyles?"object"==typeof this.options.inlineStyles?this.options.inlineStyles:{}:void 0,this.converterOptions={encodeHtml:this.options.encodeHtml,classPrefix:this.options.classPrefix,inlineStyles:n,listItemTag:this.options.listItemTag,paragraphTag:this.options.paragraphTag,linkRel:this.options.linkRel,linkTarget:this.options.linkTarget,allowBackgroundClasses:this.options.allowBackgroundClasses},this.rawDeltaOps=t}return t.prototype._getListTag=function(t){return t.isOrderedList()?this.options.orderedListTag+"":t.isBulletList()||t.isCheckedList()||t.isUncheckedList()?this.options.bulletListTag+"":""},t.prototype.getGroupedOps=function(){var t=r.InsertOpsConverter.convert(this.rawDeltaOps,this.options),e=o.Grouper.pairOpsWithTheirBlock(t),n=o.Grouper.groupConsecutiveSameStyleBlocks(e,{blockquotes:!!this.options.multiLineBlockquote,header:!!this.options.multiLineHeader,codeBlocks:!!this.options.multiLineCodeblock}),i=o.Grouper.reduceConsecutiveSameStyleBlocksToOne(n);return(new s.ListNester).nest(i)},t.prototype.convert=function(){var t=this;return this.getGroupedOps().map((function(e){if(e instanceof a.ListGroup)return t._renderWithCallbacks(c.GroupType.List,e,(function(){return t._renderList(e)}));if(e instanceof a.BlockGroup){var n=e;return t._renderWithCallbacks(c.GroupType.Block,e,(function(){return t._renderBlock(n.op,n.ops)}))}return e instanceof a.BlotBlock?t._renderCustom(e.op,null):e instanceof a.VideoItem?t._renderWithCallbacks(c.GroupType.Video,e,(function(){var n=e;return new i.OpToHtmlConverter(n.op,t.converterOptions).getHtml()})):t._renderWithCallbacks(c.GroupType.InlineGroup,e,(function(){return t._renderInlines(e.ops,!0)}))})).join("")},t.prototype._renderWithCallbacks=function(t,e,n){var r="",i=this.callbacks.beforeRender_cb;(r="function"==typeof i?i.apply(null,[t,e]):"")||(r=n());var o=this.callbacks.afterRender_cb;return r="function"==typeof o?o.apply(null,[t,r]):r},t.prototype._renderList=function(t){var e=this,n=t.items[0];return u.makeStartTag(this._getListTag(n.item.op))+t.items.map((function(t){return e._renderListItem(t)})).join("")+u.makeEndTag(this._getListTag(n.item.op))},t.prototype._renderListItem=function(t){t.item.op.attributes.indent=0;var e=new i.OpToHtmlConverter(t.item.op,this.converterOptions).getHtmlParts(),n=this._renderInlines(t.item.ops,!1);return e.openingTag+n+(t.innerList?this._renderList(t.innerList):"")+e.closingTag},t.prototype._renderBlock=function(t,e){var n=this,r=new i.OpToHtmlConverter(t,this.converterOptions).getHtmlParts();if(t.isCodeBlock())return r.openingTag+u.encodeHtml(e.map((function(e){return e.isCustom()?n._renderCustom(e,t):e.insert.value})).join(""))+r.closingTag;var o=e.map((function(e){return n._renderInline(e,t)})).join("");return r.openingTag+(o||f)+r.closingTag},t.prototype._renderInlines=function(t,e){var n=this;void 0===e&&(e=!0);var r=t.length-1,i=t.map((function(t,e){return e>0&&e===r&&t.isJustNewline()?"":n._renderInline(t,null)})).join("");if(!e)return i;var o=u.makeStartTag(this.options.paragraphTag),a=u.makeEndTag(this.options.paragraphTag);return i===f||this.options.multiLineParagraph?o+i+a:o+i.split(f).map((function(t){return""===t?f:t})).join(a+o)+a},t.prototype._renderInline=function(t,e){return t.isCustom()?this._renderCustom(t,e):new i.OpToHtmlConverter(t,this.converterOptions).getHtml().replace(/\n/g,f)},t.prototype._renderCustom=function(t,e){var n=this.callbacks.renderCustomOp_cb;return"function"==typeof n?n.apply(null,[t,e]):""},t.prototype.beforeRender=function(t){"function"==typeof t&&(this.callbacks.beforeRender_cb=t)},t.prototype.afterRender=function(t){"function"==typeof t&&(this.callbacks.afterRender_cb=t)},t.prototype.renderCustomWith=function(t){this.callbacks.renderCustomOp_cb=t},t}();e.QuillDeltaToHtmlConverter=d},29690:(t,e)=>{"use strict";var n;function r(t){return i(n.Html).reduce(a,t)}function i(t){var e=[["&","&amp;"],["<","&lt;"],[">","&gt;"],['"',"&quot;"],["'","&#x27;"],["\\/","&#x2F;"],["\\(","&#40;"],["\\)","&#41;"]];return t===n.Html?e.filter((function(t){var e=t[0];t[1];return-1===e.indexOf("(")&&-1===e.indexOf(")")})):e.filter((function(t){var e=t[0];t[1];return-1===e.indexOf("/")}))}function o(t,e){return t.replace(new RegExp(e[0],"g"),e[1])}function a(t,e){return t.replace(new RegExp(e[1],"g"),e[0].replace("\\",""))}Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Html=0]="Html",t[t.Url=1]="Url"}(n||(n={})),e.makeStartTag=function(t,e){if(void 0===e&&(e=void 0),!t)return"";var n="";e&&(n=[].concat(e).map((function(t){return t.key+(t.value?'="'+t.value+'"':"")})).join(" "));var r=">";return"img"!==t&&"br"!==t||(r="/>"),n?"<"+t+" "+n+r:"<"+t+r},e.makeEndTag=function(t){return void 0===t&&(t=""),t&&"</"+t+">"||""},e.decodeHtml=r,e.encodeHtml=function(t,e){return void 0===e&&(e=!0),e&&(t=r(t)),i(n.Html).reduce(o,t)},e.encodeLink=function(t){var e=i(n.Url),r=e.reduce(a,t);return e.reduce(o,r)}},60754:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(52901),i=n(67210),o=n(88977),a=function(){function t(){}return t.pairOpsWithTheirBlock=function(t){for(var e,n=[],r=function(t){return!(t.isJustNewline()||t.isCustomBlock()||t.isVideo()||t.isContainerBlock())},a=function(t){return t.isInline()},s=t.length-1;s>=0;s--){var u=t[s];u.isVideo()?n.push(new o.VideoItem(u)):u.isCustomBlock()?n.push(new o.BlotBlock(u)):u.isContainerBlock()?(e=i.sliceFromReverseWhile(t,s-1,r),n.push(new o.BlockGroup(u,e.elements)),s=e.sliceStartsAt>-1?e.sliceStartsAt:s):(e=i.sliceFromReverseWhile(t,s-1,a),n.push(new o.InlineGroup(e.elements.concat(u))),s=e.sliceStartsAt>-1?e.sliceStartsAt:s)}return n.reverse(),n},t.groupConsecutiveSameStyleBlocks=function(e,n){return void 0===n&&(n={header:!0,codeBlocks:!0,blockquotes:!0}),i.groupConsecutiveElementsWhile(e,(function(e,r){return e instanceof o.BlockGroup&&r instanceof o.BlockGroup&&(n.codeBlocks&&t.areBothCodeblocks(e,r)||n.blockquotes&&t.areBothBlockquotesWithSameAdi(e,r)||n.header&&t.areBothSameHeadersWithSameAdi(e,r))}))},t.reduceConsecutiveSameStyleBlocksToOne=function(t){var e=r.DeltaInsertOp.createNewLineOp();return t.map((function(t){if(!Array.isArray(t))return t instanceof o.BlockGroup&&!t.ops.length&&t.ops.push(e),t;var n=t.length-1;return t[0].ops=i.flatten(t.map((function(t,r){return t.ops.length?t.ops.concat(r<n?[e]:[]):[e]}))),t[0]}))},t.areBothCodeblocks=function(t,e){return t.op.isCodeBlock()&&e.op.isCodeBlock()},t.areBothSameHeadersWithSameAdi=function(t,e){return t.op.isSameHeaderAs(e.op)&&t.op.hasSameAdiAs(e.op)},t.areBothBlockquotesWithSameAdi=function(t,e){return t.op.isBlockquote()&&e.op.isBlockquote()&&t.op.hasSameAdiAs(e.op)},t}();e.Grouper=a},80249:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(88977),i=n(67210),o=function(){function t(){}return t.prototype.nest=function(t){var e=this,n=this.convertListBlocksToListGroups(t),o=this.groupConsecutiveListGroups(n),a=i.flatten(o.map((function(t){return Array.isArray(t)?e.nestListSection(t):t})));return i.groupConsecutiveElementsWhile(a,(function(t,e){return t instanceof r.ListGroup&&e instanceof r.ListGroup&&t.items[0].item.op.isSameListAs(e.items[0].item.op)})).map((function(t){if(!Array.isArray(t))return t;var e=t.map((function(t){return t.items}));return new r.ListGroup(i.flatten(e))}))},t.prototype.convertListBlocksToListGroups=function(t){return i.groupConsecutiveElementsWhile(t,(function(t,e){return t instanceof r.BlockGroup&&e instanceof r.BlockGroup&&t.op.isList()&&e.op.isList()&&t.op.isSameListAs(e.op)&&t.op.hasSameIndentationAs(e.op)})).map((function(t){return Array.isArray(t)?new r.ListGroup(t.map((function(t){return new r.ListItem(t)}))):t instanceof r.BlockGroup&&t.op.isList()?new r.ListGroup([new r.ListItem(t)]):t}))},t.prototype.groupConsecutiveListGroups=function(t){return i.groupConsecutiveElementsWhile(t,(function(t,e){return t instanceof r.ListGroup&&e instanceof r.ListGroup}))},t.prototype.nestListSection=function(t){var e=this,n=this.groupByIndent(t);return Object.keys(n).map(Number).sort().reverse().forEach((function(r){n[r].forEach((function(n){var r=t.indexOf(n);e.placeUnderParent(n,t.slice(0,r))&&t.splice(r,1)}))})),t},t.prototype.groupByIndent=function(t){return t.reduce((function(t,e){var n=e.items[0].item.op.attributes.indent;return n&&(t[n]=t[n]||[],t[n].push(e)),t}),{})},t.prototype.placeUnderParent=function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];if(t.items[0].item.op.hasHigherIndentThan(r.items[0].item.op)){var i=r.items[r.items.length-1];return i.innerList?i.innerList.items=i.innerList.items.concat(t.items):i.innerList=t,!0}}return!1},t}();e.ListNester=o},88977:function(t,e){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){this.ops=t};e.InlineGroup=i;var o=function(t){this.op=t},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(o);e.VideoItem=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(o);e.BlotBlock=s;var u=function(t,e){this.op=t,this.ops=e};e.BlockGroup=u;var l=function(t){this.items=t};e.ListGroup=l;var c=function(t,e){void 0===e&&(e=null),this.item=t,this.innerList=e};e.ListItem=c},67210:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.preferSecond=function(t){return 0===t.length?null:t.length>=2?t[1]:t[0]},e.flatten=function t(e){return e.reduce((function(e,n){return e.concat(Array.isArray(n)?t(n):n)}),[])},e.find=function(t,e){if(Array.prototype.find)return Array.prototype.find.call(t,e);for(var n=0;n<t.length;n++)if(e(t[n]))return t[n]},e.groupConsecutiveElementsWhile=function(t,e){for(var n,r=[],i=0;i<t.length;i++)n=t[i],i>0&&e(n,t[i-1])?r[r.length-1].push(n):r.push([n]);return r.map((function(t){return 1===t.length?t[0]:t}))},e.sliceFromReverseWhile=function(t,e,n){for(var r={elements:[],sliceStartsAt:-1},i=e;i>=0&&n(t[i]);i--)r.sliceStartsAt=i,r.elements.unshift(t[i]);return r},e.intersperse=function(t,e){return t.reduce((function(n,r,i){return n.push(r),i<t.length-1&&n.push(e),n}),[])}},37792:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assign=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),i=0;i<e.length;i++){var o=e[i];if(null!=o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r}},93806:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tokenizeWithNewLines=function(t){var e="\n";if(t===e)return[t];var n=t.split(e);if(1===n.length)return n;var r=n.length-1;return n.reduce((function(t,n,i){return i!==r?""!==n?t=t.concat(n,e):t.push(e):""!==n&&t.push(n),t}),[])}},69142:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=function(t){var e=t;return e=e.replace(/^\s*/gm,""),/^((https?|s?ftp|file|blob|mailto|tel):|#|\/|data:image\/)/.test(e)?e:"unsafe:"+e}},70908:(t,e,n)=>{"use strict";var r=n(37746);e.Ss=r.QuillDeltaToHtmlConverter,n(72516).OpToHtmlConverter;var i=n(88977);i.InlineGroup,i.VideoItem,i.BlockGroup,i.ListGroup,i.ListItem,i.BlotBlock,n(52901).DeltaInsertOp;var o=n(78484);o.InsertDataQuill,o.InsertDataCustom;var a=n(88788);a.NewLine,a.ListType,a.ScriptType,a.DirectionType,a.AlignType,a.DataType,a.GroupType},50288:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(36965),i=function(){function t(){}return t.sanitize=function(e,n){var i={};return e&&"object"==typeof e?(e.class&&t.IsValidClass(e.class)&&(i.class=e.class),e.id&&t.IsValidId(e.id)&&(i.id=e.id),t.IsValidTarget(e.target+"")&&(i.target=e.target),e.avatar&&(i.avatar=r.OpAttributeSanitizer.sanitizeLinkUsingOptions(e.avatar+"",n)),e["end-point"]&&(i["end-point"]=r.OpAttributeSanitizer.sanitizeLinkUsingOptions(e["end-point"]+"",n)),e.slug&&(i.slug=e.slug+""),i):i},t.IsValidClass=function(t){return!!t.match(/^[a-zA-Z0-9_\-]{1,500}$/i)},t.IsValidId=function(t){return!!t.match(/^[a-zA-Z0-9_\-\:\.]{1,500}$/i)},t.IsValidTarget=function(t){return["_self","_blank","_parent","_top"].indexOf(t)>-1},t}();e.MentionSanitizer=i},88788:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r,i,o,a,s;e.NewLine="\n",function(t){t.Ordered="ordered",t.Bullet="bullet",t.Checked="checked",t.Unchecked="unchecked"}(n||(n={})),e.ListType=n,function(t){t.Sub="sub",t.Super="super"}(r||(r={})),e.ScriptType=r,function(t){t.Rtl="rtl"}(i||(i={})),e.DirectionType=i,function(t){t.Left="left",t.Center="center",t.Right="right",t.Justify="justify"}(o||(o={})),e.AlignType=o,function(t){t.Image="image",t.Video="video",t.Formula="formula",t.Text="text"}(a||(a={})),e.DataType=a,function(t){t.Block="block",t.InlineGroup="inline-group",t.List="list",t.Video="video"}(s||(s={})),e.GroupType=s},91058:function(t){var e;"undefined"!=typeof self&&self,e=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),u=n(47),l=n(48),c=n(49),f=n(12),d=n(32),p=n(33),h=n(31),v=n(1),m={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:l.default,Scroll:a.default,Block:u.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:p.default,Store:h.default}};e.default=m},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return i(e,t),e}(Error);e.ParchmentError=o;var a,s={},u={},l={},c={};function f(t,e){var n;if(void 0===e&&(e=a.ANY),"string"==typeof t)n=c[t]||s[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof t)t&a.LEVEL&a.BLOCK?n=c.block:t&a.LEVEL&a.INLINE&&(n=c.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=u[r[i]])break;n=n||l[t.tagName]}return null==n?null:e&a.LEVEL&n.scope&&e&a.TYPE&n.scope?n:null}e.DATA_KEY="__blot",function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(a=e.Scope||(e.Scope={})),e.create=function(t,e){var n=f(t);if(null==n)throw new o("Unable to create "+t+" blot");var r=n,i=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(i,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=f,e.register=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length>1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");return c[r.blotName||r.attrName]=r,"string"==typeof r.keyName?s[r.keyName]=r:(null!=r.className&&(u[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(t){null!=l[t]&&null!=r.className||(l[t]=r)})))),r}},function(t,e,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),u=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};u.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},u.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},u.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},u.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(i(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},u.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},u.prototype.filter=function(t){return this.ops.filter(t)},u.prototype.forEach=function(t){this.ops.forEach(t)},u.prototype.map=function(t){return this.ops.map(t)},u.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){(t(r)?e:n).push(r)})),[e,n]},u.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},u.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},u.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},u.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i<e&&r.hasNext();){var o;i<t?o=r.next(t-i):(o=r.next(e-i),n.push(o)),i+=a.length(o)}return new u(n)},u.prototype.compose=function(t){var e=a.iterator(this.ops),n=a.iterator(t.ops),r=[],o=n.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){for(var s=o.retain;"insert"===e.peekType()&&e.peekLength()<=s;)s-=e.peekLength(),r.push(e.next());o.retain-s>0&&n.next(o.retain-s)}for(var l=new u(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())l.push(n.next());else if("delete"===e.peekType())l.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),d=n.next(c);if("number"==typeof d.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"==typeof f.retain);if(h&&(p.attributes=h),l.push(p),!n.hasNext()&&i(l.ops[l.ops.length-1],p)){var v=new u(e.rest());return l.concat(v).chop()}}else"number"==typeof d.delete&&"number"==typeof f.retain&&l.push(d)}return l.chop()},u.prototype.concat=function(t){var e=new u(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},u.prototype.diff=function(t,e){if(this.ops===t.ops)return new u;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),o=new u,l=r(n[0],n[1],e),c=a.iterator(this.ops),f=a.iterator(t.ops);return l.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),o.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var s=c.next(n),u=f.next(n);i(s.insert,u.insert)?o.retain(n,a.attributes.diff(s.attributes,u.attributes)):o.push(u).delete(n)}e-=n}})),o.chop()},u.prototype.eachLine=function(t,e){e=e||"\n";for(var n=a.iterator(this.ops),r=new u,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),l="string"==typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(l<0)r.push(n.next());else if(l>0)r.push(n.next(l));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new u}}r.length()>0&&t(r,{},i)},u.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=a.iterator(this.ops),r=a.iterator(t.ops),i=new u;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),l=r.next(o);if(s.delete)continue;l.delete?i.push(l):i.retain(o,a.attributes.transform(s.attributes,l.attributes,e))}else i.retain(a.length(n.next()));return i.chop()},u.prototype.transformPosition=function(t,e){e=!!e;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t},t.exports=u},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},s=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e,i=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!o)return!1;for(e in t);return void 0===e||n.call(t,e)},u=function(t,e){i&&"__proto__"===e.name?i(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},l=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(o)return o(t,e).value}return t[e]};t.exports=function t(){var e,n,r,i,o,c,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(e=arguments[d]))for(n in e)r=l(f,n),f!==(i=l(e,n))&&(h&&i&&(s(i)||(o=a(i)))?(o?(o=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},u(f,{name:n,newValue:t(h,c,i)})):void 0!==i&&u(f,{name:n,newValue:i}));return f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=f(n(3)),a=f(n(2)),s=f(n(0)),u=f(n(16)),l=f(n(6)),c=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),r(e,[{key:"attach",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=s.default.query(t,s.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var o=s.default.create(m.blotName);this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(s.default.Embed);v.scope=s.default.Scope.BLOCK_BLOT;var m=function(t){function e(t){d(this,e);var n=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return h(e,t),r(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),g(e))}),new a.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,o){n<=0||(s.default.query(r,s.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,o):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,o),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;o.reduce((function(t,e){return(s=s.split(t,!0)).insertAt(0,e),e.length}),t+a.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof u.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(s.default.Block);function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,o.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:g(t.parent,e))}m.blotName="block",m.tagName="P",m.defaultChild="break",m.allowedChildren=[l.default,s.default.Embed,c.default],e.bubbleFormats=g,e.BlockEmbed=v,e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var a=m(n(2)),s=m(n(14)),u=m(n(8)),l=m(n(9)),c=m(n(0)),f=n(15),d=m(f),p=m(n(3)),h=m(n(10)),v=m(n(34));function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y=(0,h.default)("quill"),b=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=w(e,r),this.container=this.options.container,null==this.container)return y.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new d.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(t){t===u.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(u.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;_.call(n,(function(){return n.editor.update(null,e,i)}),t)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),h.default.level(t)}},{key:"find",value:function(t){return t.__quill||c.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&y.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var i=t.attrName||t.blotName;"string"==typeof i?this.register("formats/"+i,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||y.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?c.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),o(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;(t=document.createElement("div")).classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=k(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],_.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;return _.call(this,(function(){var r=n.getSelection(!0),i=new a.default;if(null==r)return i;if(c.default.query(t,c.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,g({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,g({},t,e))}return n.setSelection(r,u.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(t,e,n,r,o){var a,s=this,u=k(t,e,n,r,o),l=i(u,4);return t=l[0],e=l[1],a=l[2],o=l[3],_.call(this,(function(){return s.editor.formatLine(t,e,a)}),o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var a,s=this,u=k(t,e,n,r,o),l=i(u,4);return t=l[0],e=l[1],a=l[2],o=l[3],_.call(this,(function(){return s.editor.formatText(t,e,a)}),o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=k(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=k(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return _.call(this,(function(){return i.editor.insertEmbed(e,n,r)}),o,e)}},{key:"insertText",value:function(t,e,n,r,o){var a,s=this,u=k(t,0,n,r,o),l=i(u,4);return t=l[0],a=l[2],o=l[3],_.call(this,(function(){return s.editor.insertText(t,e,a)}),o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=k(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],_.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return _.call(this,(function(){t=new a.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),o=i.ops[i.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=k(e,n,r),a=i(o,4);e=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(e,n),r),r!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API,n=(new a.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return _.call(this,(function(){return t=new a.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function w(t,e){if((e=(0,p.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==b.DEFAULTS.theme){if(e.theme=b.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=v.default;var n=(0,p.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=b.import("modules/"+e);return null==n?y.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,p.default)(!0,{},b.DEFAULTS,{modules:r},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function _(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===u.default.sources.USER)return new a.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,s=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=x(i,s,e):0!==r&&(i=x(i,n,r,e)),this.setSelection(i,u.default.sources.SILENT)),s.length()>0){var l,c,f=[u.default.events.TEXT_CHANGE,s,o,e];(l=this.emitter).emit.apply(l,[u.default.events.EDITOR_CHANGE].concat(f)),e!==u.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return s}function k(t,e,n,i,o){var a={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=i,i=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=i,i=n,n=e,e=0),"object"===(void 0===n?"undefined":r(n))?(a=n,o=i):"string"==typeof n&&(null!=i?a[n]=i:o=n),[t,e,a,o=o||u.default.sources.API]}function x(t,e,n,r){if(null==t)return null;var o=void 0,s=void 0;if(e instanceof a.default){var l=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==u.default.sources.USER)})),c=i(l,2);o=c[0],s=c[1]}else{var d=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&r===u.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),p=i(d,2);o=p[0],s=p[1]}return new f.Range(o,s-o)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=u.default.events,b.sources=u.default.sources,b.version="1.3.7",b.imports={delta:a.default,parchment:c.default,"core/module":l.default,"core/theme":v.default},e.expandConfig=w,e.overload=k,e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=s(n(7)),a=s(n(0));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"formatAt",value:function(t,n,r,o){if(e.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var s=this.isolate(t,n);o&&s.wrap(r,o)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o)}},{key:"optimize",value:function(t){if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),i=e.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}}]),e}(a.default.Inline);u.allowedChildren=[u,a.default.Embed,o.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default.Text);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=a(n(54));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var u=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",s.error),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"emit",value:function(){s.log.apply(s,arguments),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach((function(e){var r=e.node,i=e.handler;(t.target===r||r.contains(t.target))&&i.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(o.default);u.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},u.sources={API:"api",SILENT:"silent",USER:"user"},e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n};r.DEFAULTS={},e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(t){if(r.indexOf(t)<=r.indexOf(i)){for(var e,n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];(e=console)[t].apply(e,o)}}function a(t){return r.reduce((function(e,n){return e[n]=o.bind(console,n,t),e}),{})}o.level=a.level=function(t){i=t},e.default=a},function(t,e,n){var r=Array.prototype.slice,i=n(52),o=n(53),a=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:function(t,e,n){var l,c;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(o(t))return!!o(e)&&(t=r.call(t),e=r.call(e),a(t,e,n));if(u(t)){if(!u(e))return!1;if(t.length!==e.length)return!1;for(l=0;l<t.length;l++)if(t[l]!==e[l])return!1;return!0}try{var f=i(t),d=i(e)}catch(t){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),l=f.length-1;l>=0;l--)if(f[l]!=d[l])return!1;for(l=f.length-1;l>=0;l--)if(c=f[l],!a(t[c],e[c],n))return!1;return typeof t==typeof e}(t,e,n))};function s(t){return null==t}function u(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=f(n(2)),s=f(n(0)),u=f(n(4)),l=f(n(6)),c=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),e}(l.default);v.blotName="code",v.tagName="CODE";var m=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),i(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new a.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var i=this.descendant(c.default,this.length()-1),a=r(i,1)[0];null!=a&&a.deleteAt(a.length()-1,1),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,i){if(0!==n&&null!=s.default.query(r,s.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(t);if(!(o<0||o>=t+n)){var a=this.newlineIndex(t,!0)+1,u=o-a+1,l=this.isolate(a,u),c=l.next;l.format(r,i),c instanceof e&&c.formatAt(0,t-a+n-u,r,i)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var i=this.descendant(c.default,t),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=s.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof s.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(u.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",e.Code=v,e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=g(n(2)),s=g(n(20)),u=g(n(0)),l=g(n(13)),c=g(n(24)),f=n(4),d=g(f),p=g(n(16)),h=g(n(21)),v=g(n(11)),m=g(n(3));function g(t){return t&&t.__esModule?t:{default:t}}var y=/^[ -~]*$/,b=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scroll=e,this.delta=this.getDelta()}return o(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),(t=function(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,h.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,h.default)(e)).attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new a.default)}(t)).reduce((function(t,a){var l=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),t>=o&&!p.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,p);var h=e.scroll.line(t),v=i(h,2),g=v[0],y=v[1],b=(0,m.default)({},(0,f.bubbleFormats)(g));if(g instanceof d.default){var w=g.descendant(u.default.Leaf,y),_=i(w,1)[0];b=(0,m.default)(b,(0,f.bubbleFormats)(_))}c=s.default.attributes.diff(b,c)||{}}else if("object"===r(a.insert)){var k=Object.keys(a.insert)[0];if(null==k)return t;e.scroll.insertAt(t,k,a.insert[k])}o+=l}return Object.keys(c).forEach((function(n){e.scroll.formatAt(t,l,n,c[n])})),t+l}),0),t.reduce((function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new a.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(t,Math.max(e,1)),a=e;o.forEach((function(e){var o=e.length();if(e instanceof l.default){var s=t-e.offset(n.scroll),u=e.newlineIndex(s+a)-s+1;e.formatAt(s,u,i,r[i])}else e.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new a.default).retain(t).retain(e,(0,h.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e,i,r[i])})),this.update((new a.default).retain(t).retain(e,(0,h.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new a.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=i(t,1)[0];e instanceof d.default?n.push(e):e instanceof u.default.Leaf&&r.push(e)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(u.default.Leaf,t,e));var o=[n,r].map((function(t){if(0===t.length)return{};for(var e=(0,f.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=w((0,f.bubbleFormats)(n),e)}return e}));return m.default.apply(m.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"==typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new a.default).retain(t).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e.length,i,r[i])})),this.update((new a.default).retain(t).insert(e,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===d.default.blotName&&!(t.children.length>1)&&t.children.head instanceof p.default}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=i(r,2),s=o[0],u=o[1],c=0,f=new a.default;null!=s&&(c=s instanceof l.default?s.newlineIndex(u)-u+1:s.length()-u,f=s.delta().slice(u,u+c-1).insert("\n"));var d=this.getContents(t,e+c).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(t).concat(d);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(y)&&u.default.find(e[0].target)){var i=u.default.find(e[0].target),o=(0,f.bubbleFormats)(i),s=i.offset(this.scroll),l=e[0].oldValue.replace(c.default.CONTENTS,""),d=(new a.default).insert(l),p=(new a.default).insert(i.value());t=(new a.default).retain(s).concat(d.diff(p,n)).reduce((function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)}),new a.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,v.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function w(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=l(n(0)),a=l(n(21)),s=l(n(11)),u=l(n(8));function l(t){return t&&t.__esModule?t:{default:t}}function c(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var d=(0,l(n(10)).default)("quill:selection"),p=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,t),this.index=e,this.length=n},h=function(){function t(e,n){var r=this;f(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,u.default.sources.USER),1)})),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(t,e){t===u.default.events.TEXT_CHANGE&&e.length()>0&&r.update(u.default.sources.SILENT)})),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(u.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}}))}})),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(u.default.sources.SILENT)}return i(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(u.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(t,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var i=void 0,o=this.scroll.leaf(t),a=r(o,2),s=a[0],u=a[1];if(null==s)return null;var l=s.position(u,!0),c=r(l,2);i=c[0],u=c[1];var f=document.createRange();if(e>0){f.setStart(i,u);var d=this.scroll.leaf(t+e),p=r(d,2);if(s=p[0],u=p[1],null==s)return null;var h=s.position(u,!0),v=r(h,2);return i=v[0],u=v[1],f.setEnd(i,u),f.getBoundingClientRect()}var m="left",g=void 0;return i instanceof Text?(u<i.data.length?(f.setStart(i,u),f.setEnd(i,u+1)):(f.setStart(i,u-1),f.setEnd(i,u),m="right"),g=f.getBoundingClientRect()):(g=s.domNode.getBoundingClientRect(),u>0&&(m="right")),{bottom:g.top+g.height,height:g.height,left:g[m],right:g[m],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var i=n.map((function(t){var n=r(t,2),i=n[0],a=n[1],s=o.default.find(i,!0),u=s.offset(e.scroll);return 0===a?u:s instanceof o.default.Container?u+s.length():u+s.index(i,a)})),a=Math.min(Math.max.apply(Math,c(i)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(c(i)));return new p(s,a-s)}},{key:"normalizeNative",value:function(t){if(!v(this.root,t.startContainer)||!t.collapsed&&!v(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;n=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],i=[],o=this.scroll.length();return n.forEach((function(t,n){t=Math.min(o-1,t);var a,s=e.scroll.leaf(t),u=r(s,2),l=u[0],c=u[1],f=l.position(c,0!==n),d=r(f,2);a=d[0],c=d[1],i.push(a,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,i)),a=r(o,1)[0],s=a;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,i));s=r(u,1)[0]}if(null!=a&&null!=s){var l=t.getBoundingClientRect();n.top<l.top?t.scrollTop-=l.top-n.top:n.bottom>l.bottom&&(t.scrollTop+=n.bottom-l.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e&&(n=e,e=!1),d.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,c(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],l=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(e,this.lastRange)){var c;!this.composing&&null!=l&&l.native.collapsed&&l.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[u.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(e),t];(c=this.emitter).emit.apply(c,[u.default.events.EDITOR_CHANGE].concat(d)),t!==u.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),t}();function v(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=p,e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"insertInto",value:function(t,n){0===t.children.length?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default.Embed);s.blotName="break",s.tagName="BR",e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(44),a=n(30),s=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return i(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=l(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof s.ParchmentError)return;throw t}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=a})),i},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,i){t.formatAt(e,i,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var a=null==n?s.create("text",e):s.create(e,n);this.appendChild(a)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new s.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=s.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),i=r[0],o=r[1],a=[[this,t]];return i instanceof e?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,r,i){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],i=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),i.push.apply(i,t.removedNodes))})),i.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=s.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=s.find(t.nextSibling));var r=l(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(a.default);function l(t){var e=s.find(t);if(null==e)try{e=s.create(t)}catch(n){e=s.create(s.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),a=n(31),s=n(17),u=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new a.default(n.domNode),n}return i(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=u.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(s.default);e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(30),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){var r=n(11),i=n(3),o={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=i(!0,{},e);for(var o in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,i){return r(t[i],e[i])||(n[i]=void 0===e[i]?null:e[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=o.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),"number"==typeof e.retain?i.retain=t:"string"==typeof e.insert?i.insert=e.insert.substr(n,t):i.insert=e.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=o},function(t,e){var n=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var e,n,r;try{e=Map}catch(t){e=function(){}}try{n=Set}catch(t){n=function(){}}try{r=Promise}catch(t){r=function(){}}function i(o,s,u,l,c){"object"==typeof s&&(u=s.depth,l=s.prototype,c=s.includeNonEnumerable,s=s.circular);var f=[],d=[],p="undefined"!=typeof Buffer;return void 0===s&&(s=!0),void 0===u&&(u=1/0),function o(u,h){if(null===u)return null;if(0===h)return u;var v,m;if("object"!=typeof u)return u;if(t(u,e))v=new e;else if(t(u,n))v=new n;else if(t(u,r))v=new r((function(t,e){u.then((function(e){t(o(e,h-1))}),(function(t){e(o(t,h-1))}))}));else if(i.__isArray(u))v=[];else if(i.__isRegExp(u))v=new RegExp(u.source,a(u)),u.lastIndex&&(v.lastIndex=u.lastIndex);else if(i.__isDate(u))v=new Date(u.getTime());else{if(p&&Buffer.isBuffer(u))return v=Buffer.allocUnsafe?Buffer.allocUnsafe(u.length):new Buffer(u.length),u.copy(v),v;t(u,Error)?v=Object.create(u):void 0===l?(m=Object.getPrototypeOf(u),v=Object.create(m)):(v=Object.create(l),m=l)}if(s){var g=f.indexOf(u);if(-1!=g)return d[g];f.push(u),d.push(v)}for(var y in t(u,e)&&u.forEach((function(t,e){var n=o(e,h-1),r=o(t,h-1);v.set(n,r)})),t(u,n)&&u.forEach((function(t){var e=o(t,h-1);v.add(e)})),u){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),b&&null==b.set||(v[y]=o(u[y],h-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(u);for(y=0;y<w.length;y++){var _=w[y];(!(x=Object.getOwnPropertyDescriptor(u,_))||x.enumerable||c)&&(v[_]=o(u[_],h-1),x.enumerable||Object.defineProperty(v,_,{enumerable:!1}))}}if(c){var k=Object.getOwnPropertyNames(u);for(y=0;y<k.length;y++){var x,E=k[y];(x=Object.getOwnPropertyDescriptor(u,E))&&x.enumerable||(v[E]=o(u[E],h-1),Object.defineProperty(v,E,{enumerable:!1}))}}return v}(o,u)}function o(t){return Object.prototype.toString.call(t)}function a(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return i.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},i.__objToStr=o,i.__isDate=function(t){return"object"==typeof t&&"[object Date]"===o(t)},i.__isArray=function(t){return"object"==typeof t&&"[object Array]"===o(t)},i.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===o(t)},i.__getRegExpFlags=a,i}();"object"==typeof t&&t.exports&&(t.exports=n)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=p(n(0)),s=p(n(8)),u=n(4),l=p(u),c=p(n(16)),f=p(n(13)),d=p(n(25));function p(t){return t&&t.__esModule?t:{default:t}}function h(t){return t instanceof l.default||t instanceof u.BlockEmbed}var v=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var i=this.line(t),a=r(i,2),s=a[0],l=a[1],d=this.line(t+n),p=r(d,1)[0];if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=p&&s!==p&&l>0){if(s instanceof u.BlockEmbed||p instanceof u.BlockEmbed)return void this.optimize();if(s instanceof f.default){var h=s.newlineIndex(s.length(),!0);if(h>-1&&(s=s.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var v=p.newlineIndex(0);v>-1&&p.split(v+1)}var m=p.children.head instanceof c.default?null:p.children.head;s.moveChildren(p,m),s.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var i=a.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var s=a.default.create(n,r);this.appendChild(s)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(t),t=r}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(h,t)}},{key:"lines",value:function(){return function t(e,n,r){var i=[],o=r;return e.children.forEachAt(n,r,(function(e,n,r){h(e)?i.push(e):e instanceof a.default.Container&&(i=i.concat(t(e,n,o))),o-=r})),i}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=s.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,t),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,t)}}}]),e}(a.default.Scroll);v.blotName="scroll",v.className="ql-editor",v.tagName="DIV",v.defaultChild="block",v.allowedChildren=[l.default,u.BlockEmbed,d.default],e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=v(n(21)),s=v(n(11)),u=v(n(3)),l=v(n(2)),c=v(n(20)),f=v(n(0)),d=v(n(5)),p=v(n(10)),h=v(n(9));function v(t){return t&&t.__esModule?t:{default:t}}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=(0,p.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:e.keys.ENTER,shiftKey:null},E),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},_),r.addBinding({key:e.keys.DELETE},{collapsed:!0},k)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},_),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},k)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},x),r.addBinding({key:e.keys.DELETE},{collapsed:!1},x),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},_),r.listen(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"match",value:function(t,e){return e=O(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),o(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=O(t);if(null==r||null==r.key)return g.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,u.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(t.bindings[o]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var u=t.quill.getSelection();if(null!=u&&t.quill.hasFocus()){var l=t.quill.getLine(u.index),c=i(l,2),d=c[0],p=c[1],h=t.quill.getLeaf(u.index),v=i(h,2),m=v[0],g=v[1],y=0===u.length?[m,g]:t.quill.getLeaf(u.index+u.length),b=i(y,2),w=b[0],_=b[1],k=m instanceof f.default.Text?m.value().slice(0,g):"",x=w instanceof f.default.Text?w.value().slice(_):"",E={collapsed:0===u.length,empty:0===u.length&&d.length()<=1,format:t.quill.getFormat(u),offset:p,prefix:k,suffix:x};a.some((function(e){if(null!=e.collapsed&&e.collapsed!==E.collapsed)return!1;if(null!=e.empty&&e.empty!==E.empty)return!1;if(null!=e.offset&&e.offset!==E.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==E.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=E.format[t]:!1===e.format[t]?null==E.format[t]:(0,s.default)(e.format[t],E.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(E.prefix)||null!=e.suffix&&!e.suffix.test(E.suffix)||!0===e.handler.call(t,u,E))}))&&n.preventDefault()}}}}))}}]),e}(h.default);function w(t,e){var n,r=t===b.keys.LEFT?"prefix":"suffix";return m(n={key:t,shiftKey:e,altKey:null},r,/^$/),m(n,"handler",(function(n){var r=n.index;t===b.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(i(o,1)[0]instanceof f.default.Embed&&(t===b.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),1))})),n}function _(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=i(n,1)[0],o={};if(0===e.offset){var a=this.quill.getLine(t.index-1),s=i(a,1)[0];if(null!=s&&s.length()>1){var u=r.formats(),l=this.quill.getFormat(t.index-1,1);o=c.default.attributes.diff(u,l)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,d.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index-f,f,o,d.default.sources.USER),this.quill.focus()}}function k(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(t.index),s=i(a,1)[0];if(e.offset>=s.length()-1){var u=this.quill.getLine(t.index+1),l=i(u,1)[0];if(l){var f=s.formats(),p=this.quill.getFormat(t.index,1);r=c.default.attributes.diff(f,p)||{},o=l.length()}}this.quill.deleteText(t.index,n,d.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,d.default.sources.USER)}}function x(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=c.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,d.default.sources.USER),this.quill.setSelection(t.index,d.default.sources.SILENT),this.quill.focus()}function E(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],d.default.sources.USER))}))}function C(t){return{key:b.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=f.default.query("code-block"),r=e.index,o=e.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),u=s[0],l=s[1];if(null!=u){var c=this.quill.getIndex(u),p=u.newlineIndex(l,!0)+1,h=u.newlineIndex(c+l+o),v=u.domNode.textContent.slice(p,h).split("\n");l=0,v.forEach((function(e,i){t?(u.insertAt(p+l,n.TAB),l+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(u.deleteAt(p+l,n.TAB.length),l-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),l+=e.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(r,o,d.default.sources.SILENT)}}}}function S(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],d.default.sources.USER)}}}function O(t){if("string"==typeof t||"number"==typeof t)return O({key:t});if("object"===(void 0===t?"undefined":r(t))&&(t=(0,a.default)(t,!1)),"string"==typeof t.key)if(null!=b.keys[t.key.toUpperCase()])t.key=b.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[y]=t.shortKey,delete t.shortKey),t}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:S("bold"),italic:S("italic"),underline:S("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",d.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":C(!0),"outdent code-block":C(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,d.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new l.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,d.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,d.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(0,u.default)({},r.formats(),{list:"checked"}),s=(new l.default).retain(t.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=i(n,2),o=r[0],a=r[1],s=(new l.default).retain(t.index).insert("\n",e.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var u=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":u="unchecked";break;case"[x]":u="checked";break;case"-":case"*":u="bullet";break;default:u="ordered"}this.quill.insertText(t.index," ",d.default.sources.USER),this.quill.history.cutoff();var c=(new l.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:u});this.quill.updateContents(c,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,d.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(new l.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},"embed left":w(b.keys.LEFT,!1),"embed left shift":w(b.keys.LEFT,!0),"embed right":w(b.keys.RIGHT,!1),"embed right shift":w(b.keys.RIGHT,!0)}},e.default=b,e.SHORTKEY=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=u(n(0)),s=u(n(7));function u(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"value",value:function(){}}]),o(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,o=0;null!=r&&r.statics.scope!==a.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(o,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),i=void 0,o=void 0,u=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var l=[t,n.start.offset,n.end.offset];i=l[0],o=l[1],u=l[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var c=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof s.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var f=[o,u].map((function(t){return Math.max(0,Math.min(i.data.length,t-1))})),d=r(f,2);return o=d[0],u=d[1],{startNode:i,startOffset:o,endNode:i,endOffset:u}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}))){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(a.default.Embed);l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\ufeff",e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(0)),i=n(4),o=a(i);function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default.Container);s.allowedChildren=[o.default,i.BlockEmbed,s],e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"value",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):n}}]),e}(s.default.Attributor.Style),l=new s.default.Attributor.Class("color","ql-color",{scope:s.default.Scope.INLINE}),c=new u("color","color",{scope:s.default.Scope.INLINE});e.ColorAttributor=u,e.ColorClass=l,e.ColorStyle=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return u(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);function u(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}s.blotName="link",s.tagName="A",s.SANITIZED_URL="about:blank",s.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=s,e.sanitize=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=s(n(23)),a=s(n(107));function s(t){return t&&t.__esModule?t:{default:t}}var u=0;function l(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var c=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),t.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return i(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),l(this.label,"aria-expanded"),l(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case o.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case o.default.keys.ESCAPE:e.escape(),t.preventDefault()}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=a.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=g(n(0)),i=g(n(5)),o=n(4),a=g(o),s=g(n(16)),u=g(n(25)),l=g(n(24)),c=g(n(35)),f=g(n(6)),d=g(n(22)),p=g(n(7)),h=g(n(55)),v=g(n(42)),m=g(n(23));function g(t){return t&&t.__esModule?t:{default:t}}i.default.register({"blots/block":a.default,"blots/block/embed":o.BlockEmbed,"blots/break":s.default,"blots/container":u.default,"blots/cursor":l.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":d.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":v.default,"modules/keyboard":m.default}),r.default.register(a.default,s.default,l.default,f.default,d.default,p.default),e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){o(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(o(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n,this.modules={}}return r(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=s(n(0)),a=s(n(7));function s(t){return t&&t.__esModule?t:{default:t}}var u="\ufeff",l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode(u),n.rightGuard=document.createTextNode(u),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(u).join("");if(t===this.leftGuard)if(this.prev instanceof a.default){var i=this.prev.length();this.prev.insertAt(i,r),e={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=u,e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}}))}}]),e}(o.default.Embed);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new o.default.Attributor.Attribute("align","align",a),u=new o.default.Attributor.Class("align","ql-align",a),l=new o.default.Attributor.Style("align","text-align",a);e.AlignAttribute=s,e.AlignClass=u,e.AlignStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=n(26),s=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),u=new a.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});e.BackgroundClass=s,e.BackgroundStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},s=new o.default.Attributor.Attribute("direction","dir",a),u=new o.default.Attributor.Class("direction","ql-direction",a),l=new o.default.Attributor.Style("direction","direction",a);e.DirectionAttribute=s,e.DirectionClass=u,e.DirectionStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},u={scope:s.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new s.default.Attributor.Class("font","ql-font",u),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"value",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(s.default.Attributor.Style),f=new c("font","font-family",u);e.FontStyle=f,e.FontClass=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=a,e.SizeStyle=s},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(0)),o=a(n(5));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(o.default.events.EDITOR_CHANGE,(function(t,e,n,i){t!==o.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==o.default.sources.USER?r.transform(e):r.record(e,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],o.default.sources.USER),this.ignoreChange=!1;var r=u(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),t=i.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(a(n(9)).default);function u(t){var e=t.reduce((function(t,e){return t+=e.delete||0}),0),n=t.length()-e;return function(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)})))}(t)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=s,e.getLastChangeIndex=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=h(n(3)),a=h(n(2)),s=h(n(8)),u=h(n(23)),l=h(n(34)),c=h(n(59)),f=h(n(60)),d=h(n(28)),p=h(n(61));function h(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],_=["1","2","3",!1],k=["small",!1,"large","huge"],x=function(t){function e(t,n){v(this,e);var r=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return t.emitter.listenDOM("click",document.body,(function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))})),r}return g(e,t),r(e,[{key:"addModule",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){(t.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&C(t,y),new f.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&C(t,b,"background"===n?"#ffffff":"#000000"),new c.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?C(t,w):t.classList.contains("ql-header")?C(t,_):t.classList.contains("ql-size")&&C(t,k)),new d.default(t)})),this.quill.on(s.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(t){t.update()}))}))}}]),e}(l.default);x.DEFAULTS=(0,o.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&((e=document.createElement("input")).setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),s.default.sources.USER),t.quill.setSelection(r.index+1,s.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(t){function e(t,n){v(this,e);var r=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return g(e,t),r(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){u.default.match(e,"enter")?(t.save(),e.preventDefault()):u.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t,e,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,s.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(e=(t=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t;case"formula":if(!n)break;var i=this.quill.getSelection(!0);if(null!=i){var o=i.index+i.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),n,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",s.default.sources.USER),this.quill.setSelection(o+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(p.default);function C(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=E,e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(t<i||e&&t===i&&(null==n.next||0!==n.next.length()))return[n,t];t-=i}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,i=this.find(t),o=i[0],a=t-i[1],s=this.iterator(o);(r=s())&&a<t+e;){var u=r.length();t>a?n(r,t-a,Math.min(e,a+u-t)):n(r,0,Math.min(u,t+e-a)),a+=u}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),a=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,s),n.attach(),n}return i(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)e.push(i.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[a.DATA_KEY].mutations&&(t.domNode[a.DATA_KEY].mutations=[]),e&&s(t.parent))},u=function(t){null!=t.domNode[a.DATA_KEY]&&null!=t.domNode[a.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(u),t.optimize(n))},l=e,c=0;l.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach((function(t){var e=a.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(a.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=a.find(t,!1);s(e,!1),e instanceof o.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(u),i=(l=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)e.push(i.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=a.find(t.target,!0);return null==e?null:null==e.domNode[a.DATA_KEY].mutations?(e.domNode[a.DATA_KEY].mutations=[t],e):(e.domNode[a.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[a.DATA_KEY]&&t.update(t.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=a.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){var r=a.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=a.query(r,a.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),o=a.create(n,r);i.parent.insertBefore(o,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return i(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=a.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:i.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(e=n[o],t.call(i,e,o,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var n=-1;function r(t,e,u){if(t==e)return t?[[0,t]]:[];(u<0||t.length<u)&&(u=null);var c=o(t,e),f=t.substring(0,c);c=a(t=t.substring(c),e=e.substring(c));var d=t.substring(t.length-c),p=function(t,e){var s;if(!t)return[[1,e]];if(!e)return[[n,t]];var u=t.length>e.length?t:e,l=t.length>e.length?e:t,c=u.indexOf(l);if(-1!=c)return s=[[1,u.substring(0,c)],[0,l],[1,u.substring(c+l.length)]],t.length>e.length&&(s[0][0]=s[2][0]=n),s;if(1==l.length)return[[n,t],[1,e]];var f=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function i(t,e,n){for(var r,i,s,u,l=t.substring(n,n+Math.floor(t.length/4)),c=-1,f="";-1!=(c=e.indexOf(l,c+1));){var d=o(t.substring(n),e.substring(c)),p=a(t.substring(0,n),e.substring(0,c));f.length<p+d&&(f=e.substring(c-p,c)+e.substring(c,c+d),r=t.substring(0,n-p),i=t.substring(n+d),s=e.substring(0,c-p),u=e.substring(c+d))}return 2*f.length>=t.length?[r,i,s,u,f]:null}var s,u,l,c,f,d=i(n,r,Math.ceil(n.length/4)),p=i(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;s=p?d&&d[4].length>p[4].length?d:p:d,t.length>e.length?(u=s[0],l=s[1],c=s[2],f=s[3]):(c=s[0],f=s[1],u=s[2],l=s[3]);var h=s[4];return[u,l,c,f,h]}(t,e);if(f){var d=f[0],p=f[1],h=f[2],v=f[3],m=f[4],g=r(d,h),y=r(p,v);return g.concat([[0,m]],y)}return function(t,e){for(var r=t.length,o=e.length,a=Math.ceil((r+o)/2),s=a,u=2*a,l=new Array(u),c=new Array(u),f=0;f<u;f++)l[f]=-1,c[f]=-1;l[s+1]=0,c[s+1]=0;for(var d=r-o,p=d%2!=0,h=0,v=0,m=0,g=0,y=0;y<a;y++){for(var b=-y+h;b<=y-v;b+=2){for(var w=s+b,_=(S=b==-y||b!=y&&l[w-1]<l[w+1]?l[w+1]:l[w-1]+1)-b;S<r&&_<o&&t.charAt(S)==e.charAt(_);)S++,_++;if(l[w]=S,S>r)v+=2;else if(_>o)h+=2;else if(p&&(E=s+d-b)>=0&&E<u&&-1!=c[E]&&S>=(x=r-c[E]))return i(t,e,S,_)}for(var k=-y+m;k<=y-g;k+=2){for(var x,E=s+k,C=(x=k==-y||k!=y&&c[E-1]<c[E+1]?c[E+1]:c[E-1]+1)-k;x<r&&C<o&&t.charAt(r-x-1)==e.charAt(o-C-1);)x++,C++;if(c[E]=x,x>r)g+=2;else if(C>o)m+=2;else if(!p){var S;if((w=s+d-k)>=0&&w<u&&-1!=l[w])if(_=s+(S=l[w])-w,S>=(x=r-x))return i(t,e,S,_)}}}return[[n,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-c),e=e.substring(0,e.length-c));return f&&p.unshift([0,f]),d&&p.push([0,d]),s(p),null!=u&&(p=function(t,e){var r=function(t,e){if(0===e)return[0,t];for(var r=0,i=0;i<t.length;i++){var o=t[i];if(o[0]===n||0===o[0]){var a=r+o[1].length;if(e===a)return[i+1,t];if(e<a){t=t.slice();var s=e-r,u=[o[0],o[1].slice(0,s)],l=[o[0],o[1].slice(s)];return t.splice(i,1,u,l),[i+1,t]}r=a}}throw new Error("cursor_pos is out of bounds!")}(t,e),i=r[1],o=r[0],a=i[o],s=i[o+1];if(null==a)return t;if(0!==a[0])return t;if(null!=s&&a[1]+s[1]===s[1]+a[1])return i.splice(o,2,s,a),l(i,o,2);if(null!=s&&0===s[1].indexOf(a[1])){i.splice(o,2,[s[0],a[1]],[0,a[1]]);var u=s[1].slice(a[1].length);return u.length>0&&i.splice(o+2,0,[s[0],u]),l(i,o,3)}return t}(p,u)),p=function(t){for(var e=!1,r=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},i=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},o=2;o<t.length;o+=1)0===t[o-2][0]&&i(t[o-2][1])&&t[o-1][0]===n&&r(t[o-1][1])&&1===t[o][0]&&r(t[o][1])&&(e=!0,t[o-1][1]=t[o-2][1].slice(-1)+t[o-1][1],t[o][1]=t[o-2][1].slice(-1)+t[o][1],t[o-2][1]=t[o-2][1].slice(0,-1));if(!e)return t;var a=[];for(o=0;o<t.length;o+=1)t[o][1].length>0&&a.push(t[o]);return a}(p)}function i(t,e,n,i){var o=t.substring(0,n),a=e.substring(0,i),s=t.substring(n),u=e.substring(i),l=r(o,a),c=r(s,u);return l.concat(c)}function o(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(o,i)==e.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function s(t){t.push([0,""]);for(var e,r=0,i=0,u=0,l="",c="";r<t.length;)switch(t[r][0]){case 1:u++,c+=t[r][1],r++;break;case n:i++,l+=t[r][1],r++;break;case 0:i+u>1?(0!==i&&0!==u&&(0!==(e=o(c,l))&&(r-i-u>0&&0==t[r-i-u-1][0]?t[r-i-u-1][1]+=c.substring(0,e):(t.splice(0,0,[0,c.substring(0,e)]),r++),c=c.substring(e),l=l.substring(e)),0!==(e=a(c,l))&&(t[r][1]=c.substring(c.length-e)+t[r][1],c=c.substring(0,c.length-e),l=l.substring(0,l.length-e))),0===i?t.splice(r-u,i+u,[1,c]):0===u?t.splice(r-i,i+u,[n,l]):t.splice(r-i-u,i+u,[n,l],[1,c]),r=r-i-u+(i?1:0)+(u?1:0)+1):0!==r&&0==t[r-1][0]?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,u=0,i=0,l="",c=""}""===t[t.length-1][1]&&t.pop();var f=!1;for(r=1;r<t.length-1;)0==t[r-1][0]&&0==t[r+1][0]&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)==t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),f=!0):t[r][1].substring(0,t[r+1][1].length)==t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),f=!0)),r++;f&&s(t)}var u=r;function l(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var i=t[r],o=t[r+1];i[0]===o[1]&&t.splice(r,2,[i[0],i[1]+o[1]])}return t}u.INSERT=1,u.DELETE=n,u.EQUAL=0,t.exports=u},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function i(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}(e=t.exports=n?r:i).supported=r,e.unsupported=i},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t,e){var n=r?r+t:t,i=this._events[n];if(e)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s},a.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var u,l,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,i),!0;case 5:return c.fn.call(c.context,e,n,i,o),!0;case 6:return c.fn.call(c.context,e,n,i,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var d,p=c.length;for(l=0;l<p;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,n);break;case 4:c[l].fn.call(c[l].context,e,n,i);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[l].fn.apply(c[l].context,u)}}return!0},a.prototype.on=function(t,e,n){var i=new o(e,n||this),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(t,e,n){var i=new o(e,n||this,!0),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(t,e,n,o){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return 0==--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==e||o&&!s.once||n&&s.context!==n||(0==--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var u=0,l=[],c=s.length;u<c;u++)(s[u].fn!==e||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=1===l.length?l[0]:l:0==--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new i:delete this._events[e])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,void 0!==t&&(t.exports=a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=b(n(3)),s=b(n(2)),u=b(n(0)),l=b(n(5)),c=b(n(10)),f=b(n(9)),d=n(36),p=n(37),h=b(n(13)),v=n(26),m=n(38),g=n(39),y=n(40);function b(t){return t&&t.__esModule?t:{default:t}}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=(0,c.default)("quill:clipboard"),k="__ql-matcher",x=[[Node.TEXT_NODE,R],[Node.TEXT_NODE,D],["br",function(t,e){return A(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,function(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===T(t).fontStyle&&(n.italic=!0),r.fontWeight&&(T(t).fontWeight.startsWith("bold")||parseInt(T(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=O(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new s.default).insert("\t").concat(e)),e}],["li",function(t,e){var n=u.default.query(t);if(null==n||"list-item"!==n.blotName||!A(e,"\n"))return e;for(var r=-1,i=t.parentNode;!i.classList.contains("ql-clipboard");)"list"===(u.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new s.default).retain(e.length()-1).retain(1,{indent:r}))}],["b",j.bind(j,"bold")],["i",j.bind(j,"italic")],["style",function(){return new s.default}]],E=[d.AlignAttribute,m.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),C=[d.AlignStyle,p.BackgroundStyle,v.ColorStyle,m.DirectionStyle,g.FontStyle,y.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),S=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],x.concat(r.options.matchers).forEach((function(t){var e=i(t,2),o=e[0],a=e[1];(n.matchVisual||a!==M)&&r.addMatcher(o,a)})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,w({},h.default.blotName,e[h.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],u=o[1],l=P(this.container,a,u);return A(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new s.default).retain(l.length()-1).delete(1))),_.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,l.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new s.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,l.default.sources.USER),e.quill.setSelection(r.length()-n.length,l.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[k]=t[k]||[],t[k].push(s)}))}})),[e,n]}}]),e}(f.default);function O(t,e,n){return"object"===(void 0===e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return O(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,a.default)({},w({},e,n),r.attributes))}),new s.default)}function T(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function A(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var i=t.ops[r];if("string"!=typeof i.insert)break;n=i.insert+n}return n.slice(-1*e.length)===e}function N(t){if(0===t.childNodes.length)return!1;var e=T(t);return["block","list-item"].indexOf(e.display)>-1}function P(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new s.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(r,i){var o=P(i,e,n);return i.nodeType===t.ELEMENT_NODE&&(o=e.reduce((function(t,e){return e(i,t)}),o),o=(i[k]||[]).reduce((function(t,e){return e(i,t)}),o)),r.concat(o)}),new s.default):new s.default}function j(t,e,n){return O(n,t,!0)}function L(t,e){var n=u.default.Attributor.Attribute.keys(t),r=u.default.Attributor.Class.keys(t),i=u.default.Attributor.Style.keys(t),o={};return n.concat(r).concat(i).forEach((function(e){var n=u.default.query(e,u.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(null==(n=E[e])||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),null==(n=C[e])||n.attrName!==e&&n.keyName!==e||(n=C[e],o[n.attrName]=n.value(t)||void 0))})),Object.keys(o).length>0&&(e=O(e,o)),e}function I(t,e){var n=u.default.query(t);if(null==n)return e;if(n.prototype instanceof u.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new s.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=O(e,n.blotName,n.formats(t)));return e}function D(t,e){return A(e,"\n")||(N(t)||e.length()>0&&t.nextSibling&&N(t.nextSibling))&&e.insert("\n"),e}function M(t,e){if(N(t)&&null!=t.nextElementSibling&&!A(e,"\n\n")){var n=t.offsetHeight+parseFloat(T(t).marginTop)+parseFloat(T(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function R(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!T(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&N(t.parentNode)||null!=t.previousSibling&&N(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&N(t.parentNode)||null!=t.nextSibling&&N(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}S.DEFAULTS={matchers:[],matchVisual:!0},e.default=S,e.matchAttributor=L,e.matchBlot=I,e.matchNewline=D,e.matchSpacing=M,e.matchText=R},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);s.blotName="bold",s.tagName=["STRONG","B"],e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=c(n(2)),a=c(n(0)),s=c(n(5)),u=c(n(10)),l=c(n(9));function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=(0,u.default)("quill:toolbar"),p=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,o=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");v(a,o.options.container),t.container.parentNode.insertBefore(a,t.container),o.container=a}else"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(t){o.addHandler(t,o.options.handlers[t])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(t){o.attach(t)})),o.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e){t===s.default.events.SELECTION_CHANGE&&o.update(e)})),o.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){var t=o.quill.selection.getRange(),e=r(t,1)[0];o.update(e)})),o):(i=d.error("Container required for toolbar",o.options),f(o,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void d.warn("ignoring attaching to disabled format",n,t);if(null==a.default.query(n))return void d.warn("ignoring attaching to nonexistent format",n,t)}var i="SELECT"===t.tagName?"change":"click";t.addEventListener(i,(function(i){var u=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var l=t.options[t.selectedIndex];u=!l.hasAttribute("selected")&&(l.value||!1)}else u=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();e.quill.focus();var c=e.quill.selection.getRange(),f=r(c,1)[0];if(null!=e.handlers[n])e.handlers[n].call(e,u);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(u=prompt("Enter "+n)))return;e.quill.updateContents((new o.default).retain(f.index).delete(f.length).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,u)),s.default.sources.USER)}else e.quill.format(n,u,s.default.sources.USER);e.update(f)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var i=r(n,2),o=i[0],a=i[1];if("SELECT"===a.tagName){var s=void 0;if(null==t)s=null;else if(null==e[o])s=a.querySelector("option[selected]");else if(!Array.isArray(e[o])){var u=e[o];"string"==typeof u&&(u=u.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+u+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==t)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var l=e[o]===a.getAttribute("value")||null!=e[o]&&e[o].toString()===a.getAttribute("value")||null==e[o]&&!a.getAttribute("value");a.classList.toggle("ql-active",l)}else a.classList.toggle("ql-active",null!=e[o])}))}}]),e}(l.default);function h(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function v(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"==typeof t)h(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?function(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)})),t.appendChild(r)}(n,e,r):h(n,e,r)}})),t.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=a.default.query(e,a.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,s.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",s.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",t,s.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var i="+1"===t?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,s.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,s.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",t,s.default.sources.USER)}}},e.default=p,e.addControls=v},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(28),s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"buildItem",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(28),s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"selectItem",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=e+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=p(n(3)),s=p(n(8)),u=n(43),l=p(u),c=p(n(27)),f=n(15),d=p(n(41));function p(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(t){function e(t,n){h(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return m(e,t),o(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),d.default),this.tooltip=new b(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers.link.call(t,!n.format.link)}))}}]),e}(l.default);y.DEFAULTS=(0,a.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(t){function e(t,n){h(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return m(e,t),o(e,[{key:"listen",value:function(){var t=this;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,s.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(s.default.events.SELECTION_CHANGE,(function(e,n,i){if(null!=e){if(0===e.length&&i===s.default.sources.USER){var o=t.quill.scroll.descendant(c.default,e.index),a=r(o,2),u=a[0],l=a[1];if(null!=u){t.linkRange=new f.Range(e.index-l,u.length());var d=c.default.formats(u.domNode);return t.preview.textContent=d,t.preview.setAttribute("href",d),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(u.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=D(n(29)),i=n(36),o=n(38),a=n(64),s=D(n(65)),u=D(n(66)),l=n(67),c=D(l),f=n(37),d=n(26),p=n(39),h=n(40),v=D(n(56)),m=D(n(68)),g=D(n(27)),y=D(n(69)),b=D(n(70)),w=D(n(71)),_=D(n(72)),k=D(n(73)),x=n(13),E=D(x),C=D(n(74)),S=D(n(75)),O=D(n(57)),T=D(n(41)),A=D(n(28)),N=D(n(59)),P=D(n(60)),j=D(n(61)),L=D(n(108)),I=D(n(62));function D(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":s.default,"formats/code-block":E.default,"formats/header":u.default,"formats/list":c.default,"formats/bold":v.default,"formats/code":x.Code,"formats/italic":m.default,"formats/link":g.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":_.default,"formats/video":k.default,"formats/list/item":l.ListItem,"modules/formula":C.default,"modules/syntax":S.default,"modules/toolbar":O.default,"themes/bubble":L.default,"themes/snow":I.default,"ui/icons":T.default,"ui/picker":A.default,"ui/icon-picker":P.default,"ui/color-picker":N.default,"ui/tooltip":j.default},!0),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(s.default.Attributor.Class),l=new u("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(4),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="blockquote",o.tagName="blockquote",e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(4),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(((r=o)&&r.__esModule?r:{default:r}).default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=u(n(0)),a=u(n(4)),s=u(n(25));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"format",value:function(t,n){t!==p.blotName||n?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:i(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(a.default);d.blotName="list-item",d.tagName="LI";var p=function(t){function e(t){l(this,e);var n=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),i=o.default.find(e.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return f(e,t),r(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"insertBefore",value:function(t,n){if(t instanceof d)i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(s.default);p.blotName="list",p.scope=o.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],e.ListItem=d,e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(56),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="italic",o.tagName=["EM","I"],e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);s.blotName="script",s.tagName=["SUB","SUP"],e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(6),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="strike",o.tagName="S",e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(6),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="underline",o.tagName="U",e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},u=n(27),l=["alt","height","width"],c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"format",value:function(t,n){l.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return l.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,u.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.default.Embed);c.blotName="image",c.tagName="IMG",e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(4),s=n(27),u=(r=s)&&r.__esModule?r:{default:r},l=["height","width"],c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"format",value:function(t,n){l.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return l.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return u.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.BlockEmbed);c.blotName="video",c.className="ql-video",c.tagName="IFRAME",e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=u(n(35)),a=u(n(5)),s=u(n(9));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,null,[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(o.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var p=function(t){function e(){l(this,e);var t=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return f(e,t),r(e,null,[{key:"register",value:function(){a.default.register(d,!0)}}]),e}(s.default);e.FormulaBlot=d,e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=u(n(0)),a=u(n(5)),s=u(n(9));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(u(n(13)).default);d.className="ql-syntax";var p=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),h=function(t){function e(t,n){l(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return f(e,t),r(e,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(d,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=e&&this.quill.setSelection(e,a.default.sources.SILENT)}}}]),e}(s.default);h.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=d,e.CodeToken=p,e.default=h},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=f(n(3)),a=f(n(8)),s=n(43),u=f(s),l=n(15),c=f(n(41));function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(t){function e(t,n){d(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return h(e,t),i(e,[{key:"extendToolbar",value:function(t){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),c.default)}}]),e}(u.default);m.DEFAULTS=(0,o.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(t){function e(t,n){d(this,e);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(a.default.events.EDITOR_CHANGE,(function(t,e,n,i){if(t===a.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&i===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(e.index,e.length);if(1===o.length)r.position(r.quill.getBounds(e));else{var s=o[o.length-1],u=r.quill.getIndex(s),c=Math.min(s.length()-1,e.index+e.length-u),f=r.quill.getBounds(new l.Range(u,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(e,t),i(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),e}(s.BaseTooltip);g.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=g,e.default=m},function(t,e,n){t.exports=n(63)}]).default},t.exports=e()},76067:(t,e,n)=>{"use strict";var r=n(63696),i=n(21664),o=n(91434);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(t,e,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{e.apply(n,l)}catch(t){this.onError(t)}}var u=!1,l=null,c=!1,f=null,d={onError:function(t){u=!0,l=t}};function p(t,e,n,r,i,o,a,c,f){u=!1,l=null,s.apply(d,arguments)}var h=null,v=null,m=null;function g(t,e,n){var r=t.type||"unknown-event";t.currentTarget=m(n),function(t,e,n,r,i,o,s,d,h){if(p.apply(this,arguments),u){if(!u)throw Error(a(198));var v=l;u=!1,l=null,c||(c=!0,f=v)}}(r,e,void 0,t),t.currentTarget=null}var y=null,b={};function w(){if(y)for(var t in b){var e=b[t],n=y.indexOf(t);if(!(-1<n))throw Error(a(96,t));if(!k[n]){if(!e.extractEvents)throw Error(a(97,t));for(var r in k[n]=e,n=e.eventTypes){var i=void 0,o=n[r],s=e,u=r;if(x.hasOwnProperty(u))throw Error(a(99,u));x[u]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&_(l[i],s,u);i=!0}else o.registrationName?(_(o.registrationName,s,u),i=!0):i=!1;if(!i)throw Error(a(98,r,t))}}}}function _(t,e,n){if(E[t])throw Error(a(100,t));E[t]=e,C[t]=e.eventTypes[n].dependencies}var k=[],x={},E={},C={};function S(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];if(!b.hasOwnProperty(e)||b[e]!==r){if(b[e])throw Error(a(102,e));b[e]=r,n=!0}}n&&w()}var O=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),T=null,A=null,N=null;function P(t){if(t=v(t)){if("function"!=typeof T)throw Error(a(280));var e=t.stateNode;e&&(e=h(e),T(t.stateNode,t.type,e))}}function j(t){A?N?N.push(t):N=[t]:A=t}function L(){if(A){var t=A,e=N;if(N=A=null,P(t),e)for(t=0;t<e.length;t++)P(e[t])}}function I(t,e){return t(e)}function D(t,e,n,r,i){return t(e,n,r,i)}function M(){}var R=I,q=!1,B=!1;function F(){null===A&&null===N||(M(),L())}function z(t,e,n){if(B)return t(e,n);B=!0;try{return R(t,e,n)}finally{B=!1,F()}}var U=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H=Object.prototype.hasOwnProperty,W={},V={};function K(t,e,n,r,i,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){Q[t]=new K(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];Q[e]=new K(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){Q[t]=new K(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){Q[t]=new K(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){Q[t]=new K(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){Q[t]=new K(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){Q[t]=new K(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){Q[t]=new K(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){Q[t]=new K(t,5,!1,t.toLowerCase(),null,!1)}));var $=/[\-:]([a-z])/g;function G(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace($,G);Q[e]=new K(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace($,G);Q[e]=new K(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace($,G);Q[e]=new K(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){Q[t]=new K(t,1,!1,t.toLowerCase(),null,!1)})),Q.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){Q[t]=new K(t,1,!1,t.toLowerCase(),null,!0)}));var Z=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(t,e,n,r){var i=Q.hasOwnProperty(e)?Q[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!H.call(V,t)||!H.call(W,t)&&(U.test(t)?V[t]=!0:(W[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}Z.hasOwnProperty("ReactCurrentDispatcher")||(Z.ReactCurrentDispatcher={current:null}),Z.hasOwnProperty("ReactCurrentBatchConfig")||(Z.ReactCurrentBatchConfig={suspense:null});var X=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,tt=J?Symbol.for("react.element"):60103,et=J?Symbol.for("react.portal"):60106,nt=J?Symbol.for("react.fragment"):60107,rt=J?Symbol.for("react.strict_mode"):60108,it=J?Symbol.for("react.profiler"):60114,ot=J?Symbol.for("react.provider"):60109,at=J?Symbol.for("react.context"):60110,st=J?Symbol.for("react.concurrent_mode"):60111,ut=J?Symbol.for("react.forward_ref"):60112,lt=J?Symbol.for("react.suspense"):60113,ct=J?Symbol.for("react.suspense_list"):60120,ft=J?Symbol.for("react.memo"):60115,dt=J?Symbol.for("react.lazy"):60116,pt=J?Symbol.for("react.block"):60121,ht="function"==typeof Symbol&&Symbol.iterator;function vt(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=ht&&t[ht]||t["@@iterator"])?t:null}function mt(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case nt:return"Fragment";case et:return"Portal";case it:return"Profiler";case rt:return"StrictMode";case lt:return"Suspense";case ct:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case at:return"Context.Consumer";case ot:return"Context.Provider";case ut:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case ft:return mt(t.type);case pt:return mt(t.render);case dt:if(t=1===t._status?t._result:null)return mt(t)}return null}function gt(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,i=t._debugSource,o=mt(t.type);n=null,r&&(n=mt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(X,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}function yt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function bt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function wt(t){t._valueTracker||(t._valueTracker=function(t){var e=bt(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function _t(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=bt(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function kt(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function xt(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=yt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function Et(t,e){null!=(e=e.checked)&&Y(t,"checked",e,!1)}function Ct(t,e){Et(t,e);var n=yt(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Ot(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ot(t,e.type,yt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function St(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Ot(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Tt(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function At(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+yt(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function Nt(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Pt(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:yt(n)}}function jt(t,e){var n=yt(e.value),r=yt(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Lt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var It="http://www.w3.org/1999/xhtml",Dt="http://www.w3.org/2000/svg";function Mt(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Rt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Mt(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var qt,Bt,Ft=(Bt=function(t,e){if(t.namespaceURI!==Dt||"innerHTML"in t)t.innerHTML=e;else{for((qt=qt||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=qt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction((function(){return Bt(t,e)}))}:Bt);function zt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function Ut(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ht={animationend:Ut("Animation","AnimationEnd"),animationiteration:Ut("Animation","AnimationIteration"),animationstart:Ut("Animation","AnimationStart"),transitionend:Ut("Transition","TransitionEnd")},Wt={},Vt={};function Kt(t){if(Wt[t])return Wt[t];if(!Ht[t])return t;var e,n=Ht[t];for(e in n)if(n.hasOwnProperty(e)&&e in Vt)return Wt[t]=n[e];return t}O&&(Vt=document.createElement("div").style,"AnimationEvent"in window||(delete Ht.animationend.animation,delete Ht.animationiteration.animation,delete Ht.animationstart.animation),"TransitionEvent"in window||delete Ht.transitionend.transition);var Qt=Kt("animationend"),$t=Kt("animationiteration"),Gt=Kt("animationstart"),Zt=Kt("transitionend"),Yt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xt=new("function"==typeof WeakMap?WeakMap:Map);function Jt(t){var e=Xt.get(t);return void 0===e&&(e=new Map,Xt.set(t,e)),e}function te(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{!!(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function ee(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ne(t){if(te(t)!==t)throw Error(a(188))}function re(t){if(t=function(t){var e=t.alternate;if(!e){if(null===(e=te(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ne(i),t;if(o===r)return ne(i),e;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?t:e}(t),!t)return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function ie(t,e){if(null==e)throw Error(a(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function oe(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var ae=null;function se(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;r<e.length&&!t.isPropagationStopped();r++)g(t,e[r],n[r]);else e&&g(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function ue(t){if(null!==t&&(ae=ie(ae,t)),t=ae,ae=null,t){if(oe(t,se),ae)throw Error(a(95));if(c)throw t=f,c=!1,f=null,t}}function le(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function ce(t){if(!O)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"==typeof e[t]),e}var fe=[];function de(t){t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>fe.length&&fe.push(t)}function pe(t,e,n,r){if(fe.length){var i=fe.pop();return i.topLevelType=t,i.eventSystemFlags=r,i.nativeEvent=e,i.targetInst=n,i}return{topLevelType:t,eventSystemFlags:r,nativeEvent:e,targetInst:n,ancestors:[]}}function he(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=Ln(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var i=le(t.nativeEvent);r=t.topLevelType;var o=t.nativeEvent,a=t.eventSystemFlags;0===n&&(a|=64);for(var s=null,u=0;u<k.length;u++){var l=k[u];l&&(l=l.extractEvents(r,e,o,i,a))&&(s=ie(s,l))}ue(s)}}function ve(t,e,n){if(!n.has(t)){switch(t){case"scroll":Ge(e,"scroll",!0);break;case"focus":case"blur":Ge(e,"focus",!0),Ge(e,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ce(t)&&Ge(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Yt.indexOf(t)&&$e(t,e)}n.set(t,null)}}var me,ge,ye,be=!1,we=[],_e=null,ke=null,xe=null,Ee=new Map,Ce=new Map,Se=[],Oe="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Te="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ae(t,e,n,r,i){return{blockedOn:t,topLevelType:e,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Ne(t,e){switch(t){case"focus":case"blur":_e=null;break;case"dragenter":case"dragleave":ke=null;break;case"mouseover":case"mouseout":xe=null;break;case"pointerover":case"pointerout":Ee.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ce.delete(e.pointerId)}}function Pe(t,e,n,r,i,o){return null===t||t.nativeEvent!==o?(t=Ae(e,n,r,i,o),null!==e&&(null!==(e=In(e))&&ge(e)),t):(t.eventSystemFlags|=r,t)}function je(t){var e=Ln(t.target);if(null!==e){var n=te(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=ee(n)))return t.blockedOn=e,void o.unstable_runWithPriority(t.priority,(function(){ye(n)}))}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function Le(t){if(null!==t.blockedOn)return!1;var e=Je(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=In(e);return null!==n&&ge(n),t.blockedOn=e,!1}return!0}function Ie(t,e,n){Le(t)&&n.delete(e)}function De(){for(be=!1;0<we.length;){var t=we[0];if(null!==t.blockedOn){null!==(t=In(t.blockedOn))&&me(t);break}var e=Je(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:we.shift()}null!==_e&&Le(_e)&&(_e=null),null!==ke&&Le(ke)&&(ke=null),null!==xe&&Le(xe)&&(xe=null),Ee.forEach(Ie),Ce.forEach(Ie)}function Me(t,e){t.blockedOn===e&&(t.blockedOn=null,be||(be=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,De)))}function Re(t){function e(e){return Me(e,t)}if(0<we.length){Me(we[0],t);for(var n=1;n<we.length;n++){var r=we[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==_e&&Me(_e,t),null!==ke&&Me(ke,t),null!==xe&&Me(xe,t),Ee.forEach(e),Ce.forEach(e),n=0;n<Se.length;n++)(r=Se[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Se.length&&null===(n=Se[0]).blockedOn;)je(n),null===n.blockedOn&&Se.shift()}var qe={},Be=new Map,Fe=new Map,ze=["abort","abort",Qt,"animationEnd",$t,"animationIteration",Gt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Zt,"transitionEnd","waiting","waiting"];function Ue(t,e){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:e},Fe.set(r,e),Be.set(r,o),qe[i]=o}}Ue("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ue("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ue(ze,2);for(var He="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),We=0;We<He.length;We++)Fe.set(He[We],0);var Ve=o.unstable_UserBlockingPriority,Ke=o.unstable_runWithPriority,Qe=!0;function $e(t,e){Ge(e,t,!1)}function Ge(t,e,n){var r=Fe.get(e);switch(void 0===r?2:r){case 0:r=Ze.bind(null,e,1,t);break;case 1:r=Ye.bind(null,e,1,t);break;default:r=Xe.bind(null,e,1,t)}n?t.addEventListener(e,r,!0):t.addEventListener(e,r,!1)}function Ze(t,e,n,r){q||M();var i=Xe,o=q;q=!0;try{D(i,t,e,n,r)}finally{(q=o)||F()}}function Ye(t,e,n,r){Ke(Ve,Xe.bind(null,t,e,n,r))}function Xe(t,e,n,r){if(Qe)if(0<we.length&&-1<Oe.indexOf(t))t=Ae(null,t,e,n,r),we.push(t);else{var i=Je(t,e,n,r);if(null===i)Ne(t,r);else if(-1<Oe.indexOf(t))t=Ae(i,t,e,n,r),we.push(t);else if(!function(t,e,n,r,i){switch(e){case"focus":return _e=Pe(_e,t,e,n,r,i),!0;case"dragenter":return ke=Pe(ke,t,e,n,r,i),!0;case"mouseover":return xe=Pe(xe,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ee.set(o,Pe(Ee.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ce.set(o,Pe(Ce.get(o)||null,t,e,n,r,i)),!0}return!1}(i,t,e,n,r)){Ne(t,r),t=pe(t,r,null,e);try{z(he,t)}finally{de(t)}}}}function Je(t,e,n,r){if(null!==(n=Ln(n=le(r)))){var i=te(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=ee(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}t=pe(t,r,n,e);try{z(he,t)}finally{de(t)}return null}var tn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function nn(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||tn.hasOwnProperty(t)&&tn[t]?(""+e).trim():e+"px"}function rn(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=nn(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(tn).forEach((function(t){en.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),tn[e]=tn[t]}))}));var on=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(t,e){if(e){if(on[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(a(62,""))}}function sn(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var un=It;function ln(t,e){var n=Jt(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=C[e];for(var r=0;r<e.length;r++)ve(e[r],t,n)}function cn(){}function fn(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function dn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function pn(t,e){var n,r=dn(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=dn(r)}}function hn(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?hn(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function vn(){for(var t=window,e=fn();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=fn((t=e.contentWindow).document)}return e}function mn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var gn="$",yn="/$",bn="$?",wn="$!",_n=null,kn=null;function xn(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function En(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var Cn="function"==typeof setTimeout?setTimeout:void 0,Sn="function"==typeof clearTimeout?clearTimeout:void 0;function On(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function Tn(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if(n===gn||n===wn||n===bn){if(0===e)return t;e--}else n===yn&&e++}t=t.previousSibling}return null}var An=Math.random().toString(36).slice(2),Nn="__reactInternalInstance$"+An,Pn="__reactEventHandlers$"+An,jn="__reactContainere$"+An;function Ln(t){var e=t[Nn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[jn]||n[Nn]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=Tn(t);null!==t;){if(n=t[Nn])return n;t=Tn(t)}return e}n=(t=n).parentNode}return null}function In(t){return!(t=t[Nn]||t[jn])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function Dn(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function Mn(t){return t[Pn]||null}function Rn(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function qn(t,e){var n=t.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(a(231,e,typeof n));return n}function Bn(t,e,n){(e=qn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=ie(n._dispatchListeners,e),n._dispatchInstances=ie(n._dispatchInstances,t))}function Fn(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=Rn(e);for(e=n.length;0<e--;)Bn(n[e],"captured",t);for(e=0;e<n.length;e++)Bn(n[e],"bubbled",t)}}function zn(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=qn(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ie(n._dispatchListeners,e),n._dispatchInstances=ie(n._dispatchInstances,t))}function Un(t){t&&t.dispatchConfig.registrationName&&zn(t._targetInst,null,t)}function Hn(t){oe(t,Fn)}var Wn=null,Vn=null,Kn=null;function Qn(){if(Kn)return Kn;var t,e,n=Vn,r=n.length,i="value"in Wn?Wn.value:Wn.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return Kn=i.slice(t,1<e?1-e:void 0)}function $n(){return!0}function Gn(){return!1}function Zn(t,e,n,r){for(var i in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?$n:Gn,this.isPropagationStopped=Gn,this}function Yn(t,e,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,n,r),i}return new this(t,e,n,r)}function Xn(t){if(!(t instanceof this))throw Error(a(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function Jn(t){t.eventPool=[],t.getPooled=Yn,t.release=Xn}i(Zn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=$n)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=$n)},persist:function(){this.isPersistent=$n},isPersistent:Gn,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Gn,this._dispatchInstances=this._dispatchListeners=null}}),Zn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Zn.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,Jn(n),n},Jn(Zn);var tr=Zn.extend({data:null}),er=Zn.extend({data:null}),nr=[9,13,27,32],rr=O&&"CompositionEvent"in window,ir=null;O&&"documentMode"in document&&(ir=document.documentMode);var or=O&&"TextEvent"in window&&!ir,ar=O&&(!rr||ir&&8<ir&&11>=ir),sr=String.fromCharCode(32),ur={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},lr=!1;function cr(t,e){switch(t){case"keyup":return-1!==nr.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function fr(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var dr=!1;var pr={eventTypes:ur,extractEvents:function(t,e,n,r){var i;if(rr)t:{switch(t){case"compositionstart":var o=ur.compositionStart;break t;case"compositionend":o=ur.compositionEnd;break t;case"compositionupdate":o=ur.compositionUpdate;break t}o=void 0}else dr?cr(t,n)&&(o=ur.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=ur.compositionStart);return o?(ar&&"ko"!==n.locale&&(dr||o!==ur.compositionStart?o===ur.compositionEnd&&dr&&(i=Qn()):(Vn="value"in(Wn=r)?Wn.value:Wn.textContent,dr=!0)),o=tr.getPooled(o,e,n,r),i?o.data=i:null!==(i=fr(n))&&(o.data=i),Hn(o),i=o):i=null,(t=or?function(t,e){switch(t){case"compositionend":return fr(e);case"keypress":return 32!==e.which?null:(lr=!0,sr);case"textInput":return(t=e.data)===sr&&lr?null:t;default:return null}}(t,n):function(t,e){if(dr)return"compositionend"===t||!rr&&cr(t,e)?(t=Qn(),Kn=Vn=Wn=null,dr=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return ar&&"ko"!==e.locale?null:e.data}}(t,n))?((e=er.getPooled(ur.beforeInput,e,n,r)).data=t,Hn(e)):e=null,null===i?e:null===e?i:[i,e]}},hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function vr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!hr[t.type]:"textarea"===e}var mr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function gr(t,e,n){return(t=Zn.getPooled(mr.change,t,e,n)).type="change",j(n),Hn(t),t}var yr=null,br=null;function wr(t){ue(t)}function _r(t){if(_t(Dn(t)))return t}function kr(t,e){if("change"===t)return e}var xr=!1;function Er(){yr&&(yr.detachEvent("onpropertychange",Cr),br=yr=null)}function Cr(t){if("value"===t.propertyName&&_r(br))if(t=gr(br,t,le(t)),q)ue(t);else{q=!0;try{I(wr,t)}finally{q=!1,F()}}}function Sr(t,e,n){"focus"===t?(Er(),br=n,(yr=e).attachEvent("onpropertychange",Cr)):"blur"===t&&Er()}function Or(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return _r(br)}function Tr(t,e){if("click"===t)return _r(e)}function Ar(t,e){if("input"===t||"change"===t)return _r(e)}O&&(xr=ce("input")&&(!document.documentMode||9<document.documentMode));var Nr={eventTypes:mr,_isInputEventSupported:xr,extractEvents:function(t,e,n,r){var i=e?Dn(e):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=kr;else if(vr(i))if(xr)a=Ar;else{a=Or;var s=Sr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Tr);if(a&&(a=a(t,e)))return gr(a,n,r);s&&s(t,i,e),"blur"===t&&(t=i._wrapperState)&&t.controlled&&"number"===i.type&&Ot(i,"number",i.value)}},Pr=Zn.extend({view:null,detail:null}),jr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lr(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=jr[t])&&!!e[t]}function Ir(){return Lr}var Dr=0,Mr=0,Rr=!1,qr=!1,Br=Pr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ir,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Dr;return Dr=t.screenX,Rr?"mousemove"===t.type?t.screenX-e:0:(Rr=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Mr;return Mr=t.screenY,qr?"mousemove"===t.type?t.screenY-e:0:(qr=!0,0)}}),Fr=Br.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),zr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Ur={eventTypes:zr,extractEvents:function(t,e,n,r,i){var o="mouseover"===t||"pointerover"===t,a="mouseout"===t||"pointerout"===t;if(o&&!(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=e,null!==(e=(e=n.relatedTarget||n.toElement)?Ln(e):null)&&(e!==te(e)||5!==e.tag&&6!==e.tag)&&(e=null)):a=null;if(a===e)return null;if("mouseout"===t||"mouseover"===t)var s=Br,u=zr.mouseLeave,l=zr.mouseEnter,c="mouse";else"pointerout"!==t&&"pointerover"!==t||(s=Fr,u=zr.pointerLeave,l=zr.pointerEnter,c="pointer");if(t=null==a?o:Dn(a),o=null==e?o:Dn(e),(u=s.getPooled(u,a,n,r)).type=c+"leave",u.target=t,u.relatedTarget=o,(n=s.getPooled(l,e,n,r)).type=c+"enter",n.target=o,n.relatedTarget=t,c=e,(r=a)&&c)t:{for(l=c,a=0,t=s=r;t;t=Rn(t))a++;for(t=0,e=l;e;e=Rn(e))t++;for(;0<a-t;)s=Rn(s),a--;for(;0<t-a;)l=Rn(l),t--;for(;a--;){if(s===l||s===l.alternate)break t;s=Rn(s),l=Rn(l)}s=null}else s=null;for(l=s,s=[];r&&r!==l&&(null===(a=r.alternate)||a!==l);)s.push(r),r=Rn(r);for(r=[];c&&c!==l&&(null===(a=c.alternate)||a!==l);)r.push(c),c=Rn(c);for(c=0;c<s.length;c++)zn(s[c],"bubbled",u);for(c=r.length;0<c--;)zn(r[c],"captured",n);return 64&i?[u,n]:[u]}};var Hr="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},Wr=Object.prototype.hasOwnProperty;function Vr(t,e){if(Hr(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Wr.call(e,n[r])||!Hr(t[n[r]],e[n[r]]))return!1;return!0}var Kr=O&&"documentMode"in document&&11>=document.documentMode,Qr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},$r=null,Gr=null,Zr=null,Yr=!1;function Xr(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Yr||null==$r||$r!==fn(n)?null:("selectionStart"in(n=$r)&&mn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Zr&&Vr(Zr,n)?null:(Zr=n,(t=Zn.getPooled(Qr.select,Gr,t,e)).type="select",t.target=$r,Hn(t),t))}var Jr={eventTypes:Qr,extractEvents:function(t,e,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{i=Jt(i),o=C.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break t}i=!0}o=!i}if(o)return null;switch(i=e?Dn(e):window,t){case"focus":(vr(i)||"true"===i.contentEditable)&&($r=i,Gr=e,Zr=null);break;case"blur":Zr=Gr=$r=null;break;case"mousedown":Yr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yr=!1,Xr(n,r);case"selectionchange":if(Kr)break;case"keydown":case"keyup":return Xr(n,r)}return null}},ti=Zn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),ei=Zn.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ni=Pr.extend({relatedTarget:null});function ri(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var ii={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oi={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ai=Pr.extend({key:function(t){if(t.key){var e=ii[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=ri(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?oi[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ir,charCode:function(t){return"keypress"===t.type?ri(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?ri(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),si=Br.extend({dataTransfer:null}),ui=Pr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ir}),li=Zn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ci=Br.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),fi={eventTypes:qe,extractEvents:function(t,e,n,r){var i=Be.get(t);if(!i)return null;switch(t){case"keypress":if(0===ri(n))return null;case"keydown":case"keyup":t=ai;break;case"blur":case"focus":t=ni;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=Br;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=si;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=ui;break;case Qt:case $t:case Gt:t=ti;break;case Zt:t=li;break;case"scroll":t=Pr;break;case"wheel":t=ci;break;case"copy":case"cut":case"paste":t=ei;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Fr;break;default:t=Zn}return Hn(e=t.getPooled(i,e,n,r)),e}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Mn,v=In,m=Dn,S({SimpleEventPlugin:fi,EnterLeaveEventPlugin:Ur,ChangeEventPlugin:Nr,SelectEventPlugin:Jr,BeforeInputEventPlugin:pr});var di=[],pi=-1;function hi(t){0>pi||(t.current=di[pi],di[pi]=null,pi--)}function vi(t,e){pi++,di[pi]=t.current,t.current=e}var mi={},gi={current:mi},yi={current:!1},bi=mi;function wi(t,e){var n=t.type.contextTypes;if(!n)return mi;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function _i(t){return null!=(t=t.childContextTypes)}function ki(){hi(yi),hi(gi)}function xi(t,e,n){if(gi.current!==mi)throw Error(a(168));vi(gi,e),vi(yi,n)}function Ei(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,mt(e)||"Unknown",o));return i({},n,{},r)}function Ci(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||mi,bi=gi.current,vi(gi,t),vi(yi,yi.current),!0}function Si(t,e,n){var r=t.stateNode;if(!r)throw Error(a(169));n?(t=Ei(t,e,bi),r.__reactInternalMemoizedMergedChildContext=t,hi(yi),hi(gi),vi(gi,t)):hi(yi),vi(yi,n)}var Oi=o.unstable_runWithPriority,Ti=o.unstable_scheduleCallback,Ai=o.unstable_cancelCallback,Ni=o.unstable_requestPaint,Pi=o.unstable_now,ji=o.unstable_getCurrentPriorityLevel,Li=o.unstable_ImmediatePriority,Ii=o.unstable_UserBlockingPriority,Di=o.unstable_NormalPriority,Mi=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,qi={},Bi=o.unstable_shouldYield,Fi=void 0!==Ni?Ni:function(){},zi=null,Ui=null,Hi=!1,Wi=Pi(),Vi=1e4>Wi?Pi:function(){return Pi()-Wi};function Ki(){switch(ji()){case Li:return 99;case Ii:return 98;case Di:return 97;case Mi:return 96;case Ri:return 95;default:throw Error(a(332))}}function Qi(t){switch(t){case 99:return Li;case 98:return Ii;case 97:return Di;case 96:return Mi;case 95:return Ri;default:throw Error(a(332))}}function $i(t,e){return t=Qi(t),Oi(t,e)}function Gi(t,e,n){return t=Qi(t),Ti(t,e,n)}function Zi(t){return null===zi?(zi=[t],Ui=Ti(Li,Xi)):zi.push(t),qi}function Yi(){if(null!==Ui){var t=Ui;Ui=null,Ai(t)}Xi()}function Xi(){if(!Hi&&null!==zi){Hi=!0;var t=0;try{var e=zi;$i(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),zi=null}catch(e){throw null!==zi&&(zi=zi.slice(t+1)),Ti(Li,Yi),e}finally{Hi=!1}}}function Ji(t,e,n){return 1073741821-(1+((1073741821-t+e/10)/(n/=10)|0))*n}function to(t,e){if(t&&t.defaultProps)for(var n in e=i({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var eo={current:null},no=null,ro=null,io=null;function oo(){io=ro=no=null}function ao(t){var e=eo.current;hi(eo),t.type._context._currentValue=e}function so(t,e){for(;null!==t;){var n=t.alternate;if(t.childExpirationTime<e)t.childExpirationTime=e,null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e);else{if(!(null!==n&&n.childExpirationTime<e))break;n.childExpirationTime=e}t=t.return}}function uo(t,e){no=t,io=ro=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(Ma=!0),t.firstContext=null)}function lo(t,e){if(io!==t&&!1!==e&&0!==e)if("number"==typeof e&&1073741823!==e||(io=t,e=1073741823),e={context:t,observedBits:e,next:null},null===ro){if(null===no)throw Error(a(308));ro=e,no.dependencies={expirationTime:0,firstContext:e,responders:null}}else ro=ro.next=e;return t._currentValue}var co=!1;function fo(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function po(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function ho(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function vo(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function mo(t,e){var n=t.alternate;null!==n&&po(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function go(t,e,n,r){var o=t.updateQueue;co=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var u=a.next;a.next=s.next,s.next=u}a=s,o.shared.pending=null,null!==(u=t.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=s))}if(null!==a){u=a.next;var l=o.baseState,c=0,f=null,d=null,p=null;if(null!==u)for(var h=u;;){if((s=h.expirationTime)<r){var v={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(d=p=v,f=l):p=p.next=v,s>c&&(c=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),ku(s,h.suspenseConfig);t:{var m=t,g=h;switch(s=e,v=n,g.tag){case 1:if("function"==typeof(m=g.payload)){l=m.call(v,l,s);break t}l=m;break t;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null==(s="function"==typeof(m=g.payload)?m.call(v,l,s):m))break t;l=i({},l,s);break t;case 2:co=!0}}null!==h.callback&&(t.effectTag|=32,null===(s=o.effects)?o.effects=[h]:s.push(h))}if(null===(h=h.next)||h===u){if(null===(s=o.shared.pending))break;h=a.next=s.next,s.next=u,o.baseQueue=a=s,o.shared.pending=null}}null===p?f=l:p.next=d,o.baseState=f,o.baseQueue=p,xu(c),t.expirationTime=c,t.memoizedState=l}}function yo(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var bo=Z.ReactCurrentBatchConfig,wo=(new r.Component).refs;function _o(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:i({},e,n),t.memoizedState=n,0===t.expirationTime&&(t.updateQueue.baseState=n)}var ko={isMounted:function(t){return!!(t=t._reactInternalFiber)&&te(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=lu(),i=bo.suspense;(i=ho(r=cu(r,t,i),i)).payload=e,null!=n&&(i.callback=n),vo(t,i),fu(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=lu(),i=bo.suspense;(i=ho(r=cu(r,t,i),i)).tag=1,i.payload=e,null!=n&&(i.callback=n),vo(t,i),fu(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=lu(),r=bo.suspense;(r=ho(n=cu(n,t,r),r)).tag=2,null!=e&&(r.callback=e),vo(t,r),fu(t,n)}};function xo(t,e,n,r,i,o,a){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!Vr(n,r)||!Vr(i,o))}function Eo(t,e,n){var r=!1,i=mi,o=e.contextType;return"object"==typeof o&&null!==o?o=lo(o):(i=_i(e)?bi:gi.current,o=(r=null!=(r=e.contextTypes))?wi(t,i):mi),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=ko,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function Co(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&ko.enqueueReplaceState(e,e.state,null)}function So(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=wo,fo(t);var o=e.contextType;"object"==typeof o&&null!==o?i.context=lo(o):(o=_i(e)?bi:gi.current,i.context=wi(t,o)),go(t,n,i,r),i.state=t.memoizedState,"function"==typeof(o=e.getDerivedStateFromProps)&&(_o(t,e,o,n),i.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(e=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&ko.enqueueReplaceState(i,i.state,null),go(t,n,i,r),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.effectTag|=4)}var Oo=Array.isArray;function To(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,t));var i=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===i?e.ref:(e=function(t){var e=r.refs;e===wo&&(e=r.refs={}),null===t?delete e[i]:e[i]=t},e._stringRef=i,e)}if("string"!=typeof t)throw Error(a(284));if(!n._owner)throw Error(a(290,t))}return t}function Ao(t,e){if("textarea"!==t.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function No(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=Hu(t,e)).index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function s(e){return t&&null===e.alternate&&(e.effectTag=2),e}function u(t,e,n,r){return null===e||6!==e.tag?((e=Ku(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function l(t,e,n,r){return null!==e&&e.elementType===n.type?((r=i(e,n.props)).ref=To(t,e,n),r.return=t,r):((r=Wu(n.type,n.key,n.props,null,t.mode,r)).ref=To(t,e,n),r.return=t,r)}function c(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Qu(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function f(t,e,n,r,o){return null===e||7!==e.tag?((e=Vu(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function d(t,e,n){if("string"==typeof e||"number"==typeof e)return(e=Ku(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case tt:return(n=Wu(e.type,e.key,e.props,null,t.mode,n)).ref=To(t,null,e),n.return=t,n;case et:return(e=Qu(e,t.mode,n)).return=t,e}if(Oo(e)||vt(e))return(e=Vu(e,t.mode,n,null)).return=t,e;Ao(t,e)}return null}function p(t,e,n,r){var i=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case tt:return n.key===i?n.type===nt?f(t,e,n.props.children,r,i):l(t,e,n,r):null;case et:return n.key===i?c(t,e,n,r):null}if(Oo(n)||vt(n))return null!==i?null:f(t,e,n,r,null);Ao(t,n)}return null}function h(t,e,n,r,i){if("string"==typeof r||"number"==typeof r)return u(e,t=t.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case tt:return t=t.get(null===r.key?n:r.key)||null,r.type===nt?f(e,t,r.props.children,i,r.key):l(e,t,r,i);case et:return c(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(Oo(r)||vt(r))return f(e,t=t.get(n)||null,r,i,null);Ao(e,r)}return null}function v(i,a,s,u){for(var l=null,c=null,f=a,v=a=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=p(i,f,s[v],u);if(null===g){null===f&&(f=m);break}t&&f&&null===g.alternate&&e(i,f),a=o(g,a,v),null===c?l=g:c.sibling=g,c=g,f=m}if(v===s.length)return n(i,f),l;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],u))&&(a=o(f,a,v),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);v<s.length;v++)null!==(m=h(f,i,v,s[v],u))&&(t&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=o(m,a,v),null===c?l=m:c.sibling=m,c=m);return t&&f.forEach((function(t){return e(i,t)})),l}function m(i,s,u,l){var c=vt(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,v=s,m=s=0,g=null,y=u.next();null!==v&&!y.done;m++,y=u.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=p(i,v,y.value,l);if(null===b){null===v&&(v=g);break}t&&v&&null===b.alternate&&e(i,v),s=o(b,s,m),null===f?c=b:f.sibling=b,f=b,v=g}if(y.done)return n(i,v),c;if(null===v){for(;!y.done;m++,y=u.next())null!==(y=d(i,y.value,l))&&(s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return c}for(v=r(i,v);!y.done;m++,y=u.next())null!==(y=h(v,i,m,y.value,l))&&(t&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return t&&v.forEach((function(t){return e(i,t)})),c}return function(t,r,o,u){var l="object"==typeof o&&null!==o&&o.type===nt&&null===o.key;l&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case tt:t:{for(c=o.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(o.type===nt){n(t,l.sibling),(r=i(l,o.props.children)).return=t,t=r;break t}}else if(l.elementType===o.type){n(t,l.sibling),(r=i(l,o.props)).ref=To(t,l,o),r.return=t,t=r;break t}n(t,l);break}e(t,l),l=l.sibling}o.type===nt?((r=Vu(o.props.children,t.mode,u,o.key)).return=t,t=r):((u=Wu(o.type,o.key,o.props,null,t.mode,u)).ref=To(t,r,o),u.return=t,t=u)}return s(t);case et:t:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Qu(o,t.mode,u)).return=t,t=r}return s(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Ku(o,t.mode,u)).return=t,t=r),s(t);if(Oo(o))return v(t,r,o,u);if(vt(o))return m(t,r,o,u);if(c&&Ao(t,o),void 0===o&&!l)switch(t.tag){case 1:case 0:throw t=t.type,Error(a(152,t.displayName||t.name||"Component"))}return n(t,r)}}var Po=No(!0),jo=No(!1),Lo={},Io={current:Lo},Do={current:Lo},Mo={current:Lo};function Ro(t){if(t===Lo)throw Error(a(174));return t}function qo(t,e){switch(vi(Mo,e),vi(Do,t),vi(Io,Lo),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Rt(null,"");break;default:e=Rt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}hi(Io),vi(Io,e)}function Bo(){hi(Io),hi(Do),hi(Mo)}function Fo(t){Ro(Mo.current);var e=Ro(Io.current),n=Rt(e,t.type);e!==n&&(vi(Do,t),vi(Io,n))}function zo(t){Do.current===t&&(hi(Io),hi(Do))}var Uo={current:0};function Ho(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===bn||n.data===wn))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(64&e.effectTag)return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Wo(t,e){return{responder:t,props:e}}var Vo=Z.ReactCurrentDispatcher,Ko=Z.ReactCurrentBatchConfig,Qo=0,$o=null,Go=null,Zo=null,Yo=!1;function Xo(){throw Error(a(321))}function Jo(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Hr(t[n],e[n]))return!1;return!0}function ta(t,e,n,r,i,o){if(Qo=o,$o=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,Vo.current=null===t||null===t.memoizedState?xa:Ea,t=n(r,i),e.expirationTime===Qo){o=0;do{if(e.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Zo=Go=null,e.updateQueue=null,Vo.current=Ca,t=n(r,i)}while(e.expirationTime===Qo)}if(Vo.current=ka,e=null!==Go&&null!==Go.next,Qo=0,Zo=Go=$o=null,Yo=!1,e)throw Error(a(300));return t}function ea(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zo?$o.memoizedState=Zo=t:Zo=Zo.next=t,Zo}function na(){if(null===Go){var t=$o.alternate;t=null!==t?t.memoizedState:null}else t=Go.next;var e=null===Zo?$o.memoizedState:Zo.next;if(null!==e)Zo=e,Go=t;else{if(null===t)throw Error(a(310));t={memoizedState:(Go=t).memoizedState,baseState:Go.baseState,baseQueue:Go.baseQueue,queue:Go.queue,next:null},null===Zo?$o.memoizedState=Zo=t:Zo=Zo.next=t}return Zo}function ra(t,e){return"function"==typeof e?e(t):e}function ia(t){var e=na(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=Go,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=o=null,l=i;do{var c=l.expirationTime;if(c<Qo){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,c>$o.expirationTime&&($o.expirationTime=c,xu(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),ku(c,l.suspenseConfig),r=l.eagerReducer===t?l.eagerState:t(r,l.action);l=l.next}while(null!==l&&l!==i);null===u?o=r:u.next=s,Hr(r,e.memoizedState)||(Ma=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=u,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function oa(t){var e=na(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=t(o,s.action),s=s.next}while(s!==i);Hr(o,e.memoizedState)||(Ma=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function aa(t){var e=ea();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:ra,lastRenderedState:t}).dispatch=_a.bind(null,$o,t),[e.memoizedState,t]}function sa(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=$o.updateQueue)?(e={lastEffect:null},$o.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function ua(){return na().memoizedState}function la(t,e,n,r){var i=ea();$o.effectTag|=t,i.memoizedState=sa(1|e,n,void 0,void 0===r?null:r)}function ca(t,e,n,r){var i=na();r=void 0===r?null:r;var o=void 0;if(null!==Go){var a=Go.memoizedState;if(o=a.destroy,null!==r&&Jo(r,a.deps))return void sa(e,n,o,r)}$o.effectTag|=t,i.memoizedState=sa(1|e,n,o,r)}function fa(t,e){return la(516,4,t,e)}function da(t,e){return ca(516,4,t,e)}function pa(t,e){return ca(4,2,t,e)}function ha(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function va(t,e,n){return n=null!=n?n.concat([t]):null,ca(4,2,ha.bind(null,e,t),n)}function ma(){}function ga(t,e){return ea().memoizedState=[t,void 0===e?null:e],t}function ya(t,e){var n=na();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Jo(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function ba(t,e){var n=na();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Jo(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function wa(t,e,n){var r=Ki();$i(98>r?98:r,(function(){t(!0)})),$i(97<r?97:r,(function(){var r=Ko.suspense;Ko.suspense=void 0===e?null:e;try{t(!1),n()}finally{Ko.suspense=r}}))}function _a(t,e,n){var r=lu(),i=bo.suspense;i={expirationTime:r=cu(r,t,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=e.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),e.pending=i,o=t.alternate,t===$o||null!==o&&o===$o)Yo=!0,i.expirationTime=Qo,$o.expirationTime=Qo;else{if(0===t.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=e.lastRenderedReducer))try{var a=e.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Hr(s,a))return}catch(t){}fu(t,r)}}var ka={readContext:lo,useCallback:Xo,useContext:Xo,useEffect:Xo,useImperativeHandle:Xo,useLayoutEffect:Xo,useMemo:Xo,useReducer:Xo,useRef:Xo,useState:Xo,useDebugValue:Xo,useResponder:Xo,useDeferredValue:Xo,useTransition:Xo},xa={readContext:lo,useCallback:ga,useContext:lo,useEffect:fa,useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,la(4,2,ha.bind(null,e,t),n)},useLayoutEffect:function(t,e){return la(4,2,t,e)},useMemo:function(t,e){var n=ea();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=ea();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t=(t=r.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=_a.bind(null,$o,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},ea().memoizedState=t},useState:aa,useDebugValue:ma,useResponder:Wo,useDeferredValue:function(t,e){var n=aa(t),r=n[0],i=n[1];return fa((function(){var n=Ko.suspense;Ko.suspense=void 0===e?null:e;try{i(t)}finally{Ko.suspense=n}}),[t,e]),r},useTransition:function(t){var e=aa(!1),n=e[0];return e=e[1],[ga(wa.bind(null,e,t),[e,t]),n]}},Ea={readContext:lo,useCallback:ya,useContext:lo,useEffect:da,useImperativeHandle:va,useLayoutEffect:pa,useMemo:ba,useReducer:ia,useRef:ua,useState:function(){return ia(ra)},useDebugValue:ma,useResponder:Wo,useDeferredValue:function(t,e){var n=ia(ra),r=n[0],i=n[1];return da((function(){var n=Ko.suspense;Ko.suspense=void 0===e?null:e;try{i(t)}finally{Ko.suspense=n}}),[t,e]),r},useTransition:function(t){var e=ia(ra),n=e[0];return e=e[1],[ya(wa.bind(null,e,t),[e,t]),n]}},Ca={readContext:lo,useCallback:ya,useContext:lo,useEffect:da,useImperativeHandle:va,useLayoutEffect:pa,useMemo:ba,useReducer:oa,useRef:ua,useState:function(){return oa(ra)},useDebugValue:ma,useResponder:Wo,useDeferredValue:function(t,e){var n=oa(ra),r=n[0],i=n[1];return da((function(){var n=Ko.suspense;Ko.suspense=void 0===e?null:e;try{i(t)}finally{Ko.suspense=n}}),[t,e]),r},useTransition:function(t){var e=oa(ra),n=e[0];return e=e[1],[ya(wa.bind(null,e,t),[e,t]),n]}},Sa=null,Oa=null,Ta=!1;function Aa(t,e){var n=zu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function Na(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);default:return!1}}function Pa(t){if(Ta){var e=Oa;if(e){var n=e;if(!Na(t,e)){if(!(e=On(n.nextSibling))||!Na(t,e))return t.effectTag=-1025&t.effectTag|2,Ta=!1,void(Sa=t);Aa(Sa,n)}Sa=t,Oa=On(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,Ta=!1,Sa=t}}function ja(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;Sa=t}function La(t){if(t!==Sa)return!1;if(!Ta)return ja(t),Ta=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!En(e,t.memoizedProps))for(e=Oa;e;)Aa(t,e),e=On(e.nextSibling);if(ja(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if(n===yn){if(0===e){Oa=On(t.nextSibling);break t}e--}else n!==gn&&n!==wn&&n!==bn||e++}t=t.nextSibling}Oa=null}}else Oa=Sa?On(t.stateNode.nextSibling):null;return!0}function Ia(){Oa=Sa=null,Ta=!1}var Da=Z.ReactCurrentOwner,Ma=!1;function Ra(t,e,n,r){e.child=null===t?jo(e,null,n,r):Po(e,t.child,n,r)}function qa(t,e,n,r,i){n=n.render;var o=e.ref;return uo(e,i),r=ta(t,e,n,r,o,i),null===t||Ma?(e.effectTag|=1,Ra(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),es(t,e,i))}function Ba(t,e,n,r,i,o){if(null===t){var a=n.type;return"function"!=typeof a||Uu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Wu(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Fa(t,e,a,r,i,o))}return a=t.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Vr)(i,r)&&t.ref===e.ref)?es(t,e,o):(e.effectTag|=1,(t=Hu(a,r)).ref=e.ref,t.return=e,e.child=t)}function Fa(t,e,n,r,i,o){return null!==t&&Vr(t.memoizedProps,r)&&t.ref===e.ref&&(Ma=!1,i<o)?(e.expirationTime=t.expirationTime,es(t,e,o)):Ua(t,e,n,r,o)}function za(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function Ua(t,e,n,r,i){var o=_i(n)?bi:gi.current;return o=wi(e,o),uo(e,i),n=ta(t,e,n,r,o,i),null===t||Ma?(e.effectTag|=1,Ra(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),es(t,e,i))}function Ha(t,e,n,r,i){if(_i(n)){var o=!0;Ci(e)}else o=!1;if(uo(e,i),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),Eo(e,n,r),So(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=lo(l):l=wi(e,l=_i(n)?bi:gi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&Co(e,a,r,l),co=!1;var d=e.memoizedState;a.state=d,go(e,r,a,i),u=e.memoizedState,s!==r||d!==u||yi.current||co?("function"==typeof c&&(_o(e,n,c,r),u=e.memoizedState),(s=co||xo(e,n,s,r,d,u,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(e.effectTag|=4)):("function"==typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"==typeof a.componentDidMount&&(e.effectTag|=4),r=!1)}else a=e.stateNode,po(t,e),s=e.memoizedProps,a.props=e.type===e.elementType?s:to(e.type,s),u=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=lo(l):l=wi(e,l=_i(n)?bi:gi.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&Co(e,a,r,l),co=!1,u=e.memoizedState,a.state=u,go(e,r,a,i),d=e.memoizedState,s!==r||u!==d||yi.current||co?("function"==typeof c&&(_o(e,n,c,r),d=e.memoizedState),(c=co||xo(e,n,s,r,u,d,l))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,l)),"function"==typeof a.componentDidUpdate&&(e.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=d),a.props=r,a.state=d,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),r=!1);return Wa(t,e,n,r,o,i)}function Wa(t,e,n,r,i,o){za(t,e);var a=!!(64&e.effectTag);if(!r&&!a)return i&&Si(e,n,!1),es(t,e,o);r=e.stateNode,Da.current=e;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&a?(e.child=Po(e,t.child,null,o),e.child=Po(e,null,s,o)):Ra(t,e,s,o),e.memoizedState=r.state,i&&Si(e,n,!0),e.child}function Va(t){var e=t.stateNode;e.pendingContext?xi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&xi(0,e.context,!1),qo(t,e.containerInfo)}var Ka,Qa,$a,Ga,Za={dehydrated:null,retryTime:0};function Ya(t,e,n){var r,i=e.mode,o=e.pendingProps,a=Uo.current,s=!1;if((r=!!(64&e.effectTag))||(r=!!(2&a)&&(null===t||null!==t.memoizedState)),r?(s=!0,e.effectTag&=-65):null!==t&&null===t.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),vi(Uo,1&a),null===t){if(void 0!==o.fallback&&Pa(e),s){if(s=o.fallback,(o=Vu(null,i,0,null)).return=e,!(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Vu(s,i,n,null)).return=e,o.sibling=n,e.memoizedState=Za,e.child=o,n}return i=o.children,e.memoizedState=null,e.child=jo(e,null,i,n)}if(null!==t.memoizedState){if(i=(t=t.child).sibling,s){if(o=o.fallback,(n=Hu(t,t.pendingProps)).return=e,!(2&e.mode)&&(s=null!==e.memoizedState?e.child.child:e.child)!==t.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Hu(i,o)).return=e,n.sibling=i,n.childExpirationTime=0,e.memoizedState=Za,e.child=n,i}return n=Po(e,t.child,o.children,n),e.memoizedState=null,e.child=n}if(t=t.child,s){if(s=o.fallback,(o=Vu(null,i,0,null)).return=e,o.child=t,null!==t&&(t.return=o),!(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Vu(s,i,n,null)).return=e,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,e.memoizedState=Za,e.child=o,n}return e.memoizedState=null,e.child=Po(e,t,o.children,n)}function Xa(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e),so(t.return,e)}function Ja(t,e,n,r,i,o){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function ts(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(Ra(t,e,r.children,n),2&(r=Uo.current))r=1&r|2,e.effectTag|=64;else{if(null!==t&&64&t.effectTag)t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&Xa(t,n);else if(19===t.tag)Xa(t,n);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(vi(Uo,r),2&e.mode)switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===Ho(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Ja(e,!1,i,n,o,e.lastEffect);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===Ho(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Ja(e,!0,n,null,o,e.lastEffect);break;case"together":Ja(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}else e.memoizedState=null;return e.child}function es(t,e,n){null!==t&&(e.dependencies=t.dependencies);var r=e.expirationTime;if(0!==r&&xu(r),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(n=Hu(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Hu(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function ns(t,e){switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function rs(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return _i(e.type)&&ki(),null;case 3:return Bo(),hi(yi),hi(gi),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!La(e)||(e.effectTag|=4),Qa(e),null;case 5:zo(e),n=Ro(Mo.current);var o=e.type;if(null!==t&&null!=e.stateNode)$a(t,e,o,r,n),t.ref!==e.ref&&(e.effectTag|=128);else{if(!r){if(null===e.stateNode)throw Error(a(166));return null}if(t=Ro(Io.current),La(e)){r=e.stateNode,o=e.type;var s=e.memoizedProps;switch(r[Nn]=e,r[Pn]=s,o){case"iframe":case"object":case"embed":$e("load",r);break;case"video":case"audio":for(t=0;t<Yt.length;t++)$e(Yt[t],r);break;case"source":$e("error",r);break;case"img":case"image":case"link":$e("error",r),$e("load",r);break;case"form":$e("reset",r),$e("submit",r);break;case"details":$e("toggle",r);break;case"input":xt(r,s),$e("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},$e("invalid",r),ln(n,"onChange");break;case"textarea":Pt(r,s),$e("invalid",r),ln(n,"onChange")}for(var u in an(o,s),t=null,s)if(s.hasOwnProperty(u)){var l=s[u];"children"===u?"string"==typeof l?r.textContent!==l&&(t=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(t=["children",""+l]):E.hasOwnProperty(u)&&null!=l&&ln(n,u)}switch(o){case"input":wt(r),St(r,s,!0);break;case"textarea":wt(r),Lt(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=cn)}n=t,e.updateQueue=n,null!==n&&(e.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,t===un&&(t=Mt(o)),t===un?"script"===o?((t=u.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof r.is?t=u.createElement(o,{is:r.is}):(t=u.createElement(o),"select"===o&&(u=t,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):t=u.createElementNS(t,o),t[Nn]=e,t[Pn]=r,Ka(t,e,!1,!1),e.stateNode=t,u=sn(o,r),o){case"iframe":case"object":case"embed":$e("load",t),l=r;break;case"video":case"audio":for(l=0;l<Yt.length;l++)$e(Yt[l],t);l=r;break;case"source":$e("error",t),l=r;break;case"img":case"image":case"link":$e("error",t),$e("load",t),l=r;break;case"form":$e("reset",t),$e("submit",t),l=r;break;case"details":$e("toggle",t),l=r;break;case"input":xt(t,r),l=kt(t,r),$e("invalid",t),ln(n,"onChange");break;case"option":l=Tt(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},l=i({},r,{value:void 0}),$e("invalid",t),ln(n,"onChange");break;case"textarea":Pt(t,r),l=Nt(t,r),$e("invalid",t),ln(n,"onChange");break;default:l=r}an(o,l);var c=l;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?rn(t,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&Ft(t,f):"children"===s?"string"==typeof f?("textarea"!==o||""!==f)&&zt(t,f):"number"==typeof f&&zt(t,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(E.hasOwnProperty(s)?null!=f&&ln(n,s):null!=f&&Y(t,s,f,u))}switch(o){case"input":wt(t),St(t,r,!1);break;case"textarea":wt(t),Lt(t);break;case"option":null!=r.value&&t.setAttribute("value",""+yt(r.value));break;case"select":t.multiple=!!r.multiple,null!=(n=r.value)?At(t,!!r.multiple,n,!1):null!=r.defaultValue&&At(t,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof l.onClick&&(t.onclick=cn)}xn(o,r)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Ga(t,e,t.memoizedProps,r);else{if("string"!=typeof r&&null===e.stateNode)throw Error(a(166));n=Ro(Mo.current),Ro(Io.current),La(e)?(n=e.stateNode,r=e.memoizedProps,n[Nn]=e,n.nodeValue!==r&&(e.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Nn]=e,e.stateNode=n)}return null;case 13:return hi(Uo),r=e.memoizedState,64&e.effectTag?(e.expirationTime=n,e):(n=null!==r,r=!1,null===t?void 0!==e.memoizedProps.fallback&&La(e):(r=null!==(o=t.memoizedState),n||null===o||null!==(o=t.child.sibling)&&(null!==(s=e.firstEffect)?(e.firstEffect=o,o.nextEffect=s):(e.firstEffect=e.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&2&e.mode&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||1&Uo.current?Hs===Ls&&(Hs=Ms):(Hs!==Ls&&Hs!==Ms||(Hs=Rs),0!==$s&&null!==Fs&&(Zu(Fs,Us),Yu(Fs,$s)))),(n||r)&&(e.effectTag|=4),null);case 4:return Bo(),Qa(e),null;case 10:return ao(e),null;case 19:if(hi(Uo),null===(r=e.memoizedState))return null;if(o=!!(64&e.effectTag),null===(s=r.rendering)){if(o)ns(r,!1);else if(Hs!==Ls||null!==t&&64&t.effectTag)for(s=e.child;null!==s;){if(null!==(t=Ho(s))){for(e.effectTag|=64,ns(r,!1),null!==(o=t.updateQueue)&&(e.updateQueue=o,e.effectTag|=4),null===r.lastEffect&&(e.firstEffect=null),e.lastEffect=r.lastEffect,r=e.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(t=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=t.childExpirationTime,o.expirationTime=t.expirationTime,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,s=t.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return vi(Uo,1&Uo.current|2),e.child}s=s.sibling}}else{if(!o)if(null!==(t=Ho(s))){if(e.effectTag|=64,o=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.effectTag|=4),ns(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(e=e.lastEffect=r.lastEffect)&&(e.nextEffect=null),null}else 2*Vi()-r.renderingStartTime>r.tailExpiration&&1<n&&(e.effectTag|=64,o=!0,ns(r,!1),e.expirationTime=e.childExpirationTime=n-1);r.isBackwards?(s.sibling=e.child,e.child=s):(null!==(n=r.last)?n.sibling=s:e.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Vi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=Vi(),n.sibling=null,e=Uo.current,vi(Uo,o?1&e|2:1&e),n):null}throw Error(a(156,e.tag))}function is(t){switch(t.tag){case 1:_i(t.type)&&ki();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(Bo(),hi(yi),hi(gi),64&(e=t.effectTag))throw Error(a(285));return t.effectTag=-4097&e|64,t;case 5:return zo(t),null;case 13:return hi(Uo),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return hi(Uo),null;case 4:return Bo(),null;case 10:return ao(t),null;default:return null}}function os(t,e){return{value:t,source:e,stack:gt(e)}}Ka=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qa=function(){},$a=function(t,e,n,r,o){var a=t.memoizedProps;if(a!==r){var s,u,l=e.stateNode;switch(Ro(Io.current),t=null,n){case"input":a=kt(l,a),r=kt(l,r),t=[];break;case"option":a=Tt(l,a),r=Tt(l,r),t=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),t=[];break;case"textarea":a=Nt(l,a),r=Nt(l,r),t=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(l.onclick=cn)}for(s in an(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(u in l=a[s])l.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(E.hasOwnProperty(s)?t||(t=[]):(t=t||[]).push(s,null));for(s in r){var c=r[s];if(l=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(u in l)!l.hasOwnProperty(u)||c&&c.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in c)c.hasOwnProperty(u)&&l[u]!==c[u]&&(n||(n={}),n[u]=c[u])}else n||(t||(t=[]),t.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(t=t||[]).push(s,c)):"children"===s?l===c||"string"!=typeof c&&"number"!=typeof c||(t=t||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(E.hasOwnProperty(s)?(null!=c&&ln(o,s),t||l===c||(t=[])):(t=t||[]).push(s,c))}n&&(t=t||[]).push("style",n),o=t,(e.updateQueue=o)&&(e.effectTag|=4)}},Ga=function(t,e,n,r){n!==r&&(e.effectTag|=4)};var as="function"==typeof WeakSet?WeakSet:Set;function ss(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=gt(n)),null!==n&&mt(n.type),e=e.value,null!==t&&1===t.tag&&mt(t.type);try{console.error(e)}catch(t){setTimeout((function(){throw t}))}}function us(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){Du(t,e)}else e.current=null}function ls(t,e){switch(e.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&e.effectTag&&null!==t){var n=t.memoizedProps,r=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:to(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}return}throw Error(a(163))}function cs(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==e)}}function fs(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function ds(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:return void fs(3,n);case 1:if(t=n.stateNode,4&n.effectTag)if(null===e)t.componentDidMount();else{var r=n.elementType===n.type?e.memoizedProps:to(n.type,e.memoizedProps);t.componentDidUpdate(r,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate)}return void(null!==(e=n.updateQueue)&&yo(n,e,t));case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:case 1:t=n.child.stateNode}yo(n,e,t)}return;case 5:return t=n.stateNode,void(null===e&&4&n.effectTag&&xn(n.type,n.memoizedProps)&&t.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Re(n)))))}throw Error(a(163))}function ps(t,e,n){switch("function"==typeof Bu&&Bu(e),e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var r=t.next;$i(97<n?97:n,(function(){var t=r;do{var n=t.destroy;if(void 0!==n){var i=e;try{n()}catch(t){Du(i,t)}}t=t.next}while(t!==r)}))}break;case 1:us(e),"function"==typeof(n=e.stateNode).componentWillUnmount&&function(t,e){try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Du(t,e)}}(e,n);break;case 5:us(e);break;case 4:bs(t,e,n)}}function hs(t){var e=t.alternate;t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.alternate=null,t.firstEffect=null,t.lastEffect=null,t.pendingProps=null,t.memoizedProps=null,t.stateNode=null,null!==e&&hs(e)}function vs(t){return 5===t.tag||3===t.tag||4===t.tag}function ms(t){t:{for(var e=t.return;null!==e;){if(vs(e)){var n=e;break t}e=e.return}throw Error(a(160))}switch(e=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:e=e.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(zt(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||vs(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}r?gs(t,n,e):ys(t,n,e)}function gs(t,e,n){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!=(n=n._reactRootContainer)||null!==e.onclick||(e.onclick=cn));else if(4!==r&&null!==(t=t.child))for(gs(t,e,n),t=t.sibling;null!==t;)gs(t,e,n),t=t.sibling}function ys(t,e,n){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==r&&null!==(t=t.child))for(ys(t,e,n),t=t.sibling;null!==t;)ys(t,e,n),t=t.sibling}function bs(t,e,n){for(var r,i,o=e,s=!1;;){if(!s){s=o.return;t:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break t;case 3:case 4:r=r.containerInfo,i=!0;break t}s=s.return}s=!0}if(5===o.tag||6===o.tag){t:for(var u=t,l=o,c=n,f=l;;)if(ps(u,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break t;for(;null===f.sibling;){if(null===f.return||f.return===l)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(u=r,l=o.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(ps(t,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function ws(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:return void cs(3,e);case 1:case 12:case 17:return;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps,i=null!==t?t.memoizedProps:r;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(n[Pn]=r,"input"===t&&"radio"===r.type&&null!=r.name&&Et(n,r),sn(t,i),e=sn(t,r),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?rn(n,u):"dangerouslySetInnerHTML"===s?Ft(n,u):"children"===s?zt(n,u):Y(n,s,u,e)}switch(t){case"input":Ct(n,r);break;case"textarea":jt(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(t=r.value)?At(n,!!r.multiple,t,!1):e!==!!r.multiple&&(null!=r.defaultValue?At(n,!!r.multiple,r.defaultValue,!0):At(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(a(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((e=e.stateNode).hydrate&&(e.hydrate=!1,Re(e.containerInfo)));case 13:if(n=e,null===e.memoizedState?r=!1:(r=!0,n=e.child,Zs=Vi()),null!==n)t:for(t=n;;){if(5===t.tag)o=t.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=t.stateNode,i=null!=(i=t.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=nn("display",i));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState&&null===t.memoizedState.dehydrated){(o=t.child.sibling).return=t,t=o;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}return void _s(e);case 19:return void _s(e)}throw Error(a(163))}function _s(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new as),e.forEach((function(e){var r=Ru.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}var ks="function"==typeof WeakMap?WeakMap:Map;function xs(t,e,n){(n=ho(n,null)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Js||(Js=!0,tu=r),ss(t,e)},n}function Es(t,e,n){(n=ho(n,null)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var i=e.value;n.payload=function(){return ss(t,e),r(i)}}var o=t.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===eu?eu=new Set([this]):eu.add(this),ss(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var Cs,Ss=Math.ceil,Os=Z.ReactCurrentDispatcher,Ts=Z.ReactCurrentOwner,As=0,Ns=8,Ps=16,js=32,Ls=0,Is=1,Ds=2,Ms=3,Rs=4,qs=5,Bs=As,Fs=null,zs=null,Us=0,Hs=Ls,Ws=null,Vs=1073741823,Ks=1073741823,Qs=null,$s=0,Gs=!1,Zs=0,Ys=500,Xs=null,Js=!1,tu=null,eu=null,nu=!1,ru=null,iu=90,ou=null,au=0,su=null,uu=0;function lu(){return(Bs&(Ps|js))!==As?1073741821-(Vi()/10|0):0!==uu?uu:uu=1073741821-(Vi()/10|0)}function cu(t,e,n){if(!(2&(e=e.mode)))return 1073741823;var r=Ki();if(!(4&e))return 99===r?1073741823:1073741822;if((Bs&Ps)!==As)return Us;if(null!==n)t=Ji(t,0|n.timeoutMs||5e3,250);else switch(r){case 99:t=1073741823;break;case 98:t=Ji(t,150,100);break;case 97:case 96:t=Ji(t,5e3,250);break;case 95:t=2;break;default:throw Error(a(326))}return null!==Fs&&t===Us&&--t,t}function fu(t,e){if(50<au)throw au=0,su=null,Error(a(185));if(null!==(t=du(t,e))){var n=Ki();1073741823===e?(Bs&Ns)!==As&&(Bs&(Ps|js))===As?mu(t):(hu(t),Bs===As&&Yi()):hu(t),(4&Bs)===As||98!==n&&99!==n||(null===ou?ou=new Map([[t,e]]):(void 0===(n=ou.get(t))||n>e)&&ou.set(t,e))}}function du(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var r=t.return,i=null;if(null===r&&3===t.tag)i=t.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<e&&(r.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Fs===i&&(xu(e),Hs===Rs&&Zu(i,Us)),Yu(i,e)),i}function pu(t){var e=t.lastExpiredTime;if(0!==e)return e;if(!Gu(t,e=t.firstPendingTime))return e;var n=t.lastPingedTime;return 2>=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function hu(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Zi(mu.bind(null,t));else{var e=pu(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=lu();if(1073741823===e?r=99:1===e||2===e?r=95:r=0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=r)return;n!==qi&&Ai(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Zi(mu.bind(null,t)):Gi(r,vu.bind(null,t),{timeout:10*(1073741821-e)-Vi()}),t.callbackNode=e}}}function vu(t,e){if(uu=0,e)return Xu(t,e=lu()),hu(t),null;var n=pu(t);if(0!==n){if(e=t.callbackNode,(Bs&(Ps|js))!==As)throw Error(a(327));if(ju(),t===Fs&&n===Us||bu(t,n),null!==zs){var r=Bs;Bs|=Ps;for(var i=_u();;)try{Cu();break}catch(e){wu(t,e)}if(oo(),Bs=r,Os.current=i,Hs===Is)throw e=Ws,bu(t,n),Zu(t,n),hu(t),e;if(null===zs)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=Hs,Fs=null,r){case Ls:case Is:throw Error(a(345));case Ds:Xu(t,2<n?2:n);break;case Ms:if(Zu(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=Tu(i)),1073741823===Vs&&10<(i=Zs+Ys-Vi())){if(Gs){var o=t.lastPingedTime;if(0===o||o>=n){t.lastPingedTime=n,bu(t,n);break}}if(0!==(o=pu(t))&&o!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=Cn(Au.bind(null,t),i);break}Au(t);break;case Rs:if(Zu(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=Tu(i)),Gs&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,bu(t,n);break}if(0!==(i=pu(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==Ks?r=10*(1073741821-Ks)-Vi():1073741823===Vs?r=0:(r=10*(1073741821-Vs)-5e3,0>(r=(i=Vi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ss(r/1960))-r)&&(r=n)),10<r){t.timeoutHandle=Cn(Au.bind(null,t),r);break}Au(t);break;case qs:if(1073741823!==Vs&&null!==Qs){o=Vs;var s=Qs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Vi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Zu(t,n),t.timeoutHandle=Cn(Au.bind(null,t),r);break}}Au(t);break;default:throw Error(a(329))}if(hu(t),t.callbackNode===e)return vu.bind(null,t)}}return null}function mu(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,(Bs&(Ps|js))!==As)throw Error(a(327));if(ju(),t===Fs&&e===Us||bu(t,e),null!==zs){var n=Bs;Bs|=Ps;for(var r=_u();;)try{Eu();break}catch(e){wu(t,e)}if(oo(),Bs=n,Os.current=r,Hs===Is)throw n=Ws,bu(t,e),Zu(t,e),hu(t),n;if(null!==zs)throw Error(a(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,Fs=null,Au(t),hu(t)}return null}function gu(t,e){var n=Bs;Bs|=1;try{return t(e)}finally{(Bs=n)===As&&Yi()}}function yu(t,e){var n=Bs;Bs&=-2,Bs|=Ns;try{return t(e)}finally{(Bs=n)===As&&Yi()}}function bu(t,e){t.finishedWork=null,t.finishedExpirationTime=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,Sn(n)),null!==zs)for(n=zs.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&ki();break;case 3:Bo(),hi(yi),hi(gi);break;case 5:zo(r);break;case 4:Bo();break;case 13:case 19:hi(Uo);break;case 10:ao(r)}n=n.return}Fs=t,zs=Hu(t.current,null),Us=e,Hs=Ls,Ws=null,Ks=Vs=1073741823,Qs=null,$s=0,Gs=!1}function wu(t,e){for(;;){try{if(oo(),Vo.current=ka,Yo)for(var n=$o.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Qo=0,Zo=Go=$o=null,Yo=!1,null===zs||null===zs.return)return Hs=Is,Ws=e,zs=null;t:{var i=t,o=zs.return,a=zs,s=e;if(e=Us,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;if(!(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=!!(1&Uo.current),f=o;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!c)}}if(d){var v=f.updateQueue;if(null===v){var m=new Set;m.add(u),f.updateQueue=m}else v.add(u);if(!(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=ho(1073741823,null);g.tag=2,vo(a,g)}a.expirationTime=1073741823;break t}s=void 0,a=e;var y=i.pingCache;if(null===y?(y=i.pingCache=new ks,s=new Set,y.set(u,s)):void 0===(s=y.get(u))&&(s=new Set,y.set(u,s)),!s.has(a)){s.add(a);var b=Mu.bind(null,i,u,a);u.then(b,b)}f.effectTag|=4096,f.expirationTime=e;break t}f=f.return}while(null!==f);s=Error((mt(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+gt(a))}Hs!==qs&&(Hs=Ds),s=os(s,a),f=o;do{switch(f.tag){case 3:u=s,f.effectTag|=4096,f.expirationTime=e,mo(f,xs(f,u,e));break t;case 1:u=s;var w=f.type,_=f.stateNode;if(!(64&f.effectTag||"function"!=typeof w.getDerivedStateFromError&&(null===_||"function"!=typeof _.componentDidCatch||null!==eu&&eu.has(_)))){f.effectTag|=4096,f.expirationTime=e,mo(f,Es(f,u,e));break t}}f=f.return}while(null!==f)}zs=Ou(zs)}catch(t){e=t;continue}break}}function _u(){var t=Os.current;return Os.current=ka,null===t?ka:t}function ku(t,e){t<Vs&&2<t&&(Vs=t),null!==e&&t<Ks&&2<t&&(Ks=t,Qs=e)}function xu(t){t>$s&&($s=t)}function Eu(){for(;null!==zs;)zs=Su(zs)}function Cu(){for(;null!==zs&&!Bi();)zs=Su(zs)}function Su(t){var e=Cs(t.alternate,t,Us);return t.memoizedProps=t.pendingProps,null===e&&(e=Ou(t)),Ts.current=null,e}function Ou(t){zs=t;do{var e=zs.alternate;if(t=zs.return,2048&zs.effectTag){if(null!==(e=is(zs)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}else{if(e=rs(e,zs,Us),1===Us||1!==zs.childExpirationTime){for(var n=0,r=zs.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}zs.childExpirationTime=n}if(null!==e)return e;null!==t&&!(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=zs.firstEffect),null!==zs.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=zs.firstEffect),t.lastEffect=zs.lastEffect),1<zs.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=zs:t.firstEffect=zs,t.lastEffect=zs))}if(null!==(e=zs.sibling))return e;zs=t}while(null!==zs);return Hs===Ls&&(Hs=qs),null}function Tu(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function Au(t){var e=Ki();return $i(99,Nu.bind(null,t,e)),null}function Nu(t,e){do{ju()}while(null!==ru);if((Bs&(Ps|js))!==As)throw Error(a(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(a(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=Tu(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===Fs&&(zs=Fs=null,Us=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Bs;Bs|=js,Ts.current=null,_n=Qe;var s=vn();if(mn(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else t:{var l=(u=(u=s.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{u.nodeType,f.nodeType}catch(t){u=null;break t}var d=0,p=-1,h=-1,v=0,m=0,g=s,y=null;e:for(;;){for(var b;g!==u||0!==c&&3!==g.nodeType||(p=d+c),g!==f||0!==l&&3!==g.nodeType||(h=d+l),3===g.nodeType&&(d+=g.nodeValue.length),null!==(b=g.firstChild);)y=g,g=b;for(;;){if(g===s)break e;if(y===u&&++v===c&&(p=d),y===f&&++m===l&&(h=d),null!==(b=g.nextSibling))break;y=(g=y).parentNode}g=b}u=-1===p||-1===h?null:{start:p,end:h}}else u=null}u=u||{start:0,end:0}}else u=null;kn={activeElementDetached:null,focusedElem:s,selectionRange:u},Qe=!1,Xs=i;do{try{Pu()}catch(t){if(null===Xs)throw Error(a(330));Du(Xs,t),Xs=Xs.nextEffect}}while(null!==Xs);Xs=i;do{try{for(s=t,u=e;null!==Xs;){var w=Xs.effectTag;if(16&w&&zt(Xs.stateNode,""),128&w){var _=Xs.alternate;if(null!==_){var k=_.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&w){case 2:ms(Xs),Xs.effectTag&=-3;break;case 6:ms(Xs),Xs.effectTag&=-3,ws(Xs.alternate,Xs);break;case 1024:Xs.effectTag&=-1025;break;case 1028:Xs.effectTag&=-1025,ws(Xs.alternate,Xs);break;case 4:ws(Xs.alternate,Xs);break;case 8:bs(s,c=Xs,u),hs(c)}Xs=Xs.nextEffect}}catch(t){if(null===Xs)throw Error(a(330));Du(Xs,t),Xs=Xs.nextEffect}}while(null!==Xs);if(k=kn,_=vn(),w=k.focusedElem,u=k.selectionRange,_!==w&&w&&w.ownerDocument&&hn(w.ownerDocument.documentElement,w)){null!==u&&mn(w)&&(_=u.start,void 0===(k=u.end)&&(k=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(k,w.value.length)):(k=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(k=k.getSelection(),c=w.textContent.length,s=Math.min(u.start,c),u=void 0===u.end?s:Math.min(u.end,c),!k.extend&&s>u&&(c=u,u=s,s=c),c=pn(w,s),f=pn(w,u),c&&f&&(1!==k.rangeCount||k.anchorNode!==c.node||k.anchorOffset!==c.offset||k.focusNode!==f.node||k.focusOffset!==f.offset)&&((_=_.createRange()).setStart(c.node,c.offset),k.removeAllRanges(),s>u?(k.addRange(_),k.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),k.addRange(_))))),_=[];for(k=w;k=k.parentNode;)1===k.nodeType&&_.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<_.length;w++)(k=_[w]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Qe=!!_n,kn=_n=null,t.current=n,Xs=i;do{try{for(w=t;null!==Xs;){var x=Xs.effectTag;if(36&x&&ds(w,Xs.alternate,Xs),128&x){_=void 0;var E=Xs.ref;if(null!==E){var C=Xs.stateNode;Xs.tag,_=C,"function"==typeof E?E(_):E.current=_}}Xs=Xs.nextEffect}}catch(t){if(null===Xs)throw Error(a(330));Du(Xs,t),Xs=Xs.nextEffect}}while(null!==Xs);Xs=null,Fi(),Bs=o}else t.current=n;if(nu)nu=!1,ru=t,iu=e;else for(Xs=i;null!==Xs;)e=Xs.nextEffect,Xs.nextEffect=null,Xs=e;if(0===(e=t.firstPendingTime)&&(eu=null),1073741823===e?t===su?au++:(au=0,su=t):au=0,"function"==typeof qu&&qu(n.stateNode,r),hu(t),Js)throw Js=!1,t=tu,tu=null,t;return(Bs&Ns)!==As||Yi(),null}function Pu(){for(;null!==Xs;){var t=Xs.effectTag;256&t&&ls(Xs.alternate,Xs),!(512&t)||nu||(nu=!0,Gi(97,(function(){return ju(),null}))),Xs=Xs.nextEffect}}function ju(){if(90!==iu){var t=97<iu?97:iu;return iu=90,$i(t,Lu)}}function Lu(){if(null===ru)return!1;var t=ru;if(ru=null,(Bs&(Ps|js))!==As)throw Error(a(331));var e=Bs;for(Bs|=js,t=t.current.firstEffect;null!==t;){try{var n=t;if(512&n.effectTag)switch(n.tag){case 0:case 11:case 15:case 22:cs(5,n),fs(5,n)}}catch(e){if(null===t)throw Error(a(330));Du(t,e)}n=t.nextEffect,t.nextEffect=null,t=n}return Bs=e,Yi(),!0}function Iu(t,e,n){vo(t,e=xs(t,e=os(n,e),1073741823)),null!==(t=du(t,1073741823))&&hu(t)}function Du(t,e){if(3===t.tag)Iu(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){Iu(n,t,e);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===eu||!eu.has(r))){vo(n,t=Es(n,t=os(e,t),1073741823)),null!==(n=du(n,1073741823))&&hu(n);break}}n=n.return}}function Mu(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),Fs===t&&Us===n?Hs===Rs||Hs===Ms&&1073741823===Vs&&Vi()-Zs<Ys?bu(t,Us):Gs=!0:Gu(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,hu(t)))}function Ru(t,e){var n=t.stateNode;null!==n&&n.delete(e),0===(e=0)&&(e=cu(e=lu(),t,null)),null!==(t=du(t,e))&&hu(t)}Cs=function(t,e,n){var r=e.expirationTime;if(null!==t){var i=e.pendingProps;if(t.memoizedProps!==i||yi.current)Ma=!0;else{if(r<n){switch(Ma=!1,e.tag){case 3:Va(e),Ia();break;case 5:if(Fo(e),4&e.mode&&1!==n&&i.hidden)return e.expirationTime=e.childExpirationTime=1,null;break;case 1:_i(e.type)&&Ci(e);break;case 4:qo(e,e.stateNode.containerInfo);break;case 10:r=e.memoizedProps.value,i=e.type._context,vi(eo,i._currentValue),i._currentValue=r;break;case 13:if(null!==e.memoizedState)return 0!==(r=e.child.childExpirationTime)&&r>=n?Ya(t,e,n):(vi(Uo,1&Uo.current),null!==(e=es(t,e,n))?e.sibling:null);vi(Uo,1&Uo.current);break;case 19:if(r=e.childExpirationTime>=n,64&t.effectTag){if(r)return ts(t,e,n);e.effectTag|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null),vi(Uo,Uo.current),!r)return null}return es(t,e,n)}Ma=!1}}else Ma=!1;switch(e.expirationTime=0,e.tag){case 2:if(r=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,i=wi(e,gi.current),uo(e,n),i=ta(null,e,r,t,i,n),e.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,_i(r)){var o=!0;Ci(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,fo(e);var s=r.getDerivedStateFromProps;"function"==typeof s&&_o(e,r,s,t),i.updater=ko,e.stateNode=i,i._reactInternalFiber=e,So(e,r,t,n),e=Wa(null,e,r,!0,o,n)}else e.tag=0,Ra(null,e,i,n),e=e.child;return e;case 16:t:{if(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,e.type=i,o=e.tag=function(t){if("function"==typeof t)return Uu(t)?1:0;if(null!=t){if((t=t.$$typeof)===ut)return 11;if(t===ft)return 14}return 2}(i),t=to(i,t),o){case 0:e=Ua(null,e,i,t,n);break t;case 1:e=Ha(null,e,i,t,n);break t;case 11:e=qa(null,e,i,t,n);break t;case 14:e=Ba(null,e,i,to(i.type,t),r,n);break t}throw Error(a(306,i,""))}return e;case 0:return r=e.type,i=e.pendingProps,Ua(t,e,r,i=e.elementType===r?i:to(r,i),n);case 1:return r=e.type,i=e.pendingProps,Ha(t,e,r,i=e.elementType===r?i:to(r,i),n);case 3:if(Va(e),r=e.updateQueue,null===t||null===r)throw Error(a(282));if(r=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,po(t,e),go(e,r,null,n),(r=e.memoizedState.element)===i)Ia(),e=es(t,e,n);else{if((i=e.stateNode.hydrate)&&(Oa=On(e.stateNode.containerInfo.firstChild),Sa=e,i=Ta=!0),i)for(n=jo(e,null,r,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ra(t,e,r,n),Ia();e=e.child}return e;case 5:return Fo(e),null===t&&Pa(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,s=i.children,En(r,i)?s=null:null!==o&&En(r,o)&&(e.effectTag|=16),za(t,e),4&e.mode&&1!==n&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Ra(t,e,s,n),e=e.child),e;case 6:return null===t&&Pa(e),null;case 13:return Ya(t,e,n);case 4:return qo(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=Po(e,null,r,n):Ra(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,qa(t,e,r,i=e.elementType===r?i:to(r,i),n);case 7:return Ra(t,e,e.pendingProps,n),e.child;case 8:case 12:return Ra(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value;var u=e.type._context;if(vi(eo,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=Hr(u,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!yi.current){e=es(t,e,n);break t}}else for(null!==(u=e.child)&&(u.return=e);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&c.observedBits&o){1===u.tag&&((c=ho(n,null)).tag=2,vo(u,c)),u.expirationTime<n&&(u.expirationTime=n),null!==(c=u.alternate)&&c.expirationTime<n&&(c.expirationTime=n),so(u.return,n),l.expirationTime<n&&(l.expirationTime=n);break}c=c.next}}else s=10===u.tag&&u.type===e.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===e){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Ra(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=(o=e.pendingProps).children,uo(e,n),r=r(i=lo(i,o.unstable_observedBits)),e.effectTag|=1,Ra(t,e,r,n),e.child;case 14:return o=to(i=e.type,e.pendingProps),Ba(t,e,i,o=to(i.type,o),r,n);case 15:return Fa(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:to(r,i),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,_i(r)?(t=!0,Ci(e)):t=!1,uo(e,n),Eo(e,r,i),So(e,r,i,n),Wa(null,e,r,!0,t,n);case 19:return ts(t,e,n)}throw Error(a(156,e.tag))};var qu=null,Bu=null;function Fu(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function zu(t,e,n,r){return new Fu(t,e,n,r)}function Uu(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Hu(t,e){var n=t.alternate;return null===n?((n=zu(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{expirationTime:e.expirationTime,firstContext:e.firstContext,responders:e.responders},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Wu(t,e,n,r,i,o){var s=2;if(r=t,"function"==typeof t)Uu(t)&&(s=1);else if("string"==typeof t)s=5;else t:switch(t){case nt:return Vu(n.children,i,o,e);case st:s=8,i|=7;break;case rt:s=8,i|=1;break;case it:return(t=zu(12,n,e,8|i)).elementType=it,t.type=it,t.expirationTime=o,t;case lt:return(t=zu(13,n,e,i)).type=lt,t.elementType=lt,t.expirationTime=o,t;case ct:return(t=zu(19,n,e,i)).elementType=ct,t.expirationTime=o,t;default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case ot:s=10;break t;case at:s=9;break t;case ut:s=11;break t;case ft:s=14;break t;case dt:s=16,r=null;break t;case pt:s=22;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=zu(s,n,e,i)).elementType=t,e.type=r,e.expirationTime=o,e}function Vu(t,e,n,r){return(t=zu(7,t,r,e)).expirationTime=n,t}function Ku(t,e,n){return(t=zu(6,t,null,e)).expirationTime=n,t}function Qu(t,e,n){return(e=zu(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function $u(t,e,n){this.tag=e,this.current=null,this.containerInfo=t,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Gu(t,e){var n=t.firstSuspendedTime;return t=t.lastSuspendedTime,0!==n&&n>=e&&t<=e}function Zu(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;n<e&&(t.firstSuspendedTime=e),(r>e||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Yu(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function Xu(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Ju(t,e,n,r){var i=e.current,o=lu(),s=bo.suspense;o=cu(o,i,s);t:if(n){e:{if(te(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(_i(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var l=n.type;if(_i(l)){n=Ei(n,l,u);break t}}n=u}else n=mi;return null===e.context?e.context=n:e.pendingContext=n,(e=ho(o,s)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),vo(i,e),fu(i,o),o}function tl(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function el(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function nl(t,e){el(t,e),(t=t.alternate)&&el(t,e)}function rl(t,e,n){var r=new $u(t,e,n=null!=n&&!0===n.hydrate),i=zu(3,null,null,2===e?7:1===e?3:0);r.current=i,i.stateNode=r,fo(i),t[jn]=r.current,n&&0!==e&&function(t,e){var n=Jt(e);Oe.forEach((function(t){ve(t,e,n)})),Te.forEach((function(t){ve(t,e,n)}))}(0,9===t.nodeType?t:t.ownerDocument),this._internalRoot=r}function il(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function ol(t,e,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var t=tl(a);s.call(t)}}Ju(e,a,t,i)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new rl(t,0,e?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var u=i;i=function(){var t=tl(a);u.call(t)}}yu((function(){Ju(e,a,t,i)}))}return tl(a)}function al(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!il(e))throw Error(a(200));return function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:et,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}(t,e,null,n)}rl.prototype.render=function(t){Ju(t,this._internalRoot,null,null)},rl.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Ju(null,t,null,(function(){e[jn]=null}))},me=function(t){if(13===t.tag){var e=Ji(lu(),150,100);fu(t,e),nl(t,e)}},ge=function(t){13===t.tag&&(fu(t,3),nl(t,3))},ye=function(t){if(13===t.tag){var e=lu();fu(t,e=cu(e,t,null)),nl(t,e)}},T=function(t,e,n){switch(e){case"input":if(Ct(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=Mn(r);if(!i)throw Error(a(90));_t(r),Ct(r,i)}}}break;case"textarea":jt(t,n);break;case"select":null!=(e=n.value)&&At(t,!!n.multiple,e,!1)}},I=gu,D=function(t,e,n,r,i){var o=Bs;Bs|=4;try{return $i(98,t.bind(null,e,n,r,i))}finally{(Bs=o)===As&&Yi()}},M=function(){(Bs&(1|Ps|js))===As&&(function(){if(null!==ou){var t=ou;ou=null,t.forEach((function(t,e){Xu(e,t),hu(e)})),Yi()}}(),ju())},R=function(t,e){var n=Bs;Bs|=2;try{return t(e)}finally{(Bs=n)===As&&Yi()}};var sl={Events:[In,Dn,Mn,S,x,Hn,function(t){oe(t,Un)},j,L,Xe,ue,ju,{current:!1}]};!function(t){var e=t.findFiberByHostInstance;(function(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);qu=function(t){try{e.onCommitFiberRoot(n,t,void 0,!(64&~t.current.effectTag))}catch(t){}},Bu=function(t){try{e.onCommitFiberUnmount(n,t)}catch(t){}}}catch(t){}})(i({},t,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Z.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=re(t))?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Ln,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(void 0===e){if("function"==typeof t.render)throw Error(a(188));throw Error(a(268,Object.keys(t)))}return t=null===(t=re(e))?null:t.stateNode},e.render=function(t,e,n){if(!il(e))throw Error(a(200));return ol(null,t,e,!1,n)}},78325:(t,e,n)=>{"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(76067)},14403:(t,e,n)=>{"use strict";var r=n(21664),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function g(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||y}function _(){}function k(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(g(85));this.updater.enqueueSetState(this,t,e,"setState")},w.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},_.prototype=w.prototype;var x=k.prototype=new _;x.constructor=k,r(x,w.prototype),x.isPureReactComponent=!0;var E={current:null},C=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function O(t,e,n){var r,i={},a=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)C.call(e,r)&&!S.hasOwnProperty(r)&&(i[r]=e[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in u=t.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:t,key:a,ref:s,props:i,_owner:E.current}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===o}var A=/\/+/g,N=[];function P(t,e,n,r){if(N.length){var i=N.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function j(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>N.length&&N.push(t)}function L(t,e,n,r){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var s=!1;if(null===t)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case o:case a:s=!0}}if(s)return n(r,t,""===e?"."+D(t,0):e),1;if(s=0,e=""===e?".":e+":",Array.isArray(t))for(var u=0;u<t.length;u++){var l=e+D(i=t[u],u);s+=L(i,l,n,r)}else if(null===t||"object"!=typeof t?l=null:l="function"==typeof(l=m&&t[m]||t["@@iterator"])?l:null,"function"==typeof l)for(t=l.call(t),u=0;!(i=t.next()).done;)s+=L(i=i.value,l=e+D(i,u++),n,r);else if("object"===i)throw n=""+t,Error(g(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return s}function I(t,e,n){return null==t?0:L(t,"",e,n)}function D(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function M(t,e){t.func.call(t.context,e,t.count++)}function R(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?q(t,r,n,(function(t){return t})):null!=t&&(T(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(A,"$&/")+"/")+n)),r.push(t))}function q(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),I(t,R,e=P(e,o,r,i)),j(e)}var B={current:null};function F(){var t=B.current;if(null===t)throw Error(g(321));return t}var z={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return q(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;I(t,M,e=P(null,null,e,n)),j(e)},count:function(t){return I(t,(function(){return null}),null)},toArray:function(t){var e=[];return q(t,e,null,(function(t){return t})),e},only:function(t){if(!T(t))throw Error(g(143));return t}},e.Component=w,e.Fragment=s,e.Profiler=l,e.PureComponent=k,e.StrictMode=u,e.Suspense=p,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,e.cloneElement=function(t,e,n){if(null==t)throw Error(g(267,t));var i=r({},t.props),a=t.key,s=t.ref,u=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,u=E.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)C.call(e,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===e[c]&&void 0!==l?l[c]:e[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:o,type:t.type,key:a,ref:s,props:i,_owner:u}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:f,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:t},t.Consumer=t},e.createElement=O,e.createFactory=function(t){var e=O.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:d,render:t}},e.isValidElement=T,e.lazy=function(t){return{$$typeof:v,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:h,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return F().useCallback(t,e)},e.useContext=function(t,e){return F().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return F().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return F().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return F().useLayoutEffect(t,e)},e.useMemo=function(t,e){return F().useMemo(t,e)},e.useReducer=function(t,e,n){return F().useReducer(t,e,n)},e.useRef=function(t){return F().useRef(t)},e.useState=function(t){return F().useState(t)},e.version="16.14.0"},63696:(t,e,n)=>{"use strict";t.exports=n(14403)},77699:(t,e)=>{"use strict";var n,r,i,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,l=function(){if(null!==s)try{var t=e.unstable_now();s(!0,t),s=null}catch(t){throw setTimeout(l,0),t}},c=Date.now();e.unstable_now=function(){return Date.now()-c},n=function(t){null!==s?setTimeout(n,0,t):(s=t,setTimeout(l,0))},r=function(t,e){u=setTimeout(t,e)},i=function(){clearTimeout(u)},o=function(){return!1},a=e.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)e.unstable_now=function(){return f.now()};else{var m=d.now();e.unstable_now=function(){return d.now()-m}}var g=!1,y=null,b=-1,w=5,_=0;o=function(){return e.unstable_now()>=_},a=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<t?Math.floor(1e3/t):5};var k=new MessageChannel,x=k.port2;k.port1.onmessage=function(){if(null!==y){var t=e.unstable_now();_=t+w;try{y(!0,t)?x.postMessage(null):(g=!1,y=null)}catch(t){throw x.postMessage(null),t}}else g=!1},n=function(t){y=t,g||(g=!0,x.postMessage(null))},r=function(t,n){b=p((function(){t(e.unstable_now())}),n)},i=function(){h(b),b=-1}}function E(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<O(i,e)))break t;t[r]=e,t[n]=i,n=r}}function C(t){return void 0===(t=t[0])?null:t}function S(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,a=t[o],s=o+1,u=t[s];if(void 0!==a&&0>O(a,n))void 0!==u&&0>O(u,a)?(t[r]=u,t[s]=n,r=s):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==u&&0>O(u,n)))break t;t[r]=u,t[s]=n,r=s}}}return e}return null}function O(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var T=[],A=[],N=1,P=null,j=3,L=!1,I=!1,D=!1;function M(t){for(var e=C(A);null!==e;){if(null===e.callback)S(A);else{if(!(e.startTime<=t))break;S(A),e.sortIndex=e.expirationTime,E(T,e)}e=C(A)}}function R(t){if(D=!1,M(t),!I)if(null!==C(T))I=!0,n(q);else{var e=C(A);null!==e&&r(R,e.startTime-t)}}function q(t,n){I=!1,D&&(D=!1,i()),L=!0;var a=j;try{for(M(n),P=C(T);null!==P&&(!(P.expirationTime>n)||t&&!o());){var s=P.callback;if(null!==s){P.callback=null,j=P.priorityLevel;var u=s(P.expirationTime<=n);n=e.unstable_now(),"function"==typeof u?P.callback=u:P===C(T)&&S(T),M(n)}else S(T);P=C(T)}if(null!==P)var l=!0;else{var c=C(A);null!==c&&r(R,c.startTime-n),l=!1}return l}finally{P=null,j=a,L=!1}}function B(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var F=a;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){I||L||(I=!0,n(q))},e.unstable_getCurrentPriorityLevel=function(){return j},e.unstable_getFirstCallbackNode=function(){return C(T)},e.unstable_next=function(t){switch(j){case 1:case 2:case 3:var e=3;break;default:e=j}var n=j;j=e;try{return t()}finally{j=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=F,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=j;j=t;try{return e()}finally{j=n}},e.unstable_scheduleCallback=function(t,o,a){var s=e.unstable_now();if("object"==typeof a&&null!==a){var u=a.delay;u="number"==typeof u&&0<u?s+u:s,a="number"==typeof a.timeout?a.timeout:B(t)}else a=B(t),u=s;return t={id:N++,callback:o,priorityLevel:t,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>s?(t.sortIndex=u,E(A,t),null===C(T)&&t===C(A)&&(D?i():D=!0,r(R,u-s))):(t.sortIndex=a,E(T,t),I||L||(I=!0,n(q))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();M(t);var n=C(T);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<P.expirationTime||o()},e.unstable_wrapCallback=function(t){var e=j;return function(){var n=j;j=e;try{return t.apply(this,arguments)}finally{j=n}}}},91434:(t,e,n)=>{"use strict";t.exports=n(77699)},17340:(t,e,n)=>{t.exports=n(17639)},17639:function(t,e){var n;!function(){"use strict";var r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y",ẞ:"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z",စျ:"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw",သြော:"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},i=["်","ް"],o={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်",က်:"et","ိုက်":"aik","ောက်":"auk",င်:"in","ိုင်":"aing","ောင်":"aung",စ်:"it",ည်:"i",တ်:"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it",ဒ်:"d","ိုဒ်":"ok","ုဒ်":"ait",န်:"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un",ပ်:"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut",န်ုပ်:"nub",မ်:"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un",ယ်:"e","ိုလ်":"ol",ဉ်:"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},a={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},s={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},u=[";","?",":","@","&","=","+","$",",","/"].join(""),l=[";","?",":","@","&","=","+","$",","].join(""),c=[".","!","~","*","'","(",")"].join(""),f=function(t,e){var n,f,h,v,m,g,y,b,w,_,k,x,E,C,S="-",O="",T="",A=!0,N={},P="";if("string"!=typeof t)return"";if("string"==typeof e&&(S=e),y=s.en,b=a.en,"object"==typeof e)for(k in n=e.maintainCase||!1,N=e.custom&&"object"==typeof e.custom?e.custom:N,h=+e.truncate>1&&e.truncate||!1,v=e.uric||!1,m=e.uricNoSlash||!1,g=e.mark||!1,A=!1!==e.symbols&&!1!==e.lang,S=e.separator||S,v&&(P+=u),m&&(P+=l),g&&(P+=c),y=e.lang&&s[e.lang]&&A?s[e.lang]:A?s.en:{},b=e.lang&&a[e.lang]?a[e.lang]:!1===e.lang||!0===e.lang?{}:a.en,e.titleCase&&"number"==typeof e.titleCase.length&&Array.prototype.toString.call(e.titleCase)?(e.titleCase.forEach((function(t){N[t+""]=t+""})),f=!0):f=!!e.titleCase,e.custom&&"number"==typeof e.custom.length&&Array.prototype.toString.call(e.custom)&&e.custom.forEach((function(t){N[t+""]=t+""})),Object.keys(N).forEach((function(e){var n;n=e.length>1?new RegExp("\\b"+d(e)+"\\b","gi"):new RegExp(d(e),"gi"),t=t.replace(n,N[e])})),N)P+=k;for(P=d(P+=S),E=!1,C=!1,_=0,x=(t=t.replace(/(^\s+|\s+$)/g,"")).length;_<x;_++)k=t[_],p(k,N)?E=!1:b[k]?(k=E&&b[k].match(/[A-Za-z0-9]/)?" "+b[k]:b[k],E=!1):k in r?(_+1<x&&i.indexOf(t[_+1])>=0?(T+=k,k=""):!0===C?(k=o[T]+r[k],T=""):k=E&&r[k].match(/[A-Za-z0-9]/)?" "+r[k]:r[k],E=!1,C=!1):k in o?(T+=k,k="",_===x-1&&(k=o[T]),C=!0):!y[k]||v&&-1!==u.indexOf(k)||m&&-1!==l.indexOf(k)?(!0===C?(k=o[T]+k,T="",C=!1):E&&(/[A-Za-z0-9]/.test(k)||O.substr(-1).match(/A-Za-z0-9]/))&&(k=" "+k),E=!1):(k=E||O.substr(-1).match(/[A-Za-z0-9]/)?S+y[k]:y[k],k+=void 0!==t[_+1]&&t[_+1].match(/[A-Za-z0-9]/)?S:"",E=!0),O+=k.replace(new RegExp("[^\\w\\s"+P+"_-]","g"),S);return f&&(O=O.replace(/(\w)(\S*)/g,(function(t,e,n){var r=e.toUpperCase()+(null!==n?n:"");return Object.keys(N).indexOf(r.toLowerCase())<0?r:r.toLowerCase()}))),O=O.replace(/\s+/g,S).replace(new RegExp("\\"+S+"+","g"),S).replace(new RegExp("(^\\"+S+"+|\\"+S+"+$)","g"),""),h&&O.length>h&&(w=O.charAt(h)===S,O=O.slice(0,h),w||(O=O.slice(0,O.lastIndexOf(S)))),n||f||(O=O.toLowerCase()),O},d=function(t){return t.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},p=function(t,e){for(var n in e)if(e[n]===t)return!0};t.exports?(t.exports=f,t.exports.createSlug=function(t){return function(e){return f(e,t)}}):void 0===(n=function(){return f}.apply(e,[]))||(t.exports=n)}()},27580:(t,e,n)=>{var r=n(63696),i=n(9294);function o(t,e){i.Object.is(t)&&(t=i.struct(t));var n="subtype"===t.meta.kind;var r={},o=n?t.meta.type:t;if("struct"===o.meta.kind||"interface"===o.meta.kind){var a=o.meta.props;Object.keys(a).forEach((function(t){var e,n=a[t];(e=function(){}).tcomb=n,r[t]=e}))}else 0;return n&&(r.__subtype__=function(){},r.__subtype__.predicate=t.meta.predicate),r}var a=i.irreducible("ReactElement",r.isValidElement),s=i.irreducible("ReactNode",(function(t){return i.Str.is(t)||i.Num.is(t)||a.is(t)||i.list(s).is(t)})),u=i.irreducible("ReactChild",(function(t){return s.is(t)||i.Bool.is(t)||i.Nil.is(t)})),l=i.irreducible("ReactChildren",(function(t){return u.is(t)||i.list(l).is(t)}));i.ReactElement=a,i.ReactNode=s,i.ReactChild=u,i.ReactChildren=l,t.exports={t:i,propTypes:o,props:function(t,e){return function(e){e.propTypes=o(t)}},ReactElement:a,ReactNode:s,ReactChild:u,ReactChildren:l,ReactElementT:a,ReactNodeT:s,ReactChildT:u,ReactChildrenT:l}},9294:(t,e,n)=>{"use strict";var r=n(6366),i=r.stringify,o={},a=r.struct({message:r.Any,actual:r.Any,expected:r.Any,path:r.list(r.union([r.String,r.Number]))},"ValidationError");function s(t,e,n,o){return r.Function.is(e.getValidationErrorMessage)?e.getValidationErrorMessage(t,n,o):function(t,e,n){var o=r.getTypeName(e),a=n.length?"/"+n.join("/")+": "+o:o;return"Invalid value "+i(t)+" supplied to "+a}(t,e,n)}a.of=function(t,e,n,r){return new a({message:s(t,e,n,r),actual:t,expected:e,path:n})};var u=r.struct({errors:r.list(a),value:r.Any},"ValidationResult");function l(t,e,n){n=n||{};var i=r.Array.is(n)?n:n.path||[];return new u(c(t,e,i,n))}function c(t,e,n,i){return r.isType(e)?f[e.meta.kind](t,e,n,i):f.es6classes(t,e,n,i)}u.prototype.isValid=function(){return!this.errors.length},u.prototype.firstError=function(){return this.isValid()?null:this.errors[0]},u.prototype.toString=function(){return this.isValid()?"[ValidationResult, true, "+i(this.value)+"]":"[ValidationResult, false, ("+this.errors.map((function(t){return i(t.message)})).join(", ")+")]"};var f=l.validators={};f.es6classes=function(t,e,n,r){return{value:t,errors:t instanceof e?[]:[a.of(t,e,n,r.context)]}},f.irreducible=f.enums=function(t,e,n,r){return{value:t,errors:e.is(t)?[]:[a.of(t,e,n,r.context)]}},f.list=function(t,e,n,i){if(!r.Array.is(t))return{value:t,errors:[a.of(t,e,n,i.context)]};for(var o={value:[],errors:[]},s=0,u=t.length;s<u;s++){var l=c(t[s],e.meta.type,n.concat(s),i);o.value[s]=l.value,o.errors=o.errors.concat(l.errors)}return o},f.subtype=function(t,e,n,r){var i=c(t,e.meta.type,n,r);return i.errors.length||e.meta.predicate(i.value)||(i.errors=[a.of(t,e,n,r.context)]),i},f.maybe=function(t,e,n,i){return r.Nil.is(t)?{value:t,errors:[]}:c(t,e.meta.type,n,i)},f.struct=function(t,e,n,i){if(!r.Object.is(t))return{value:t,errors:[a.of(t,e,n,i.context)]};if(e.is(t))return{value:t,errors:[]};var s={value:{},errors:[]},u=e.meta.props,l=e.meta.defaultProps||o;for(var f in u)if(u.hasOwnProperty(f)){var d=t[f];void 0===d&&(d=l[f]);var p=c(d,u[f],n.concat(f),i);s.value[f]=p.value,s.errors=s.errors.concat(p.errors)}if(i.hasOwnProperty("strict")?i.strict:e.meta.strict)for(var h in t)t.hasOwnProperty(h)&&!u.hasOwnProperty(h)&&s.errors.push(a.of(t[h],r.Nil,n.concat(h),i.context));return s.errors.length||(s.value=new e(s.value)),s},f.tuple=function(t,e,n,i){var o=e.meta.types,s=o.length;if(!r.Array.is(t)||t.length>s)return{value:t,errors:[a.of(t,e,n,i.context)]};for(var u={value:[],errors:[]},l=0;l<s;l++){var f=c(t[l],o[l],n.concat(l),i);u.value[l]=f.value,u.errors=u.errors.concat(f.errors)}return u},f.dict=function(t,e,n,i){if(!r.Object.is(t))return{value:t,errors:[a.of(t,e,n,i.context)]};var o={value:{},errors:[]};for(var s in t)if(t.hasOwnProperty(s)){var u=n.concat(s),l=c(s,e.meta.domain,u,i),f=c(t[s],e.meta.codomain,u,i);o.value[s]=f.value,o.errors=o.errors.concat(l.errors,f.errors)}return o},f.union=function(t,e,n,i){var o=e.dispatch(t);return r.Function.is(o)?c(t,o,n.concat(e.meta.types.indexOf(o)),i):{value:t,errors:[a.of(t,e,n,i.context)]}},f.intersection=function(t,e,n,r){for(var i=e.meta.types,o=i.length,s={value:t,errors:[]},u=0,l=0;l<o;l++){"struct"===i[l].meta.kind&&u++;var f=c(t,i[l],n,r);s.errors=s.errors.concat(f.errors)}return u>1&&s.errors.push(a.of(t,e,n,r.context)),s},f.interface=function(t,e,n,i){if(!r.Object.is(t))return{value:t,errors:[a.of(t,e,n,i.context)]};var o={value:{},errors:[]},s=e.meta.props;for(var u in s){var l=c(t[u],s[u],n.concat(u),i);o.value[u]=l.value,o.errors=o.errors.concat(l.errors)}if(i.hasOwnProperty("strict")?i.strict:e.meta.strict)for(var f in t)s.hasOwnProperty(f)||r.Nil.is(t[f])||o.errors.push(a.of(t[f],r.Nil,n.concat(f),i.context));return o},r.mixin(r,{ValidationError:a,ValidationResult:u,validate:l}),t.exports=r},6366:(t,e,n)=>{var r=n(97862);r.Any=n(26840),r.Array=n(11103),r.Boolean=n(36250),r.Date=n(84012),r.Error=n(7016),r.Function=n(89784),r.Nil=n(27869),r.Number=n(43301),r.Integer=n(8008),r.IntegerT=r.Integer,r.Object=n(87583),r.RegExp=n(32553),r.String=n(71145),r.Type=n(85920),r.TypeT=r.Type,r.Arr=r.Array,r.Bool=r.Boolean,r.Dat=r.Date,r.Err=r.Error,r.Func=r.Function,r.Num=r.Number,r.Obj=r.Object,r.Re=r.RegExp,r.Str=r.String,r.dict=n(97896),r.declare=n(84076),r.enums=n(12104),r.irreducible=n(33972),r.list=n(9184),r.maybe=n(60082),r.refinement=n(11653),r.struct=n(78213),r.tuple=n(26512),r.union=n(40413),r.func=n(46394),r.intersection=n(24801),r.subtype=r.refinement,r.inter=n(75045),r.interface=r.inter,r.assert=r,r.update=n(63573),r.mixin=n(54775),r.isType=n(87692),r.is=n(87604),r.getTypeName=n(78441),r.match=n(31091),t.exports=r},26840:(t,e,n)=>{var r=n(33972);t.exports=r("Any",(function(){return!0}))},11103:(t,e,n)=>{var r=n(33972),i=n(8035);t.exports=r("Array",i)},36250:(t,e,n)=>{var r=n(33972),i=n(55990);t.exports=r("Boolean",i)},84012:(t,e,n)=>{var r=n(33972);t.exports=r("Date",(function(t){return t instanceof Date}))},7016:(t,e,n)=>{var r=n(33972);t.exports=r("Error",(function(t){return t instanceof Error}))},89784:(t,e,n)=>{var r=n(33972),i=n(70036);t.exports=r("Function",i)},8008:(t,e,n)=>{var r=n(11653),i=n(43301);t.exports=r(i,(function(t){return t%1==0}),"Integer")},27869:(t,e,n)=>{var r=n(33972),i=n(66945);t.exports=r("Nil",i)},43301:(t,e,n)=>{var r=n(33972),i=n(12129);t.exports=r("Number",i)},87583:(t,e,n)=>{var r=n(33972),i=n(99683);t.exports=r("Object",i)},32553:(t,e,n)=>{var r=n(33972);t.exports=r("RegExp",(function(t){return t instanceof RegExp}))},71145:(t,e,n)=>{var r=n(33972),i=n(29805);t.exports=r("String",i)},85920:(t,e,n)=>{var r=n(33972),i=n(87692);t.exports=r("Type",i)},97862:(t,e,n)=>{var r=n(70036),i=n(66945),o=n(13692),a=n(2175);function s(t,e){!0!==t&&(r(e)?e=e():i(e)&&(e='Assert failed (turn on "Pause on exceptions" in your Source panel)'),s.fail(e))}s.fail=o,s.stringify=a,t.exports=s},61629:t=>{t.exports=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},86208:(t,e,n)=>{var r=n(87692);n(49733),n(97862),n(2175);t.exports=function(t,e,n){return r(t)?t.meta.identity||"object"!=typeof e||null===e?t(e,n):new t(e,n):e}},84076:(t,e,n)=>{n(97862),n(79531),n(87692),n(66945);var r=n(54775),i=n(78441),o=n(96081),a=1;t.exports=function(t){var e;function n(t,n){return e(t,n)}return n.define=function(i){return o(i)&&n.hasOwnProperty("dispatch")&&(i.dispatch=n.dispatch),r(n,e=i,!0),t&&(e.displayName=n.displayName=t,n.meta.name=t),n.meta.identity=e.meta.identity,n.prototype=e.prototype,n},n.displayName=t||i(n)+"$"+a++,n.meta={identity:!1},n.prototype=null,n}},14299:(t,e,n)=>{var r=n(87692);function i(t){return r(t)&&"subtype"===t.meta.kind}function o(t){return i(t)?[t.meta.predicate].concat(o(t.meta.type)):[]}function a(t){return i(t)?a(t.meta.type):t}t.exports=function(t){return{predicates:o(t),unrefinedType:a(t)}}},97896:(t,e,n)=>{var r=n(97862),i=(n(79531),n(70036),n(78441)),o=n(31114),a=n(99683),s=n(86208),u=n(87604);function l(t,e){return"{[key: "+i(t)+"]: "+i(e)+"}"}function c(t,e,n){var c=n||l(t,e),f=(i(t),i(e),o(t)&&o(e));function d(n,r){if(f)return n;var i=!0,o={};for(var a in n)if(n.hasOwnProperty(a)){var u=n[a=s(t,a,null)],l=s(e,u,null);i=i&&u===l,o[a]=l}return i&&(o=n),o}return d.meta={kind:"dict",domain:t,codomain:e,name:n,identity:f},d.displayName=c,d.is=function(n){if(!a(n))return!1;for(var r in n)if(n.hasOwnProperty(r)&&(!u(r,t)||!u(n[r],e)))return!1;return!0},d.update=function(t,e){return d(r.update(t,e))},d}c.getDefaultName=l,t.exports=c},12104:(t,e,n)=>{var r=n(97862),i=(n(79531),n(59214),n(12129)),o=n(29805);n(99683);function a(t){return Object.keys(t).map((function(t){return r.stringify(t)})).join(" | ")}function s(t,e){var n=e||a(t);function r(t,e){return t}return r.meta={kind:"enums",map:t,name:e,identity:!0},r.displayName=n,r.is=function(e){return(o(e)||i(e))&&t.hasOwnProperty(e)},r}s.of=function(t,e){t=o(t)?t.split(" "):t;var n={};return t.forEach((function(t){n[t]=t})),s(n,e)},s.getDefaultName=a,t.exports=s},54984:(t,e,n)=>{n(97862),n(70036),n(8035);var r=n(54775),i=(n(2249),n(51249),n(99683)),o=n(11653),a=n(14299);t.exports=function(t,e,n){var s={},u={},l=[],c={};e.forEach((function(t,e){var n,o,f,d=a(t),p=d.unrefinedType;n=l,o=d.predicates,Array.prototype.push.apply(n,o),r(s,i(f=p)?f:f.meta.props),r(u,p.prototype),r(c,function(t){return i(t)?null:t.meta.defaultProps}(p),!0)})),(n=t.getOptions(n)).defaultProps=r(c,n.defaultProps,!0);var f=function(t,e,n){var r=t.reduce((function(t,e){return o(t,e)}),e);return n&&(r.displayName=n,r.meta.name=n),r}(l,t(s,{strict:n.strict,defaultProps:n.defaultProps}),n.name);return r(f.prototype,u),f}},13692:t=>{t.exports=function(t){throw new TypeError("[tcomb] "+t)}},59214:(t,e,n)=>{var r=n(97862),i=n(78441);t.exports=function(t,e){r(!(t instanceof e),(function(){return"Cannot use the new operator to instantiate the type "+i(e)}))}},46394:(t,e,n)=>{n(97862),n(79531);var r=n(89784),i=n(8035),o=(n(9184),n(99683)),a=n(86208),s=(n(66945),n(55990),n(26512),n(49733)),u=n(78441),l=n(87692);function c(t,e){return"("+t.map(u).join(", ")+") => "+u(e)}function f(t){return r.is(t)&&o(t.instrumentation)}function d(t){for(var e=t.length,n=!1,r=e-1;r>=0;r--){var i=t[r];if(!l(i)||"maybe"!==i.meta.kind)return r+1;n=!0}return n?0:e}function p(t,e,n){t=i(t)?t:[t];var r=n||c(t,e),o=t.length;d(t);function u(t,e){return f(t)?t:u.of(t)}return u.meta={kind:"func",domain:t,codomain:e,name:n,identity:!0},u.displayName=r,u.is=function(n){return f(n)&&n.instrumentation.domain.length===o&&n.instrumentation.domain.every((function(e,n){return e===t[n]}))&&n.instrumentation.codomain===e},u.of=function(n,r){if(u.is(n))return n;function i(){var i=Array.prototype.slice.call(arguments),s=i.length;if(r&&s<o){0;var u=Function.prototype.bind.apply(n,[this].concat(i));return p(t.slice(s),e).of(u,!0)}return a(e,n.apply(this,i))}return i.instrumentation={domain:t,codomain:e,f:n},i.displayName=s(n),i},u}p.getDefaultName=c,p.getOptionalArgumentsIndex=d,t.exports=p},55049:(t,e,n)=>{var r=n(78441);t.exports=function(t){return"{"+Object.keys(t).map((function(e){return e+": "+r(t[e])})).join(", ")+"}"}},49733:t=>{t.exports=function(t){return t.displayName||t.name||"<function"+t.length+">"}},78441:(t,e,n)=>{var r=n(87692),i=n(49733);t.exports=function(t){return r(t)?t.displayName:i(t)}},75045:(t,e,n)=>{var r=n(97862),i=(n(79531),n(71145),n(89784),n(55990),n(99683)),o=n(66945),a=n(86208),s=(n(78441),n(97896),n(55049)),u=n(31114),l=n(87604),c=n(54984),f=n(61629);function d(t,e){return c(h,t,e)}function p(t){return i(t)||(t=o(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=h.strict),t}function h(t,e){var n=(e=p(e)).name,i=e.strict;var c=n||s(t),h=Object.keys(t).map((function(e){return t[e]})).every(u);function v(e,n){if(h)return e;var r=!0,i=h?{}:f({},e);for(var o in t){var s=t[o],u=e[o],l=a(s,u,null);r=r&&u===l,i[o]=l}return r&&(i=e),i}return v.meta={kind:"interface",props:t,name:n,identity:h,strict:i},v.displayName=c,v.is=function(e){if(o(e))return!1;if(i)for(var n in e)if(!t.hasOwnProperty(n))return!1;for(var r in t)if(!l(e[r],t[r]))return!1;return!0},v.update=function(t,e){return v(r.update(t,e))},v.extend=function(t,e){return d([v].concat(t),e)},v}h.strict=!1,h.getOptions=p,h.getDefaultName=s,h.extend=d,t.exports=h},24801:(t,e,n)=>{var r=n(97862),i=(n(79531),n(70036),n(8035),n(31114),n(87604)),o=n(78441),a=n(31114);function s(t){return t.map(o).join(" & ")}function u(t,e){var n=e||s(t),o=t.every(a);function u(t,e){return t}return u.meta={kind:"intersection",types:t,name:e,identity:o},u.displayName=n,u.is=function(e){return t.every((function(t){return i(e,t)}))},u.update=function(t,e){return u(r.update(t,e))},u}u.getDefaultName=s,t.exports=u},33972:(t,e,n)=>{n(97862),n(29805),n(70036),n(59214);t.exports=function(t,e){function n(t,e){return t}return n.meta={kind:"irreducible",name:t,predicate:e,identity:!0},n.displayName=t,n.is=e,n}},87604:(t,e,n)=>{var r=n(87692);t.exports=function(t,e){return r(e)?e.is(t):t instanceof e}},8035:t=>{t.exports=function(t){return Array.isArray?Array.isArray(t):t instanceof Array}},55990:t=>{t.exports=function(t){return!0===t||!1===t}},70036:t=>{t.exports=function(t){return"function"==typeof t}},31114:(t,e,n)=>{n(97862),n(36250);var r=n(87692);n(78441);t.exports=function(t){return!r(t)||t.meta.identity}},51249:(t,e,n)=>{var r=n(87692);t.exports=function(t){return r(t)&&"interface"===t.meta.kind}},54118:(t,e,n)=>{var r=n(87692);t.exports=function(t){return r(t)&&"maybe"===t.meta.kind}},66945:t=>{t.exports=function(t){return null==t}},12129:t=>{t.exports=function(t){return"number"==typeof t&&isFinite(t)&&!isNaN(t)}},99683:(t,e,n)=>{var r=n(66945),i=n(8035);t.exports=function(t){return!r(t)&&"object"==typeof t&&!i(t)}},29805:t=>{t.exports=function(t){return"string"==typeof t}},2249:(t,e,n)=>{var r=n(87692);t.exports=function(t){return r(t)&&"struct"===t.meta.kind}},87692:(t,e,n)=>{var r=n(70036),i=n(99683);t.exports=function(t){return r(t)&&i(t.meta)}},79531:(t,e,n)=>{var r=n(66945),i=n(29805);t.exports=function(t){return r(t)||i(t)}},96081:(t,e,n)=>{var r=n(87692);t.exports=function(t){return r(t)&&"union"===t.meta.kind}},9184:(t,e,n)=>{var r=n(97862),i=(n(79531),n(70036),n(78441)),o=n(31114),a=n(86208),s=n(87604),u=n(8035);function l(t){return"Array<"+i(t)+">"}function c(t,e){var n=e||l(t),c=(i(t),o(t));function f(e,n){if(c)return e;for(var r=!0,i=[],o=0,s=e.length;o<s;o++){var u=e[o],l=a(t,u,null);r=r&&u===l,i.push(l)}return r&&(i=e),i}return f.meta={kind:"list",type:t,name:e,identity:c},f.displayName=n,f.is=function(e){return u(e)&&e.every((function(e){return s(e,t)}))},f.update=function(t,e){return f(r.update(t,e))},f}c.getDefaultName=l,t.exports=c},31091:(t,e,n)=>{var r=n(97862),i=n(70036),o=n(87692),a=n(26840);t.exports=function(t){for(var e,n,s,u=1,l=arguments.length;u<l;)if(e=arguments[u],n=arguments[u+1],i(s=arguments[u+2])&&!o(s)?u+=3:(s=n,n=a.is,u+=2),e.is(t)&&n(t))return s(t);r.fail("Match error")}},60082:(t,e,n)=>{n(97862),n(79531),n(70036);var r=n(54118),i=n(31114),o=n(26840),a=n(86208),s=n(27869),u=(n(59214),n(87604)),l=n(78441);function c(t){return"?"+l(t)}function f(t,e){if(r(t)||t===o||t===s)return t;var n=e||c(t),l=i(t);function f(e,n){return s.is(e)?e:a(t,e,n)}return f.meta={kind:"maybe",type:t,name:e,identity:l},f.displayName=n,f.is=function(e){return s.is(e)||u(e,t)},f}f.getDefaultName=c,t.exports=f},54775:(t,e,n)=>{var r=n(66945);n(97862);t.exports=function(t,e,n){if(r(e))return t;for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}},11653:(t,e,n)=>{var r=n(97862),i=(n(79531),n(70036),n(59214),n(31114)),o=n(86208),a=n(87604),s=n(78441),u=n(49733);function l(t,e){return"{"+s(t)+" | "+u(e)+"}"}function c(t,e,n){var s=n||l(t,e),u=i(t);function c(e,n){return o(t,e,n)}return c.meta={kind:"subtype",type:t,predicate:e,name:n,identity:u},c.displayName=s,c.is=function(n){return a(n,t)&&e(n)},c.update=function(t,e){return c(r.update(t,e))},c}c.getDefaultName=l,t.exports=c},2175:(t,e,n)=>{var r=n(49733);function i(t,e){return"function"==typeof e?r(e):e}t.exports=function(t){try{return JSON.stringify(t,i,2)}catch(e){return String(t)}}},78213:(t,e,n)=>{var r=n(97862),i=(n(79531),n(71145),n(89784),n(55990),n(99683)),o=n(66945),a=n(86208),s=(n(78441),n(97896),n(55049)),u=n(54984);function l(t){return"Struct"+s(t)}function c(t,e){return u(d,t,e)}function f(t){return i(t)||(t=o(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=d.strict),t.hasOwnProperty("defaultProps")||(t.defaultProps={}),t}function d(t,e){var n=(e=f(e)).name,i=e.strict,o=e.defaultProps;var s=n||l(t);function u(e,n){if(u.is(e))return e;if(!(this instanceof u))return new u(e,n);for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],s=e[r];void 0===s&&(s=o[r]),this[r]=a(i,s,null)}}return u.meta={kind:"struct",props:t,name:n,identity:!1,strict:i,defaultProps:o},u.displayName=s,u.is=function(t){return t instanceof u},u.update=function(t,e){return new u(r.update(t,e))},u.extend=function(t,e){return c([u].concat(t),e)},u}d.strict=!1,d.getOptions=f,d.getDefaultName=l,d.extend=c,t.exports=d},26512:(t,e,n)=>{var r=n(97862),i=(n(79531),n(70036),n(78441)),o=n(31114),a=n(8035),s=n(86208),u=n(87604);function l(t){return"["+t.map(i).join(", ")+"]"}function c(t,e){var n=e||l(t),i=t.every(o);function c(e,n){if(i)return e;for(var r=!0,o=[],a=0,u=t.length;a<u;a++){var l=t[a],c=e[a],f=s(l,c,null);r=r&&c===f,o.push(f)}return r&&(o=e),o}return c.meta={kind:"tuple",types:t,name:e,identity:i},c.displayName=n,c.is=function(e){return a(e)&&e.length===t.length&&t.every((function(t,n){return u(e[n],t)}))},c.update=function(t,e){return c(r.update(t,e))},c}c.getDefaultName=l,t.exports=c},40413:(t,e,n)=>{var r=n(97862),i=(n(79531),n(70036),n(78441)),o=n(31114),a=(n(8035),n(86208)),s=n(87604),u=(n(59214),n(96081)),l=n(66945);function c(t){return t.map(i).join(" | ")}function f(t,e){var n=e||c(t),i=t.every(o);function f(t,e){if(i)return t;var n=f.dispatch(t);return!n&&f.is(t)?t:a(n,t,e)}return f.meta={kind:"union",types:t,name:e,identity:i},f.displayName=n,f.is=function(e){return t.some((function(t){return s(e,t)}))},f.dispatch=function(e){for(var n=0,r=t.length;n<r;n++){var i=t[n];if(u(i)){var o=i.dispatch(e);if(!l(o))return o}else if(s(e,i))return i}},f.update=function(t,e){return f(r.update(t,e))},f}f.getDefaultName=c,t.exports=f},63573:(t,e,n)=>{n(97862);var r=n(99683),i=(n(70036),n(8035)),o=(n(12129),n(61629));function a(t){return r(t)?t instanceof Date||t instanceof RegExp?t:o({},t):i(t)?t.concat():t}function s(t){return l.commands.hasOwnProperty(t)}function u(t){return l.commands[t]}function l(t,e){var n,r=t,i=!1;for(var o in e)e.hasOwnProperty(o)&&(s(o)?(n=u(o)(e[o],r))!==t?(i=!0,r=n):r=t:(r===t&&(r=a(t)),n=l(r[o],e[o]),i=i||n!==r[o],r[o]=n));return i?r:t}l.commands={$apply:function(t,e){return t(e)},$push:function(t,e){return t.length>0?e.concat(t):e},$remove:function(t,e){if(t.length>0){e=a(e);for(var n=0,r=t.length;n<r;n++)delete e[t[n]]}return e},$set:function(t){return t},$splice:function(t,e){return t.length>0?(e=a(e),t.reduce((function(t,e){return t.splice.apply(t,e),t}),e)):e},$swap:function(t,e){if(t.from!==t.to){var n=(e=a(e))[t.to];e[t.to]=e[t.from],e[t.from]=n}return e},$unshift:function(t,e){return t.length>0?t.concat(e):e},$merge:function(t,e){var n=!1,r=a(e);for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i],n=n||r[i]!==e[i]);return n?r:e}},t.exports=l},7258:function(t,e,n){var r,i;!function(o,a){"use strict";t.exports?t.exports=a():void 0===(i="function"==typeof(r=a)?r.call(e,n,e,t):r)||(t.exports=i)}(0,(function(t){"use strict";var e=t&&t.IPv6;return{best:function(t){var e,n,r=t.toLowerCase().split(":"),i=r.length,o=8;for(""===r[0]&&""===r[1]&&""===r[2]?(r.shift(),r.shift()):""===r[0]&&""===r[1]?r.shift():""===r[i-1]&&""===r[i-2]&&r.pop(),-1!==r[(i=r.length)-1].indexOf(".")&&(o=7),e=0;e<i&&""!==r[e];e++);if(e<o)for(r.splice(e,1,"0000");r.length<o;)r.splice(e,0,"0000");for(var a=0;a<o;a++){n=r[a].split("");for(var s=0;s<3&&("0"===n[0]&&n.length>1);s++)n.splice(0,1);r[a]=n.join("")}var u=-1,l=0,c=0,f=-1,d=!1;for(a=0;a<o;a++)d?"0"===r[a]?c+=1:(d=!1,c>l&&(u=f,l=c)):"0"===r[a]&&(d=!0,f=a,c=1);c>l&&(u=f,l=c),l>1&&r.splice(u,l,""),i=r.length;var p="";for(""===r[0]&&(p=":"),a=0;a<i&&(p+=r[a],a!==i-1);a++)p+=":";return""===r[i-1]&&(p+=":"),p},noConflict:function(){return t.IPv6===this&&(t.IPv6=e),this}}}))},98028:function(t,e,n){var r,i;!function(o,a){"use strict";t.exports?t.exports=a():void 0===(i="function"==typeof(r=a)?r.call(e,n,e,t):r)||(t.exports=i)}(0,(function(t){"use strict";var e=t&&t.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;var r=t.lastIndexOf(".",e-1);if(r<=0||r>=e-1)return!1;var i=n.list[t.slice(e+1)];return!!i&&i.indexOf(" "+t.slice(r+1,e)+" ")>=0},is:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;if(t.lastIndexOf(".",e-1)>=0)return!1;var r=n.list[t.slice(e+1)];return!!r&&r.indexOf(" "+t.slice(0,e)+" ")>=0},get:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return null;var r=t.lastIndexOf(".",e-1);if(r<=0||r>=e-1)return null;var i=n.list[t.slice(e+1)];return i?i.indexOf(" "+t.slice(r+1,e)+" ")<0?null:t.slice(r+1):null},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=e),this}};return n}))},68949:function(t,e,n){var r,i,o;!function(a,s){"use strict";t.exports?t.exports=s(n(1288),n(7258),n(98028)):(i=[n(1288),n(7258),n(98028)],void 0===(o="function"==typeof(r=s)?r.apply(e,i):r)||(t.exports=o))}(0,(function(t,e,n,r){"use strict";var i=r&&r.URI;function o(t,e){var n=arguments.length>=1;if(!(this instanceof o))return n?arguments.length>=2?new o(t,e):new o(t):new o;if(void 0===t){if(n)throw new TypeError("undefined is not a valid argument for URI");t="undefined"!=typeof location?location.href+"":""}if(null===t&&n)throw new TypeError("null is not a valid argument for URI");return this.href(t),void 0!==e?this.absoluteTo(e):this}o.version="1.19.1";var a=o.prototype,s=Object.prototype.hasOwnProperty;function u(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function l(t){return void 0===t?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function c(t){return"Array"===l(t)}function f(t,e){var n,r,i={};if("RegExp"===l(e))i=null;else if(c(e))for(n=0,r=e.length;n<r;n++)i[e[n]]=!0;else i[e]=!0;for(n=0,r=t.length;n<r;n++){(i&&void 0!==i[t[n]]||!i&&e.test(t[n]))&&(t.splice(n,1),r--,n--)}return t}function d(t,e){var n,r;if(c(e)){for(n=0,r=e.length;n<r;n++)if(!d(t,e[n]))return!1;return!0}var i=l(e);for(n=0,r=t.length;n<r;n++)if("RegExp"===i){if("string"==typeof t[n]&&t[n].match(e))return!0}else if(t[n]===e)return!0;return!1}function p(t,e){if(!c(t)||!c(e))return!1;if(t.length!==e.length)return!1;t.sort(),e.sort();for(var n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}function h(t){return t.replace(/^\/+|\/+$/g,"")}function v(t){return escape(t)}function m(t){return encodeURIComponent(t).replace(/[!'()*]/g,v).replace(/\*/g,"%2A")}o._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:o.preventInvalidHostname,duplicateQueryParameters:o.duplicateQueryParameters,escapeQuerySpace:o.escapeQuerySpace}},o.preventInvalidHostname=!1,o.duplicateQueryParameters=!1,o.escapeQuerySpace=!0,o.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,o.idn_expression=/[^a-z0-9\._-]/i,o.punycode_expression=/(xn--)/i,o.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,o.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,o.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(t){if(t&&t.nodeName){var e=t.nodeName.toLowerCase();if("input"!==e||"image"===t.type)return o.domAttributes[e]}},o.encode=m,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=m,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(t,e){var n=o.encode(t+"");return void 0===e&&(e=o.escapeQuerySpace),e?n.replace(/%20/g,"+"):n},o.decodeQuery=function(t,e){t+="",void 0===e&&(e=o.escapeQuerySpace);try{return o.decode(e?t.replace(/\+/g,"%20"):t)}catch(e){return t}};var g,y={encode:"encode",decode:"decode"},b=function(t,e){return function(n){try{return o[e](n+"").replace(o.characters[t][e].expression,(function(n){return o.characters[t][e].map[n]}))}catch(t){return n}}};for(g in y)o[g+"PathSegment"]=b("pathname",y[g]),o[g+"UrnPathSegment"]=b("urnpath",y[g]);var w=function(t,e,n){return function(r){var i;i=n?function(t){return o[e](o[n](t))}:o[e];for(var a=(r+"").split(t),s=0,u=a.length;s<u;s++)a[s]=i(a[s]);return a.join(t)}};function _(t){return function(e,n){return void 0===e?this._parts[t]||"":(this._parts[t]=e||null,this.build(!n),this)}}function k(t,e){return function(n,r){return void 0===n?this._parts[t]||"":(null!==n&&(n+="").charAt(0)===e&&(n=n.substring(1)),this._parts[t]=n,this.build(!r),this)}}o.decodePath=w("/","decodePathSegment"),o.decodeUrnPath=w(":","decodeUrnPathSegment"),o.recodePath=w("/","encodePathSegment","decode"),o.recodeUrnPath=w(":","encodeUrnPathSegment","decode"),o.encodeReserved=b("reserved","encode"),o.parse=function(t,e){var n;return e||(e={preventInvalidHostname:o.preventInvalidHostname}),(n=t.indexOf("#"))>-1&&(e.fragment=t.substring(n+1)||null,t=t.substring(0,n)),(n=t.indexOf("?"))>-1&&(e.query=t.substring(n+1)||null,t=t.substring(0,n)),"//"===t.substring(0,2)?(e.protocol=null,t=t.substring(2),t=o.parseAuthority(t,e)):(n=t.indexOf(":"))>-1&&(e.protocol=t.substring(0,n)||null,e.protocol&&!e.protocol.match(o.protocol_expression)?e.protocol=void 0:"//"===t.substring(n+1,n+3)?(t=t.substring(n+3),t=o.parseAuthority(t,e)):(t=t.substring(n+1),e.urn=!0)),e.path=t,e},o.parseHost=function(t,e){t||(t="");var n,r,i=(t=t.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=t.length),"["===t.charAt(0))n=t.indexOf("]"),e.hostname=t.substring(1,n)||null,e.port=t.substring(n+2,i)||null,"/"===e.port&&(e.port=null);else{var a=t.indexOf(":"),s=t.indexOf("/"),u=t.indexOf(":",a+1);-1!==u&&(-1===s||u<s)?(e.hostname=t.substring(0,i)||null,e.port=null):(r=t.substring(0,i).split(":"),e.hostname=r[0]||null,e.port=r[1]||null)}return e.hostname&&"/"!==t.substring(i).charAt(0)&&(i++,t="/"+t),e.preventInvalidHostname&&o.ensureValidHostname(e.hostname,e.protocol),e.port&&o.ensureValidPort(e.port),t.substring(i)||"/"},o.parseAuthority=function(t,e){return t=o.parseUserinfo(t,e),o.parseHost(t,e)},o.parseUserinfo=function(t,e){var n,r=t.indexOf("/"),i=t.lastIndexOf("@",r>-1?r:t.length-1);return i>-1&&(-1===r||i<r)?(n=t.substring(0,i).split(":"),e.username=n[0]?o.decode(n[0]):null,n.shift(),e.password=n[0]?o.decode(n.join(":")):null,t=t.substring(i+1)):(e.username=null,e.password=null),t},o.parseQuery=function(t,e){if(!t)return{};if(!(t=t.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,r,i,a={},u=t.split("&"),l=u.length,c=0;c<l;c++)n=u[c].split("="),r=o.decodeQuery(n.shift(),e),i=n.length?o.decodeQuery(n.join("="),e):null,s.call(a,r)?("string"!=typeof a[r]&&null!==a[r]||(a[r]=[a[r]]),a[r].push(i)):a[r]=i;return a},o.build=function(t){var e="";return t.protocol&&(e+=t.protocol+":"),t.urn||!e&&!t.hostname||(e+="//"),e+=o.buildAuthority(t)||"","string"==typeof t.path&&("/"!==t.path.charAt(0)&&"string"==typeof t.hostname&&(e+="/"),e+=t.path),"string"==typeof t.query&&t.query&&(e+="?"+t.query),"string"==typeof t.fragment&&t.fragment&&(e+="#"+t.fragment),e},o.buildHost=function(t){var e="";return t.hostname?(o.ip6_expression.test(t.hostname)?e+="["+t.hostname+"]":e+=t.hostname,t.port&&(e+=":"+t.port),e):""},o.buildAuthority=function(t){return o.buildUserinfo(t)+o.buildHost(t)},o.buildUserinfo=function(t){var e="";return t.username&&(e+=o.encode(t.username)),t.password&&(e+=":"+o.encode(t.password)),e&&(e+="@"),e},o.buildQuery=function(t,e,n){var r,i,a,u,l="";for(i in t)if(s.call(t,i)&&i)if(c(t[i]))for(r={},a=0,u=t[i].length;a<u;a++)void 0!==t[i][a]&&void 0===r[t[i][a]+""]&&(l+="&"+o.buildQueryParameter(i,t[i][a],n),!0!==e&&(r[t[i][a]+""]=!0));else void 0!==t[i]&&(l+="&"+o.buildQueryParameter(i,t[i],n));return l.substring(1)},o.buildQueryParameter=function(t,e,n){return o.encodeQuery(t,n)+(null!==e?"="+o.encodeQuery(e,n):"")},o.addQuery=function(t,e,n){if("object"==typeof e)for(var r in e)s.call(e,r)&&o.addQuery(t,r,e[r]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===t[e])return void(t[e]=n);"string"==typeof t[e]&&(t[e]=[t[e]]),c(n)||(n=[n]),t[e]=(t[e]||[]).concat(n)}},o.setQuery=function(t,e,n){if("object"==typeof e)for(var r in e)s.call(e,r)&&o.setQuery(t,r,e[r]);else{if("string"!=typeof e)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");t[e]=void 0===n?null:n}},o.removeQuery=function(t,e,n){var r,i,a;if(c(e))for(r=0,i=e.length;r<i;r++)t[e[r]]=void 0;else if("RegExp"===l(e))for(a in t)e.test(a)&&(t[a]=void 0);else if("object"==typeof e)for(a in e)s.call(e,a)&&o.removeQuery(t,a,e[a]);else{if("string"!=typeof e)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===l(n)?!c(t[e])&&n.test(t[e])?t[e]=void 0:t[e]=f(t[e],n):t[e]!==String(n)||c(n)&&1!==n.length?c(t[e])&&(t[e]=f(t[e],n)):t[e]=void 0:t[e]=void 0}},o.hasQuery=function(t,e,n,r){switch(l(e)){case"String":break;case"RegExp":for(var i in t)if(s.call(t,i)&&e.test(i)&&(void 0===n||o.hasQuery(t,i,n)))return!0;return!1;case"Object":for(var a in e)if(s.call(e,a)&&!o.hasQuery(t,a,e[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(l(n)){case"Undefined":return e in t;case"Boolean":return n===Boolean(c(t[e])?t[e].length:t[e]);case"Function":return!!n(t[e],e,t);case"Array":return!!c(t[e])&&(r?d:p)(t[e],n);case"RegExp":return c(t[e])?!!r&&d(t[e],n):Boolean(t[e]&&t[e].match(n));case"Number":n=String(n);case"String":return c(t[e])?!!r&&d(t[e],n):t[e]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},o.joinPaths=function(){for(var t=[],e=[],n=0,r=0;r<arguments.length;r++){var i=new o(arguments[r]);t.push(i);for(var a=i.segment(),s=0;s<a.length;s++)"string"==typeof a[s]&&e.push(a[s]),a[s]&&n++}if(!e.length||!n)return new o("");var u=new o("").segment(e);return""!==t[0].path()&&"/"!==t[0].path().slice(0,1)||u.path("/"+u.path()),u.normalize()},o.commonPath=function(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n++)if(t.charAt(n)!==e.charAt(n)){n--;break}return n<1?t.charAt(0)===e.charAt(0)&&"/"===t.charAt(0)?"/":"":("/"===t.charAt(n)&&"/"===e.charAt(n)||(n=t.substring(0,n).lastIndexOf("/")),t.substring(0,n+1))},o.withinString=function(t,e,n){n||(n={});var r=n.start||o.findUri.start,i=n.end||o.findUri.end,a=n.trim||o.findUri.trim,s=n.parens||o.findUri.parens,u=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var l=r.exec(t);if(!l)break;var c=l.index;if(n.ignoreHtml){var f=t.slice(Math.max(c-3,0),c);if(f&&u.test(f))continue}for(var d=c+t.slice(c).search(i),p=t.slice(c,d),h=-1;;){var v=s.exec(p);if(!v)break;var m=v.index+v[0].length;h=Math.max(h,m)}if(!((p=h>-1?p.slice(0,h)+p.slice(h).replace(a,""):p.replace(a,"")).length<=l[0].length||n.ignore&&n.ignore.test(p))){var g=e(p,c,d=c+p.length,t);void 0!==g?(g=String(g),t=t.slice(0,c)+g+t.slice(d),r.lastIndex=c+g.length):r.lastIndex=d}}return r.lastIndex=0,t},o.ensureValidHostname=function(e,n){var r=!!e,i=!1;if(!!n&&(i=d(o.hostProtocols,n)),i&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(e&&e.match(o.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(e).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(t){if(t){var e=Number(t);if(!(/^[0-9]+$/.test(e)&&e>0&&e<65536))throw new TypeError('Port "'+t+'" is not a valid port')}},o.noConflict=function(t){if(t){var e={URI:this.noConflict()};return r.URITemplate&&"function"==typeof r.URITemplate.noConflict&&(e.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"==typeof r.IPv6.noConflict&&(e.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"==typeof r.SecondLevelDomains.noConflict&&(e.SecondLevelDomains=r.SecondLevelDomains.noConflict()),e}return r.URI===this&&(r.URI=i),this},a.build=function(t){return!0===t?this._deferred_build=!0:(void 0===t||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new o(this)},a.valueOf=a.toString=function(){return this.build(!1)._string},a.protocol=_("protocol"),a.username=_("username"),a.password=_("password"),a.hostname=_("hostname"),a.port=_("port"),a.query=k("query","?"),a.fragment=k("fragment","#"),a.search=function(t,e){var n=this.query(t,e);return"string"==typeof n&&n.length?"?"+n:n},a.hash=function(t,e){var n=this.fragment(t,e);return"string"==typeof n&&n.length?"#"+n:n},a.pathname=function(t,e){if(void 0===t||!0===t){var n=this._parts.path||(this._parts.hostname?"/":"");return t?(this._parts.urn?o.decodeUrnPath:o.decodePath)(n):n}return this._parts.urn?this._parts.path=t?o.recodeUrnPath(t):"":this._parts.path=t?o.recodePath(t):"/",this.build(!e),this},a.path=a.pathname,a.href=function(t,e){var n;if(void 0===t)return this.toString();this._string="",this._parts=o._parts();var r=t instanceof o,i="object"==typeof t&&(t.hostname||t.path||t.pathname);t.nodeName&&(t=t[o.getDomAttribute(t)]||"",i=!1);if(!r&&i&&void 0!==t.pathname&&(t=t.toString()),"string"==typeof t||t instanceof String)this._parts=o.parse(String(t),this._parts);else{if(!r&&!i)throw new TypeError("invalid input");var a=r?t._parts:t;for(n in a)"query"!==n&&s.call(this._parts,n)&&(this._parts[n]=a[n]);a.query&&this.query(a.query,!1)}return this.build(!e),this},a.is=function(t){var e=!1,r=!1,i=!1,a=!1,s=!1,u=!1,l=!1,c=!this._parts.urn;switch(this._parts.hostname&&(c=!1,r=o.ip4_expression.test(this._parts.hostname),i=o.ip6_expression.test(this._parts.hostname),s=(a=!(e=r||i))&&n&&n.has(this._parts.hostname),u=a&&o.idn_expression.test(this._parts.hostname),l=a&&o.punycode_expression.test(this._parts.hostname)),t.toLowerCase()){case"relative":return c;case"absolute":return!c;case"domain":case"name":return a;case"sld":return s;case"ip":return e;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return i;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return l}return null};var x=a.protocol,E=a.port,C=a.hostname;a.protocol=function(t,e){if(t&&!(t=t.replace(/:(\/\/)?$/,"")).match(o.protocol_expression))throw new TypeError('Protocol "'+t+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return x.call(this,t,e)},a.scheme=a.protocol,a.port=function(t,e){return this._parts.urn?void 0===t?"":this:(void 0!==t&&(0===t&&(t=null),t&&(":"===(t+="").charAt(0)&&(t=t.substring(1)),o.ensureValidPort(t))),E.call(this,t,e))},a.hostname=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==o.parseHost(t,n))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');t=n.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(t,this._parts.protocol)}return C.call(this,t,e)},a.origin=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=o(t);return this.protocol(r.protocol()).authority(r.authority()).build(!e),this},a.host=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},a.authority=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},a.userinfo=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=o.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==t[t.length-1]&&(t+="@"),o.parseUserinfo(t,this._parts),this.build(!e),this},a.resource=function(t,e){var n;return void 0===t?this.path()+this.search()+this.hash():(n=o.parse(t),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!e),this)},a.subdomain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,r),a=new RegExp("^"+u(i));if(t&&"."!==t.charAt(t.length-1)&&(t+="."),-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");return t&&o.ensureValidHostname(t,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,t),this.build(!e),this},a.domain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(e).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!t)throw new TypeError("cannot set domain empty");if(-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(t,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=t;else{var i=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,t)}return this.build(!e),this},a.tld=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(r+1);return!0!==e&&n&&n.list[i.toLowerCase()]&&n.get(this._parts.hostname)||i}var o;if(!t)throw new TypeError("cannot set TLD empty");if(t.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(t))throw new TypeError('TLD "'+t+'" contains characters other than [A-Z0-9]');o=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,t)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");o=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,t)}return this.build(!e),this},a.directory=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return t?o.decodePath(r):r}var i=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,i),s=new RegExp("^"+u(a));return this.is("relative")||(t||(t="/"),"/"!==t.charAt(0)&&(t="/"+t)),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=o.recodePath(t),this._parts.path=this._parts.path.replace(s,t),this.build(!e),this},a.filename=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("string"!=typeof t){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return t?o.decodePathSegment(r):r}var i=!1;"/"===t.charAt(0)&&(t=t.substring(1)),t.match(/\.?\//)&&(i=!0);var a=new RegExp(u(this.filename())+"$");return t=o.recodePath(t),this._parts.path=this._parts.path.replace(a,t),i?this.normalizePath(e):this.build(!e),this},a.suffix=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,i=this.filename(),a=i.lastIndexOf(".");return-1===a?"":(n=i.substring(a+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",t?o.decodePathSegment(r):r)}"."===t.charAt(0)&&(t=t.substring(1));var s,l=this.suffix();if(l)s=t?new RegExp(u(l)+"$"):new RegExp(u("."+l)+"$");else{if(!t)return this;this._parts.path+="."+o.recodePath(t)}return s&&(t=o.recodePath(t),this._parts.path=this._parts.path.replace(s,t)),this.build(!e),this},a.segment=function(t,e,n){var r=this._parts.urn?":":"/",i=this.path(),o="/"===i.substring(0,1),a=i.split(r);if(void 0!==t&&"number"!=typeof t&&(n=e,e=t,t=void 0),void 0!==t&&"number"!=typeof t)throw new Error('Bad segment "'+t+'", must be 0-based integer');if(o&&a.shift(),t<0&&(t=Math.max(a.length+t,0)),void 0===e)return void 0===t?a:a[t];if(null===t||void 0===a[t])if(c(e)){a=[];for(var s=0,u=e.length;s<u;s++)(e[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(h(e[s])))}else(e||"string"==typeof e)&&(e=h(e),""===a[a.length-1]?a[a.length-1]=e:a.push(e));else e?a[t]=h(e):a.splice(t,1);return o&&a.unshift(""),this.path(a.join(r),n)},a.segmentCoded=function(t,e,n){var r,i,a;if("number"!=typeof t&&(n=e,e=t,t=void 0),void 0===e){if(c(r=this.segment(t,e,n)))for(i=0,a=r.length;i<a;i++)r[i]=o.decode(r[i]);else r=void 0!==r?o.decode(r):void 0;return r}if(c(e))for(i=0,a=e.length;i<a;i++)e[i]=o.encode(e[i]);else e="string"==typeof e||e instanceof String?o.encode(e):e;return this.segment(t,e,n)};var S=a.query;return a.query=function(t,e){if(!0===t)return o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof t){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=t.call(this,n);return this._parts.query=o.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this}return void 0!==t&&"string"!=typeof t?(this._parts.query=o.buildQuery(t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this):S.call(this,t,e)},a.setQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof t||t instanceof String)r[t]=void 0!==e?e:null;else{if("object"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var i in t)s.call(t,i)&&(r[i]=t[i])}return this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},a.addQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.addQuery(r,t,void 0===e?null:e),this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},a.removeQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.removeQuery(r,t,e),this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},a.hasQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.hasQuery(r,t,e,n)},a.setSearch=a.setQuery,a.addSearch=a.addQuery,a.removeSearch=a.removeQuery,a.hasSearch=a.hasQuery,a.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},a.normalizeProtocol=function(t){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!t)),this},a.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&t?this._parts.hostname=t.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},a.normalizePort=function(t){return"string"==typeof this._parts.protocol&&this._parts.port===o.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!t)),this},a.normalizePath=function(t){var e,n=this._parts.path;if(!n)return this;if(this._parts.urn)return this._parts.path=o.recodeUrnPath(this._parts.path),this.build(!t),this;if("/"===this._parts.path)return this;var r,i,a="";for("/"!==(n=o.recodePath(n)).charAt(0)&&(e=!0,n="/"+n),"/.."!==n.slice(-3)&&"/."!==n.slice(-2)||(n+="/"),n=n.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),e&&(a=n.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);-1!==(r=n.search(/\/\.\.(\/|$)/));)0!==r?(-1===(i=n.substring(0,r).lastIndexOf("/"))&&(i=r),n=n.substring(0,i)+n.substring(r+3)):n=n.substring(3);return e&&this.is("relative")&&(n=a+n.substring(1)),this._parts.path=n,this.build(!t),this},a.normalizePathname=a.normalizePath,a.normalizeQuery=function(t){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(o.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!t)),this},a.normalizeFragment=function(t){return this._parts.fragment||(this._parts.fragment=null,this.build(!t)),this},a.normalizeSearch=a.normalizeQuery,a.normalizeHash=a.normalizeFragment,a.iso8859=function(){var t=o.encode,e=o.decode;o.encode=escape,o.decode=decodeURIComponent;try{this.normalize()}finally{o.encode=t,o.decode=e}return this},a.unicode=function(){var t=o.encode,e=o.decode;o.encode=m,o.decode=unescape;try{this.normalize()}finally{o.encode=t,o.decode=e}return this},a.readable=function(){var e=this.clone();e.username("").password("").normalize();var n="";if(e._parts.protocol&&(n+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")&&t?(n+=t.toUnicode(e._parts.hostname),e._parts.port&&(n+=":"+e._parts.port)):n+=e.host()),e._parts.hostname&&e._parts.path&&"/"!==e._parts.path.charAt(0)&&(n+="/"),n+=e.path(!0),e._parts.query){for(var r="",i=0,a=e._parts.query.split("&"),s=a.length;i<s;i++){var u=(a[i]||"").split("=");r+="&"+o.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==u[1]&&(r+="="+o.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+r.substring(1)}return n+=o.decodeQuery(e.hash(),!0)},a.absoluteTo=function(t){var e,n,r,i=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t instanceof o||(t=new o(t)),i._parts.protocol)return i;if(i._parts.protocol=t._parts.protocol,this._parts.hostname)return i;for(n=0;r=a[n];n++)i._parts[r]=t._parts[r];return i._parts.path?(".."===i._parts.path.substring(-2)&&(i._parts.path+="/"),"/"!==i.path().charAt(0)&&(e=(e=t.directory())||(0===t.path().indexOf("/")?"/":""),i._parts.path=(e?e+"/":"")+i._parts.path,i.normalizePath())):(i._parts.path=t._parts.path,i._parts.query||(i._parts.query=t._parts.query)),i.build(),i},a.relativeTo=function(t){var e,n,r,i,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t=new o(t).normalize(),e=s._parts,n=t._parts,i=s.path(),a=t.path(),"/"!==i.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(e.protocol===n.protocol&&(e.protocol=null),e.username!==n.username||e.password!==n.password)return s.build();if(null!==e.protocol||null!==e.username||null!==e.password)return s.build();if(e.hostname!==n.hostname||e.port!==n.port)return s.build();if(e.hostname=null,e.port=null,i===a)return e.path="",s.build();if(!(r=o.commonPath(i,a)))return s.build();var u=n.path.substring(r.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return e.path=u+e.path.substring(r.length)||"./",s.build()},a.equals=function(t){var e,n,r,i,a,u=this.clone(),l=new o(t),f={};if(u.normalize(),l.normalize(),u.toString()===l.toString())return!0;if(r=u.query(),i=l.query(),u.query(""),l.query(""),u.toString()!==l.toString())return!1;if(r.length!==i.length)return!1;for(a in e=o.parseQuery(r,this._parts.escapeQuerySpace),n=o.parseQuery(i,this._parts.escapeQuerySpace),e)if(s.call(e,a)){if(c(e[a])){if(!p(e[a],n[a]))return!1}else if(e[a]!==n[a])return!1;f[a]=!0}for(a in n)if(s.call(n,a)&&!f[a])return!1;return!0},a.preventInvalidHostname=function(t){return this._parts.preventInvalidHostname=!!t,this},a.duplicateQueryParameters=function(t){return this._parts.duplicateQueryParameters=!!t,this},a.escapeQuerySpace=function(t){return this._parts.escapeQuerySpace=!!t,this},o}))},1288:function(t,e,n){var r;t=n.nmd(t),function(){e&&e.nodeType,t&&t.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var o,a=2147483647,s=36,u=/^xn--/,l=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,p=String.fromCharCode;function h(t){throw new RangeError(f[t])}function v(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function m(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+v((t=t.replace(c,".")).split("."),e).join(".")}function g(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function y(t){return v(t,(function(t){var e="";return t>65535&&(e+=p((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=p(t)})).join("")}function b(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function w(t,e,n){var r=0;for(t=n?d(t/700):t>>1,t+=d(t/e);t>455;r+=s)t=d(t/35);return d(r+36*t/(t+38))}function _(t){var e,n,r,i,o,u,l,c,f,p,v,m=[],g=t.length,b=0,_=128,k=72;for((n=t.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&h("not-basic"),m.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(o=b,u=1,l=s;i>=g&&h("invalid-input"),((c=(v=t.charCodeAt(i++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:s)>=s||c>d((a-b)/u))&&h("overflow"),b+=c*u,!(c<(f=l<=k?1:l>=k+26?26:l-k));l+=s)u>d(a/(p=s-f))&&h("overflow"),u*=p;k=w(b-o,e=m.length+1,0==o),d(b/e)>a-_&&h("overflow"),_+=d(b/e),b%=e,m.splice(b++,0,_)}return y(m)}function k(t){var e,n,r,i,o,u,l,c,f,v,m,y,_,k,x,E=[];for(y=(t=g(t)).length,e=128,n=0,o=72,u=0;u<y;++u)(m=t[u])<128&&E.push(p(m));for(r=i=E.length,i&&E.push("-");r<y;){for(l=a,u=0;u<y;++u)(m=t[u])>=e&&m<l&&(l=m);for(l-e>d((a-n)/(_=r+1))&&h("overflow"),n+=(l-e)*_,e=l,u=0;u<y;++u)if((m=t[u])<e&&++n>a&&h("overflow"),m==e){for(c=n,f=s;!(c<(v=f<=o?1:f>=o+26?26:f-o));f+=s)x=c-v,k=s-v,E.push(p(b(v+x%k,0))),c=d(x/k);E.push(p(b(c,0))),o=w(n,_,r==i),n=0,++r}++n,++e}return E.join("")}o={version:"1.3.2",ucs2:{decode:g,encode:y},decode:_,encode:k,toASCII:function(t){return m(t,(function(t){return l.test(t)?"xn--"+k(t):t}))},toUnicode:function(t){return m(t,(function(t){return u.test(t)?_(t.slice(4).toLowerCase()):t}))}},void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},93392:function(t,e){var n;!function(e,n){"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(r,i){var o=[],a=o.slice,s=o.concat,u=o.push,l=o.indexOf,c={},f=c.toString,d=c.hasOwnProperty,p={},h="1.11.1",v=function(t,e){return new v.fn.init(t,e)},m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,g=/^-ms-/,y=/-([\da-z])/gi,b=function(t,e){return e.toUpperCase()};function w(t){var e=t.length,n=v.type(t);return"function"!==n&&!v.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t))}v.fn=v.prototype={jquery:h,constructor:v,selector:"",length:0,toArray:function(){return a.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:a.call(this)},pushStack:function(t){var e=v.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return v.each(this,t,e)},map:function(t){return this.pushStack(v.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:u,sort:o.sort,splice:o.splice},v.extend=v.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(i=arguments[s]))for(r in i)t=a[r],a!==(n=i[r])&&(l&&n&&(v.isPlainObject(n)||(e=v.isArray(n)))?(e?(e=!1,o=t&&v.isArray(t)?t:[]):o=t&&v.isPlainObject(t)?t:{},a[r]=v.extend(l,o,n)):void 0!==n&&(a[r]=n));return a},v.extend({expando:"jQuery"+(h+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===v.type(t)},isArray:Array.isArray||function(t){return"array"===v.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!v.isArray(t)&&t-parseFloat(t)>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==v.type(t)||t.nodeType||v.isWindow(t))return!1;try{if(t.constructor&&!d.call(t,"constructor")&&!d.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(p.ownLast)for(e in t)return d.call(t,e);for(e in t);return void 0===e||d.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[f.call(t)]||"object":typeof t},globalEval:function(t){t&&v.trim(t)&&(r.execScript||function(t){r.eval.call(r,t)})(t)},camelCase:function(t){return t.replace(g,"ms-").replace(y,b)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r=0,i=t.length,o=w(t);if(n){if(o)for(;r<i&&!1!==e.apply(t[r],n);r++);else for(r in t)if(!1===e.apply(t[r],n))break}else if(o)for(;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(m,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(w(Object(t))?v.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){var r;if(e){if(l)return l.call(e,t,n);for(r=e.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;)t[i++]=e[r++];if(n!=n)for(;void 0!==e[r];)t[i++]=e[r++];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var r,i=0,o=t.length,a=[];if(w(t))for(;i<o;i++)null!=(r=e(t[i],i,n))&&a.push(r);else for(i in t)null!=(r=e(t[i],i,n))&&a.push(r);return s.apply([],a)},guid:1,proxy:function(t,e){var n,r,i;if("string"==typeof e&&(i=t[e],e=t,t=i),v.isFunction(t))return n=a.call(arguments,2),r=function(){return t.apply(e||this,n.concat(a.call(arguments)))},r.guid=t.guid=t.guid||v.guid++,r},now:function(){return+new Date},support:p}),v.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var _=function(t){var e,n,r,i,o,a,s,u,l,c,f,d,p,h,v,m,g,y,b,w="sizzle"+-new Date,_=t.document,k=0,x=0,E=ot(),C=ot(),S=ot(),O=function(t,e){return t===e&&(f=!0),0},T="undefined",A=1<<31,N={}.hasOwnProperty,P=[],j=P.pop,L=P.push,I=P.push,D=P.slice,M=P.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]===t)return e;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",q="[\\x20\\t\\r\\n\\f]",B="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",F=B.replace("w","w#"),z="\\["+q+"*("+B+")(?:"+q+"*([*^$|!~]?=)"+q+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+q+"*\\]",U=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",H=new RegExp("^"+q+"+|((?:^|[^\\\\])(?:\\\\.)*)"+q+"+$","g"),W=new RegExp("^"+q+"*,"+q+"*"),V=new RegExp("^"+q+"*([>+~]|"+q+")"+q+"*"),K=new RegExp("="+q+"*([^\\]'\"]*?)"+q+"*\\]","g"),Q=new RegExp(U),$=new RegExp("^"+F+"$"),G={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B.replace("w","w*")+")"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+q+"*(even|odd|(([+-]|)(\\d*)n|)"+q+"*(?:([+-]|)"+q+"*(\\d+)|))"+q+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+q+"*((?:-\\d)?\\d*)"+q+"*\\)|)(?=[^-]|$)","i")},Z=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+q+"?|("+q+")|.)","ig"),rt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{I.apply(P=D.call(_.childNodes),_.childNodes),P[_.childNodes.length].nodeType}catch(t){I={apply:P.length?function(t,e){L.apply(t,D.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function it(t,e,r,i){var o,s,l,c,f,h,g,y,k,x;if((e?e.ownerDocument||e:_)!==p&&d(e),r=r||[],!t||"string"!=typeof t)return r;if(1!==(c=(e=e||p).nodeType)&&9!==c)return[];if(v&&!i){if(o=J.exec(t))if(l=o[1]){if(9===c){if(!(s=e.getElementById(l))||!s.parentNode)return r;if(s.id===l)return r.push(s),r}else if(e.ownerDocument&&(s=e.ownerDocument.getElementById(l))&&b(e,s)&&s.id===l)return r.push(s),r}else{if(o[2])return I.apply(r,e.getElementsByTagName(t)),r;if((l=o[3])&&n.getElementsByClassName&&e.getElementsByClassName)return I.apply(r,e.getElementsByClassName(l)),r}if(n.qsa&&(!m||!m.test(t))){if(y=g=w,k=e,x=9===c&&t,1===c&&"object"!==e.nodeName.toLowerCase()){for(h=a(t),(g=e.getAttribute("id"))?y=g.replace(et,"\\$&"):e.setAttribute("id",y),y="[id='"+y+"'] ",f=h.length;f--;)h[f]=y+vt(h[f]);k=tt.test(t)&&pt(e.parentNode)||e,x=h.join(",")}if(x)try{return I.apply(r,k.querySelectorAll(x)),r}catch(t){}finally{g||e.removeAttribute("id")}}}return u(t.replace(H,"$1"),e,r,i)}function ot(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function at(t){return t[w]=!0,t}function st(t){var e=p.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),i=t.length;i--;)r.attrHandle[n[i]]=e}function lt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||A)-(~t.sourceIndex||A);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ct(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function dt(t){return at((function(e){return e=+e,at((function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function pt(t){return t&&typeof t.getElementsByTagName!==T&&t}for(e in n=it.support={},o=it.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=it.setDocument=function(t){var e,i=t?t.ownerDocument||t:_,a=i.defaultView;return i!==p&&9===i.nodeType&&i.documentElement?(p=i,h=i.documentElement,v=!o(i),a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",(function(){d()}),!1):a.attachEvent&&a.attachEvent("onunload",(function(){d()}))),n.attributes=st((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=st((function(t){return t.appendChild(i.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(i.getElementsByClassName)&&st((function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length})),n.getById=st((function(t){return h.appendChild(t).id=w,!i.getElementsByName||!i.getElementsByName(w).length})),n.getById?(r.find.ID=function(t,e){if(typeof e.getElementById!==T&&v){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(t){var e=t.replace(nt,rt);return function(t){return t.getAttribute("id")===e}}):(delete r.find.ID,r.filter.ID=function(t){var e=t.replace(nt,rt);return function(t){var n=typeof t.getAttributeNode!==T&&t.getAttributeNode("id");return n&&n.value===e}}),r.find.TAG=n.getElementsByTagName?function(t,e){if(typeof e.getElementsByTagName!==T)return e.getElementsByTagName(t)}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(typeof e.getElementsByClassName!==T&&v)return e.getElementsByClassName(t)},g=[],m=[],(n.qsa=X.test(i.querySelectorAll))&&(st((function(t){t.innerHTML="<select msallowclip=''><option selected=''></option></select>",t.querySelectorAll("[msallowclip^='']").length&&m.push("[*^$]="+q+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+q+"*(?:value|"+R+")"),t.querySelectorAll(":checked").length||m.push(":checked")})),st((function(t){var e=i.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+q+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=X.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&st((function(t){n.disconnectedMatch=y.call(t,"div"),y.call(t,"[s!='']:x"),g.push("!=",U)})),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),e=X.test(h.compareDocumentPosition),b=e||X.test(h.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},O=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t===i||t.ownerDocument===_&&b(_,t)?-1:e===i||e.ownerDocument===_&&b(_,e)?1:c?M.call(c,t)-M.call(c,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,o=t.parentNode,a=e.parentNode,s=[t],u=[e];if(!o||!a)return t===i?-1:e===i?1:o?-1:a?1:c?M.call(c,t)-M.call(c,e):0;if(o===a)return lt(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?lt(s[r],u[r]):s[r]===_?-1:u[r]===_?1:0},i):p},it.matches=function(t,e){return it(t,null,null,e)},it.matchesSelector=function(t,e){if((t.ownerDocument||t)!==p&&d(t),e=e.replace(K,"='$1']"),n.matchesSelector&&v&&(!g||!g.test(e))&&(!m||!m.test(e)))try{var r=y.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return it(e,p,null,[t]).length>0},it.contains=function(t,e){return(t.ownerDocument||t)!==p&&d(t),b(t,e)},it.attr=function(t,e){(t.ownerDocument||t)!==p&&d(t);var i=r.attrHandle[e.toLowerCase()],o=i&&N.call(r.attrHandle,e.toLowerCase())?i(t,e,!v):void 0;return void 0!==o?o:n.attributes||!v?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},it.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},it.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(O),f){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return c=null,t},i=it.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},r=it.selectors={cacheLength:50,createPseudo:at,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,rt),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,rt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||it.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&it.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Q.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(nt,rt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=E[t+" "];return e||(e=new RegExp("(^|"+q+")"+t+"("+q+"|$)"))&&E(t,(function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==T&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=it.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,d,p,h,v=o!==a?"nextSibling":"previousSibling",m=e.parentNode,g=s&&e.nodeName.toLowerCase(),y=!u&&!s;if(m){if(o){for(;v;){for(f=e;f=f[v];)if(s?f.nodeName.toLowerCase()===g:1===f.nodeType)return!1;h=v="only"===t&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(p=(l=(c=m[w]||(m[w]={}))[t]||[])[0]===k&&l[1],d=l[0]===k&&l[2],f=p&&m.childNodes[p];f=++p&&f&&f[v]||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===e){c[t]=[k,p,d];break}}else if(y&&(l=(e[w]||(e[w]={}))[t])&&l[0]===k)d=l[1];else for(;(f=++p&&f&&f[v]||(d=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==g:1!==f.nodeType)||!++d||(y&&((f[w]||(f[w]={}))[t]=[k,d]),f!==e)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||it.error("unsupported pseudo: "+t);return i[w]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?at((function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=M.call(t,o[a])]=!(n[r]=o[a])})):function(t){return i(t,0,n)}):i}},pseudos:{not:at((function(t){var e=[],n=[],r=s(t.replace(H,"$1"));return r[w]?at((function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),!n.pop()}})),has:at((function(t){return function(e){return it(t,e).length>0}})),contains:at((function(t){return function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}})),lang:at((function(t){return $.test(t||"")||it.error("unsupported lang: "+t),t=t.replace(nt,rt).toLowerCase(),function(e){var n;do{if(n=v?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===h},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return Y.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:dt((function(){return[0]})),last:dt((function(t,e){return[e-1]})),eq:dt((function(t,e,n){return[n<0?n+e:n]})),even:dt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:dt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:dt((function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t})),gt:dt((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=ct(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=ft(e);function ht(){}function vt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function mt(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=x++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,l=[k,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if((s=(u=e[w]||(e[w]={}))[r])&&s[0]===k&&s[1]===o)return l[2]=s[2];if(u[r]=l,l[2]=t(e,n,a))return!0}}}function gt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function yt(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),l&&e.push(s)));return a}function bt(t,e,n,r,i,o){return r&&!r[w]&&(r=bt(r)),i&&!i[w]&&(i=bt(i,o)),at((function(o,a,s,u){var l,c,f,d=[],p=[],h=a.length,v=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)it(t,e[r],n);return n}(e||"*",s.nodeType?[s]:s,[]),m=!t||!o&&e?v:yt(v,d,t,s,u),g=n?i||(o?t:h||r)?[]:a:m;if(n&&n(m,g,s,u),r)for(l=yt(g,p),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(g[p[c]]=!(m[p[c]]=f));if(o){if(i||t){if(i){for(l=[],c=g.length;c--;)(f=g[c])&&l.push(m[c]=f);i(null,g=[],l,u)}for(c=g.length;c--;)(f=g[c])&&(l=i?M.call(o,f):d[c])>-1&&(o[l]=!(a[l]=f))}}else g=yt(g===a?g.splice(h,g.length):g),i?i(null,a,g,u):I.apply(a,g)}))}function wt(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],u=a?1:0,c=mt((function(t){return t===e}),s,!0),f=mt((function(t){return M.call(e,t)>-1}),s,!0),d=[function(t,n,r){return!a&&(r||n!==l)||((e=n).nodeType?c(t,n,r):f(t,n,r))}];u<o;u++)if(n=r.relative[t[u].type])d=[mt(gt(d),n)];else{if((n=r.filter[t[u].type].apply(null,t[u].matches))[w]){for(i=++u;i<o&&!r.relative[t[i].type];i++);return bt(u>1&&gt(d),u>1&&vt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(H,"$1"),n,u<i&&wt(t.slice(u,i)),i<o&&wt(t=t.slice(i)),i<o&&vt(t))}d.push(n)}return gt(d)}return ht.prototype=r.filters=r.pseudos,r.setFilters=new ht,a=it.tokenize=function(t,e){var n,i,o,a,s,u,l,c=C[t+" "];if(c)return e?0:c.slice(0);for(s=t,u=[],l=r.preFilter;s;){for(a in n&&!(i=W.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=V.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(H," ")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?it.error(t):C(t,u).slice(0)},s=it.compile=function(t,e){var n,i=[],o=[],s=S[t+" "];if(!s){for(e||(e=a(t)),n=e.length;n--;)(s=wt(e[n]))[w]?i.push(s):o.push(s);s=S(t,function(t,e){var n=e.length>0,i=t.length>0,o=function(o,a,s,u,c){var f,d,h,v=0,m="0",g=o&&[],y=[],b=l,w=o||i&&r.find.TAG("*",c),_=k+=null==b?1:Math.random()||.1,x=w.length;for(c&&(l=a!==p&&a);m!==x&&null!=(f=w[m]);m++){if(i&&f){for(d=0;h=t[d++];)if(h(f,a,s)){u.push(f);break}c&&(k=_)}n&&((f=!h&&f)&&v--,o&&g.push(f))}if(v+=m,n&&m!==v){for(d=0;h=e[d++];)h(g,y,a,s);if(o){if(v>0)for(;m--;)g[m]||y[m]||(y[m]=j.call(u));y=yt(y)}I.apply(u,y),c&&!o&&y.length>0&&v+e.length>1&&it.uniqueSort(u)}return c&&(k=_,l=b),g};return n?at(o):o}(o,i)),s.selector=t}return s},u=it.select=function(t,e,i,o){var u,l,c,f,d,p="function"==typeof t&&t,h=!o&&a(t=p.selector||t);if(i=i||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&n.getById&&9===e.nodeType&&v&&r.relative[l[1].type]){if(!(e=(r.find.ID(c.matches[0].replace(nt,rt),e)||[])[0]))return i;p&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(u=G.needsContext.test(t)?0:l.length;u--&&(c=l[u],!r.relative[f=c.type]);)if((d=r.find[f])&&(o=d(c.matches[0].replace(nt,rt),tt.test(l[0].type)&&pt(e.parentNode)||e))){if(l.splice(u,1),!(t=o.length&&vt(l)))return I.apply(i,o),i;break}}return(p||s(t,h))(o,e,!v,i,tt.test(t)&&pt(e.parentNode)||e),i},n.sortStable=w.split("").sort(O).join("")===w,n.detectDuplicates=!!f,d(),n.sortDetached=st((function(t){return 1&t.compareDocumentPosition(p.createElement("div"))})),st((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ut("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&st((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ut("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),st((function(t){return null==t.getAttribute("disabled")}))||ut(R,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),it}(r);v.find=_,v.expr=_.selectors,v.expr[":"]=v.expr.pseudos,v.unique=_.uniqueSort,v.text=_.getText,v.isXMLDoc=_.isXML,v.contains=_.contains;var k=v.expr.match.needsContext,x=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^.[^:#\[\.,]*$/;function C(t,e,n){if(v.isFunction(e))return v.grep(t,(function(t,r){return!!e.call(t,r,t)!==n}));if(e.nodeType)return v.grep(t,(function(t){return t===e!==n}));if("string"==typeof e){if(E.test(e))return v.filter(e,t,n);e=v.filter(e,t)}return v.grep(t,(function(t){return v.inArray(t,e)>=0!==n}))}v.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?v.find.matchesSelector(r,t)?[r]:[]:v.find.matches(t,v.grep(e,(function(t){return 1===t.nodeType})))},v.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if("string"!=typeof t)return this.pushStack(v(t).filter((function(){for(e=0;e<i;e++)if(v.contains(r[e],this))return!0})));for(e=0;e<i;e++)v.find(t,r[e],n);return(n=this.pushStack(i>1?v.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(C(this,t||[],!1))},not:function(t){return this.pushStack(C(this,t||[],!0))},is:function(t){return!!C(this,"string"==typeof t&&k.test(t)?v(t):t||[],!1).length}});var S,O=r.document,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(v.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:T.exec(t))||!n[1]&&e)return!e||e.jquery?(e||S).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof v?e[0]:e,v.merge(this,v.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:O,!0)),x.test(n[1])&&v.isPlainObject(e))for(n in e)v.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((r=O.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return S.find(t);this.length=1,this[0]=r}return this.context=O,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):v.isFunction(t)?void 0!==S.ready?S.ready(t):t(v):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),v.makeArray(t,this))}).prototype=v.fn,S=v(O);var A=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function P(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}v.extend({dir:function(t,e,n){for(var r=[],i=t[e];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!v(i).is(n));)1===i.nodeType&&r.push(i),i=i[e];return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),v.fn.extend({has:function(t){var e,n=v(t,this),r=n.length;return this.filter((function(){for(e=0;e<r;e++)if(v.contains(this,n[e]))return!0}))},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=k.test(t)||"string"!=typeof t?v(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&v.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?v.unique(o):o)},index:function(t){return t?"string"==typeof t?v.inArray(this[0],v(t)):v.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(v.unique(v.merge(this.get(),v(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),v.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return v.dir(t,"parentNode")},parentsUntil:function(t,e,n){return v.dir(t,"parentNode",n)},next:function(t){return P(t,"nextSibling")},prev:function(t){return P(t,"previousSibling")},nextAll:function(t){return v.dir(t,"nextSibling")},prevAll:function(t){return v.dir(t,"previousSibling")},nextUntil:function(t,e,n){return v.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return v.dir(t,"previousSibling",n)},siblings:function(t){return v.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return v.sibling(t.firstChild)},contents:function(t){return v.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:v.merge([],t.childNodes)}},(function(t,e){v.fn[t]=function(n,r){var i=v.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=v.filter(r,i)),this.length>1&&(N[t]||(i=v.unique(i)),A.test(t)&&(i=i.reverse())),this.pushStack(i)}}));var j,L=/\S+/g,I={};function D(){O.addEventListener?(O.removeEventListener("DOMContentLoaded",M,!1),r.removeEventListener("load",M,!1)):(O.detachEvent("onreadystatechange",M),r.detachEvent("onload",M))}function M(){(O.addEventListener||"load"===event.type||"complete"===O.readyState)&&(D(),v.ready())}v.Callbacks=function(t){t="string"==typeof t?I[t]||function(t){var e=I[t]={};return v.each(t.match(L)||[],(function(t,n){e[n]=!0})),e}(t):v.extend({},t);var e,n,r,i,o,a,s=[],u=!t.once&&[],l=function(f){for(n=t.memory&&f,r=!0,o=a||0,a=0,i=s.length,e=!0;s&&o<i;o++)if(!1===s[o].apply(f[0],f[1])&&t.stopOnFalse){n=!1;break}e=!1,s&&(u?u.length&&l(u.shift()):n?s=[]:c.disable())},c={add:function(){if(s){var r=s.length;!function e(n){v.each(n,(function(n,r){var i=v.type(r);"function"===i?t.unique&&c.has(r)||s.push(r):r&&r.length&&"string"!==i&&e(r)}))}(arguments),e?i=s.length:n&&(a=r,l(n))}return this},remove:function(){return s&&v.each(arguments,(function(t,n){for(var r;(r=v.inArray(n,s,r))>-1;)s.splice(r,1),e&&(r<=i&&i--,r<=o&&o--)})),this},has:function(t){return t?v.inArray(t,s)>-1:!(!s||!s.length)},empty:function(){return s=[],i=0,this},disable:function(){return s=u=n=void 0,this},disabled:function(){return!s},lock:function(){return u=void 0,n||c.disable(),this},locked:function(){return!u},fireWith:function(t,n){return!s||r&&!u||(n=[t,(n=n||[]).slice?n.slice():n],e?u.push(n):l(n)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(t){var e=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return v.Deferred((function(n){v.each(e,(function(e,o){var a=v.isFunction(t[e])&&t[e];i[o[1]]((function(){var t=a&&a.apply(this,arguments);t&&v.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)}))})),t=null})).promise()},promise:function(t){return null!=t?v.extend(t,r):r}},i={};return r.pipe=r.then,v.each(e,(function(t,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add((function(){n=s}),e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith})),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=a.call(arguments),s=o.length,u=1!==s||t&&v.isFunction(t.promise)?s:0,l=1===u?t:v.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?a.call(arguments):i,r===e?l.notifyWith(n,r):--u||l.resolveWith(n,r)}};if(s>1)for(e=new Array(s),n=new Array(s),r=new Array(s);i<s;i++)o[i]&&v.isFunction(o[i].promise)?o[i].promise().done(c(i,r,o)).fail(l.reject).progress(c(i,n,e)):--u;return u||l.resolveWith(r,o),l.promise()}}),v.fn.ready=function(t){return v.ready.promise().done(t),this},v.extend({isReady:!1,readyWait:1,holdReady:function(t){t?v.readyWait++:v.ready(!0)},ready:function(t){if(!(!0===t?--v.readyWait:v.isReady)){if(!O.body)return setTimeout(v.ready);v.isReady=!0,!0!==t&&--v.readyWait>0||(j.resolveWith(O,[v]),v.fn.triggerHandler&&(v(O).triggerHandler("ready"),v(O).off("ready")))}}}),v.ready.promise=function(t){if(!j)if(j=v.Deferred(),"complete"===O.readyState)setTimeout(v.ready);else if(O.addEventListener)O.addEventListener("DOMContentLoaded",M,!1),r.addEventListener("load",M,!1);else{O.attachEvent("onreadystatechange",M),r.attachEvent("onload",M);var e=!1;try{e=null==r.frameElement&&O.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!v.isReady){try{e.doScroll("left")}catch(e){return setTimeout(t,50)}D(),v.ready()}}()}return j.promise(t)};var R,q="undefined";for(R in v(p))break;p.ownLast="0"!==R,p.inlineBlockNeedsLayout=!1,v((function(){var t,e,n,r;(n=O.getElementsByTagName("body")[0])&&n.style&&(e=O.createElement("div"),(r=O.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),typeof e.style.zoom!==q&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",p.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(r))})),function(){var t=O.createElement("div");if(null==p.deleteExpando){p.deleteExpando=!0;try{delete t.test}catch(t){p.deleteExpando=!1}}t=null}(),v.acceptData=function(t){var e=v.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)};var B=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,F=/([A-Z])/g;function z(t,e,n){if(void 0===n&&1===t.nodeType){var r="data-"+e.replace(F,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:B.test(n)?v.parseJSON(n):n)}catch(t){}v.data(t,e,n)}else n=void 0}return n}function U(t){var e;for(e in t)if(("data"!==e||!v.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function H(t,e,n,r){if(v.acceptData(t)){var i,a,s=v.expando,u=t.nodeType,l=u?v.cache:t,c=u?t[s]:t[s]&&s;if(c&&l[c]&&(r||l[c].data)||void 0!==n||"string"!=typeof e)return c||(c=u?t[s]=o.pop()||v.guid++:s),l[c]||(l[c]=u?{}:{toJSON:v.noop}),"object"!=typeof e&&"function"!=typeof e||(r?l[c]=v.extend(l[c],e):l[c].data=v.extend(l[c].data,e)),a=l[c],r||(a.data||(a.data={}),a=a.data),void 0!==n&&(a[v.camelCase(e)]=n),"string"==typeof e?null==(i=a[e])&&(i=a[v.camelCase(e)]):i=a,i}}function W(t,e,n){if(v.acceptData(t)){var r,i,o=t.nodeType,a=o?v.cache:t,s=o?t[v.expando]:v.expando;if(a[s]){if(e&&(r=n?a[s]:a[s].data)){i=(e=v.isArray(e)?e.concat(v.map(e,v.camelCase)):e in r||(e=v.camelCase(e))in r?[e]:e.split(" ")).length;for(;i--;)delete r[e[i]];if(n?!U(r):!v.isEmptyObject(r))return}(n||(delete a[s].data,U(a[s])))&&(o?v.cleanData([t],!0):p.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}v.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?v.cache[t[v.expando]]:t[v.expando])&&!U(t)},data:function(t,e,n){return H(t,e,n)},removeData:function(t,e){return W(t,e)},_data:function(t,e,n){return H(t,e,n,!0)},_removeData:function(t,e){return W(t,e,!0)}}),v.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=v.data(o),1===o.nodeType&&!v._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&z(o,r=v.camelCase(r.slice(5)),i[r]);v._data(o,"parsedAttrs",!0)}return i}return"object"==typeof t?this.each((function(){v.data(this,t)})):arguments.length>1?this.each((function(){v.data(this,t,e)})):o?z(o,t,v.data(o,t)):void 0},removeData:function(t){return this.each((function(){v.removeData(this,t)}))}}),v.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=v._data(t,e),n&&(!r||v.isArray(n)?r=v._data(t,e,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=v.queue(t,e),r=n.length,i=n.shift(),o=v._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,(function(){v.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return v._data(t,n)||v._data(t,n,{empty:v.Callbacks("once memory").add((function(){v._removeData(t,e+"queue"),v._removeData(t,n)}))})}}),v.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?v.queue(this[0],t):void 0===e?this:this.each((function(){var n=v.queue(this,t,e);v._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&v.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){v.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=v.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=v._data(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var V=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,K=["Top","Right","Bottom","Left"],Q=function(t,e){return t=e||t,"none"===v.css(t,"display")||!v.contains(t.ownerDocument,t)},$=v.access=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===v.type(n))for(s in i=!0,n)v.access(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v.isFunction(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(v(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):o},G=/^(?:checkbox|radio)$/i;!function(){var t=O.createElement("input"),e=O.createElement("div"),n=O.createDocumentFragment();if(e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",p.leadingWhitespace=3===e.firstChild.nodeType,p.tbody=!e.getElementsByTagName("tbody").length,p.htmlSerialize=!!e.getElementsByTagName("link").length,p.html5Clone="<:nav></:nav>"!==O.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),p.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",p.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,p.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",(function(){p.noCloneEvent=!1})),e.cloneNode(!0).click()),null==p.deleteExpando){p.deleteExpando=!0;try{delete e.test}catch(t){p.deleteExpando=!1}}}(),function(){var t,e,n=O.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})e="on"+t,(p[t+"Bubbles"]=e in r)||(n.setAttribute(e,"t"),p[t+"Bubbles"]=!1===n.attributes[e].expando);n=null}();var Z=/^(?:input|select|textarea)$/i,Y=/^key/,X=/^(?:mouse|pointer|contextmenu)|click/,J=/^(?:focusinfocus|focusoutblur)$/,tt=/^([^.]*)(?:\.(.+)|)$/;function et(){return!0}function nt(){return!1}function rt(){try{return O.activeElement}catch(t){}}function it(t){var e=ot.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}v.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,p,h,m,g=v._data(t);if(g){for(n.handler&&(n=(u=n).handler,i=u.selector),n.guid||(n.guid=v.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||(c=g.handle=function(t){return typeof v===q||t&&v.event.triggered===t.type?void 0:v.event.dispatch.apply(c.elem,arguments)},c.elem=t),s=(e=(e||"").match(L)||[""]).length;s--;)p=m=(o=tt.exec(e[s])||[])[1],h=(o[2]||"").split(".").sort(),p&&(l=v.event.special[p]||{},p=(i?l.delegateType:l.bindType)||p,l=v.event.special[p]||{},f=v.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&v.expr.match.needsContext.test(i),namespace:h.join(".")},u),(d=a[p])||((d=a[p]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,r,h,c)||(t.addEventListener?t.addEventListener(p,c,!1):t.attachEvent&&t.attachEvent("on"+p,c))),l.add&&(l.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),v.event.global[p]=!0);t=null}},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,p,h,m,g=v.hasData(t)&&v._data(t);if(g&&(c=g.events)){for(l=(e=(e||"").match(L)||[""]).length;l--;)if(p=m=(s=tt.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),p){for(f=v.event.special[p]||{},d=c[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=d.length;o--;)a=d[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount--,f.remove&&f.remove.call(t,a));u&&!d.length&&(f.teardown&&!1!==f.teardown.call(t,h,g.handle)||v.removeEvent(t,p,g.handle),delete c[p])}else for(p in c)v.event.remove(t,p+e[l],n,r,!0);v.isEmptyObject(c)&&(delete g.handle,v._removeData(t,"events"))}},trigger:function(t,e,n,i){var o,a,s,u,l,c,f,p=[n||O],h=d.call(t,"type")?t.type:t,m=d.call(t,"namespace")?t.namespace.split("."):[];if(s=c=n=n||O,3!==n.nodeType&&8!==n.nodeType&&!J.test(h+v.event.triggered)&&(h.indexOf(".")>=0&&(m=h.split("."),h=m.shift(),m.sort()),a=h.indexOf(":")<0&&"on"+h,(t=t[v.expando]?t:new v.Event(h,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=m.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:v.makeArray(e,[t]),l=v.event.special[h]||{},i||!l.trigger||!1!==l.trigger.apply(n,e))){if(!i&&!l.noBubble&&!v.isWindow(n)){for(u=l.delegateType||h,J.test(u+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(n.ownerDocument||O)&&p.push(c.defaultView||c.parentWindow||r)}for(f=0;(s=p[f++])&&!t.isPropagationStopped();)t.type=f>1?u:l.bindType||h,(o=(v._data(s,"events")||{})[t.type]&&v._data(s,"handle"))&&o.apply(s,e),(o=a&&s[a])&&o.apply&&v.acceptData(s)&&(t.result=o.apply(s,e),!1===t.result&&t.preventDefault());if(t.type=h,!i&&!t.isDefaultPrevented()&&(!l._default||!1===l._default.apply(p.pop(),e))&&v.acceptData(n)&&a&&n[h]&&!v.isWindow(n)){(c=n[a])&&(n[a]=null),v.event.triggered=h;try{n[h]()}catch(t){}v.event.triggered=void 0,c&&(n[a]=c)}return t.result}},dispatch:function(t){t=v.event.fix(t);var e,n,r,i,o,s,u=a.call(arguments),l=(v._data(this,"events")||{})[t.type]||[],c=v.event.special[t.type]||{};if(u[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(s=v.event.handlers.call(this,t,l),e=0;(i=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(n=((v.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,u))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==t.type)){for(i=[],o=0;o<s;o++)void 0===i[n=(r=e[o]).selector+" "]&&(i[n]=r.needsContext?v(n,this).index(u)>=0:v.find(n,this,null,[u]).length),i[n]&&i.push(r);i.length&&a.push({elem:u,handlers:i})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},fix:function(t){if(t[v.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=X.test(i)?this.mouseHooks:Y.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new v.Event(o),e=r.length;e--;)t[n=r[e]]=o[n];return t.target||(t.target=o.srcElement||O),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,a.filter?a.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button,a=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=(r=t.target.ownerDocument||O).documentElement,n=r.body,t.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?e.toElement:a),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==rt()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===rt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(v.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return v.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=v.extend(new v.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?v.event.trigger(i,null,e):v.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},v.removeEvent=O.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var r="on"+e;t.detachEvent&&(typeof t[r]===q&&(t[r]=null),t.detachEvent(r,n))},v.Event=function(t,e){if(!(this instanceof v.Event))return new v.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?et:nt):this.type=t,e&&v.extend(this,e),this.timeStamp=t&&t.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={isDefaultPrevented:nt,isPropagationStopped:nt,isImmediatePropagationStopped:nt,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=et,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=et,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=et,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){v.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||v.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}})),p.submitBubbles||(v.event.special.submit={setup:function(){if(v.nodeName(this,"form"))return!1;v.event.add(this,"click._submit keypress._submit",(function(t){var e=t.target,n=v.nodeName(e,"input")||v.nodeName(e,"button")?e.form:void 0;n&&!v._data(n,"submitBubbles")&&(v.event.add(n,"submit._submit",(function(t){t._submit_bubble=!0})),v._data(n,"submitBubbles",!0))}))},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&v.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){if(v.nodeName(this,"form"))return!1;v.event.remove(this,"._submit")}}),p.changeBubbles||(v.event.special.change={setup:function(){if(Z.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(v.event.add(this,"propertychange._change",(function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)})),v.event.add(this,"click._change",(function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),v.event.simulate("change",this,t,!0)}))),!1;v.event.add(this,"beforeactivate._change",(function(t){var e=t.target;Z.test(e.nodeName)&&!v._data(e,"changeBubbles")&&(v.event.add(e,"change._change",(function(t){!this.parentNode||t.isSimulated||t.isTrigger||v.event.simulate("change",this.parentNode,t,!0)})),v._data(e,"changeBubbles",!0))}))},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return v.event.remove(this,"._change"),!Z.test(this.nodeName)}}),p.focusinBubbles||v.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){v.event.simulate(e,t.target,v.event.fix(t),!0)};v.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=v._data(r,e);i||r.addEventListener(t,n,!0),v._data(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=v._data(r,e)-1;i?v._data(r,e,i):(r.removeEventListener(t,n,!0),v._removeData(r,e))}}})),v.fn.extend({on:function(t,e,n,r,i){var o,a;if("object"==typeof t){for(o in"string"!=typeof e&&(n=n||e,e=void 0),t)this.on(o,e,n,t[o],i);return this}if(null==n&&null==r?(r=e,n=e=void 0):null==r&&("string"==typeof e?(r=n,n=void 0):(r=n,n=e,e=void 0)),!1===r)r=nt;else if(!r)return this;return 1===i&&(a=r,r=function(t){return v().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=v.guid++)),this.each((function(){v.event.add(this,t,r,n,e)}))},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,v(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=nt),this.each((function(){v.event.remove(this,t,n,e)}))},trigger:function(t,e){return this.each((function(){v.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return v.event.trigger(t,e,n,!0)}});var ot="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",at=/ jQuery\d+="(?:null|\d+)"/g,st=new RegExp("<(?:"+ot+")[\\s/>]","i"),ut=/^\s+/,lt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ct=/<([\w:]+)/,ft=/<tbody/i,dt=/<|&#?\w+;/,pt=/<(?:script|style|link)/i,ht=/checked\s*(?:[^=]|=\s*.checked.)/i,vt=/^$|\/(?:java|ecma)script/i,mt=/^true\/(.*)/,gt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,yt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:p.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},bt=it(O).appendChild(O.createElement("div"));function wt(t,e){var n,r,i=0,o=typeof t.getElementsByTagName!==q?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==q?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(r=n[i]);i++)!e||v.nodeName(r,e)?o.push(r):v.merge(o,wt(r,e));return void 0===e||e&&v.nodeName(t,e)?v.merge([t],o):o}function _t(t){G.test(t.type)&&(t.defaultChecked=t.checked)}function kt(t,e){return v.nodeName(t,"table")&&v.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function xt(t){return t.type=(null!==v.find.attr(t,"type"))+"/"+t.type,t}function Et(t){var e=mt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Ct(t,e){for(var n,r=0;null!=(n=t[r]);r++)v._data(n,"globalEval",!e||v._data(e[r],"globalEval"))}function St(t,e){if(1===e.nodeType&&v.hasData(t)){var n,r,i,o=v._data(t),a=v._data(e,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,i=s[n].length;r<i;r++)v.event.add(e,n,s[n][r]);a.data&&(a.data=v.extend({},a.data))}}function Ot(t,e){var n,r,i;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!p.noCloneEvent&&e[v.expando]){for(r in(i=v._data(e)).events)v.removeEvent(e,r,i.handle);e.removeAttribute(v.expando)}"script"===n&&e.text!==t.text?(xt(e).text=t.text,Et(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),p.html5Clone&&t.innerHTML&&!v.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&G.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}}yt.optgroup=yt.option,yt.tbody=yt.tfoot=yt.colgroup=yt.caption=yt.thead,yt.th=yt.td,v.extend({clone:function(t,e,n){var r,i,o,a,s,u=v.contains(t.ownerDocument,t);if(p.html5Clone||v.isXMLDoc(t)||!st.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(bt.innerHTML=t.outerHTML,bt.removeChild(o=bt.firstChild)),!(p.noCloneEvent&&p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||v.isXMLDoc(t)))for(r=wt(o),s=wt(t),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(e)if(n)for(s=s||wt(t),r=r||wt(o),a=0;null!=(i=s[a]);a++)St(i,r[a]);else St(t,o);return(r=wt(o,"script")).length>0&&Ct(r,!u&&wt(t,"script")),r=s=i=null,o},buildFragment:function(t,e,n,r){for(var i,o,a,s,u,l,c,f=t.length,d=it(e),h=[],m=0;m<f;m++)if((o=t[m])||0===o)if("object"===v.type(o))v.merge(h,o.nodeType?[o]:o);else if(dt.test(o)){for(s=s||d.appendChild(e.createElement("div")),u=(ct.exec(o)||["",""])[1].toLowerCase(),c=yt[u]||yt._default,s.innerHTML=c[1]+o.replace(lt,"<$1></$2>")+c[2],i=c[0];i--;)s=s.lastChild;if(!p.leadingWhitespace&&ut.test(o)&&h.push(e.createTextNode(ut.exec(o)[0])),!p.tbody)for(i=(o="table"!==u||ft.test(o)?"<table>"!==c[1]||ft.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)v.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l);for(v.merge(h,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else h.push(e.createTextNode(o));for(s&&d.removeChild(s),p.appendChecked||v.grep(wt(h,"input"),_t),m=0;o=h[m++];)if((!r||-1===v.inArray(o,r))&&(a=v.contains(o.ownerDocument,o),s=wt(d.appendChild(o),"script"),a&&Ct(s),n))for(i=0;o=s[i++];)vt.test(o.type||"")&&n.push(o);return s=null,d},cleanData:function(t,e){for(var n,r,i,a,s=0,u=v.expando,l=v.cache,c=p.deleteExpando,f=v.event.special;null!=(n=t[s]);s++)if((e||v.acceptData(n))&&(a=(i=n[u])&&l[i])){if(a.events)for(r in a.events)f[r]?v.event.remove(n,r):v.removeEvent(n,r,a.handle);l[i]&&(delete l[i],c?delete n[u]:typeof n.removeAttribute!==q?n.removeAttribute(u):n[u]=null,o.push(i))}}}),v.fn.extend({text:function(t){return $(this,(function(t){return void 0===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||O).createTextNode(t))}),null,t,arguments.length)},append:function(){return this.domManip(arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||kt(this,t).appendChild(t)}))},prepend:function(){return this.domManip(arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=kt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return this.domManip(arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return this.domManip(arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},remove:function(t,e){for(var n,r=t?v.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||v.cleanData(wt(n)),n.parentNode&&(e&&v.contains(n.ownerDocument,n)&&Ct(wt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&v.cleanData(wt(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&v.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return v.clone(this,t,e)}))},html:function(t){return $(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(at,""):void 0;if("string"==typeof t&&!pt.test(t)&&(p.htmlSerialize||!st.test(t))&&(p.leadingWhitespace||!ut.test(t))&&!yt[(ct.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(lt,"<$1></$2>");try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(v.cleanData(wt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,(function(e){t=this.parentNode,v.cleanData(wt(this)),t&&t.replaceChild(e,this)})),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=s.apply([],t);var n,r,i,o,a,u,l=0,c=this.length,f=this,d=c-1,h=t[0],m=v.isFunction(h);if(m||c>1&&"string"==typeof h&&!p.checkClone&&ht.test(h))return this.each((function(n){var r=f.eq(n);m&&(t[0]=h.call(this,n,r.html())),r.domManip(t,e)}));if(c&&(n=(u=v.buildFragment(t,this[0].ownerDocument,!1,this)).firstChild,1===u.childNodes.length&&(u=n),n)){for(i=(o=v.map(wt(u,"script"),xt)).length;l<c;l++)r=u,l!==d&&(r=v.clone(r,!0,!0),i&&v.merge(o,wt(r,"script"))),e.call(this[l],r,l);if(i)for(a=o[o.length-1].ownerDocument,v.map(o,Et),l=0;l<i;l++)r=o[l],vt.test(r.type||"")&&!v._data(r,"globalEval")&&v.contains(a,r)&&(r.src?v._evalUrl&&v._evalUrl(r.src):v.globalEval((r.text||r.textContent||r.innerHTML||"").replace(gt,"")));u=n=null}return this}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){v.fn[t]=function(t){for(var n,r=0,i=[],o=v(t),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),v(o[r])[e](n),u.apply(i,n.get());return this.pushStack(i)}}));var Tt,At,Nt={};function Pt(t,e){var n,i=v(e.createElement(t)).appendTo(e.body),o=r.getDefaultComputedStyle&&(n=r.getDefaultComputedStyle(i[0]))?n.display:v.css(i[0],"display");return i.detach(),o}function jt(t){var e=O,n=Nt[t];return n||("none"!==(n=Pt(t,e))&&n||((e=((Tt=(Tt||v("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||Tt[0].contentDocument).document).write(),e.close(),n=Pt(t,e),Tt.detach()),Nt[t]=n),n}p.shrinkWrapBlocks=function(){return null!=At?At:(At=!1,(e=O.getElementsByTagName("body")[0])&&e.style?(t=O.createElement("div"),(n=O.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(n).appendChild(t),typeof t.style.zoom!==q&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(O.createElement("div")).style.width="5px",At=3!==t.offsetWidth),e.removeChild(n),At):void 0);var t,e,n};var Lt,It,Dt=/^margin/,Mt=new RegExp("^("+V+")(?!px)[a-z%]+$","i"),Rt=/^(top|right|bottom|left)$/;function qt(t,e){return{get:function(){var n=t();if(null!=n){if(!n)return(this.get=e).apply(this,arguments);delete this.get}}}}r.getComputedStyle?(Lt=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)},It=function(t,e,n){var r,i,o,a,s=t.style;return a=(n=n||Lt(t))?n.getPropertyValue(e)||n[e]:void 0,n&&(""!==a||v.contains(t.ownerDocument,t)||(a=v.style(t,e)),Mt.test(a)&&Dt.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+""}):O.documentElement.currentStyle&&(Lt=function(t){return t.currentStyle},It=function(t,e,n){var r,i,o,a,s=t.style;return null==(a=(n=n||Lt(t))?n[e]:void 0)&&s&&s[e]&&(a=s[e]),Mt.test(a)&&!Rt.test(e)&&(r=s.left,(o=(i=t.runtimeStyle)&&i.left)&&(i.left=t.currentStyle.left),s.left="fontSize"===e?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"}),function(){var t,e,n,i,o,a,s;function u(){var t,e,n,u;(e=O.getElementsByTagName("body")[0])&&e.style&&(t=O.createElement("div"),(n=O.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(n).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",i=o=!1,s=!0,r.getComputedStyle&&(i="1%"!==(r.getComputedStyle(t,null)||{}).top,o="4px"===(r.getComputedStyle(t,null)||{width:"4px"}).width,(u=t.appendChild(O.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",u.style.marginRight=u.style.width="0",t.style.width="1px",s=!parseFloat((r.getComputedStyle(u,null)||{}).marginRight)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(u=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(a=0===u[0].offsetHeight)&&(u[0].style.display="",u[1].style.display="none",a=0===u[0].offsetHeight),e.removeChild(n))}(t=O.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(e=(n=t.getElementsByTagName("a")[0])&&n.style)&&(e.cssText="float:left;opacity:.5",p.opacity="0.5"===e.opacity,p.cssFloat=!!e.cssFloat,t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===t.style.backgroundClip,p.boxSizing=""===e.boxSizing||""===e.MozBoxSizing||""===e.WebkitBoxSizing,v.extend(p,{reliableHiddenOffsets:function(){return null==a&&u(),a},boxSizingReliable:function(){return null==o&&u(),o},pixelPosition:function(){return null==i&&u(),i},reliableMarginRight:function(){return null==s&&u(),s}}))}(),v.swap=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=a[o];return i};var Bt=/alpha\([^)]*\)/i,Ft=/opacity\s*=\s*([^)]*)/,zt=/^(none|table(?!-c[ea]).+)/,Ut=new RegExp("^("+V+")(.*)$","i"),Ht=new RegExp("^([+-])=("+V+")","i"),Wt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:"0",fontWeight:"400"},Kt=["Webkit","O","Moz","ms"];function Qt(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=e,i=Kt.length;i--;)if((e=Kt[i]+n)in t)return e;return r}function $t(t,e){for(var n,r,i,o=[],a=0,s=t.length;a<s;a++)(r=t[a]).style&&(o[a]=v._data(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Q(r)&&(o[a]=v._data(r,"olddisplay",jt(r.nodeName)))):(i=Q(r),(n&&"none"!==n||!i)&&v._data(r,"olddisplay",i?n:v.css(r,"display"))));for(a=0;a<s;a++)(r=t[a]).style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function Gt(t,e,n){var r=Ut.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function Zt(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=v.css(t,n+K[o],!0,i)),r?("content"===n&&(a-=v.css(t,"padding"+K[o],!0,i)),"margin"!==n&&(a-=v.css(t,"border"+K[o]+"Width",!0,i))):(a+=v.css(t,"padding"+K[o],!0,i),"padding"!==n&&(a+=v.css(t,"border"+K[o]+"Width",!0,i)));return a}function Yt(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Lt(t),a=p.boxSizing&&"border-box"===v.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(((i=It(t,e,o))<0||null==i)&&(i=t.style[e]),Mt.test(i))return i;r=a&&(p.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+Zt(t,e,n||(a?"border":"content"),r,o)+"px"}function Xt(t,e,n,r,i){return new Xt.prototype.init(t,e,n,r,i)}v.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=It(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:p.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=v.camelCase(e),u=t.style;if(e=v.cssProps[s]||(v.cssProps[s]=Qt(u,s)),a=v.cssHooks[e]||v.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:u[e];if(!("string"===(o=typeof n)&&(i=Ht.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(v.css(t,e)),o="number"),null==n||n!=n||("number"!==o||v.cssNumber[s]||(n+="px"),p.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r)))))try{u[e]=n}catch(t){}}},css:function(t,e,n,r){var i,o,a,s=v.camelCase(e);return e=v.cssProps[s]||(v.cssProps[s]=Qt(t.style,s)),(a=v.cssHooks[e]||v.cssHooks[s])&&"get"in a&&(o=a.get(t,!0,n)),void 0===o&&(o=It(t,e,r)),"normal"===o&&e in Vt&&(o=Vt[e]),""===n||n?(i=parseFloat(o),!0===n||v.isNumeric(i)?i||0:o):o}}),v.each(["height","width"],(function(t,e){v.cssHooks[e]={get:function(t,n,r){if(n)return zt.test(v.css(t,"display"))&&0===t.offsetWidth?v.swap(t,Wt,(function(){return Yt(t,e,r)})):Yt(t,e,r)},set:function(t,n,r){var i=r&&Lt(t);return Gt(0,n,r?Zt(t,e,r,p.boxSizing&&"border-box"===v.css(t,"boxSizing",!1,i),i):0)}}})),p.opacity||(v.cssHooks.opacity={get:function(t,e){return Ft.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,r=t.currentStyle,i=v.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===v.trim(o.replace(Bt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||r&&!r.filter)||(n.filter=Bt.test(o)?o.replace(Bt,i):o+" "+i)}}),v.cssHooks.marginRight=qt(p.reliableMarginRight,(function(t,e){if(e)return v.swap(t,{display:"inline-block"},It,[t,"marginRight"])})),v.each({margin:"",padding:"",border:"Width"},(function(t,e){v.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+K[r]+e]=o[r]||o[r-2]||o[0];return i}},Dt.test(t)||(v.cssHooks[t+e].set=Gt)})),v.fn.extend({css:function(t,e){return $(this,(function(t,e,n){var r,i,o={},a=0;if(v.isArray(e)){for(r=Lt(t),i=e.length;a<i;a++)o[e[a]]=v.css(t,e[a],!1,r);return o}return void 0!==n?v.style(t,e,n):v.css(t,e)}),t,e,arguments.length>1)},show:function(){return $t(this,!0)},hide:function(){return $t(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){Q(this)?v(this).show():v(this).hide()}))}}),v.Tween=Xt,Xt.prototype={constructor:Xt,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(v.cssNumber[n]?"":"px")},cur:function(){var t=Xt.propHooks[this.prop];return t&&t.get?t.get(this):Xt.propHooks._default.get(this)},run:function(t){var e,n=Xt.propHooks[this.prop];return this.options.duration?this.pos=e=v.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Xt.propHooks._default.set(this),this}},Xt.prototype.init.prototype=Xt.prototype,Xt.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=v.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){v.fx.step[t.prop]?v.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[v.cssProps[t.prop]]||v.cssHooks[t.prop])?v.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},Xt.propHooks.scrollTop=Xt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},v.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},v.fx=Xt.prototype.init,v.fx.step={};var Jt,te,ee,ne,re,ie,oe,ae=/^(?:toggle|show|hide)$/,se=new RegExp("^(?:([+-])=|)("+V+")([a-z%]*)$","i"),ue=/queueHooks$/,le=[function(t,e,n){var r,i,o,a,s,u,l,c=this,f={},d=t.style,h=t.nodeType&&Q(t),m=v._data(t,"fxshow");n.queue||(null==(s=v._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,c.always((function(){c.always((function(){s.unqueued--,v.queue(t,"fx").length||s.empty.fire()}))})));1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(l=v.css(t,"display"))?v._data(t,"olddisplay")||jt(t.nodeName):l)&&"none"===v.css(t,"float")&&(p.inlineBlockNeedsLayout&&"inline"!==jt(t.nodeName)?d.zoom=1:d.display="inline-block"));n.overflow&&(d.overflow="hidden",p.shrinkWrapBlocks()||c.always((function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})));for(r in e)if(i=e[r],ae.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;h=!0}f[r]=m&&m[r]||v.style(t,r)}else l=void 0;if(v.isEmptyObject(f))"inline"===("none"===l?jt(t.nodeName):l)&&(d.display=l);else for(r in m?"hidden"in m&&(h=m.hidden):m=v._data(t,"fxshow",{}),o&&(m.hidden=!h),h?v(t).show():c.done((function(){v(t).hide()})),c.done((function(){var e;for(e in v._removeData(t,"fxshow"),f)v.style(t,e,f[e])})),f)a=pe(h?m[r]:0,r,c),r in m||(m[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],ce={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=se.exec(e),o=i&&i[3]||(v.cssNumber[t]?"":"px"),a=(v.cssNumber[t]||"px"!==o&&+r)&&se.exec(v.css(n.elem,t)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{a/=s=s||".5",v.style(n.elem,t,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function fe(){return setTimeout((function(){Jt=void 0})),Jt=v.now()}function de(t,e){var n,r={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=K[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function pe(t,e,n){for(var r,i=(ce[e]||[]).concat(ce["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function he(t,e,n){var r,i,o=0,a=le.length,s=v.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var e=Jt||fe(),n=Math.max(0,l.startTime+l.duration-e),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(t,[l,r,n]),r<1&&a?n:(s.resolveWith(t,[l]),!1)},l=s.promise({elem:t,props:v.extend({},e),opts:v.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Jt||fe(),duration:n.duration,tweens:[],createTween:function(e,n){var r=v.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return e?s.resolveWith(t,[l,e]):s.rejectWith(t,[l,e]),this}}),c=l.props;for(!function(t,e){var n,r,i,o,a;for(n in t)if(i=e[r=v.camelCase(n)],o=t[n],v.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=v.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=le[o].call(l,t,c,l.opts))return r;return v.map(c,pe,l),v.isFunction(l.opts.start)&&l.opts.start.call(t,l),v.fx.timer(v.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}v.Animation=v.extend(he,{tweener:function(t,e){v.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;r<i;r++)n=t[r],ce[n]=ce[n]||[],ce[n].unshift(e)},prefilter:function(t,e){e?le.unshift(t):le.push(t)}}),v.speed=function(t,e,n){var r=t&&"object"==typeof t?v.extend({},t):{complete:n||!n&&e||v.isFunction(t)&&t,duration:t,easing:n&&e||e&&!v.isFunction(e)&&e};return r.duration=v.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in v.fx.speeds?v.fx.speeds[r.duration]:v.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v.isFunction(r.old)&&r.old.call(this),r.queue&&v.dequeue(this,r.queue)},r},v.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Q).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=v.isEmptyObject(t),o=v.speed(e,n,r),a=function(){var e=he(this,v.extend({},t),o);(i||v._data(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each((function(){var e=!0,i=null!=t&&t+"queueHooks",o=v.timers,a=v._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ue.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||v.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=v._data(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=v.timers,a=r?r.length:0;for(n.finish=!0,v.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish}))}}),v.each(["toggle","show","hide"],(function(t,e){var n=v.fn[e];v.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(de(e,!0),t,r,i)}})),v.each({slideDown:de("show"),slideUp:de("hide"),slideToggle:de("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){v.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),v.timers=[],v.fx.tick=function(){var t,e=v.timers,n=0;for(Jt=v.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||v.fx.stop(),Jt=void 0},v.fx.timer=function(t){v.timers.push(t),t()?v.fx.start():v.timers.pop()},v.fx.interval=13,v.fx.start=function(){te||(te=setInterval(v.fx.tick,v.fx.interval))},v.fx.stop=function(){clearInterval(te),te=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(t,e){return t=v.fx&&v.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}}))},(ne=O.createElement("div")).setAttribute("className","t"),ne.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ie=ne.getElementsByTagName("a")[0],oe=(re=O.createElement("select")).appendChild(O.createElement("option")),ee=ne.getElementsByTagName("input")[0],ie.style.cssText="top:1px",p.getSetAttribute="t"!==ne.className,p.style=/top/.test(ie.getAttribute("style")),p.hrefNormalized="/a"===ie.getAttribute("href"),p.checkOn=!!ee.value,p.optSelected=oe.selected,p.enctype=!!O.createElement("form").enctype,re.disabled=!0,p.optDisabled=!oe.disabled,(ee=O.createElement("input")).setAttribute("value",""),p.input=""===ee.getAttribute("value"),ee.value="t",ee.setAttribute("type","radio"),p.radioValue="t"===ee.value;var ve=/\r/g;v.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=v.isFunction(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,v(this).val()):t)?i="":"number"==typeof i?i+="":v.isArray(i)&&(i=v.map(i,(function(t){return null==t?"":t+""}))),(e=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=v.valHooks[i.type]||v.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ve,""):null==n?"":n:void 0}}),v.extend({valHooks:{option:{get:function(t){var e=v.find.attr(t,"value");return null!=e?e:v.trim(v.text(t))}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(((n=r[u]).selected||u===i)&&(p.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){if(e=v(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=v.makeArray(e),a=i.length;a--;)if(r=i[a],v.inArray(v.valHooks.option.get(r),o)>=0)try{r.selected=n=!0}catch(t){r.scrollHeight}else r.selected=!1;return n||(t.selectedIndex=-1),i}}}}),v.each(["radio","checkbox"],(function(){v.valHooks[this]={set:function(t,e){if(v.isArray(e))return t.checked=v.inArray(v(t).val(),e)>=0}},p.checkOn||(v.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var me,ge,ye=v.expr.attrHandle,be=/^(?:checked|selected)$/i,we=p.getSetAttribute,_e=p.input;v.fn.extend({attr:function(t,e){return $(this,v.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){v.removeAttr(this,t)}))}}),v.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===q?v.prop(t,e,n):(1===o&&v.isXMLDoc(t)||(e=e.toLowerCase(),r=v.attrHooks[e]||(v.expr.match.bool.test(e)?ge:me)),void 0===n?r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=v.find.attr(t,e))?void 0:i:null!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):void v.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(L);if(o&&1===t.nodeType)for(;n=o[i++];)r=v.propFix[n]||n,v.expr.match.bool.test(n)?_e&&we||!be.test(n)?t[r]=!1:t[v.camelCase("default-"+n)]=t[r]=!1:v.attr(t,n,""),t.removeAttribute(we?n:r)},attrHooks:{type:{set:function(t,e){if(!p.radioValue&&"radio"===e&&v.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),ge={set:function(t,e,n){return!1===e?v.removeAttr(t,n):_e&&we||!be.test(n)?t.setAttribute(!we&&v.propFix[n]||n,n):t[v.camelCase("default-"+n)]=t[n]=!0,n}},v.each(v.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=ye[e]||v.find.attr;ye[e]=_e&&we||!be.test(e)?function(t,e,r){var i,o;return r||(o=ye[e],ye[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,ye[e]=o),i}:function(t,e,n){if(!n)return t[v.camelCase("default-"+e)]?e.toLowerCase():null}})),_e&&we||(v.attrHooks.value={set:function(t,e,n){if(!v.nodeName(t,"input"))return me&&me.set(t,e,n);t.defaultValue=e}}),we||(me={set:function(t,e,n){var r=t.getAttributeNode(n);if(r||t.setAttributeNode(r=t.ownerDocument.createAttribute(n)),r.value=e+="","value"===n||e===t.getAttribute(n))return e}},ye.id=ye.name=ye.coords=function(t,e,n){var r;if(!n)return(r=t.getAttributeNode(e))&&""!==r.value?r.value:null},v.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:me.set},v.attrHooks.contenteditable={set:function(t,e,n){me.set(t,""!==e&&e,n)}},v.each(["width","height"],(function(t,e){v.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}}))),p.style||(v.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var ke=/^(?:input|select|textarea|button|object)$/i,xe=/^(?:a|area)$/i;v.fn.extend({prop:function(t,e){return $(this,v.prop,t,e,arguments.length>1)},removeProp:function(t){return t=v.propFix[t]||t,this.each((function(){try{this[t]=void 0,delete this[t]}catch(t){}}))}}),v.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return(1!==o||!v.isXMLDoc(t))&&(e=v.propFix[e]||e,i=v.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=v.find.attr(t,"tabindex");return e?parseInt(e,10):ke.test(t.nodeName)||xe.test(t.nodeName)&&t.href?0:-1}}}}),p.hrefNormalized||v.each(["href","src"],(function(t,e){v.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}})),p.optSelected||(v.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){v.propFix[this.toLowerCase()]=this})),p.enctype||(v.propFix.enctype="encoding");var Ee=/[\t\r\n\f]/g;v.fn.extend({addClass:function(t){var e,n,r,i,o,a,s=0,u=this.length,l="string"==typeof t&&t;if(v.isFunction(t))return this.each((function(e){v(this).addClass(t.call(this,e,this.className))}));if(l)for(e=(t||"").match(L)||[];s<u;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(Ee," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=v.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,r,i,o,a,s=0,u=this.length,l=0===arguments.length||"string"==typeof t&&t;if(v.isFunction(t))return this.each((function(e){v(this).removeClass(t.call(this,e,this.className))}));if(l)for(e=(t||"").match(L)||[];s<u;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(Ee," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=t?v.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):v.isFunction(t)?this.each((function(n){v(this).toggleClass(t.call(this,n,this.className,e),e)})):this.each((function(){if("string"===n)for(var e,r=0,i=v(this),o=t.match(L)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else n!==q&&"boolean"!==n||(this.className&&v._data(this,"__className__",this.className),this.className=this.className||!1===t?"":v._data(this,"__className__")||"")}))},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Ee," ").indexOf(e)>=0)return!0;return!1}}),v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(t,e){v.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}})),v.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var Ce=v.now(),Se=/\?/,Oe=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;v.parseJSON=function(t){if(r.JSON&&r.JSON.parse)return r.JSON.parse(t+"");var e,n=null,i=v.trim(t+"");return i&&!v.trim(i.replace(Oe,(function(t,r,i,o){return e&&r&&(n=0),0===n?t:(e=i||r,n+=!o-!i,"")})))?Function("return "+i)():v.error("Invalid JSON: "+t)},v.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{r.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t))}catch(t){e=void 0}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+t),e};var Te,Ae,Ne=/#.*$/,Pe=/([?&])_=[^&]*/,je=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Le=/^(?:GET|HEAD)$/,Ie=/^\/\//,De=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Me={},Re={},qe="*/".concat("*");try{Ae=location.href}catch(t){(Ae=O.createElement("a")).href="",Ae=Ae.href}function Be(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(L)||[];if(v.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Fe(t,e,n,r){var i={},o=t===Re;function a(s){var u;return i[s]=!0,v.each(t[s]||[],(function(t,s){var l=s(e,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),a(l),!1)})),u}return a(e.dataTypes[0])||!i["*"]&&a("*")}function ze(t,e){var n,r,i=v.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&v.extend(!0,t,n),t}Te=De.exec(Ae.toLowerCase())||[],v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ae,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Te[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ze(ze(t,v.ajaxSettings),e):ze(v.ajaxSettings,t)},ajaxPrefilter:Be(Me),ajaxTransport:Be(Re),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,i,o,a,s,u,l,c=v.ajaxSetup({},e),f=c.context||c,d=c.context&&(f.nodeType||f.jquery)?v(f):v.event,p=v.Deferred(),h=v.Callbacks("once memory"),m=c.statusCode||{},g={},y={},b=0,w="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!l)for(l={};e=je.exec(o);)l[e[1].toLowerCase()]=e[2];e=l[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=y[n]=y[n]||t,g[t]=e),this},overrideMimeType:function(t){return b||(c.mimeType=t),this},statusCode:function(t){var e;if(t)if(b<2)for(e in t)m[e]=[m[e],t[e]];else _.always(t[_.status]);return this},abort:function(t){var e=t||w;return u&&u.abort(e),k(0,e),this}};if(p.promise(_).complete=h.add,_.success=_.done,_.error=_.fail,c.url=((t||c.url||Ae)+"").replace(Ne,"").replace(Ie,Te[1]+"//"),c.type=e.method||e.type||c.method||c.type,c.dataTypes=v.trim(c.dataType||"*").toLowerCase().match(L)||[""],null==c.crossDomain&&(n=De.exec(c.url.toLowerCase()),c.crossDomain=!(!n||n[1]===Te[1]&&n[2]===Te[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(Te[3]||("http:"===Te[1]?"80":"443")))),c.data&&c.processData&&"string"!=typeof c.data&&(c.data=v.param(c.data,c.traditional)),Fe(Me,c,e,_),2===b)return _;for(r in(s=c.global)&&0==v.active++&&v.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!Le.test(c.type),i=c.url,c.hasContent||(c.data&&(i=c.url+=(Se.test(i)?"&":"?")+c.data,delete c.data),!1===c.cache&&(c.url=Pe.test(i)?i.replace(Pe,"$1_="+Ce++):i+(Se.test(i)?"&":"?")+"_="+Ce++)),c.ifModified&&(v.lastModified[i]&&_.setRequestHeader("If-Modified-Since",v.lastModified[i]),v.etag[i]&&_.setRequestHeader("If-None-Match",v.etag[i])),(c.data&&c.hasContent&&!1!==c.contentType||e.contentType)&&_.setRequestHeader("Content-Type",c.contentType),_.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+qe+"; q=0.01":""):c.accepts["*"]),c.headers)_.setRequestHeader(r,c.headers[r]);if(c.beforeSend&&(!1===c.beforeSend.call(f,_,c)||2===b))return _.abort();for(r in w="abort",{success:1,error:1,complete:1})_[r](c[r]);if(u=Fe(Re,c,e,_)){_.readyState=1,s&&d.trigger("ajaxSend",[_,c]),c.async&&c.timeout>0&&(a=setTimeout((function(){_.abort("timeout")}),c.timeout));try{b=1,u.send(g,k)}catch(t){if(!(b<2))throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,n,r){var l,g,y,w,k,x=e;2!==b&&(b=2,a&&clearTimeout(a),u=void 0,o=r||"",_.readyState=t>0?4:0,l=t>=200&&t<300||304===t,n&&(w=function(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||t.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}(c,_,n)),w=function(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(c,w,_,l),l?(c.ifModified&&((k=_.getResponseHeader("Last-Modified"))&&(v.lastModified[i]=k),(k=_.getResponseHeader("etag"))&&(v.etag[i]=k)),204===t||"HEAD"===c.type?x="nocontent":304===t?x="notmodified":(x=w.state,g=w.data,l=!(y=w.error))):(y=x,!t&&x||(x="error",t<0&&(t=0))),_.status=t,_.statusText=(e||x)+"",l?p.resolveWith(f,[g,x,_]):p.rejectWith(f,[_,x,y]),_.statusCode(m),m=void 0,s&&d.trigger(l?"ajaxSuccess":"ajaxError",[_,c,l?g:y]),h.fireWith(f,[_,x]),s&&(d.trigger("ajaxComplete",[_,c]),--v.active||v.event.trigger("ajaxStop")))}return _},getJSON:function(t,e,n){return v.get(t,e,n,"json")},getScript:function(t,e){return v.get(t,void 0,e,"script")}}),v.each(["get","post"],(function(t,e){v[e]=function(t,n,r,i){return v.isFunction(n)&&(i=i||r,r=n,n=void 0),v.ajax({url:t,type:e,dataType:i,data:n,success:r})}})),v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){v.fn[e]=function(t){return this.on(e,t)}})),v._evalUrl=function(t){return v.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(t){if(v.isFunction(t))return this.each((function(e){v(this).wrapAll(t.call(this,e))}));if(this[0]){var e=v(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t})).append(this)}return this},wrapInner:function(t){return v.isFunction(t)?this.each((function(e){v(this).wrapInner(t.call(this,e))})):this.each((function(){var e=v(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v.isFunction(t);return this.each((function(n){v(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(){return this.parent().each((function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)})).end()}}),v.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!p.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||v.css(t,"display"))},v.expr.filters.visible=function(t){return!v.expr.filters.hidden(t)};var Ue=/%20/g,He=/\[\]$/,We=/\r?\n/g,Ve=/^(?:submit|button|image|reset|file)$/i,Ke=/^(?:input|select|textarea|keygen)/i;function Qe(t,e,n,r){var i;if(v.isArray(e))v.each(e,(function(e,i){n||He.test(t)?r(t,i):Qe(t+"["+("object"==typeof i?e:"")+"]",i,n,r)}));else if(n||"object"!==v.type(e))r(t,e);else for(i in e)Qe(t+"["+i+"]",e[i],n,r)}v.param=function(t,e){var n,r=[],i=function(t,e){e=v.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=v.ajaxSettings&&v.ajaxSettings.traditional),v.isArray(t)||t.jquery&&!v.isPlainObject(t))v.each(t,(function(){i(this.name,this.value)}));else for(n in t)Qe(n,t[n],e,i);return r.join("&").replace(Ue,"+")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=v.prop(this,"elements");return t?v.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!v(this).is(":disabled")&&Ke.test(this.nodeName)&&!Ve.test(t)&&(this.checked||!G.test(t))})).map((function(t,e){var n=v(this).val();return null==n?null:v.isArray(n)?v.map(n,(function(t){return{name:e.name,value:t.replace(We,"\r\n")}})):{name:e.name,value:n.replace(We,"\r\n")}})).get()}}),v.ajaxSettings.xhr=void 0!==r.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Ye()||function(){try{return new r.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:Ye;var $e=0,Ge={},Ze=v.ajaxSettings.xhr();function Ye(){try{return new r.XMLHttpRequest}catch(t){}}r.ActiveXObject&&v(r).on("unload",(function(){for(var t in Ge)Ge[t](void 0,!0)})),p.cors=!!Ze&&"withCredentials"in Ze,(Ze=p.ajax=!!Ze)&&v.ajaxTransport((function(t){var e;if(!t.crossDomain||p.cors)return{send:function(n,r){var i,o=t.xhr(),a=++$e;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];for(i in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(t.hasContent&&t.data||null),e=function(n,i){var s,u,l;if(e&&(i||4===o.readyState))if(delete Ge[a],e=void 0,o.onreadystatechange=v.noop,i)4!==o.readyState&&o.abort();else{l={},s=o.status,"string"==typeof o.responseText&&(l.text=o.responseText);try{u=o.statusText}catch(t){u=""}s||!t.isLocal||t.crossDomain?1223===s&&(s=204):s=l.text?200:404}l&&r(s,u,l,o.getAllResponseHeaders())},t.async?4===o.readyState?setTimeout(e):o.onreadystatechange=Ge[a]=e:e()},abort:function(){e&&e(void 0,!0)}}})),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return v.globalEval(t),t}}}),v.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)})),v.ajaxTransport("script",(function(t){if(t.crossDomain){var e,n=O.head||v("head")[0]||O.documentElement;return{send:function(r,i){(e=O.createElement("script")).async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||i(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}}));var Xe=[],Je=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||v.expando+"_"+Ce++;return this[t]=!0,t}}),v.ajaxPrefilter("json jsonp",(function(t,e,n){var i,o,a,s=!1!==t.jsonp&&(Je.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Je.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=v.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Je,"$1"+i):!1!==t.jsonp&&(t.url+=(Se.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||v.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always((function(){r[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Xe.push(i)),a&&v.isFunction(o)&&o(a[0]),a=o=void 0})),"script"})),v.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||O;var r=x.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=v.buildFragment([t],e,i),i&&i.length&&v(i).remove(),v.merge([],r.childNodes))};var tn=v.fn.load;v.fn.load=function(t,e,n){if("string"!=typeof t&&tn)return tn.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return s>=0&&(r=v.trim(t.slice(s,t.length)),t=t.slice(0,s)),v.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),a.length>0&&v.ajax({url:t,type:o,dataType:"html",data:e}).done((function(t){i=arguments,a.html(r?v("<div>").append(v.parseHTML(t)).find(r):t)})).complete(n&&function(t,e){a.each(n,i||[t.responseText,e,t])}),this},v.expr.filters.animated=function(t){return v.grep(v.timers,(function(e){return t===e.elem})).length};var en=r.document.documentElement;function nn(t){return v.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}v.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l=v.css(t,"position"),c=v(t),f={};"static"===l&&(t.style.position="relative"),s=c.offset(),o=v.css(t,"top"),u=v.css(t,"left"),("absolute"===l||"fixed"===l)&&v.inArray("auto",[o,u])>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+i),"using"in e?e.using.call(t,f):c.css(f)}},v.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){v.offset.setOffset(this,t,e)}));var e,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;return o?(e=o.documentElement,v.contains(e,i)?(typeof i.getBoundingClientRect!==q&&(r=i.getBoundingClientRect()),n=nn(o),{top:r.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:r.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):r):void 0},position:function(){if(this[0]){var t,e,n={top:0,left:0},r=this[0];return"fixed"===v.css(r,"position")?e=r.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),v.nodeName(t[0],"html")||(n=t.offset()),n.top+=v.css(t[0],"borderTopWidth",!0),n.left+=v.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-v.css(r,"marginTop",!0),left:e.left-n.left-v.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||en;t&&!v.nodeName(t,"html")&&"static"===v.css(t,"position");)t=t.offsetParent;return t||en}))}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n=/Y/.test(e);v.fn[t]=function(r){return $(this,(function(t,r,i){var o=nn(t);if(void 0===i)return o?e in o?o[e]:o.document.documentElement[r]:t[r];o?o.scrollTo(n?v(o).scrollLeft():i,n?i:v(o).scrollTop()):t[r]=i}),t,r,arguments.length,null)}})),v.each(["top","left"],(function(t,e){v.cssHooks[e]=qt(p.pixelPosition,(function(t,n){if(n)return n=It(t,e),Mt.test(n)?v(t).position()[e]+"px":n}))})),v.each({Height:"height",Width:"width"},(function(t,e){v.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){v.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return $(this,(function(e,n,r){var i;return v.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?v.css(e,n,a):v.style(e,n,r,a)}),e,o?r:void 0,o,null)}}))})),v.fn.size=function(){return this.length},v.fn.andSelf=v.fn.addBack,void 0===(n=function(){return v}.apply(e,[]))||(t.exports=n);var rn=r.jQuery,on=r.$;return v.noConflict=function(t){return r.$===v&&(r.$=on),t&&r.jQuery===v&&(r.jQuery=rn),v},typeof i===q&&(r.jQuery=r.$=v),v}))}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t={};n.r(t),n.d(t,{VERSION:()=>s,after:()=>Re,all:()=>rn,allKeys:()=>bt,any:()=>on,assign:()=>Rt,before:()=>qe,bind:()=>Ce,bindAll:()=>Te,chain:()=>_e,chunk:()=>zn,clone:()=>zt,collect:()=>Ye,compact:()=>Nn,compose:()=>Me,constant:()=>et,contains:()=>an,countBy:()=>wn,create:()=>Ft,debounce:()=>Le,default:()=>Wn,defaults:()=>qt,defer:()=>Pe,delay:()=>Ne,detect:()=>$e,difference:()=>jn,drop:()=>Tn,each:()=>Ze,escape:()=>le,every:()=>rn,extend:()=>Mt,extendOwn:()=>Rt,filter:()=>en,find:()=>$e,findIndex:()=>Ue,findKey:()=>Fe,findLastIndex:()=>He,findWhere:()=>Ge,first:()=>On,flatten:()=>Pn,foldl:()=>Je,foldr:()=>tn,forEach:()=>Ze,functions:()=>It,get:()=>Kt,groupBy:()=>yn,has:()=>Qt,head:()=>On,identity:()=>$t,include:()=>an,includes:()=>an,indexBy:()=>bn,indexOf:()=>Ke,initial:()=>Sn,inject:()=>Je,intersection:()=>Mn,invert:()=>Lt,invoke:()=>sn,isArguments:()=>X,isArray:()=>G,isArrayBuffer:()=>F,isBoolean:()=>P,isDataView:()=>$,isDate:()=>M,isElement:()=>j,isEmpty:()=>ft,isEqual:()=>yt,isError:()=>q,isFinite:()=>J,isFunction:()=>H,isMap:()=>Ot,isMatch:()=>dt,isNaN:()=>tt,isNull:()=>A,isNumber:()=>D,isObject:()=>T,isRegExp:()=>R,isSet:()=>At,isString:()=>I,isSymbol:()=>B,isTypedArray:()=>st,isUndefined:()=>N,isWeakMap:()=>Tt,isWeakSet:()=>Nt,iteratee:()=>Jt,keys:()=>ct,last:()=>An,lastIndexOf:()=>Qe,map:()=>Ye,mapObject:()=>ee,matcher:()=>Gt,matches:()=>Gt,max:()=>cn,memoize:()=>Ae,methods:()=>It,min:()=>fn,mixin:()=>Hn,negate:()=>De,noop:()=>ne,now:()=>ae,object:()=>Bn,omit:()=>Cn,once:()=>Be,pairs:()=>jt,partial:()=>Ee,partition:()=>_n,pick:()=>En,pluck:()=>un,property:()=>Zt,propertyOf:()=>re,random:()=>oe,range:()=>Fn,reduce:()=>Je,reduceRight:()=>tn,reject:()=>nn,rest:()=>Tn,restArguments:()=>O,result:()=>ye,sample:()=>hn,select:()=>en,shuffle:()=>vn,size:()=>kn,some:()=>on,sortBy:()=>mn,sortedIndex:()=>We,tail:()=>Tn,take:()=>On,tap:()=>Ut,template:()=>ge,templateSettings:()=>fe,throttle:()=>je,times:()=>ie,toArray:()=>pn,toPath:()=>Ht,transpose:()=>Rn,unescape:()=>ce,union:()=>Dn,uniq:()=>In,unique:()=>In,uniqueId:()=>we,unzip:()=>Rn,values:()=>Pt,where:()=>ln,without:()=>Ln,wrap:()=>Ie,zip:()=>qn});var e={};n.r(e),n.d(e,{VERSION:()=>s,after:()=>Re,all:()=>rn,allKeys:()=>bt,any:()=>on,assign:()=>Rt,before:()=>qe,bind:()=>Ce,bindAll:()=>Te,chain:()=>_e,chunk:()=>zn,clone:()=>zt,collect:()=>Ye,compact:()=>Nn,compose:()=>Me,constant:()=>et,contains:()=>an,countBy:()=>wn,create:()=>Ft,debounce:()=>Le,default:()=>Kn,defaults:()=>qt,defer:()=>Pe,delay:()=>Ne,detect:()=>$e,difference:()=>jn,drop:()=>Tn,each:()=>Ze,escape:()=>le,every:()=>rn,extend:()=>Mt,extendOwn:()=>Rt,filter:()=>en,find:()=>$e,findIndex:()=>Ue,findKey:()=>Fe,findLastIndex:()=>He,findWhere:()=>Ge,first:()=>On,flatten:()=>Pn,foldl:()=>Je,foldr:()=>tn,forEach:()=>Ze,functions:()=>It,get:()=>Kt,groupBy:()=>yn,has:()=>Qt,head:()=>On,identity:()=>$t,include:()=>an,includes:()=>an,indexBy:()=>bn,indexOf:()=>Ke,initial:()=>Sn,inject:()=>Je,intersection:()=>Mn,invert:()=>Lt,invoke:()=>sn,isArguments:()=>X,isArray:()=>G,isArrayBuffer:()=>F,isBoolean:()=>P,isDataView:()=>$,isDate:()=>M,isElement:()=>j,isEmpty:()=>ft,isEqual:()=>yt,isError:()=>q,isFinite:()=>J,isFunction:()=>H,isMap:()=>Ot,isMatch:()=>dt,isNaN:()=>tt,isNull:()=>A,isNumber:()=>D,isObject:()=>T,isRegExp:()=>R,isSet:()=>At,isString:()=>I,isSymbol:()=>B,isTypedArray:()=>st,isUndefined:()=>N,isWeakMap:()=>Tt,isWeakSet:()=>Nt,iteratee:()=>Jt,keys:()=>ct,last:()=>An,lastIndexOf:()=>Qe,map:()=>Ye,mapObject:()=>ee,matcher:()=>Gt,matches:()=>Gt,max:()=>cn,memoize:()=>Ae,methods:()=>It,min:()=>fn,mixin:()=>Hn,negate:()=>De,noop:()=>ne,now:()=>ae,object:()=>Bn,omit:()=>Cn,once:()=>Be,pairs:()=>jt,partial:()=>Ee,partition:()=>_n,pick:()=>En,pluck:()=>un,property:()=>Zt,propertyOf:()=>re,random:()=>oe,range:()=>Fn,reduce:()=>Je,reduceRight:()=>tn,reject:()=>nn,rest:()=>Tn,restArguments:()=>O,result:()=>ye,sample:()=>hn,select:()=>en,shuffle:()=>vn,size:()=>kn,some:()=>on,sortBy:()=>mn,sortedIndex:()=>We,tail:()=>Tn,take:()=>On,tap:()=>Ut,template:()=>ge,templateSettings:()=>fe,throttle:()=>je,times:()=>ie,toArray:()=>pn,toPath:()=>Ht,transpose:()=>Rn,unescape:()=>ce,union:()=>Dn,uniq:()=>In,unique:()=>In,uniqueId:()=>we,unzip:()=>Rn,values:()=>Pt,where:()=>ln,without:()=>Ln,wrap:()=>Ie,zip:()=>qn});var r={};n.r(r),n.d(r,{ERROR_CODE_CLIENT_VERIFICATION_REQUIRED:()=>Aa,currentState:()=>La,perform:()=>Na,reset:()=>Pa});var i={};n.r(i),n.d(i,{deserialize:()=>Au});var o={};n.r(o),n.d(o,{alwaysShowOptionMarkers:()=>Ph,currentPublicAuthorizationState:()=>Zg,enableForceVerification:()=>Gg,isFetchingActive:()=>Ea});var a={};n.r(a),n.d(a,{ArgumentError:()=>Jn,BackgroundImageTag:()=>yv,Binary:()=>Su,ChildListTag:()=>Kv,ContentTag:()=>bm,CurrentPage:()=>km,FutureBinary:()=>bu,ImageTag:()=>jm,InPlaceEditingOff:()=>Lm,Link:()=>Xg,LinkTag:()=>Rv,NotFoundErrorPage:()=>Mm,Obj:()=>Jg,ObjFacetValue:()=>gc,ObjSearch:()=>ty,RestoreInPlaceEditing:()=>Im,ScrivitoError:()=>Xn,Widget:()=>ey,WidgetTag:()=>qh,_internal:()=>o,configure:()=>_g,configureContentBrowser:()=>Fm,connect:()=>zp,createObjClass:()=>ny,createWidgetClass:()=>ry,currentPage:()=>Tv,currentPageParams:()=>Av,extendMenu:()=>Ig,finishLoading:()=>Ip,getClass:()=>iy,isEditorLoggedIn:()=>$g,isInPlaceEditingActive:()=>td,load:()=>ao,navigateTo:()=>bp,openDialog:()=>Kg,preload:()=>Hg,provideComponent:()=>Uh,provideEditingConfig:()=>Gc,provideObjClass:()=>oy,provideWidgetClass:()=>ay,registerComponent:()=>Hh,renderPage:()=>Fg,unstable_selectSiteId:()=>yf,updateMenuExtensions:()=>Mg,urlFor:()=>pp,useHistory:()=>zl});var s="1.13.7",u="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},l=Array.prototype,c=Object.prototype,f="undefined"!=typeof Symbol?Symbol.prototype:null,d=l.push,p=l.slice,h=c.toString,v=c.hasOwnProperty,m="undefined"!=typeof ArrayBuffer,g="undefined"!=typeof DataView,y=Array.isArray,b=Object.keys,w=Object.create,_=m&&ArrayBuffer.isView,k=isNaN,x=isFinite,E=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S=Math.pow(2,53)-1;function O(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+e];switch(e){case 0:return t.call(this,r);case 1:return t.call(this,arguments[0],r);case 2:return t.call(this,arguments[0],arguments[1],r)}var o=Array(e+1);for(i=0;i<e;i++)o[i]=arguments[i];return o[e]=r,t.apply(this,o)}}function T(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function A(t){return null===t}function N(t){return void 0===t}function P(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)}function j(t){return!(!t||1!==t.nodeType)}function L(t){var e="[object "+t+"]";return function(t){return h.call(t)===e}}const I=L("String"),D=L("Number"),M=L("Date"),R=L("RegExp"),q=L("Error"),B=L("Symbol"),F=L("ArrayBuffer");var z=L("Function"),U=u.document&&u.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof U&&(z=function(t){return"function"==typeof t||!1});const H=z,W=L("Object");var V=g&&(!/\[native code\]/.test(String(DataView))||W(new DataView(new ArrayBuffer(8)))),K="undefined"!=typeof Map&&W(new Map),Q=L("DataView");const $=V?function(t){return null!=t&&H(t.getInt8)&&F(t.buffer)}:Q,G=y||L("Array");function Z(t,e){return null!=t&&v.call(t,e)}var Y=L("Arguments");!function(){Y(arguments)||(Y=function(t){return Z(t,"callee")})}();const X=Y;function J(t){return!B(t)&&x(t)&&!isNaN(parseFloat(t))}function tt(t){return D(t)&&k(t)}function et(t){return function(){return t}}function nt(t){return function(e){var n=t(e);return"number"==typeof n&&n>=0&&n<=S}}function rt(t){return function(e){return null==e?void 0:e[t]}}const it=rt("byteLength"),ot=nt(it);var at=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const st=m?function(t){return _?_(t)&&!$(t):ot(t)&&at.test(h.call(t))}:et(!1),ut=rt("length");function lt(t,e){e=function(t){for(var e={},n=t.length,r=0;r<n;++r)e[t[r]]=!0;return{contains:function(t){return!0===e[t]},push:function(n){return e[n]=!0,t.push(n)}}}(e);var n=C.length,r=t.constructor,i=H(r)&&r.prototype||c,o="constructor";for(Z(t,o)&&!e.contains(o)&&e.push(o);n--;)(o=C[n])in t&&t[o]!==i[o]&&!e.contains(o)&&e.push(o)}function ct(t){if(!T(t))return[];if(b)return b(t);var e=[];for(var n in t)Z(t,n)&&e.push(n);return E&&lt(t,e),e}function ft(t){if(null==t)return!0;var e=ut(t);return"number"==typeof e&&(G(t)||I(t)||X(t))?0===e:0===ut(ct(t))}function dt(t,e){var n=ct(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=n[o];if(e[a]!==i[a]||!(a in i))return!1}return!0}function pt(t){return t instanceof pt?t:this instanceof pt?void(this._wrapped=t):new pt(t)}function ht(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,it(t))}pt.VERSION=s,pt.prototype.value=function(){return this._wrapped},pt.prototype.valueOf=pt.prototype.toJSON=pt.prototype.value,pt.prototype.toString=function(){return String(this._wrapped)};var vt="[object DataView]";function mt(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=typeof t;return("function"===i||"object"===i||"object"==typeof e)&&gt(t,e,n,r)}function gt(t,e,n,r){t instanceof pt&&(t=t._wrapped),e instanceof pt&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;if(V&&"[object Object]"==i&&$(t)){if(!$(e))return!1;i=vt}switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return f.valueOf.call(t)===f.valueOf.call(e);case"[object ArrayBuffer]":case vt:return gt(ht(t),ht(e),n,r)}var o="[object Array]"===i;if(!o&&st(t)){if(it(t)!==it(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(H(a)&&a instanceof a&&H(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}r=r||[];for(var u=(n=n||[]).length;u--;)if(n[u]===t)return r[u]===e;if(n.push(t),r.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!mt(t[u],e[u],n,r))return!1}else{var l,c=ct(t);if(u=c.length,ct(e).length!==u)return!1;for(;u--;)if(!Z(e,l=c[u])||!mt(t[l],e[l],n,r))return!1}return n.pop(),r.pop(),!0}function yt(t,e){return mt(t,e)}function bt(t){if(!T(t))return[];var e=[];for(var n in t)e.push(n);return E&&lt(t,e),e}function wt(t){var e=ut(t);return function(n){if(null==n)return!1;var r=bt(n);if(ut(r))return!1;for(var i=0;i<e;i++)if(!H(n[t[i]]))return!1;return t!==Ct||!H(n[_t])}}var _t="forEach",kt=["clear","delete"],xt=["get","has","set"],Et=kt.concat(_t,xt),Ct=kt.concat(xt),St=["add"].concat(kt,_t,"has");const Ot=K?wt(Et):L("Map"),Tt=K?wt(Ct):L("WeakMap"),At=K?wt(St):L("Set"),Nt=L("WeakSet");function Pt(t){for(var e=ct(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r}function jt(t){for(var e=ct(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r}function Lt(t){for(var e={},n=ct(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e}function It(t){var e=[];for(var n in t)H(t[n])&&e.push(n);return e.sort()}function Dt(t,e){return function(n){var r=arguments.length;if(e&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=t(o),s=a.length,u=0;u<s;u++){var l=a[u];e&&void 0!==n[l]||(n[l]=o[l])}return n}}const Mt=Dt(bt),Rt=Dt(ct),qt=Dt(bt,!0);function Bt(t){if(!T(t))return{};if(w)return w(t);var e=function(){};e.prototype=t;var n=new e;return e.prototype=null,n}function Ft(t,e){var n=Bt(t);return e&&Rt(n,e),n}function zt(t){return T(t)?G(t)?t.slice():Mt({},t):t}function Ut(t,e){return e(t),t}function Ht(t){return G(t)?t:[t]}function Wt(t){return pt.toPath(t)}function Vt(t,e){for(var n=e.length,r=0;r<n;r++){if(null==t)return;t=t[e[r]]}return n?t:void 0}function Kt(t,e,n){var r=Vt(t,Wt(e));return N(r)?n:r}function Qt(t,e){for(var n=(e=Wt(e)).length,r=0;r<n;r++){var i=e[r];if(!Z(t,i))return!1;t=t[i]}return!!n}function $t(t){return t}function Gt(t){return t=Rt({},t),function(e){return dt(e,t)}}function Zt(t){return t=Wt(t),function(e){return Vt(e,t)}}function Yt(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}}function Xt(t,e,n){return null==t?$t:H(t)?Yt(t,e,n):T(t)&&!G(t)?Gt(t):Zt(t)}function Jt(t,e){return Xt(t,e,1/0)}function te(t,e,n){return pt.iteratee!==Jt?pt.iteratee(t,e):Xt(t,e,n)}function ee(t,e,n){e=te(e,n);for(var r=ct(t),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=e(t[s],s,t)}return o}function ne(){}function re(t){return null==t?ne:function(e){return Kt(t,e)}}function ie(t,e,n){var r=Array(Math.max(0,t));e=Yt(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r}function oe(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}pt.toPath=Ht,pt.iteratee=Jt;const ae=Date.now||function(){return(new Date).getTime()};function se(t){var e=function(e){return t[e]},n="(?:"+ct(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}}const ue={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},le=se(ue),ce=se(Lt(ue)),fe=pt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var de=/(.)^/,pe={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},he=/\\|'|\r|\n|\u2028|\u2029/g;function ve(t){return"\\"+pe[t]}var me=/^\s*(\w|\$)+\s*$/;function ge(t,e,n){!e&&n&&(e=n),e=qt({},e,pt.templateSettings);var r=RegExp([(e.escape||de).source,(e.interpolate||de).source,(e.evaluate||de).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,(function(e,n,r,a,s){return o+=t.slice(i,s).replace(he,ve),i=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e})),o+="';\n";var a,s=e.variable;if(s){if(!me.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(t){throw t.source=o,t}var u=function(t){return a.call(this,t,pt)};return u.source="function("+s+"){\n"+o+"}",u}function ye(t,e,n){var r=(e=Wt(e)).length;if(!r)return H(n)?n.call(t):n;for(var i=0;i<r;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=n,i=r),t=H(o)?o.call(t):o}return t}var be=0;function we(t){var e=++be+"";return t?t+e:e}function _e(t){var e=pt(t);return e._chain=!0,e}function ke(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=Bt(t.prototype),a=t.apply(o,i);return T(a)?a:o}var xe=O((function(t,e){var n=xe.placeholder,r=function(){for(var i=0,o=e.length,a=Array(o),s=0;s<o;s++)a[s]=e[s]===n?arguments[i++]:e[s];for(;i<arguments.length;)a.push(arguments[i++]);return ke(t,r,this,this,a)};return r}));xe.placeholder=pt;const Ee=xe,Ce=O((function(t,e,n){if(!H(t))throw new TypeError("Bind must be called on a function");var r=O((function(i){return ke(t,r,e,this,n.concat(i))}));return r})),Se=nt(ut);function Oe(t,e,n,r){if(r=r||[],e||0===e){if(e<=0)return r.concat(t)}else e=1/0;for(var i=r.length,o=0,a=ut(t);o<a;o++){var s=t[o];if(Se(s)&&(G(s)||X(s)))if(e>1)Oe(s,e-1,n,r),i=r.length;else for(var u=0,l=s.length;u<l;)r[i++]=s[u++];else n||(r[i++]=s)}return r}const Te=O((function(t,e){var n=(e=Oe(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=e[n];t[r]=Ce(t[r],t)}return t}));function Ae(t,e){var n=function(r){var i=n.cache,o=""+(e?e.apply(this,arguments):r);return Z(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n}const Ne=O((function(t,e,n){return setTimeout((function(){return t.apply(null,n)}),e)})),Pe=Ee(Ne,pt,1);function je(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:ae(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=ae();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l}function Le(t,e,n){var r,i,o,a,s,u=function(){var l=ae()-i;e>l?r=setTimeout(u,e-l):(r=null,n||(a=t.apply(s,o)),r||(o=s=null))},l=O((function(l){return s=this,o=l,i=ae(),r||(r=setTimeout(u,e),n&&(a=t.apply(s,o))),a}));return l.cancel=function(){clearTimeout(r),r=o=s=null},l}function Ie(t,e){return Ee(e,t)}function De(t){return function(){return!t.apply(this,arguments)}}function Me(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}}function Re(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function qe(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}const Be=Ee(qe,2);function Fe(t,e,n){e=te(e,n);for(var r,i=ct(t),o=0,a=i.length;o<a;o++)if(e(t[r=i[o]],r,t))return r}function ze(t){return function(e,n,r){n=te(n,r);for(var i=ut(e),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(n(e[o],o,e))return o;return-1}}const Ue=ze(1),He=ze(-1);function We(t,e,n,r){for(var i=(n=te(n,r,1))(e),o=0,a=ut(t);o<a;){var s=Math.floor((o+a)/2);n(t[s])<i?o=s+1:a=s}return o}function Ve(t,e,n){return function(r,i,o){var a=0,s=ut(r);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=e(p.call(r,a,s),tt))>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&o<s;o+=t)if(r[o]===i)return o;return-1}}const Ke=Ve(1,Ue,We),Qe=Ve(-1,He);function $e(t,e,n){var r=(Se(t)?Ue:Fe)(t,e,n);if(void 0!==r&&-1!==r)return t[r]}function Ge(t,e){return $e(t,Gt(e))}function Ze(t,e,n){var r,i;if(e=Yt(e,n),Se(t))for(r=0,i=t.length;r<i;r++)e(t[r],r,t);else{var o=ct(t);for(r=0,i=o.length;r<i;r++)e(t[o[r]],o[r],t)}return t}function Ye(t,e,n){e=te(e,n);for(var r=!Se(t)&&ct(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=e(t[s],s,t)}return o}function Xe(t){return function(e,n,r,i){var o=arguments.length>=3;return function(e,n,r,i){var o=!Se(e)&&ct(e),a=(o||e).length,s=t>0?0:a-1;for(i||(r=e[o?o[s]:s],s+=t);s>=0&&s<a;s+=t){var u=o?o[s]:s;r=n(r,e[u],u,e)}return r}(e,Yt(n,i,4),r,o)}}const Je=Xe(1),tn=Xe(-1);function en(t,e,n){var r=[];return e=te(e,n),Ze(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r}function nn(t,e,n){return en(t,De(te(e)),n)}function rn(t,e,n){e=te(e,n);for(var r=!Se(t)&&ct(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!e(t[a],a,t))return!1}return!0}function on(t,e,n){e=te(e,n);for(var r=!Se(t)&&ct(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(e(t[a],a,t))return!0}return!1}function an(t,e,n,r){return Se(t)||(t=Pt(t)),("number"!=typeof n||r)&&(n=0),Ke(t,e,n)>=0}const sn=O((function(t,e,n){var r,i;return H(e)?i=e:(e=Wt(e),r=e.slice(0,-1),e=e[e.length-1]),Ye(t,(function(t){var o=i;if(!o){if(r&&r.length&&(t=Vt(t,r)),null==t)return;o=t[e]}return null==o?o:o.apply(t,n)}))}));function un(t,e){return Ye(t,Zt(e))}function ln(t,e){return en(t,Gt(e))}function cn(t,e,n){var r,i,o=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,u=(t=Se(t)?t:Pt(t)).length;s<u;s++)null!=(r=t[s])&&r>o&&(o=r);else e=te(e,n),Ze(t,(function(t,n,r){((i=e(t,n,r))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)}));return o}function fn(t,e,n){var r,i,o=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,u=(t=Se(t)?t:Pt(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else e=te(e,n),Ze(t,(function(t,n,r){((i=e(t,n,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)}));return o}var dn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function pn(t){return t?G(t)?p.call(t):I(t)?t.match(dn):Se(t)?Ye(t,$t):Pt(t):[]}function hn(t,e,n){if(null==e||n)return Se(t)||(t=Pt(t)),t[oe(t.length-1)];var r=pn(t),i=ut(r);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=oe(a,o),u=r[a];r[a]=r[s],r[s]=u}return r.slice(0,e)}function vn(t){return hn(t,1/0)}function mn(t,e,n){var r=0;return e=te(e,n),un(Ye(t,(function(t,n,i){return{value:t,index:r++,criteria:e(t,n,i)}})).sort((function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index})),"value")}function gn(t,e){return function(n,r,i){var o=e?[[],[]]:{};return r=te(r,i),Ze(n,(function(e,i){var a=r(e,i,n);t(o,e,a)})),o}}const yn=gn((function(t,e,n){Z(t,n)?t[n].push(e):t[n]=[e]})),bn=gn((function(t,e,n){t[n]=e})),wn=gn((function(t,e,n){Z(t,n)?t[n]++:t[n]=1})),_n=gn((function(t,e,n){t[n?0:1].push(e)}),!0);function kn(t){return null==t?0:Se(t)?t.length:ct(t).length}function xn(t,e,n){return e in n}const En=O((function(t,e){var n={},r=e[0];if(null==t)return n;H(r)?(e.length>1&&(r=Yt(r,e[1])),e=bt(t)):(r=xn,e=Oe(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];r(s,a,t)&&(n[a]=s)}return n})),Cn=O((function(t,e){var n,r=e[0];return H(r)?(r=De(r),e.length>1&&(n=e[1])):(e=Ye(Oe(e,!1,!1),String),r=function(t,n){return!an(e,n)}),En(t,r,n)}));function Sn(t,e,n){return p.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))}function On(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[0]:Sn(t,t.length-e)}function Tn(t,e,n){return p.call(t,null==e||n?1:e)}function An(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[t.length-1]:Tn(t,Math.max(0,t.length-e))}function Nn(t){return en(t,Boolean)}function Pn(t,e){return Oe(t,e,!1)}const jn=O((function(t,e){return e=Oe(e,!0,!0),en(t,(function(t){return!an(e,t)}))})),Ln=O((function(t,e){return jn(t,e)}));function In(t,e,n,r){P(e)||(r=n,n=e,e=!1),null!=n&&(n=te(n,r));for(var i=[],o=[],a=0,s=ut(t);a<s;a++){var u=t[a],l=n?n(u,a,t):u;e&&!n?(a&&o===l||i.push(u),o=l):n?an(o,l)||(o.push(l),i.push(u)):an(i,u)||i.push(u)}return i}const Dn=O((function(t){return In(Oe(t,!0,!0))}));function Mn(t){for(var e=[],n=arguments.length,r=0,i=ut(t);r<i;r++){var o=t[r];if(!an(e,o)){var a;for(a=1;a<n&&an(arguments[a],o);a++);a===n&&e.push(o)}}return e}function Rn(t){for(var e=t&&cn(t,ut).length||0,n=Array(e),r=0;r<e;r++)n[r]=un(t,r);return n}const qn=O(Rn);function Bn(t,e){for(var n={},r=0,i=ut(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n}function Fn(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),o=0;o<r;o++,t+=n)i[o]=t;return i}function zn(t,e){if(null==e||e<1)return[];for(var n=[],r=0,i=t.length;r<i;)n.push(p.call(t,r,r+=e));return n}function Un(t,e){return t._chain?pt(e).chain():e}function Hn(t){return Ze(It(t),(function(e){var n=pt[e]=t[e];pt.prototype[e]=function(){var t=[this._wrapped];return d.apply(t,arguments),Un(this,n.apply(pt,t))}})),pt}Ze(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=l[t];pt.prototype[t]=function(){var n=this._wrapped;return null!=n&&(e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Un(this,n)}})),Ze(["concat","join","slice"],(function(t){var e=l[t];pt.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),Un(this,t)}}));const Wn=pt;var Vn=Hn(t);Vn._=Vn;const Kn=Vn;function Qn(t){try{return H(t)?function(t){if(function(t){return!!t._scrivitoPrivateSchema}(t)){return"[class "+t._scrivitoPrivateSchema.name+"]"}if(function(t){var e=t.prototype;return e&&e.isReactComponent}(t)){return'[class React.Component "'+(t.displayName||t.name)+'"]'}return Gn(t.toString())}(t):T(t)?function(t){var e=t._scrivitoPrivateContent;if(e&&H(e.toPrettyPrint))return e.toPrettyPrint();if(j(t))return"[object HTMLElement "+$n(t.outerHTML)+"]";return $n(t)}(t):$n(t)}catch(t){return""}}function $n(t){var e=JSON.stringify(t);return e?Gn(e):e}function Gn(t){return t.length>100?t.slice(0,100)+"...":t}var Zn,Yn=(Zn=function(t,e){return Zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},Zn(t,e)},function(t,e){function n(){this.constructor=t}Zn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Xn=function(t){function e(e,n){var r=this.constructor;void 0===n&&(n=!0);var i=t.call(this,e)||this,o=r.prototype;if(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o,i._captureStackTrace=n,n)if(Error.captureStackTrace)Error.captureStackTrace(i,i.constructor);else{var a=void 0;try{throw new Error}catch(t){a=t.stack}Object.defineProperty(i,"stack",{value:a})}return i}return Yn(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"captureStackTrace",{get:function(){return!!this._captureStackTrace},enumerable:!1,configurable:!0}),e}(Error),Jn=function(t){function e(e){return t.call(this,e)||this}return Yn(e,t),e}(Xn),tr=function(t){function e(e){return t.call(this,e)||this}return Yn(e,t),e}(Xn),er=function(t){function e(e){return t.call(this,e)||this}return Yn(e,t),e}(Xn),nr=n(9294);nr.struct.strict=!0,nr.interface.strict=!0,nr.fail=function(t){throw new TypeError(t)};var rr,ir=[];function or(t){rr?ir.push(t):setTimeout(t,0)}function ar(t){or((function(){throw t}))}function sr(t,e,n){var r=n.docPermalink;return function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];try{n=function(t,e){var n=e.length,r=t.length;if(r>n)return"Expected "+n+" arguments, got "+r;var i=Pn(e.map((function(e,n){var r=e[0],i=e[1],o=t[n];return nr.validate(o,i).errors.map((function(t){return function(t,e){var n=function(t,e){var n="argument '"+t+"'";if(0===e.path.length)return n;return"key '"+e.path.join("/")+"' in "+n}(t,e);if(void 0===e.actual)return"Missing required "+n+".";if(e.expected===nr.Nil)return"Unexpected "+n+".";var r=nr.getTypeName(e.expected),i="got "+Qn(e.actual)+", expected type "+r+".";return"Unexpected value for "+n+": "+i}(r,t)}))})));if(i.length>0)return i.join(" ")}(i,e)}catch(t){ar(t)}if(n)throw new Jn("Invalid arguments for '"+t+"': "+n+" "+("Visit https://scrivito.com/"+r+" for more information."))}}var ur=function(){function t(){}return t.prototype.current=function(){return this.currentContext},t.prototype.runWith=function(t,e){var n=this.currentContext;try{return this.currentContext=t,e()}finally{this.currentContext=n}},t}();const lr=ur;const cr=function(){function t(){var t=this;this.promise=new ai((function(e,n){t.resolve=function(n){t.settled=!0,e(n)},t.reject=function(e){t.settled=!0,n(e)}}))}return t.prototype.isPending=function(){return!this.settled},t}();function fr(t){try{return{errorThrown:!1,result:t()}}catch(t){return{errorThrown:!0,error:t}}}var dr=!1;function pr(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];window&&window.console&&!dr&&(t=window.console).error.apply(t,e)}function hr(){var t="1.6.0-rc1-528-geb5c000aeab4";return t}function vr(t,e){void 0===e&&(e=window.document);var n=e.createElement("script");n.src=t,mr(e.head,n)}function mr(t,e){t.appendChild(e)}var gr=/(_+)(\w)/g,yr=/([A-Z])/g,br=/[A-Z]+|\d+/g,wr=/^_?(_+[A-Z0-9]|[^_])+$/,_r=/[_\s]+/g,kr=/[A-Z][a-z]+/g;function xr(t){return wr.test(t)}function Er(t){return t.replace(yr,(function(t,e){return"_"+e.toLowerCase()}))}function Cr(t){return t.replace(gr,(function(t,e,n,r){return r?n.toUpperCase()===n?t:""+e.substr(1)+n.toUpperCase():t}))}var Sr=nr.interface({size:nr.Number,type:nr.String},{name:"Blob",strict:!1}),Or=Sr.extend({name:nr.String},{name:"File",strict:!1});function Tr(t){return"_"===t[0]}function Ar(){for(var t=Math.floor(Math.random()*Math.pow(16,8)).toString(16);t.length<8;)t="0"+t;return t}var Nr=!1;var Pr=-9007199254740991,jr=9007199254740991,Lr=/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/;function Ir(t){return function(t){return Dr(t)&&Math.floor(t)===t}(t)&&Pr<=t&&t<=jr}function Dr(t){return"number"==typeof t&&J(t)}function Mr(t){if("string"!=typeof t)return null;if(!Br(t))throw new tr('The value is not a valid ISO date time: "'+t+'"');return Rr(t)}function Rr(t){if(!t)return null;var e=t.match(Lr);if(!e)return null;var n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],u=parseInt(n,10),l=parseInt(r,10),c=parseInt(i,10),f=parseInt(o,10),d=parseInt(a,10),p=parseInt(s,10);return new Date(Date.UTC(u,l-1,c,f,d,p))}function qr(t){return""+(""+t.getUTCFullYear()+Fr(t.getUTCMonth()+1))+(""+Fr(t.getUTCDate())+Fr(t.getUTCHours()))+(""+Fr(t.getUTCMinutes())+Fr(t.getUTCSeconds()))}function Br(t){return"string"==typeof t&&!!t.match(/^\d{14}$/)}function Fr(t){return t<10?"0"+t:t}function zr(t){var e=parseInt(t.toString(),10);return 0===e?0:Ir(e)?e:null}function Ur(t){return new ai((function(e){setTimeout(e,t)}))}function Hr(t,e){return Wr(t)&&Wr(e)?t.equals(e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&rn(qn(t,e),(function(t){return Hr(t[0],t[1])})):t&&e?t.valueOf()===e.valueOf():t===e}function Wr(t){return!!t&&"function"==typeof t.equals}function Vr(t,e){return t.then((function(t){return e(),t}),(function(t){throw e(),t}))}const Kr=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))};const Qr=function(t){return new this((function(e,n){if(!t||void 0===t.length)return n(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var i=r.length;function o(t,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(e){o(t,e)}),(function(n){r[t]={status:"rejected",reason:n},0==--i&&e(r)}))}r[t]={status:"fulfilled",value:n},0==--i&&e(r)}for(var a=0;a<r.length;a++)o(a,r[a])}))};function $r(t,e){this.name="AggregateError",this.errors=t,this.message=e||""}$r.prototype=Error.prototype;const Gr=function(t){var e=this;return new e((function(n,r){if(!t||void 0===t.length)return r(new TypeError("Promise.any accepts an array"));var i=Array.prototype.slice.call(t);if(0===i.length)return r();for(var o=[],a=0;a<i.length;a++)try{e.resolve(i[a]).then(n).catch((function(t){o.push(t),o.length===i.length&&r(new $r(o,"All promises were rejected"))}))}catch(t){r(t)}}))};var Zr=setTimeout;function Yr(t){return Boolean(t&&void 0!==t.length)}function Xr(){}function Jr(t){if(!(this instanceof Jr))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],oi(t,this)}function ti(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,Jr._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void ni(e.promise,t)}ei(e.promise,r)}else(1===t._state?ei:ni)(e.promise,t._value)}))):t._deferreds.push(e)}function ei(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof Jr)return t._state=3,t._value=e,void ri(t);if("function"==typeof n)return void oi((r=n,i=e,function(){r.apply(i,arguments)}),t)}t._state=1,t._value=e,ri(t)}catch(e){ni(t,e)}var r,i}function ni(t,e){t._state=2,t._value=e,ri(t)}function ri(t){2===t._state&&0===t._deferreds.length&&Jr._immediateFn((function(){t._handled||Jr._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)ti(t,t._deferreds[e]);t._deferreds=null}function ii(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function oi(t,e){var n=!1;try{t((function(t){n||(n=!0,ei(e,t))}),(function(t){n||(n=!0,ni(e,t))}))}catch(t){if(n)return;n=!0,ni(e,t)}}Jr.prototype.catch=function(t){return this.then(null,t)},Jr.prototype.then=function(t,e){var n=new this.constructor(Xr);return ti(this,new ii(t,e,n)),n},Jr.prototype.finally=Kr,Jr.all=function(t){return new Jr((function(e,n){if(!Yr(t))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var i=r.length;function o(t,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){o(t,e)}),n)}r[t]=a,0==--i&&e(r)}catch(t){n(t)}}for(var a=0;a<r.length;a++)o(a,r[a])}))},Jr.any=Gr,Jr.allSettled=Qr,Jr.resolve=function(t){return t&&"object"==typeof t&&t.constructor===Jr?t:new Jr((function(e){e(t)}))},Jr.reject=function(t){return new Jr((function(e,n){n(t)}))},Jr.race=function(t){return new Jr((function(e,n){if(!Yr(t))return n(new TypeError("Promise.race accepts an array"));for(var r=0,i=t.length;r<i;r++)Jr.resolve(t[r]).then(e,n)}))},Jr._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){Zr(t,0)},Jr._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var ai;ai="undefined"!=typeof Promise?Promise:Jr;var si=function(){function t(t,e){var n=(void 0===e?{}:e).batchSize;this.mget=t,this.batchSize=n||100,this.itemsToBatch=[]}return t.prototype.retrieve=function(t){var e=this;0===this.itemsToBatch.length&&or((function(){return e.performRetrieval()}));var n=new cr;return this.itemsToBatch.push({key:t,deferred:n}),n.promise},t.prototype.reset=function(){this.itemsToBatch=[]},t.prototype.performRetrieval=function(){var t=this,e=this.itemsToBatch.splice(0,this.batchSize);if(0!==e.length){var n=e.map((function(t){return t.key}));this.mget(n).then((function(n){e.forEach((function(e,r){var i=e.key,o=e.deferred;if(r<n.length){var a=n[r];o.resolve(a)}else t.retrieve(i).then(o.resolve,o.reject)}))}),(function(t){e.forEach((function(e){return e.deferred.reject(t)}))})),this.performRetrieval()}},t}();const ui=si;function li(t){var e=ci(t);return JSON.stringify(e)}function ci(t){return Array.isArray(t)?t.map(ci):function(t){return"object"==typeof t&&null!==t}(t)?Object.keys(t).sort().map((function(e){return[e,ci(t[e])]})):t}var fi=Object.assign||Mt;var di=function(){function t(t){this.subscribeFunction=t}return t.prototype.subscribe=function(t){var e=new pi("object"==typeof t?t:{next:t}),n=this.subscribeFunction(e);return e.setUnsubscribeCallback("object"==typeof n?function(){return n.unsubscribe()}:n),e},t.prototype.map=function(e){var n=this;return new t((function(t){return n.subscribe({next:function(n){return t.next(e(n))},complete:function(){return t.complete()}})}))},t.prototype.filter=function(e){var n=this;return new t((function(t){return n.subscribe({next:function(n){e(n)&&t.next(n)},complete:function(){return t.complete()}})}))},t.prototype.toPromise=function(){var t=this;return new ai((function(e){var n;t.subscribe({next:function(t){n=t},complete:function(){e(n)}})}))},t.prototype.takeOne=function(){var e=this;return new t((function(t){var n=e.subscribe({next:function(e){n.unsubscribe(),t.next(e),t.complete()},complete:function(){t.complete()}});return n}))},t.prototype.takeUntil=function(e){var n=this;return new t((function(t){var r,i;if((i=n.subscribe({next:function(e){t.next(e)},complete:function(){o()}})).isClosed())return function(){};function o(){t.complete(),a()}function a(){i&&i.unsubscribe(),r&&r.unsubscribe()}return r=e.subscribe({next:function(){o()},complete:function(){o()}}),a}))},t}(),pi=function(){function t(t){this.subscriber=t}return t.prototype.next=function(t){this.subscriber&&this.subscriber.next&&this.subscriber.next(t)},t.prototype.complete=function(){this.subscriber&&this.subscriber.complete&&this.subscriber.complete(),this.subscriber=void 0},t.prototype.unsubscribe=function(){this.subscriber&&(this.unsubscribeCallback&&this.unsubscribeCallback(),this.subscriber=void 0)},t.prototype.isClosed=function(){return!this.subscriber},t.prototype.setUnsubscribeCallback=function(t){this.unsubscribeCallback=t},t}(),hi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vi=function(t){function e(){var e=t.call(this,(function(t){if(e.isCompleted)return t.complete(),function(){};var n=(e.subscriberIdCounter++).toString();return e.subscribers[n]=t,function(){delete e.subscribers[n]}}))||this;return e.subscribers={},e.subscriberIdCounter=1,e.isCompleted=!1,e}return hi(e,t),e.prototype.next=function(t){var e=this;Object.keys(this.subscribers).forEach((function(n){e.subscribers[n].next(t)}))},e.prototype.complete=function(){var t=this;Object.keys(this.subscribers).forEach((function(e){return t.subscribers[e].complete()})),this.subscribers={},this.isCompleted=!0},e.prototype.subscriberCount=function(){return Object.keys(this.subscribers).length},e.prototype.isClosed=function(){return this.isCompleted},e}(di);var mi=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},gi=new lr,yi=function(){return gi.current()};function bi(t){var e={subscribes:[],missing:!1,outdated:!1},n=gi.runWith(e,t);return new ki(e,n)}function wi(){throw new Xn("Content not yet loaded. Forgot to use Scrivito.load or Scrivito.connect? See https://scrivito.com/content-not-yet-loaded-error")}function _i(){return void 0!==yi()}var ki=function(){function t(t,e){this.captureList=t,this.result=e}return t.prototype.forwardToCurrent=function(){var t,e,n=yi();n?(t=n,e=this.captureList,t.subscribes=mi(t.subscribes,e.subscribes),t.missing=t.missing||e.missing,t.outdated=t.outdated||e.outdated):this.captureList.missing&&wi()},t.prototype.isAllDataLoaded=function(){return!this.captureList.missing},t.prototype.isAllDataUpToDate=function(){return!this.captureList.missing&&!this.captureList.outdated},t.prototype.subscribeLoading=function(t){var e=this.captureList.subscribes.map((function(t){return t()}));t.unsubscribe(),t.storeUnsubscribe((function(){e.forEach((function(t){return t()}))}))},t}(),xi=function(){function t(){}return t.prototype.storeUnsubscribe=function(t){this.unsubscribeCallback=t},t.prototype.unsubscribe=function(){this.unsubscribeCallback&&this.unsubscribeCallback()},t}();var Ei=function(){function t(t,e){this.value=t,this.copy=e,this.valueForReading=new lr}return t.prototype.read=function(t){var e=this.value;return this.valueForReading.runWith(e,(function(){return t(e)}))},t.prototype.write=function(t){this.valueForReading.current()===this.value&&(this.value=this.copy(this.value)),t(this.value)},t}(),Ci=function(){function t(t){this.notifySubscribers=t,this.subscribersStore=new Ei([],(function(t){return t.slice()}))}return t.prototype.create=function(t,e){return void 0===e&&(e=0),new Si(this.subscribersStore,t,e)},t.prototype.count=function(){return this.subscribersStore.read((function(t){return t.length}))},t.prototype.reset=function(){this.subscribersStore.write((function(t){t.length=0}))},t.prototype.notify=function(){var t=this;this.subscribersStore.read((function(e){return t.notifySubscribers(e)}))},t}(),Si=function(){function t(t,e,n){void 0===n&&(n=0),this.subscriberStore=t,this.listener=e,this.rank=n,this.active=!1}return t.prototype.subscribeChanges=function(t){var e=this;this.stateReference=t,this.active||(this.subscriberStore.write((function(t){var n=We(t,e,"rank");t.splice(n,0,e)})),this.active=!0),this.hasChanges()&&this.listener()},t.prototype.unsubscribe=function(){var t=this;this.active&&(this.subscriberStore.write((function(e){var n=e.indexOf(t);n>=0&&e.splice(n,1)})),this.active=!1)},t.prototype.notify=function(){this.active&&this.listener()},t.prototype.hasChanges=function(){return!!this.stateReference&&this.stateReference.hasChanges()},t}(),Oi=new Ci((function(t){t.forEach((function(t){t.hasChanges()&&t.notify()}))})),Ti=new Ci((function(t){t.forEach((function(t){or((function(){t.hasChanges()&&t.notify()}))}))}));const Ai=function(){function t(){this.listenersStore=new Ei([],(function(t){return t.slice()}))}return t.prototype.subscribe=function(t){var e=this,n=!0,r=function(){n&&t()};return this.listenersStore.write((function(t){return t.push(r)})),function(){n=!1,e.listenersStore.write((function(t){var e=t.indexOf(r);t.splice(e,1)}))}},t.prototype.count=function(){return this.listenersStore.read((function(t){return t.length}))},t.prototype.clear=function(){this.listenersStore.write((function(t){t.length=0}))},t.prototype.notify=function(){this.listenersStore.read((function(t){return t.forEach((function(t){return t()}))}))},t}();function Ni(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&!function(t){var e=Object.getPrototypeOf(t);if(null===e)return!1;return null!==Object.getPrototypeOf(e)}(t)}function Pi(t,e){return t===e?e:Ni(e)?function(t,e){var n={},r=!1;void 0===t&&(r=!0);var i=Object.keys(e),o=new Set;t&&Object.keys(t).forEach((function(t){return o.add(t)}));o.size!==i.length&&(r=!0);i.forEach((function(i){o.has(i)||(r=!0);var a=t?t[i]:void 0,s=Pi(a,e[i]);s!==a&&(r=!0),n[i]=s}));var a=r?Object.freeze(n):t;return a}(Ni(t)?t:void 0,e):Array.isArray(e)?function(t,e){var n=!1;void 0!==t&&t.length===e.length||(n=!0);var r=e.map((function(e,r){var i=t?t[r]:void 0,o=Pi(i,e);return o!==i&&(n=!0),o})),i=n?Object.freeze(r):t;return i}(Array.isArray(t)?t:void 0,e):e}var ji=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Li=function(){function t(){}return t.prototype.get=function(){var t=this,e=this.untrackedGet();return this.recordDetector((function(){return e!==t.untrackedGet()})),e},t.prototype.recordDetector=function(t){this.getTree().recordDetector(t)},t.prototype.set=function(t){var e=this.untrackedGet(),n=function(t,e){return Pi(t,e)}(e,t);n!==e&&this.uncheckedSet(n)},t.prototype.clear=function(){this.set(void 0)},t.prototype.subState=function(t){return new Hi(this,t)},t.prototype.reader=function(){return this},t.prototype.setSubState=function(t,e){var n,r=this.untrackedGet();if(void 0!==r){if(void 0===e){var i=Object.keys(r);if(1===i.length&&i[0]===t)return void this.uncheckedSet(void 0)}if(null===r)throw new tr;var o=fi({},r),a=o;void 0===e?delete a[t]:a[t]=e,this.uncheckedSet(Object.freeze(o))}else{var s=Object.freeze(((n={})[t]=e,n));this.uncheckedSet(s)}},t.prototype.getSubState=function(t){var e=this.untrackedGet();if(null!=e)return e[t]},t}(),Ii=function(){function t(t){this.detector=t}return t.prototype.hasChanges=function(){return this.detector()},t}(),Di=function(t){function e(){var e=t.call(this)||this;return e.listeners=new Ai,e.detectorRecording=new lr,e.batchUpdates=new lr,e.version=0,e.frozenContextContainer=new lr,e}return ji(e,t),e.prototype.untrackedGet=function(){return this.state},e.prototype.withFrozenState=function(t,e){return this.frozenContextContainer.runWith(t,e)},e.prototype.failIfTracking=function(t){if(this.detectorRecording.current())throw new tr(t)},e.prototype.failIfFrozen=function(t){var e=this.frozenContextContainer.current();if(e){var n=t+" is not permitted inside '"+e.contextName+"'. "+(e.message||"");throw new Ui(n)}},e.prototype.uncheckedSet=function(t){this.failIfFrozen("Changing state"),this.state=t,this.version++,this.insideBatchUpdate()||this.notifyListeners()},e.prototype.trackStateAccess=function(t){var e=this.trackChanges(t),n=e.detector;return{result:e.result,accessedState:new Ii(n)}},e.prototype.recordDetector=function(t){var e=this.detectorRecording.current();void 0!==e&&e.push(t)},e.prototype.getTree=function(){return this},e.prototype.id=function(){return""},e.prototype.subscribe=function(t){return this.listeners.subscribe(t)},e.prototype.withBatchedUpdates=function(t){var e=this.state;try{this.batchUpdates.runWith(!0,t)}finally{this.insideBatchUpdate()||e===this.state||this.notifyListeners()}},e.prototype.listenerCount=function(){return this.listeners.count()},e.prototype.clearListeners=function(){this.listeners.clear()},e.prototype.trackChanges=function(t){var e=this,n=this.version,r=this.recordDetectors(t),i=r.result,o=r.detectors;return{result:i,detector:function(){return e.version!==n&&!!$e(o,(function(t){return t()}))}}},e.prototype.recordDetectors=function(t){var e=[],n=this.detectorRecording.runWith(e,t),r=this.detectorRecording.current();return void 0!==r&&r.push.apply(r,e),{result:n,detectors:e}},e.prototype.notifyListeners=function(){var t=this;this.withFrozenState({contextName:"state listeners"},(function(){t.listeners.notify()}))},e.prototype.insideBatchUpdate=function(){return!!this.batchUpdates.current()},e}(Li);const Mi=Di;var Ri,qi,Bi,Fi,zi,Ui=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ji(e,t),e}(Xn),Hi=function(t){function e(e,n){var r=t.call(this)||this;return r.parentState=e,r.key=n,r.tree=e.getTree(),r}return ji(e,t),e.prototype.getTree=function(){return this.tree},e.prototype.untrackedGet=function(){return this.parentState.getSubState(this.key)},e.prototype.uncheckedSet=function(t){this.parentState.setSubState(this.key,t)},e.prototype.id=function(){if(void 0===this.cachedId){var t=this.key.replace(/\\/g,"\\\\").replace(/\//g,"\\/");this.cachedId=this.parentState.id()+"/"+t}return this.cachedId},e}(Li);function Wi(t){t?(Ri=void 0,qi=t.stateController(),Bi=t.createAppState(),zi=t.sharedCmsState(),Fi=Bi.subState("localCms")):(Ri=new Mi,qi=Ri,Bi=function(){if(!Ri)throw new tr;var t=(Ki++).toString();return Ri.subState("apps").subState(t)}(),zi=Ri.subState("sharedCms"),Fi=Ri.subState("localCms"),Ri.subState("ui")),Ji()}var Vi,Ki=0;function Qi(t){return qi.withBatchedUpdates(t)}function $i(t){return qi.trackStateAccess(t)}function Gi(t,e){return qi.withFrozenState(t,e)}function Zi(t){return qi.failIfFrozen(t)}function Yi(t){return qi.failIfTracking(t)}function Xi(t,e){return void 0===e&&(e=0),Oi.create(t,e)}function Ji(){Vi=qi.subscribe((function(){Oi.notify(),Ti.notify()}))}var to=[],eo=function(){return 0!==to.length};function no(t){eo()||or((function(){return Qi((function(){return ro(to)}))})),to.push(t)}function ro(t){to=[];try{t.forEach((function(t){return t()}))}finally{eo()&&ro(to)}}function io(t,e){var n,r=!0,i=!1,o=function(t){return Ti.create(t)}(a);function a(){if(r){var a=$i((function(){return Gi({contextName:"observe",message:"Extract all side-effects into the listener function"},t)}));o.subscribeChanges(a.accessedState);var s=a.result;i&&Hr(s,n)||(e(s),n=s,i=!0)}}return or(a),{unsubscribe:function(){r=!1,o.unsubscribe()},forceRefresh:function(){or(a)}}}var oo=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function ao(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];so.apply(void 0,oo([t],e));var r=new cr,i=jo((function(){return fr((function(){return Gi({contextName:"Scrivito.load",message:"Use an async callback: Scrivito.load(/* ... */).then(/* ... */)."},t)}))}),(function(t){if(t.allDataUpToDate){i.unsubscribe();var e=t.result;e.errorThrown?r.reject(e.error):r.resolve(e.result)}}));return r.promise}var so=sr("load",[["loadableFunction",nr.Function]],{docPermalink:"js-sdk/load"});const uo=function(){function t(t){this.container=t}return t.prototype.reader=function(){return this.container.reader().subState("value")},t.prototype.status=function(){return this.getStateKey("status")||"MISSING"},t.prototype.value=function(){return this.getStateKey("value")},t.prototype.error=function(){return this.getStateKey("error")},t.prototype.version=function(){return this.getStateKey("version")},t.prototype.transitionToMissing=function(){this.setState(void 0)},t.prototype.transitionToAvailable=function(t,e){this.setState({status:"AVAILABLE",value:t,version:e})},t.prototype.transitionToError=function(t,e){this.setState({status:"ERROR",error:t,version:e})},t.prototype.setState=function(t){this.container.set(t)},t.prototype.getStateKey=function(t){return this.container.subState(t).get()},t}();var lo={},co={};function fo(t,e){var n=!0;po(t,1);var r=lo[t];r||(lo[t]=e);var i=r||e;return i.notifyDataRequired(),function(){n&&(n=!1,po(t,-1)<1&&i.notifyDataNoLongerRequired())}}function po(t,e){var n=(co[t]||0)+e;return co[t]=n,n}function ho(t){var e=lo[t];e&&e.notifyDataWasSet()}var vo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const mo=function(t){function e(){return t.call(this,"Data is not yet loaded.",!1)||this}return vo(e,t),e}(Xn);var go=function(){function t(t,e){this.loadableValue=t,this.stream=e,this.streamRequired=!1,this.hasBufferedValue=!1,this.isUpdateEnqueued=!1}return t.prototype.notifyDataRequired=function(){this.streamRequired=!0,this.enqueueUpdate()},t.prototype.notifyDataNoLongerRequired=function(){this.streamRequired=!1,this.enqueueUpdate()},t.prototype.notifyDataWasSet=function(){},t.prototype.enqueueUpdate=function(){var t=this;this.isUpdateEnqueued||(or((function(){return t.update()})),this.isUpdateEnqueued=!0)},t.prototype.update=function(){this.isUpdateEnqueued=!1,this.streamRequired?(this.hasBufferedValue&&(this.loadableValue.transitionToAvailable(this.bufferedValue),this.clearBuffer()),this.ensureStreamIsOpen()):this.ensureStreamIsClosed()},t.prototype.ensureStreamIsOpen=function(){var t=this;this.subscription||(this.subscription=this.stream.subscribe((function(e){t.bufferValue(e),t.enqueueUpdate()})))},t.prototype.ensureStreamIsClosed=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0),this.loadableValue.transitionToMissing(),this.clearBuffer()},t.prototype.bufferValue=function(t){this.bufferedValue=t,this.hasBufferedValue=!0},t.prototype.clearBuffer=function(){this.hasBufferedValue=!1,this.bufferedValue=void 0},t}(),yo=0,bo=function(){function t(t,e,n){this.value=t,this.loader=e,this.invalidation=n}return t.prototype.notifyDataRequired=function(){this.triggerLoading()},t.prototype.notifyDataNoLongerRequired=function(){},t.prototype.notifyDataWasSet=function(){this.currentLoad=void 0},t.prototype.isMissing=function(){return"MISSING"===this.value.status()},t.prototype.hasBeenInvalidated=function(){return wo(this.value,this.invalidation)},t.prototype.currentVersion=function(){return _o(this.invalidation)},t.prototype.triggerLoading=function(){var t=this;if(!this.isLoading()&&(this.isMissing()||this.hasBeenInvalidated())){var e=this.currentVersion(),n=yo++,r=function(){return t.currentLoad===n},i=function(e){r()&&no((function(){e(),t.notifyDataWasSet(),a()}))},o=[],a=function(){return o.forEach((function(t){return t()}))};this.loader({push:function(t){return o.push(t)},isReload:function(){return t.hasBeenInvalidated()},wasCancelled:function(){return!r()}}).then((function(n){return i((function(){return t.value.transitionToAvailable(n,e)}))}),(function(n){return i((function(){return t.value.transitionToError(n,e)}))})),this.currentLoad=n}},t.prototype.isLoading=function(){return void 0!==this.currentLoad},t}();function wo(t,e){return!!e&&("MISSING"!==t.status()&&_o(e)!==t.version())}function _o(t){if(t){var e=t();if("number"==typeof e&&isNaN(e))throw new tr("invalidation callback returned unsuitable version "+e);return e}}var ko=function(){function t(t){if(!t.state)throw new tr("LoadableData needs state");this.value=new uo(t.state),this.invalidation=t.invalidation,this.throwNotLoaded=t.throwNotLoaded||!1,this.id=t.state.id(),t.stream?this.loaderProcess=new go(this.value,t.stream):this.loaderProcess=new bo(this.value,t.loader,t.invalidation)}return t.prototype.ensureAvailable=function(){var t,e=this;if(function(t){var e=yi();e&&e.subscribes.push(t)}((function(){return fo(e.id,e.loaderProcess)})),this.isAvailable())return this.notifyIfOutdated(),!0;if(this.isError())throw this.notifyIfOutdated(),this.value.error();if(_i()||(fo(this.id,this.loaderProcess),wi()),(t=yi())&&(t.missing=!0),this.throwNotLoaded)throw new mo;return!1},t.prototype.get=function(){if(this.ensureAvailable())return Co(this.id,this),this.value.value()},t.prototype.reader=function(){return Co(this.id,this),this.value.reader()},t.prototype.set=function(t){this.value.transitionToAvailable(t,this.currentVersion()),ho(this.id)},t.prototype.setError=function(t){this.transitionToError(t),ho(this.id)},t.prototype.reset=function(){this.value.transitionToMissing()},t.prototype.isMissing=function(){return"MISSING"===this.value.status()},t.prototype.isAvailable=function(){return"AVAILABLE"===this.value.status()},t.prototype.isError=function(){return"ERROR"===this.value.status()},t.prototype.numSubscribers=function(){return t=this.id,co[t]||0;var t},t.prototype.transitionToError=function(t,e){void 0===e&&(e=this.currentVersion()),this.value.transitionToError(t,e)},t.prototype.notifyIfOutdated=function(){var t;wo(this.value,this.invalidation)&&(t=yi())&&(t.outdated=!0)},t.prototype.currentVersion=function(){return _o(this.invalidation)},t}();const xo=ko;var Eo=new lr;function Co(t,e){var n=Eo.current();n&&(n[t]=e)}function So(t,e){var n=bi((function(){return function(t,e){var n=Oo(e);return n.allDataLoaded?n.result:t}(t,e)}));return _i()&&n.forwardToCurrent(),n.result}function Oo(t){var e=bi((function(){return fr(t)}));e.forwardToCurrent();var n=e.result,r=e.isAllDataLoaded();if(!n.errorThrown)return{success:!0,result:n.result,allDataLoaded:r};if(!r)return{success:!1,allDataLoaded:!1};throw n.error}var To=function(){function t(t){var e=t.name,n=t.state,r=t.loader,i=t.invalidation;this.name=e,this.state=n,this.loader=r,this.invalidation=i,function(t,e){if(Ao[t])throw new tr("collection name registered twice: "+t);Ao[t]=e}(e,this)}return t.prototype.get=function(t,e){var n=this,r=function(t){if("string"==typeof t)return t;return li(t)}(t),i=this.invalidation,o=new xo({state:this.state().subState(r),loader:function(r){return n.loader(t,r,e)},invalidation:i?function(){return i(t)}:void 0});return function(t,e){t.affiliation=e}(o,{collectionName:this.name,key:t}),o},t}();var Ao={};function No(t){var e=t[0],n=t[1],r=t[2],i=function(t){var e=Ao[t];if(!e)throw new tr("collection with name "+t+" not found");return e}(e).get(n);i.set(r)}function Po(t){var e=function(t){return t.affiliation}(t);if(!e)throw new tr("Tried to record a LoadableData without affiliation");return[e.collectionName,e.key,t.get()]}function jo(t,e){var n=new xi,r=io((function(){return bi((function(){return fr(t)}))}),(function(t){t.subscribeLoading(n);var r=t.result;if(r.errorThrown){if(!t.isAllDataUpToDate())return;throw r.error}e({result:r.result,allDataLoaded:t.isAllDataLoaded(),allDataUpToDate:t.isAllDataUpToDate()})}));return{forceRefresh:function(){return r.forceRefresh()},unsubscribe:function(){r.unsubscribe(),n.unsubscribe()}}}var Lo="GET",Io="SEND",Do=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Mo=1;var Ro=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var qo=function(){function t(t){this.muxedStream=t,this.openStreams={}}return t.prototype.streamWithId=function(t){var e=this;return new di((function(n){e.ensureSubscribed();var r=e.subjectForStreamId(t).subscribe(n);return function(){r.unsubscribe(),e.removeSubjectIfAbandoned(t)}}))},t.prototype.removeSubjectIfAbandoned=function(t){0===this.subjectForStreamId(t).subscriberCount()&&(delete this.openStreams[t],this.unsubscribeIfAbandoned())},t.prototype.subjectForStreamId=function(t){var e=this.openStreams[t];if(e)return e;var n=new vi;return this.openStreams[t]=n,n},t.prototype.ensureSubscribed=function(){var t=this;this.subscription||(this.subscription=this.muxedStream.subscribe({next:function(e){var n=e.streamId,r=t.openStreams[n];r&&r.next(e.data)},complete:function(){return Object.keys(t.openStreams).forEach((function(e){var n=t.openStreams[e];n&&(n.complete(),delete t.openStreams[e])}))}}))},t.prototype.unsubscribeIfAbandoned=function(){0===Object.keys(this.openStreams).length&&this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},t}();function Bo(t){return t&&"number"==typeof t.channel&&"string"==typeof t.verb}function Fo(t){return"string"==typeof t.method&&Array.isArray(t.params)}function zo(t){return"CLOSE"===t.verb}function Uo(t){return"RESPOND"===t.verb}function Ho(t){return"ERROR"===t.verb}var Wo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(){function t(t){this.portLink=t,this.channelCounter=1,this.incomingChannels=new qo(this.portLink.incomingMessages.map((function(t){return t.data})).filter(Bo).map((function(t){return{streamId:t.channel,data:t}})))}t.prototype.stream=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return new di((function(r){var i=e.getNextChannelId();e.postMessage({channel:i,verb:"OPEN",method:t,params:n});var o=e.incomingChannels.streamWithId(i).subscribe((function(t){Uo(t)&&r.next(t.data)}));return function(){e.postMessage({channel:i,verb:"CLOSE"}),o.unsubscribe()}}))},t.prototype.send=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.getNextChannelId();return this.postMessage({channel:r,verb:"SEND",method:t,params:e}),this.incomingChannels.streamWithId(r).filter(Go).takeOne().toPromise().then((function(t){if(!t)throw new Ko;if(Ho(t))throw new Vo;return t.data}))},t.prototype.postMessage=function(t){this.portLink.sendMessage({data:t,transfer:Qo(t)})},t.prototype.getNextChannelId=function(){return this.channelCounter++}}();var Vo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Wo(e,t),e}(Xn),Ko=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Wo(e,t),e}(Xn);function Qo(t){if("SEND"===t.verb)return t.params.filter($o)}function $o(t){return t instanceof MessagePort}function Go(t){return Uo(t)||Ho(t)}function Zo(t,e,n){return t[n.methodName]===e}var Yo=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var Xo=function(){function t(t,e,n){this.portLink=t,this.adapterConnection=e,this.description=n,this.incomingMessages=t.incomingMessages.map((function(t){return t.data})).filter(Bo),this.incomingChannels=new qo(this.incomingMessages.map((function(t){return{streamId:t.channel,data:t}})))}return t.prototype.start=function(){var t=this;this.incomingMessages.subscribe((function(e){!function(t){return"OPEN"===t.verb&&Fo(t)}(e)?function(t){return"SEND"===t.verb&&Fo(t)}(e)&&t.handleSendMessage(e):t.handleOpenStreamMessage(e)}))},t.prototype.handleOpenStreamMessage=function(t){var e,n=this,r=Jo(t);if(Zo(this.description,Lo,r)){var i=(e=this.adapterConnection).stream.apply(e,Yo([r.methodName],r.params)),o=t.channel,a=i.subscribe((function(t){n.postMessage({verb:"RESPOND",data:t,channel:o})}));this.incomingChannels.streamWithId(o).filter(zo).takeOne().toPromise().then((function(){a.unsubscribe()}))}},t.prototype.handleSendMessage=function(t){var e,n=this,r=Jo(t);Zo(this.description,Io,r)&&(e=this.adapterConnection).send.apply(e,Yo([r.methodName],r.params)).then((function(e){return n.postMessage({verb:"RESPOND",data:e,channel:t.channel})}),(function(e){n.postMessage({verb:"ERROR",channel:t.channel}),ar(e)}))},t.prototype.postMessage=function(t){this.portLink.sendMessage({data:t})},t}();function Jo(t){return{methodName:t.method,params:t.params}}var ta,ea={currentWorkspaceId:Lo,getContentStateId:Lo,isInPlaceEditingActive:Lo,isComparisonActive:Lo,translate:Lo,startLinkResolutionFor:Io,finishLinkResolutionFor:Io,retrieveObj:Io,retrieveObjQuery:Io,retrieveFacetQuery:Io,retrieveBinaryMetadata:Io,retrieveBinaryUrls:Io,retrieveObjFieldDiffs:Io,copyBinary:Io,uploadBinary:Io,insertWidget:Io,navigateToExternalUrl:Io,openInNewUiWindow:Io,configureContentBrowser:Io,openContentBrowser:Io,updateMenu:Io,openCustomDialog:Io,setAppAdapter:Io,configureTenant:Io,showWidgetMenu:Io,showWidgetlistMenu:Io,showChildListMenu:Io,registerEmptyWidgetlistDropZoneInDom:Io,registerWidgetDropZoneInDom:Io,startDrag:Io,endDrag:Io,dragTo:Io,drop:Io};function na(t){return ta?ta.getContentStateId(t):""}var ra=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ia="inMemory",oa=!1;function aa(t){if(oa)throw new ua(t)}var sa,ua=function(t){function e(e){return t.call(this,e+" is not supported when using the in-memory tenant")||this}return ra(e,t),e}(Xn),la="&scrivito.authFailedCount=";function ca(){sa=0}const fa={init:function(t){ca();var e=t.location,n=e.hash,r=n.indexOf(la);if(!(r<0)){var i=n.substr(r+26,3),o=n.substring(0,r);"#"===o&&(o="");var a=e.href.toString().replace(n,o);sa=parseInt(i,10)||0,t.history.replaceState({},"",a)}},augmentedRedirectUrl:function(t){var e=t.toString();return t.hash||(e+="#"),""+e+la+(sa+1)},reset:ca,currentFailureCount:function(){return sa}};var da,pa=n(68949),ha=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),va=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.httpCode=n,i.backendCode=r,i}return ha(e,t),e.for=function(t,n,r){return"binary.unprocessable.image.transform.source.too_large"===r?new wa(t,n,r):r&&-1!==r.indexOf("binary.unprocessable.image.transform.source.")?new _a(t,n,r):new e(t,n,r)},e}(Xn),ma=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return ha(e,t),e}(va),ga=function(t){function e(e){var n=t.call(this,"Insufficient authorization - please visit "+e)||this;return n.target=e,n}return ha(e,t),e}(Xn),ya=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ha(e,t),e}(Xn),ba=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.details=i||{},o}return ha(e,t),e}(va),wa=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return ha(e,t),e}(va),_a=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return ha(e,t),e}(va),ka=!1,xa=0;function Ea(){return xa>0}function Ca(t,e,n){var r=n.params,i=n.authorization,o=n.forceVerification;return ka?ai.resolve(new XMLHttpRequest):(xa+=1,new ai((function(n,a){var s=function(t,e,n,r){var i=new XMLHttpRequest;function o(t){!function(t,e){xa-=1,e(t)}(new ya(t),r)}return i.open("POST"===t?"POST":"PUT",e),i.timeout=15e3,i.withCredentials=!0,i.onload=function(){return function(t,e,n){xa-=1;var r=t.status;if(!r||!D(r)){var i="Unexpected response status: "+r+"; body: "+(0===r?t.statusText:t.responseText);n(new ya(i))}e(t)}(i,n,r)},i.onerror=function(){return o("XMLHttpRequest Error")},i.ontimeout=function(){return o("XMLHttpRequest Timeout")},i.onabort=function(){return o("XMLHttpRequest Aborted")},i}(t,e,n,a);i&&s.setRequestHeader("Authorization",i),s.setRequestHeader("Scrivito-Client","jssdk/"+hr()),o&&s.setRequestHeader("Scrivito-Force-Verification","true"),s.setRequestHeader("Content-type","application/json; charset=utf-8"),s.send(JSON.stringify(r))})))}da={},window._scrivitoRegisterVerificator=function(t,e){da[t].resolve(e)};var Sa,Oa,Ta=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Aa="client_verification_required";!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Ta(e,t)}(ba);function Na(t){return t(ja()).catch((function e(n){if(!function(t){return t instanceof ba&&t.backendCode===Aa}(n))throw n;return function(t){if(!Sa){var e=t.verificator,n=t.data,r=function(t,e){var n=da[t];return n||(n=new cr,da[t]=n,vr(e)),n.promise}(e.id,e.url).then((function(t){return new ai((function(e){function r(t){e((Oa=t).authorization)}t(n,r)}))}));Sa={challenge:{verificator:e,data:n},promise:Vr(r,(function(){Sa=void 0}))}}return Sa.promise}(n.details).then(t).catch(e)}))}function Pa(){Sa=void 0,Oa=void 0}function ja(){if(Oa){if(!(Oa.expiresAfter<new Date))return Oa.authorization;Oa=void 0}}function La(){var t=ja();if(t)return"Authorization: "+t;if(Sa){var e=Sa.challenge;return"Pending computation: "+e.verificator.id+" with "+e.data}return null}function Ia(t){return void 0===t&&(t=window),t.devicePixelRatio||1}function Da(){return window.location}function Ma(){return window.screen}function Ra(){return document}function qa(){return window.innerHeight}function Ba(t,e){window.scrollTo(t,e)}var Fa,za,Ua=function(){return Ua=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ua.apply(this,arguments)},Ha=function(){function t(){this.initDeferred=new cr,this.authHeaderValueProvider=r}return t.prototype.init=function(t,e,n){e&&(this.tenant=e,this.endpoint=t,this.url=pa(t+"/tenants/"+e+"/perform").scheme("https").toString(),this.initDeferred.resolve(void 0)),n&&(this.authHeaderValueProvider=n)},t.prototype.get=function(t,e){return this.perform("GET",t,e)},t.prototype.put=function(t,e){return this.perform("PUT",t,e)},t.prototype.post=function(t,e){return this.perform("POST",t,e)},t.prototype.delete=function(t,e){return this.perform("DELETE",t,e)},t.prototype.requestBuiltInUserSession=function(t){var e=this;return this.ensureInitialized().then((function(){return e.ajax("PUT","sessions/"+t)})).then((function(t){return fa.reset(),t}))},t.prototype.requestVisitorSession=function(t,e){var n=this;return this.ensureInitialized().then((function(){return n.ajax("PUT","sessions/"+t,void 0,"id_token "+e)}))},t.prototype.enableForceVerification=function(){this.forceVerification=!0},t.prototype.currentPublicAuthorizationState=function(){return this.authHeaderValueProvider?this.authHeaderValueProvider.currentState?"[API] "+this.authHeaderValueProvider.currentState():"[API]: authorization provider without currentState()":"[API]: no authorization provider"},t.prototype.ensureInitialized=function(){return this.initDeferred.promise},t.prototype.perform=function(t,e,n){var r=this;return this.ensureInitialized().then((function(){return r.send(t,e,n).then((function(t){return function(t){return!!t&&!!t.task&&1===kn(t)}(t)?r.handleTask(t.task):t}))}))},t.prototype.send=function(t,e,n){var r=this;return this.authHeaderValueProvider.perform((function(i){return r.ajax(t,e,n,i)}))},t.prototype.ajax=function(t,e,n,r){var i=this.url,o=this.forceVerification,a={params:{path:e,verb:t,params:n||{}},authorization:r,forceVerification:o};function s(){return Va((function(){return Ca(t,i,a)})).then(Qa)}return"POST"===t?s():Wa(s)},t.prototype.handleTask=function(t){var e,n=this;switch(t.status){case"success":return t.result;case"error":throw va.for(t.message,412,t.code);case"exception":throw new ya(t.message);case"open":return(e=2,Ur(1e3*e)).then((function(){return n.get("tasks/"+t.id).then((function(t){return n.handleTask(t)}))}));default:throw new ya("Invalid task response (unknown status)")}},t}();function Wa(t,e){return void 0===e&&(e=0),za?new ai((function(e){return e(t())})):t().catch((function(n){if(n instanceof ya){if(Fa&&e>5)throw n;return Ur(Ka(e)).then((function(){return Wa(t,e+1)}))}throw n}))}function Va(t,e){return void 0===e&&(e=0),za?new ai((function(e){return e(t())})):t().then((function(n){if(429!==n.status)return n;if(Fa&&e>19)throw new Error("Maximum number of rate limit retries reached");var r=Number(n.getResponseHeader("Retry-After"))||0;return Ur(Math.max(1e3*r,Ka(e))).then((function(){return Va(t,e+1)}))}))}function Ka(t){return 500*Math.pow(2,Math.min(t,16))}function Qa(t){var e,n=t.status;try{e=JSON.parse(t.responseText)}catch(i){throw new ya(t.responseText)}if(n>=200&&n<300)return e;var r,i=function(t,e,n){if("4"!==t.toString()[0])return 500===t&&$a(e.error)?new ya(e.error):new ya(n);var r=function(t){var e=t.error,n=t.code,r=t.details;if(!$a(e))throw Ga("key error is not a string");if(void 0!==n&&!$a(n))throw Ga("optional key code is not a string");if(void 0!==r&&(i=r,"object"!=typeof i||Array.isArray(i)))throw Ga("optional key details is not an object");var i;return Ua(Ua({},t),{error:e,code:n,details:r})}(e);if(function(t){if("auth_missing"!==t.code)return!1;var e=t.details;return!!e&&"string"==typeof e.visit}(r)){var i=(o=r.details.visit,a=fa.augmentedRedirectUrl(Da()),o.replace("retry=RETRY","retry="+fa.currentFailureCount()).replace(/\$RETURN_TO/,encodeURIComponent(a)));return new ga(i)}var o,a;if(401===t)return new ba(r.error,t,r.code,r.details);if(403===t){var s=r.code;return $a(s)?new ma(r.error,t,s):new ya("Authentication failure response no string value for code")}return va.for(r.error,t,r.code)}(n,e,t.responseText);throw i instanceof ga&&(r=i.target,window.location.assign(r)),i}function $a(t){return"string"==typeof t}function Ga(t){return new ya("Malformed error response: "+t)}var Za=new Ha;var Ya=new ui((function(t){return Za.get("blobs/mget",{blobs:t}).then((function(e){return e.results.map((function(e,n){return function(t,e){var n=e.public_access,r=n.get;if(!r.url)throw new tr('Missing public access URL for binary "'+t+'"');var i={public_access:{get:{url:r.url}}},o=e.private_access;if(o){var a=o.get;a.url&&(i.private_access={get:{url:a.url}})}return i}(t[n].id,e)}))}))}));var Xa={};function Ja(t,e){return function(t){var e=Xa[t];e||(e=function(t){var e=function(e){return Za.get("workspaces/"+t+"/objs/mget",{ids:e,include_deleted:!0}).then((function(t){return t.results}))};return new ui(e,{batchSize:17})}(t),Xa[t]=e);return e}(t).retrieve(e).then((function(t){return t||{_deleted:e}}))}var ts=function(){return ts=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ts.apply(this,arguments)};function es(t,e){var n=ts({consistent:!0},e);return Za.get("workspaces/"+t+"/objs/search",n).then((function(t){var e=function(t){var e={results:t.results,total:t.total},n=t.continuation;void 0!==n&&(e.continuation=n);var r=t.objs;void 0!==r&&(e.objs=r);return e}(t);return{results:e.results.map((function(t){return t.id})),continuation:e.continuation,total:e.total,objs:e.objs}}))}var ns={retrieveObj:function(t,e){return Ja(t,e)},retrieveObjQuery:function(t,e){return es(t,e)},retrieveFacetQuery:function(t,e){return function(t,e){return Za.get("workspaces/"+t+"/objs/search",e).then((function(t){return{facets:t.facets.map((function(t){return t.map((function(t){return{total:t.total,value:t.value,results:t.results}}))}))}}))}(t,e)},retrieveBinaryMetadata:function(t){return function(t){return Za.get("blobs/"+encodeURIComponent(t||"")+"/meta_data")}(t)},retrieveBinaryUrls:function(t,e){return function(t,e){var n={id:t};return e&&(n.transformation=e),Ya.retrieve(n)}(t,e)},retrieveObjFieldDiffs:function(t,e){return function(t,e){return Za.get("workspaces/"+t+"/objs/"+e+"/diff").then((function(t){return t}))}(t,e)}};function rs(t){return"widgetlist"===t[0]}var is=new To({name:"facetquery",state:function(){return Fi.subState("facetQuery")},loader:function(t){var e=t[0],n=t[1];return ns.retrieveFacetQuery(e,n)},invalidation:function(t){var e=t[0];t[1];return So(void 0,(function(){return na(e)}))||""}}),os=function(){function t(t,e,n,r){this._requestParams=ss(e,n,r),this._loadableData=is.get([t,this._requestParams])}return t.store=function(t,e,n,r,i){var o=ss(e,n,r);is.get([t,o]).set(i)},t.prototype.result=function(){aa("Search API");var t=this._loadableData.get();return t?t.facets[0].map((function(t){var e=t.value,n=t.total,r=t.results.map((function(t){return t.id}));return{name:e,count:n,includedObjIds:r}})):[]},t}();const as=os;function ss(t,e,n){var r={facets:[{attribute:t,limit:e.limit||10,include_objs:e.includeObjs||0}],size:0};return ft(n)||(r.query=n),r}function us(t,e){var n;return $e(t,(function(t,r){if(t&&!Tr(r)){var i=t;if(rs(i)){var o=i[1];if(o){var a=o.indexOf(e);return-1!==a?(n={attributeName:r,index:a},!0):void 0}}}})),n}function ls(t,e){if(!t)return e;if(!e)return null;var n={};return fs(t,e,(function(r,i,o){"_widget_pool"===r?n._widget_pool=function(t,e){if(!e||Kn.isEmpty(e))return t;var n={};return fs(t,e,(function(t,r,i){Object.prototype.hasOwnProperty.call(e,t)?i&&!r?n[t]=i:i&&(n[t]=ls(r,i)):n[t]=r})),n}(i||{},o):Object.prototype.hasOwnProperty.call(e,r)?o&&(n[r]=o):n[r]=t[r]})),n}function cs(t,e){if(!t)return e;if(!e)return null;var n={};return fs(t,e,(function(t,e,r){if("_widget_pool"===t){var i=function(t,e){if(t===e)return;if(!t)return e;var n={};return fs(t,e||{},(function(t,e,r){var i=ps(e,r,(function(){var t=cs(e,r);if(!Kn.isEmpty(t))return t}));void 0!==i&&(n[t]=i)})),n}(e,r);Kn.isEmpty(i)||(n._widget_pool=i)}else{var o=ps(e,r,(function(){if(!Kn.isEqual(e,r))return r}));void 0!==o&&(n[t]=o)}})),n}function fs(t,e,n){Kn.union(Kn.keys(t),Kn.keys(e)).forEach((function(r){return n(r,ds(t[r]),ds(e[r]))}))}function ds(t){if(Kn.isArray(t)){var e=t[0],n=t[1];return"binary"===e&&n?[e,Kn.omit(n,"url")]:t}return t}function ps(t,e,n){return!t&&e?e:t&&!e?null:t&&e?n():void 0}var hs=function(){function t(t,e){var n,r,i,o=this;this._workspaceId=t,this._objId=e,this._replicationActive=!1,this._scheduledReplication=!1,this._currentRequestDeferred=null,this._nextRequestDeferred=null,this._performThrottledReplication=(n=function(){return o._performReplication()},r=1e3,Nr?n:je(n,r,i))}return t.prototype.start=function(){var t=this;ns.retrieveObj(this._workspaceId,this._objId).then((function(e){no((function(){t.notifyBackendState(e)}))}))},t.prototype.notifyLocalState=function(t){if(!ws.isDisabled()){if(void 0===this._backendState)throw new tr("Can not set local state before backend state.");if(this._backendState&&this._backendState._deleted)throw new tr("Can not update a fully deleted obj.");this._localState=t,this._startReplication()}},t.prototype.notifyBackendState=function(t){if(void 0===this._backendState)return this._backendState=t,void this._updateLocalState(t);if(ys(t,this._bufferedBackendState||this._backendState)>0)if(this._replicationActive)this._bufferedBackendState=t;else{if(t._deleted)this._updateLocalState(null);else{var e=ms(this._backendState,t);this._updateLocalState(gs(this.localState,e))}this._backendState=t}},t.prototype.finishSaving=function(){var t;if(this._nextRequestDeferred)t=this._nextRequestDeferred.promise;else{if(!this._currentRequestDeferred)return ai.resolve();t=this._currentRequestDeferred.promise}return t.catch((function(){return ai.reject()}))},t.prototype._startReplication=function(){var t=this;Kn.isEmpty(ms(this._backendState,this._localState))?this._nextRequestDeferred&&(this._nextRequestDeferred.resolve(),this._nextRequestDeferred=null):this._replicationActive?this._nextRequestDeferred||(this._nextRequestDeferred=new cr):this._scheduledReplication||(this._scheduledReplication=!0,this._initDeferredForRequest(),ws.writeStarted(this._currentRequestDeferred.promise),or((function(){return t._performThrottledReplication()})))},t.prototype._performReplication=function(){var t=this,e=this._localState,n=ms(this._backendState,this._localState);this._scheduledReplication=!1,this._replicationActive=!0,this._replicatePatchToBackend(n).then((function(n){t._handleBackendUpdate(e,n),t._currentRequestDeferred.resolve(t._objId),t._currentRequestDeferred=null,t._replicationActive=!1,t._startReplication()}),(function(e){t._currentRequestDeferred.reject(e),t._currentRequestDeferred=null,t._replicationActive=!1}))},t.prototype._replicatePatchToBackend=function(t){if(Kn.isEmpty(t))return ai.resolve(this._backendState);var e="workspaces/"+this._workspaceId+"/objs/"+this._objId;return Za.put(e,{obj:t})},t.prototype._initDeferredForRequest=function(){if(this._nextRequestDeferred){var t=this._nextRequestDeferred;this._nextRequestDeferred=null,this._currentRequestDeferred=t}else this._currentRequestDeferred=new cr},t.prototype._handleBackendUpdate=function(t,e){var n=ms(t,this._localState);this._backendState=function(t,e){if(ys(t,e)>0)return t;return e}(e,this._bufferedBackendState),this._bufferedBackendState=void 0,this._updateLocalState(gs(this._backendState,n))},t.prototype._updateLocalState=function(t){this._localState=t,Es(this._workspaceId,this._objId,this._localState)},Object.defineProperty(t.prototype,"backendState",{get:function(){return this._backendState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localState",{get:function(){return this._localState},enumerable:!1,configurable:!0}),t.prototype.isNotStoredInBackend=function(){return null===this._backendState},t.prototype.isRequestInFlight=function(){return this._replicationActive},t}();const vs=hs;function ms(t,e){return cs(t,e)}function gs(t,e){return ls(t,e)}function ys(t,e){return t?e?function(t,e){if(t>e)return 1;if(e>t)return-1;return 0}(t._version,e._version):1:-1}var bs=function(){function t(){this.replicationCache={},this.disabled=!1,this.writeWriteCallbacks={},this.subscriptionToken=0}return t.prototype.get=function(t,e){return this.replicationCache[t]||(this.replicationCache[t]={}),this.replicationCache[t][e]||(this.replicationCache[t][e]=new vs(t,e)),this.replicationCache[t][e]},t.prototype.subscribeWrites=function(t){return this.subscriptionToken+=1,this.writeWriteCallbacks[this.subscriptionToken]=t,this.subscriptionToken},t.prototype.unsubscribeWrites=function(t){delete this.writeWriteCallbacks[t]},t.prototype.isDisabled=function(){return this.disabled},t.prototype.writeStarted=function(t){Ze(this.writeWriteCallbacks,(function(e){e(t)}))},t.prototype.disableReplication=function(){this.disabled=!0},t.prototype.enableReplication=function(){this.disabled=!1},t.prototype.clearWriteCallbacks=function(){this.writeWriteCallbacks={}},t.prototype.clearCache=function(){this.replicationCache={}},t}(),ws=new bs;function _s(){return zi.subState("objData")}var ks=new To({name:"objdata",state:_s,loader:function(t){var e=t[0],n=t[1];return ws.get(e,n).start(),new ai((function(){}))}});const xs=function(){function t(t,e){this._workspaceId=t,this._id=e,this._loadableData=ks.get([t,e])}return t.prototype.get=function(){return Yi("for performance reasons, avoid this method when rendering"),this._loadableData.get()},t.prototype.getWidget=function(t){return Yi("for performance reasons, avoid this method when rendering"),this.getWidgetState(t).get()},t.prototype.getWidgetWithBadPerformance=function(t){return this.getWidgetState(t).get()},t.prototype.getAttribute=function(t){if("_widget_pool"===t)throw new tr("_widget_pool is not an attribute, use getWidget or getWidgetAttribute");return this.getSubReader(t).get()},t.prototype.getWidgetAttribute=function(t,e){return this.getWidgetState(t).subState(e).get()},t.prototype.isNonExistent=function(){return!!this.getSubReader("_deleted").get()||!this.getSubReader("_id").get()},t.prototype.set=function(t){Zi("Changing CMS content"),this._loadableData.set(t)},t.prototype.setError=function(t){this._loadableData.setError(t)},t.prototype.ensureAvailable=function(){return this._loadableData.ensureAvailable()},t.prototype.isAvailable=function(){return this._loadableData.isAvailable()},t.prototype.update=function(t){var e=ls(this.get(),t);this.set(e),this._replication().notifyLocalState(e)},t.prototype.finishSaving=function(){return this._replication().finishSaving()},t.prototype.workspaceId=function(){return this._workspaceId},t.prototype.equals=function(e){return e instanceof t&&(this.workspaceId()===e.workspaceId()&&this._id===e._id)},t.prototype._replication=function(){return ws.get(this._workspaceId,this._id)},t.prototype.getWidgetState=function(t){return this.getSubReader("_widget_pool").subState(t)},t.prototype.getSubReader=function(t){return this._loadableData.reader().subState(t)},t}();function Es(t,e,n){Ss(t,e).set(n)}function Cs(t,e){var n=Ss(t,e);if(n.ensureAvailable())return n}function Ss(t,e){return new xs(t,e)}var Os=function(){return Os=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Os.apply(this,arguments)},Ts={results:[],total:0},As=new To({name:"objquery",state:function(){return qs()},loader:function(t,e,n){var r=t[0],i=t[1],o=t[2],a=e.push,s=e.isReload,u=e.wasCancelled;return function(t,e,n,r){if(r>0){var i=new Ns(t,e,n,r-1);return ao((function(){return i.continuationForNextBatch()}))}return ai.resolve()}(r,i,n,o).then((function(t){if(u())throw new Error;var e={size:n,continuation:t,include_objs:!s()},o=Os(Os({},i),e);return ns.retrieveObjQuery(r,o).then((function(t){var e=t.objs;return e&&a((function(){return e.forEach((function(t){t._id&&ws.get(r,t._id).notifyBackendState(t)}))})),function(t,e){e.forEach((function(e){return function(t,e){ao((function(){return Cs(t,e)}))}(t,e)}))}(r,t.results),{results:t.results,total:t.total,continuation:t.continuation}}))}))},invalidation:function(t){var e=t[0];t[1],t[2];return So(void 0,(function(){return na(e)}))||""}}),Ns=function(){function t(t,e,n,r){void 0===r&&(r=0),this._workspaceId=t,this._params=e,this._batchSize=n,this._index=r}return t.store=function(t,e,n,r){void 0===r&&(r=n.length),As.get([t,js(e),0]).set({results:n,total:r})},t.firstBatchFor=function(e,n,r){return new t(e,js(n),r)},t.countFor=function(t,e){return this.firstBatchFor(t,e,0).count()},t.prototype.objIds=function(){return this._response().results},t.prototype.count=function(){return this._response().total||0},t.prototype.nextBatch=function(){if(this.continuationForNextBatch())return new t(this._workspaceId,this._params,this._batchSize,this._index+1)},Object.defineProperty(t.prototype,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),t.prototype.continuationForNextBatch=function(){return this._response().continuation},t.prototype._response=function(){return this._data().get()||Ts},t.prototype._data=function(){return As.get([this._workspaceId,this._params,this._index],this._batchSize)},t}();const Ps=Ns;function js(t){var e=Cn({query:t.query,offset:t.offset,sort_by:t.sortBy,sort_order:t.sortDirection},N);return t.includeDeleted&&(e.options={include_deleted:!0}),e}var Ls=function(){function t(t,e,n){this._workspaceId=t,this._params=e,this._batchSize=n}return t.store=function(t,e,n,r){Ps.store(t,e,n,r)},t.count=function(t,e){return Ps.countFor(t,e)},t.prototype.iterator=function(){var t={},e=Ps.firstBatchFor(this._workspaceId,this._params,this._batchSize),n=0;return{next:function r(){if(!e)return{done:!0};var i=e.objIds();if(n<i.length){var o=i[n];return n++,t[o]?r():(t[o]=!0,{value:o,done:!1})}return e=e.nextBatch(),n=0,r()}}},t}();const Is=Ls;var Ds=function(){function t(t,e,n){this._workspaceId=t,this._params=e,this._batchSize=n}return t.prototype.count=function(){return Is.count(this._workspaceId,this._params)},t.prototype.iterator=function(){return new Rs(this._workspaceId,this._params,this._batchSize)},t}();const Ms=Ds;var Rs=function(){function t(t,e,n){this._workspaceId=t,this._iterator=new Is(t,e,n).iterator()}return t.prototype.next=function(){if(!this._iterator)return{done:!0};var t=this._iterator.next().value;if(!t)return{done:!0};var e=Cs(this._workspaceId,t);return void 0===e?(this._iterator=void 0,{done:!0}):e.isNonExistent()?this.next():{value:e,done:!1}},t}();function qs(){return Fi.subState("objQuery")}var Bs=new To({name:"objFieldDiffs",state:function(){return Fi.subState("objFieldDiffs")},loader:function(t){var e=t[0],n=t[1];return ns.retrieveObjFieldDiffs(e,n)},invalidation:function(t){return function(t,e){var n=Cs(t,e);if(n)return n.getAttribute("_version")||"";return""}(t[0],t[1])}});function Fs(t,e,n,r){if("published"===t)return null;var i=function(t,e){return zs(t,e).get()||{}}(t,n);return r?function(t,e,n){var r=n._widget_pool;if(r){var i=r[e];if(i)return Us(t,i)}return null}(e,r,i):Us(e,i)}function zs(t,e){return Bs.get([t,e])}function Us(t,e){var n=e[Er(t)];return n?n[1]:null}function Hs(t,e,n){var r=Cs("published",e),i=Cs(t,e);return r&&i?r.isNonExistent()&&i.isNonExistent()?null:r.isNonExistent()&&!i.isNonExistent()?"new":!r.isNonExistent()&&i.isNonExistent()?"deleted":function(t,e,n){var r=t.getWidgetWithBadPerformance(n),i=e.getWidgetWithBadPerformance(n);return r?i?function(t,e){var n=cs(t,e);return on(Object.keys(n),(function(t){return!Tr(t)||"_obj_class"===t}))}(r,i)?"edited":null:"deleted":i?"new":null}(r,i,n):null}var Ws=function(){function t(t,e,n){this.container=t,this.attributeName=e,this.typeInfo=n,this.typeOptions=this.typeInfo[1]||{}}return t.prototype.get=function(){return this.container.get(this.attributeName,this.typeInfo)},t.prototype.update=function(t){var e;this.container.update(((e={})[this.attributeName]=[t,this.typeInfo],e))},t.prototype.getContainer=function(){return this.container},t.prototype.obj=function(){return this.container.obj()},t.prototype.name=function(){return this.attributeName},t.prototype.type=function(){return this.typeInfo[0]},t.prototype.workspaceId=function(){return this.obj().workspaceId()},t.prototype.equals=function(e){return e instanceof t&&(this.container.equals(e.getContainer())&&this.attributeName===e.name())},t.prototype.validClasses=function(){return this.typeOptions.validClasses},t.prototype.getDiff=function(){var t=this.obj();return Fs(this.workspaceId(),this.attributeName,t.id(),this.container===t?void 0:this.container.id())},t.prototype.toString=function(){var t=this.obj(),e=this.attributeName;return this.container===t?"<BasicField name="+e+" objId="+t.id()+">":"<BasicField name="+e+" objId="+t.id()+" widgetId="+this.container.id()+">"},t.prototype.id=function(){var t=this.obj();return this.container===t?this.attributeName+"|"+t.id():this.attributeName+"|"+t.id()+"|"+this.container.id()},t}();const Vs=Ws;function Ks(t){return pa.parseQuery(t)}var Qs=n(17340);var $s=function(){function t(t){var e=t.name,n=t.count,r=t.includedObjIds;this._name=e,this._count=n,this._includedObjIds=r}return t.prototype.name=function(){return this._name},t.prototype.count=function(){return this._count},t.prototype.includedObjs=function(){return Nn(this._includedObjIds.map((function(t){return rl.get(t)})))},t}();const Gs=$s;var Zs=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Ys=["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan","linksTo","refersTo"],Xs=["equals","startsWith","isGreaterThan","isLessThan"],Js=["contains","containsPrefix"],tu={query:[]},eu=function(){function t(t){void 0===t&&(t=tu);this._query=[].concat(t.query),this._batchSize=t.batchSize,this._offset=t.offset,this._sortBy=t.sortBy,this._sortDirection=t.sortDirection,this._includeDeleted=t.includeDeleted}return t.prototype.and=function(e,n,r,i){if(e instanceof t)this._query=Zs(this._query,e._query);else{if(void 0===n)throw new Jn("Missing operator to search with");if(void 0===r)throw new Jn('Missing value to search (specify "null" for missing)');var o=ru(e,n,r);i&&(!function(t){if(!an(Js,t))throw new Jn('Boosting operator "'+t+'" is invalid.')}(n),o.boost=function(t){var e={};return Ze(t,(function(t,n){var r=ou(n);e[r]=t})),e}(i)),this._query.push(o)}return this},t.prototype.andNot=function(t,e,n){var r=ru(t,e,n);return function(t){if(!an(Xs,t))throw new Jn('Negating operator "'+t+'" is invalid.')}(e),r.negate=!0,this._query.push(r),this},t.prototype.offset=function(t){return this._offset=t,this},t.prototype.order=function(t,e){return void 0===e&&(e="asc"),this._sortBy=ou(t),this._sortDirection=e,this},t.prototype.batchSize=function(t){return this._batchSize=t,this},t.prototype.includeDeleted=function(){return this._includeDeleted=!0,this},t.prototype.count=function(){return this.getObjDataQuery().count()},t.prototype.first=function(){return this.take(1)[0]||null},t.prototype.take=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];uu.apply(void 0,Zs([t],e));var r=this._batchSize;try{return this._batchSize=void 0===t?1e3:t,function(t,e){for(var n=t.iterator(),r=[];r.length!==e;){var i=n.next();if(i.done)return r;r.push(i.value)}return r}(this,t)}finally{this._batchSize=r}},t.prototype.iterator=function(){var t=this.getObjDataQuery().iterator();return{next:function(){var e=t.next(),n=e.done,r=e.value;return n?{done:!0}:{done:!1,value:new rl(r)}}}},t.prototype.getObjDataQuery=function(){return function(t,e,n){return aa("Search API"),new Ms(t,e,n)}(qu(),this.params(),this.getBatchSize())},t.prototype.getBatchSize=function(){return this._batchSize||100},t.prototype.facet=function(t,e){var n;return n=void 0===e?{}:function(t){var e=Ln.apply(void 0,Zs([Object.keys(t)],au));if(e.length)throw new Jn("Invalid facet options: "+Qn(e)+". Valid options: "+au);return t}(e),new as(qu(),ou(t),n,this._query).result().map((function(t){return new Gs(t)}))},t.prototype.store=function(t,e){!function(t,e,n,r){Is.store(t,e,n,r)}(qu(),this.params(),t,e)},t.prototype.params=function(){return Cn({query:this._query,offset:this._offset,sortBy:this._sortBy,sortDirection:this._sortDirection,includeDeleted:this._includeDeleted,batchSize:this._batchSize},N)},t}();const nu=eu;function ru(t,e,n){return{field:function(t){if(G(t))return Ye(t,ou);return ou(t)}(t),operator:function(t){if(!function(t){return an(Ys,t)}(t))throw new Jn('Operator "'+t+'" is invalid.');return Er(t)}(e),value:function(t){if(G(t))return Ye(t,iu);return iu(t)}(n)}}function iu(t){return M(t)?qr(t):t instanceof rl?t.id():t}function ou(t){if(!xr(t))throw new Jn('Attribute name "'+t+'" is not camel case.');return Er(t)}var au=["limit","includeObjs"];var su=nr.refinement(nr.Number,(function(t){return t>=0}),"Number (positive)"),uu=sr("objSearch.take",[["count",nr.maybe(su)]],{docPermalink:"js-sdk/ObjSearch-take"}),lu=nr.irreducible("Obj",(function(t){return hu(t,rl)})),cu=nr.irreducible("Widget",(function(t){return hu(t,Uu)})),fu=nr.irreducible("Link",(function(t){return hu(t,fl)})),du=nr.irreducible("ObjSearch",(function(t){return hu(t,nu)})),pu=nr.irreducible("Binary",(function(t){return t instanceof Su}));function hu(t,e){return!!t&&t._scrivitoPrivateContent instanceof e}var vu,mu=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var gu=function(){function t(t,e){void 0===e&&(e={});var n=e.filename;if(this.contentType=e.contentType,t.idToCopy)this.idToCopy=t.idToCopy;else{var r=t.source;this.source=r,this.contentType||(this.contentType=r.type),n||(n=r.name)}n&&(this.filename=n.replace(/[^\w\-_\.$]/g,"-"))}return t.prototype.into=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return yu.apply(void 0,mu([t],e)),Zi("Changing CMS content"),this.intoId(t._scrivitoPrivateContent.id())},t.prototype.intoId=function(t){if(!vu)throw new tr("No binaryHandler defined!");var e;if(this.idToCopy)e=vu.copyBinary(this.idToCopy,t,this.filename,this.contentType);else{if(!this.source)throw new tr("Source is not defined!");e=vu.uploadBinary(t,this.source,this.filename,this.contentType)}return e.then((function(t){var e=t.id;return new Su(e,!1)}))},t}(),yu=sr("FutureBinary#into",[["target",lu]],{docPermalink:"js-sdk/FutureBinary-into"});const bu=gu;var wu;!function(t){t.Date="date",t.Number="number",t.String="string",t.Stringlist="stringlist"}(wu||(wu={}));var _u=new To({name:"metadata",state:function(){return Fi.subState("metadataCollection")},loader:function(t){return ns.retrieveBinaryMetadata(t)}});const ku=function(){function t(t){this.binaryId=t,t&&(this.loadableData=_u.get(t))}return t.store=function(t,e){xu(e),_u.get(t).set(e)},t.prototype.get=function(t){aa("MetadataCollection#get"),function(t){if(!xr(t))throw new Jn('Metadata key "'+t+'" is not in camel case.')}(t);var e=this.getData();if(e){var n=Er(t);return e.hasOwnProperty(n)?e[n]:null}return null},t.prototype.keys=function(){var t=this.getData();return t?Ye(ct(t),Cr):[]},t.prototype.contentLength=function(){var t=this.get("contentLength");return"number"!=typeof t?0:t},t.prototype.contentType=function(){var t=this.get("contentType");return"string"!=typeof t?"":t},t.prototype.getData=function(){if(this.loadableData){var t=this.loadableData.get();if(t)return xu(t)}},t}();function xu(t){for(var e=t.meta_data,n={},r=0,i=Object.keys(e);r<i.length;r++){var o=i[r],a=e[o],s=a[0],u=a[1];if(null==u)throw new tr('Invalid backend value "null" or "undefined" for metadata "'+o+'"');var l=void 0;if(s===wu.Date){if("string"!=typeof u)throw new tr('Invalid non-string backend value for a date metadata "'+o+'"');l=Mr(u)}else l=u;n[o]=l}return n}var Eu=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Cu=new To({name:"binary",state:function(){return Fi.subState("binary")},loader:function(t){var e=t[0],n=t[1];return ns.retrieveBinaryUrls(e,n)}});const Su=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n={}),this._id=t,this._isPublic=!!e,this._transformation=n||void 0,this._loadableData=Cu.get([t,this._transformation])}return t.upload=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(Tu.apply(void 0,Eu([t,e],n)),!(Or.is(t)||e&&e.filename))throw new Jn("Expected a filename to be passed with Blob as the source.");return new bu({source:t},e)},t.store=function(e,n,r){var i=n.transformation;Cu.get([e,i]).set(r);var o=new t(e).raw();return i?o.optimizeFor(i):o},t.storeMetadata=function(t,e){ku.store(t,e)},t.prototype.id=function(){return this._id},t.prototype.copy=function(t){return new bu({idToCopy:this._id},t)},t.prototype.isPrivate=function(){return!this._isPublic},t.prototype.optimizeFor=function(e){return new t(this._id,this._isPublic,Mt({},this._transformation,e))},t.prototype.original=function(){return new t(this._id,this._isPublic,{})},t.prototype.raw=function(){return new t(this._id,this._isPublic,null)},t.prototype.isExplicitlyTransformed=function(){return this.isTransformed()&&!ft(this._transformation)},t.prototype.isRaw=function(){return!this.isTransformed()},t.prototype.url=function(){return aa("Binary#url"),this.urlWithoutPlaceholder()||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},t.prototype.urlWithoutPlaceholder=function(){var t=this._loadableData.get();if(t){var e=t[this.accessType()];if(!e)throw new tr("Missing key "+this.accessType+" in binary data");return e.get.url}},t.prototype.filename=function(){var t=this.url();return!t||t.match(/^data:/)?"":pa(t).path().split("/").pop()||""},t.prototype.metadata=function(){return this.assertNotTransformed("Metadata"),new ku(this._id)},t.prototype.contentType=function(){return this.assertNotTransformed("Content type"),this.metadata().contentType()},t.prototype.contentLength=function(){return this.assertNotTransformed("Content length"),this.metadata().contentLength()},t.prototype.extname=function(){if(this.raw().filename().indexOf(".")>-1){var t=/[^.\\]*$/.exec(this.raw().filename());if(t)return t[0].toLowerCase()}return""},t.prototype.equals=function(e){return e instanceof t&&e.id()===this.id()&&e.isPrivate()===this.isPrivate()&&yt(e.definition(),this.definition())},t.prototype.isImage=function(){var t=this.raw().contentType();return!!t&&"image"===t.split("/")[0]},t.prototype.definition=function(){return this._transformation||null},t.prototype.accessType=function(){return this.isPrivate()?"private_access":"public_access"},t.prototype.assertNotTransformed=function(t){if(this.isTransformed())throw new Xn('"'+t+'" is not available for transformed images. Use "Scrivito.Binary#raw" to access the untransformed version of the image.')},t.prototype.isTransformed=function(){return!!this._transformation},t}();var Ou=nr.struct({contentType:nr.maybe(nr.String),filename:nr.maybe(nr.String)}),Tu=sr("Binary.upload",[["source",nr.refinement(nr.Object,(function(t){return Sr.is(t)||Or.is(t)}),"Blob or File")],["options",nr.maybe(Ou)]],{docPermalink:"js-sdk/Binary-static-upload"});function Au(t,e,n,r){var i=e[0],o=e[1];switch(n){case"binary":return function(t,e){if("binary"===t&&e){var n=e.id,r="published"===qu();return new Su(n,r)}return null}(i,o);case"date":return function(t,e){if("date"!==t)return null;return Mr(e)}(i,o);case"float":return function(t,e){switch(t){case"string":return e.match(/^-?\d+(\.\d+)?$/)?Nu(e):null;case"number":return Nu(e);default:return null}}(i,o);case"enum":return function(t,e,n){var r=n.values;if("string"===t&&Kn.contains(r,e))return e;return null}(i,o,r);case"html":case"string":return function(t,e){if(Kn.contains(["html","string"],t)&&Kn.isString(e))return e;return""}(i,o);case"integer":return function(t,e){switch(t){case"string":case"number":return"string"==typeof(n=e)&&n.match(/^-?\d+$/)||"number"==typeof n?zr(n):null;default:return null}var n}(i,o);case"link":return function(t,e){if("link"!==t||!Kn.isObject(e))return null;return Pu(e)}(i,o);case"linklist":return function(t,e){if(!Kn.isArray(e))return[];return Kn.compact(e.map(Pu))}(0,o);case"multienum":return function(t,e,n){var r=n.values;if("stringlist"!==t||!Array.isArray(e))return[];return Kn.intersection(e,r)}(i,o,r);case"reference":return function(t,e,n){if("reference"===t&&e)return ju(e,n);return null}(i,o,t);case"referencelist":return function(t,e,n){if("referencelist"!==t)return[];if(!e)return[];var r=e.map((function(t){return ju(t,n)}));return Kn.compact(r)}(i,o,t);case"stringlist":return function(t,e){if("stringlist"!==t||!Array.isArray(e))return[];return e}(i,o);case"widgetlist":return function(t,e,n){if("widgetlist"!==t)return[];return Kn.map(e,(function(t){return n.widget(t)}))}(i,o,t);default:return null}}function Nu(t){var e=parseFloat(t);return Dr(e)?e:null}function Pu(t){var e=Kn.pick(t,"query","rel","target","title","url");"fragment"in t&&(e.hash=t.fragment),"obj_id"in t&&(e.objId=t.obj_id);var n=new fl(e);return n.isBroken()?null:n}function ju(t,e){var n=rl.getInWorkspace(e.workspaceId(),t);return n||null}var Lu=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};const Iu=function(){function t(){}return t.prototype.get=function(t,e){var n=Er(t),r=this.getAttributeData(n);return r&&G(r)||(r=[]),"string"==typeof e?Au(this,r,e):Au.apply(i,Lu([this,r],e))},t.prototype.serializeAttributes=function(t){var e=this;return ee(t,(function(t,n){if(function(t){return G(t)&&"widgetlist"===t[0]}(t)){var r=Cr(n);return["widgetlist",sn(e.get(r,["widgetlist"]),"serializeAttributes")]}return t}))},t.prototype.persistWidgets=function(t,e){Ze(e,(function(e){if(function(t){if(!t)return!1;if(!G(t))return!1;if(t.length<2)return!1;var e=t[1];return G(e)&&e.length>0&&"widgetlist"===e[0]}(e)){var n=e[0];if(n)Ze(G(n)?n:[n],(function(e){e.isPersisted()||e.persistInObj(t)}))}}))},t}();function Du(t){return ee(t,(function(t,e){if(Tr(e))return G(t)?t:[t];if(!G(t))throw new tr("Value for "+e+" should be a tuple: [value, typeInfo]");var n=t[0],r=t[1];return"string"==typeof r?[n,[r]]:[n,r]}))}var Mu,Ru="published";function qu(){return Mu||Ru}function Bu(t){Mu=t}var Fu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zu=function(t){function e(e){var n=t.call(this)||this;return n._attributesToBeSaved=Du(e),function(t){if(!t)throw new Jn('Please provide a widget class as the "_objClass" property.')}(e._objClass),n}return Fu(e,t),e.build=function(t,n){var r=Object.create(e.prototype);return r._obj=n,r._id=t,r},e.newWithSerializedAttributes=function(t){var n={},r={};Kn.each(t,(function(t,i){if("_obj_class"!==i)if(Kn.isArray(t)&&"widgetlist"===Kn.first(t)){var o=Kn.map(Kn.last(t),(function(t){return e.newWithSerializedAttributes(t)})),a=Cr(i);n[a]=[o,["widgetlist"]]}else r[i]=t;else n._objClass=[t]}));var i=new e(n);return i.preserializedAttributes=r,i},e.prototype.id=function(){return this._failIfNotPersisted(),this._id},e.prototype.objClass=function(){return this.isPersisted()?this.getAttributeData("_obj_class"):this._attributesToBeSaved._objClass[0]},e.prototype.obj=function(){return this._failIfNotPersisted(),this._obj},e.prototype.widget=function(t){return this.obj().widget(t)},e.prototype.workspaceId=function(){return this.obj().workspaceId()},e.prototype.modification=function(){return Hs(qu(),this.obj().id(),this.id())},e.prototype.update=function(t){var e=this,n=Du(t);Qi((function(){e.persistWidgets(e.obj(),n);var t=Vu(n);e._updateSelf(t)}))},e.prototype.insertBefore=function(t){t.obj().insertWidget(this,{before:t})},e.prototype.insertAfter=function(t){t.obj().insertWidget(this,{after:t})},e.prototype.remove=function(){this.obj().removeWidget(this)},e.prototype.copy=function(){return this.isPersisted()?this._copyPersisted():this._copyUnpersisted()},e.prototype.persistInObj=function(t){this.persistWidgets(t,this._attributesToBeSaved);var e=Vu(this._attributesToBeSaved);Kn.extend(e,this.preserializedAttributes||{}),this._obj=t,this._id=t.generateWidgetId(),this._updateSelf(e),this._executeDidPersistCallback()},e.prototype.isPersisted=function(){return!!this._obj},e.prototype.onDidPersist=function(t){if(this.isPersisted())throw new Xn('Cannot call "onDidPersist" of an already persisted widget');this._onDidPersistCallback=t},e.prototype.hasOnDidPersistCallback=function(){return!!this._onDidPersistCallback},Object.defineProperty(e.prototype,"attributesToBeSaved",{get:function(){return this._attributesToBeSaved},enumerable:!1,configurable:!0}),e.prototype.finishSaving=function(){return this.obj().finishSaving()},e.prototype.equals=function(t){return t instanceof e&&(this.id()===t.id()&&this.obj().id()===t.obj().id())},e.prototype.containingField=function(){return this.obj().fieldContainingWidget(this)},e.prototype.toPrettyPrint=function(){return"[object "+this.objClass()+' id="'+this.id()+'" objId="'+this.obj().id()+'"]'},e.prototype.getAttributeData=function(t){return this.obj().getWidgetAttribute(this.id(),t)},e.prototype.getData=function(){return this.obj().getWidgetData(this.id())},e.prototype.serializeAttributes=function(){return t.prototype.serializeAttributes.call(this,this.getData())},e.prototype._failIfNotPersisted=function(){if(!this.isPersisted())throw new Xn("Can not access a new widget before it has been saved.")},e.prototype._updateSelf=function(t){var e,n={_widgetPool:[(e={},e[this.id()]=t,e)]};this.obj().update(n)},e.prototype._executeDidPersistCallback=function(){this._onDidPersistCallback&&(this._onDidPersistCallback(this),delete this._onDidPersistCallback)},e.prototype._copyPersisted=function(){var t=this.serializeAttributes();return e.newWithSerializedAttributes(t)},e.prototype._copyUnpersisted=function(){var t=Kn.mapObject(this._attributesToBeSaved,(function(t){var e=t[0],n=t[1];return n&&"widgetlist"===n[0]?[Kn.invoke(e,"copy"),n]:[e,n]})),n=new e(t);return this._onDidPersistCallback&&n.onDidPersist(this._onDidPersistCallback),n},e}(Iu);const Uu=zu;function Hu(t){return t instanceof fl||!!T(t)&&ft(Ln(ct(t),"hash","obj_id","query","rel","target","title","url"))}function Wu(t){var e,n=t instanceof fl?{rel:(e=t).rel()||void 0,query:e.query(),target:e.target(),title:e.title(),url:e.url(),obj_id:e.objId(),fragment:e.hash()}:function(t){return{obj_id:t.obj_id||null,query:t.query||null,rel:t.rel||void 0,target:t.target||null,title:t.title||null,url:t.url||null,fragment:t.hash||null}}(t);return n.rel||delete n.rel,n}function Vu(t){var e={};return Kn.each(t,(function(t,n){var r=t[0],i=t[1],o=function(t){if(!xr(t))throw new Jn("Attribute names have to be in camel case.");return Er(t)}(n);if(Tr(o))e[o]=r;else{var a=i[0],s=i[1];e[o]=[Ku(a,n),$u(Qu(a,s,r,n))]}})),e}function Ku(t,e){switch(t){case"enum":return"string";case"float":case"integer":return"number";case"multienum":return"stringlist";case"binary":case"date":case"html":case"link":case"linklist":case"reference":case"referencelist":case"string":case"stringlist":case"widgetlist":return t;default:throw new Jn('Attribute "'+e+'" is of unsupported type "'+t+'".')}}function Qu(t,e,n,r){if(null===n)return n;switch(t){case"binary":return function(t,e){if(t instanceof Su)return{id:t.id()};Gu(t,e,"A Binary.")}(n,r);case"date":return function(t,e){if(Kn.isDate(t))return qr(t);if(Br(t))return t;Gu(t,e,"A Date.")}(n,r);case"enum":return function(t,e,n){var r=t.values;if(Kn.contains(r,e))return e;var i='Valid attribute values are contained in its "values" array ['+r+"].";Gu(e,n,i)}(e,n,r);case"float":return function(t,e){if(Dr(t))return t;var n=t;Kn.isNumber(t)&&(n=String(t));Gu(n,e,"A Number, that is #isFinite().")}(n,r);case"html":return function(t,e){if(Kn.isString(t))return t;Gu(t,e,"A String.")}(n,r);case"integer":return function(t,e){if(Ir(t))return t;Gu(t,e,"A Number, that is #isSafeInteger().")}(n,r);case"link":return function(t,e){if(Hu(t))return Wu(t);Gu(t,e,"A Link instance.")}(n,r);case"linklist":return function(t,e){if(Kn.isArray(t)&&Kn.every(t,Hu))return Kn.map(t,Wu);Gu(t,e,"An array of Link instances.")}(n,r);case"multienum":return function(t,e,n){var r=t.values,i="An array with values from "+Qn(r)+".";Kn.isArray(e)&&Kn.every(e,Kn.isString)||Gu(e,n,i);var o=Kn.difference(e,r);if(o.length){Gu(e,n,i+" Forbidden values: "+Qn(o)+".")}return e}(e,n,r);case"reference":return function(t,e){if(Yu(t))return Zu(t);Gu(t,e,"A BasicObj or a String ID.")}(n,r);case"referencelist":return function(t,e){if(function(t){return Kn.isArray(t)&&Kn.every(t,(function(t){return Yu(t)}))}(t))return Kn.map(t,Zu);Gu(t,e,"An array with BasicObjs or String IDs.")}(n,r);case"string":return function(t,e){if(Xu(t))return t.toString();Gu(t,e,"A String.")}(n,r);case"stringlist":return function(t,e){if(Kn.isArray(t)&&Kn.every(t,(function(t){return Xu(t)})))return Kn.invoke(t,"toString");Gu(t,e,"An array of strings.")}(n,r);case"widgetlist":return Ju(n,r);default:throw new tr('serializeAttributeValue is not implemented for "'+t+'".')}}function $u(t){return(Kn.isString(t)||Kn.isArray(t))&&Kn.isEmpty(t)?null:t}function Gu(t,e,n){throw new Jn("Unexpected value "+Qn(t)+' for attribute "'+e+'". Expected: '+n)}function Zu(t){return t instanceof rl?t.id():t}function Yu(t){return Kn.isString(t)||t instanceof rl}function Xu(t){return Kn.isString(t)||Kn.isNumber(t)}function Ju(t,e){return t instanceof Uu?Ju([t],e):Kn.isArray(t)&&Kn.every(t,(function(t){return t instanceof Uu}))?Kn.invoke(t,"id"):void Gu(t,e,"An array of BasicWidget instances.")}var tl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),el=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},nl=function(t){function e(e){var n=t.call(this)||this;return n.objData=e,n}return tl(e,t),e.get=function(t){var e=this.getIncludingDeleted(t);return!e||e.isDeleted()?null:e},e.getInWorkspace=function(t,e){var n=this.getIncludingDeletedInWorkspace(t,e);return!n||n.isDeleted()?null:n},e.getIncludingDeleted=function(t){return this.getIncludingDeletedInWorkspace(qu(),t)},e.getIncludingDeletedInWorkspace=function(t,n){var r=Cs(t,n);if(!r)return null;var i=new e(r);return i.isFinallyDeleted()?null:i},e.create=function(t){return this.createInWorkspace(qu(),t)},e.createInWorkspace=function(t,e){var n=Du(e);!function(t){if(!t)throw new Jn('Please provide an obj class as the "_objClass" property.')}(n._objClass),n._id||(n._id=[this.generateId()]);var r={_id:n._id,_obj_class:n._objClass};return this.createWithSerializedAttributes(t,ee(r,(function(t){return t[0]})),Cn(e,"_objClass","_id"))},e.createFromFile=function(t,e){var n=this.create(e);return Su.upload(t).intoId(n.id()).then((function(t){return n.update({blob:[t,["binary"]]}),n.finishSaving().then((function(){return n}))}))},e.addChildWithSerializedAttributes=function(t,n){var r=e.generateId();return this.createWithSerializedAttributes(qu(),Mt({},n,{_id:r,_path:t+"/"+r}))},e.createWithSerializedAttributes=function(t,n,r){if(!r){var i=il(n),o=i[0],a=i[1];return this.createWithSerializedAttributes(t,o,a)}var s=function(t,e){var n=Ss(t,e);return n.set(null),ws.get(t,e).notifyBackendState(null),n}(t,n._id);s.update(n);var u=new e(s);return u.update(r),u},e.generateId=function(){return Ar()+Ar()},e.all=function(){return(new nu).batchSize(1e3)},e.root=function(){return e.getByPath("/")},e.where=function(t,e,n,r){return(new nu).and(t,e,n,r)},e.getByPath=function(t){var e=this.where("_path","equals",t).first();return e||null},e.getByPermalink=function(t){var e=this.where("_permalink","equals",t).first();return e||null},e.getAllByPermalink=function(t){return this.where("_permalink","equals",t).take()},e.generateWidgetId=function(){return Ar()},e.prototype.id=function(){return this.getAttributeData("_id")},e.prototype.objClass=function(){return this.getAttributeData("_obj_class")},e.prototype.obj=function(){return this},e.prototype.createdAt=function(){return Rr(this.getAttributeData("_created_at"))},e.prototype.createdBy=function(){return this.getAttributeData("_created_by")||null},e.prototype.lastChanged=function(){var t=this.getAttributeData("_last_changed");return t?Rr(t):null},e.prototype.lastChangedBy=function(){return this.getAttributeData("_last_changed_by")||null},e.prototype.version=function(){return this.getAttributeData("_version")},e.prototype.workspaceId=function(){return this.objData.workspaceId()},e.prototype.path=function(){return this.getAttributeData("_path")||null},e.prototype.permalink=function(){return this.getAttributeData("_permalink")||null},e.prototype.parentPath=function(){var t=this.path();return t&&"/"!==t?function(t){var e=t.split("/");if(e.pop(),1===e.length)return"/";return e.join("/")}(t):null},e.prototype.parent=function(){var t=this.parentPath();return t?e.getByPath(t):null},e.prototype.hasConflicts=function(){return!!this.getAttributeData("_conflicts")},e.prototype.modification=function(){return this.isFinallyDeleted()||this.getAttributeData("_marked_deleted")?"deleted":this.getAttributeData("_modification")||null},e.prototype.isModified=function(){return!!this.modification()},e.prototype.isNew=function(){return"new"===this.modification()},e.prototype.isEdited=function(){return"edited"===this.modification()},e.prototype.isDeleted=function(){return"deleted"===this.modification()},e.prototype.isFinallyDeleted=function(){return this.objData.isNonExistent()},e.prototype.contentLength=function(){return this.metadata().contentLength()},e.prototype.contentType=function(){return this.metadata().contentType()},e.prototype.contentUrl=function(){var t=this.blob();return t?t.url():""},e.prototype.metadata=function(){var t=this.blob();return t?new ku(t.id()):new ku},e.prototype.children=function(){var t=this.path();return t?al(t).take():[]},e.prototype.hasChildren=function(){var t=this.path();return!!t&&al(t).batchSize(0).count()>0},e.prototype.orderedChildren=function(){var t=this.children(),e=this.get("childOrder","referencelist");return G(e)?mn(t,(function(t){var n=sn(e,"id").indexOf(t.id());return-1===n?e.length:n})):t},e.prototype.backlinks=function(){return e.where("*","linksTo",this).take()},e.prototype.ancestors=function(){var t=this.parentPath();return t?function(t){var e=["/"];if("/"===t)return e;var n=t.split("/").slice(1),r="";return n.forEach((function(t){r=r+"/"+t,e.push(r)})),e}(t).map((function(t){return e.getByPath(t)})):[]},e.prototype.isRestricted=function(){var t=this.restriction();return!!t&&t.length>0},e.prototype.restriction=function(){return this.getAttributeData("_restriction")||null},e.prototype.restrict=function(){this.isRestricted()||this.update({_restriction:[["_auth"]]})},e.prototype.unrestrict=function(){this.update({_restriction:null})},e.prototype.update=function(t){var e=this,n=Du(t);Qi((function(){e.persistWidgets(e,n);var t=Vu(n);e.objData.update(t)})),this.startLinkResolution()},e.prototype.destroy=function(){this.update({_markedDeleted:[!0]})},e.prototype.insertWidget=function(t,e){var n,r=function(t){if(function(t){return!!t.before}(t))return t.before.id();return t.after.id()}(e),i=this._widgetPlacementFor(r);if(i){var o=i.attributeValue,a=i.attributeName,s=i.container,u=i.index,l=e.before?u:u+1,c=el(o.slice(0,l),[t],o.slice(l));s.update(((n={})[a]=[c,["widgetlist"]],n))}},e.prototype.removeWidget=function(t){var e=this.fieldContainingWidget(t);if(e){var n=nn(e.get(),(function(e){return e.equals(t)}));e.update(n)}},e.prototype.siblingWidget=function(t,e){var n=this._widgetPlacementFor(t.id());if(n)return n.attributeValue[n.index+e]},e.prototype.copyAsync=function(t){return void 0===t&&(t={}),function(t){var e=["_path"];if(jn(ct(t),e).length)throw new Jn('Currently only "_path" copy option is supported.')}(t),this._copyAttributes().then((function(n){var r=Mt(n,t),i=e.createWithSerializedAttributes(qu(),r);return i.objData.finishSaving().then((function(){return i}))}))},e.prototype.moveToAsync=function(t){return this.moveTo(t),this.finishSaving()},e.prototype.moveTo=function(t){this.update({_path:[t+"/"+this.id()]})},e.prototype.markResolvedAsync=function(){return this.update({_conflicts:[null]}),this.finishSaving()},e.prototype.finishSaving=function(){var t=this;return this.finishLinkResolution().then((function(){return t.objData.finishSaving()}))},e.prototype.equals=function(t){return t instanceof e&&this.id()===t.id()},e.prototype.widget=function(t){return this.getWidgetAttribute(t,"_obj_class")?Uu.build(t,this):null},e.prototype.getWidgetAttribute=function(t,e){return this.objData.getWidgetAttribute(t,e)},e.prototype.widgets=function(){var t=this.getData();if(!ll(t))return[];var e=t._widget_pool;if(!e)return[];var n=[];return this.collectWidgets(n,t,e,{}),n},e.prototype.fieldContainingWidget=function(t){var e=t.id(),n=this._widgetPlacementFor(e);if(n){var r=n.container,i=n.attributeName;return new Vs(r,i,["widgetlist"])}},e.prototype.generateWidgetId=function(){for(var t=0;t<10;t++){var n=e.generateWidgetId();if(!this.widget(n))return n}throw new tr("Could not generate a new unused widget id.")},e.prototype.serializeAttributes=function(){var e=t.prototype.serializeAttributes.call(this,this.getData());return delete e._conflicts,delete e._modification,delete e._created_at,delete e._created_by,delete e._last_changed,delete e._last_changed_by,e},e.prototype.slug=function(){var t,e=this.get("title","string");return"string"!=typeof(t=e)?"":Qs(t)},e.prototype.getWidgetData=function(t){return this.objData.getWidget(t)},e.prototype.startLinkResolution=function(){oa||ul().startLinkResolutionFor(qu(),this.id())},e.prototype.finishLinkResolution=function(){return ul().finishLinkResolutionFor(qu(),this.id())},e.prototype.toPrettyPrint=function(){return"[object "+this.objClass()+' id="'+this.id()+'"]'},e.prototype.getAttributeData=function(t){return this.objData.getAttribute(t)},e.prototype.getData=function(){return this.objData.get()},e.prototype.blob=function(){return this.get("blob",["binary"])},e.prototype._copyAttributes=function(){var t=e.generateId(),n=this.serializeAttributes(),r=[];return Ze(n,(function(e,i){if("_"!==i[0]){if(function(t){return"binary"===t[0]&&!!t[1]}(e)){var o=e[1],a=new bu({idToCopy:o.id}).intoId(t).then((function(t){return{name:i,binary:t}}));r.push(a)}}else delete n[i]})),n._id=t,n._obj_class=this.objClass(),n._restriction=this.restriction(),this.path()&&(n._path=this.parentPath()+"/"+t),ai.all(r).then((function(t){return Ze(t,(function(t){var e=t.name,r={id:t.binary.id()};n[e]=["binary",r]})),n}))},e.prototype.collectWidgets=function(t,e,n,r){var i=this;Ye(e,(function(t,e){if(t&&!Tr(e)){var n=t;return rs(n)?n[1]:void 0}})).forEach((function(e){e&&e.forEach((function(e){if(!r[e]){r[e]=!0;var o=i.widget(e);if(o){t.push(o);var a=n[e];i.collectWidgets(t,a,n,r)}}}))}))},e.prototype._widgetPlacementFor=function(t){var e=this.getData();if(ll(e)){var n=function(t,e){var n=us(t,e);return n||($e(t._widget_pool,(function(t,r){if(t&&(n=us(t,e)))return n.parentWidgetId=r,!0})),n)}(e,t);if(n){var r,i=Cr(n.attributeName),o=n.parentWidgetId;if(o){if(!(r=this.widget(o)))return}else r=this;return{container:r,attributeName:i,attributeValue:r.get(i,["widgetlist"]),index:n.index,parentWidgetId:o}}}},e}(Iu);const rl=nl;function il(t){var e={},n={};return Ze(t,(function(t,r){if(G(a=t)&&"widgetlist"===On(a)){var i=Ye(t[1],ol),o=Cr(r);n[o]=[i,["widgetlist"]]}else e[r]=t;var a})),e._id||(e._id=nl.generateId()),[e,n]}function ol(t){return Uu.newWithSerializedAttributes(t)}function al(t){return nl.all().and("_parentPath","equals",t)}var sl;function ul(){if(!sl)throw new Error("No Link Handler");return sl}function ll(t){return!!t&&function(t){return!t._deleted}(t)}var cl=function(){return cl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},cl.apply(this,arguments)};const fl=function(){function t(t){this.attributes=cl({},t)}return t.prototype.title=function(){return this.attributes.title||null},t.prototype.query=function(){return this.attributes.query||null},t.prototype.hash=function(){return this.attributes.hash||null},t.prototype.rel=function(){return this.attributes.rel||null},t.prototype.target=function(){return this.attributes.target||null},t.prototype.url=function(){return this.attributes.url||null},t.prototype.objId=function(){return this.attributes.objId||null},t.prototype.obj=function(){var t=this.objId();return t?rl.get(t):null},t.prototype.queryParameters=function(){return Ks(this.query()||"")},t.prototype.isExternal=function(){return!!this.url()},t.prototype.isInternal=function(){return!this.isExternal()},t.prototype.equals=function(e){return e instanceof t&&(this.isExternal()?this.hash()===e.hash()&&this.query()===e.query()&&this.rel()===e.rel()&&this.target()===e.target()&&this.title()===e.title()&&this.url()===e.url():this.objId()===e.objId()&&this.title()===e.title())},t.prototype.copy=function(e){void 0===e&&(e={});var n=cl(cl({},this.attributes),e);if(e.objId&&e.url)throw new Jn('Link#copy refused: both "objId" and "url" have been specified with truthy values');return e.objId?n.url=null:e.url&&(n.objId=null),new t(n)},t.prototype.isBroken=function(){return!this.isExternal()&&!this.obj()},t.prototype.toPrettyPrint=function(){return this.isInternal()?'[object Link objId="'+this.objId()+'"]':'[object Link url="'+this.url()+'"]'},t}();function dl(t){var e=t.get(),n=function(t){var e=t.getDiff();if(function(t){return!!t&&"widgetlist_diff"===t.format}(e))return e.content}(t);return n?Nn(n.map((function(n){var r,i=n[0],o=n[1];switch(i){case"+":if(r=pl(e,o))return{widget:r,modification:"new"};break;case"=":if(r=pl(e,o))return{widget:r,modification:null};break;case"-":if(r=function(t,e){var n=rl.getInWorkspace("published",t);if(n)return n.widget(e);return null}(t.obj().id(),o),r)return{widget:r,modification:"deleted"}}}))):e.map((function(t){return{widget:t,modification:null}}))}function pl(t,e){return $e(t,(function(t){return t.id()===e}))||null}function hl(t){if(!t)return t;switch(typeof t){case"string":case"number":case"boolean":return t;case"object":return t._scrivitoPrivateContent instanceof nu?hl(t._scrivitoPrivateContent.params()):M(t)?t:G(t)?(e=[],t.forEach((function(t){var n=hl(t);void 0!==n&&e.push(n)})),e):function(t){var e={};return Ze(t,(function(t,n){var r=hl(t);void 0!==r&&(e[n]=r)})),e}(t)}var e}var vl;var ml=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},gl=0,yl={};function bl(){return Bi.subState("editors")}function wl(){return wl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},wl.apply(null,arguments)}function _l(t){return"/"===t.charAt(0)}function kl(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}const xl=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],i=e&&e.split("/")||[],o=t&&_l(t),a=e&&_l(e),s=o||a;if(t&&_l(t)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var l=0,c=i.length;c>=0;c--){var f=i[c];"."===f?kl(i,c):".."===f?(kl(i,c),l++):l&&(kl(i,c),l--)}if(!s)for(;l--;l)i.unshift("..");!s||""===i[0]||i[0]&&_l(i[0])||i.unshift("");var d=i.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var El=!0,Cl="Invariant failed";function Sl(t){return"/"===t.charAt(0)?t:"/"+t}function Ol(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function Tl(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function Al(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function Nl(t,e,n,r){var i;"string"==typeof t?(i=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),i.state=e):(void 0===(i=wl({},t)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=xl(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function Pl(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"==typeof t?t(e,n):t;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}var jl=!("undefined"==typeof window||!window.document||!window.document.createElement);function Ll(t,e){e(window.confirm(t))}var Il="popstate",Dl="hashchange";function Ml(){try{return window.history.state||{}}catch(t){return{}}}function Rl(t){void 0===t&&(t={}),jl||function(t,e){if(!t){if(El)throw new Error(Cl);var n="function"==typeof e?e():e,r=n?"".concat(Cl,": ").concat(n):Cl;throw new Error(r)}}(!1);var e,n=window.history,r=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=t,a=o.forceRefresh,s=void 0!==a&&a,u=o.getUserConfirmation,l=void 0===u?Ll:u,c=o.keyLength,f=void 0===c?6:c,d=t.basename?Tl(Sl(t.basename)):"";function p(t){var e=t||{},n=e.key,r=e.state,i=window.location,o=i.pathname+i.search+i.hash;return d&&(o=Ol(o,d)),Nl(o,r,n)}function h(){return Math.random().toString(36).substr(2,f)}var v=Pl();function m(t){wl(T,t),T.length=n.length,v.notifyListeners(T.location,T.action)}function g(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||w(p(t.state))}function y(){w(p(Ml()))}var b=!1;function w(t){if(b)b=!1,m();else{v.confirmTransitionTo(t,"POP",l,(function(e){e?m({action:"POP",location:t}):function(t){var e=T.location,n=k.indexOf(e.key);-1===n&&(n=0);var r=k.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(b=!0,E(i))}(t)}))}}var _=p(Ml()),k=[_.key];function x(t){return d+Al(t)}function E(t){n.go(t)}var C=0;function S(t){1===(C+=t)&&1===t?(window.addEventListener(Il,g),i&&window.addEventListener(Dl,y)):0===C&&(window.removeEventListener(Il,g),i&&window.removeEventListener(Dl,y))}var O=!1;var T={length:n.length,action:"POP",location:_,createHref:x,push:function(t,e){var i="PUSH",o=Nl(t,e,h(),T.location);v.confirmTransitionTo(o,i,l,(function(t){if(t){var e=x(o),a=o.key,u=o.state;if(r)if(n.pushState({key:a,state:u},null,e),s)window.location.href=e;else{var l=k.indexOf(T.location.key),c=k.slice(0,l+1);c.push(o.key),k=c,m({action:i,location:o})}else window.location.href=e}}))},replace:function(t,e){var i="REPLACE",o=Nl(t,e,h(),T.location);v.confirmTransitionTo(o,i,l,(function(t){if(t){var e=x(o),a=o.key,u=o.state;if(r)if(n.replaceState({key:a,state:u},null,e),s)window.location.replace(e);else{var l=k.indexOf(T.location.key);-1!==l&&(k[l]=o.key),m({action:i,location:o})}else window.location.replace(e)}}))},go:E,goBack:function(){E(-1)},goForward:function(){E(1)},block:function(t){void 0===t&&(t=!1);var e=v.setPrompt(t);return O||(S(1),O=!0),function(){return O&&(O=!1,S(-1)),e()}},listen:function(t){var e=v.appendListener(t);return S(1),function(){S(-1),e()}}};return T}var ql,Bl;var Fl=0;function zl(t){if("/"!==t.createHref({pathname:"/"}))throw new Jn("Expected a history without a preconfigured basename. For further details, see: https://www.scrivito.com/js-sdk/useHistory");if(t!==ql){var e=!ql;!function(t){Bl&&Bl();Bl=t.listen($l)}(t),ql=t,e||$l()}}function Ul(){var t=Ql().location;return""+t.pathname+t.search+t.hash}function Hl(){return""+Da().origin+Ul()}function Wl(t){return Ql().push(t)}function Vl(t){return Ql().replace(t)}function Kl(){ql||zl(Rl())}function Ql(){return Kl(),ql}function $l(){Fl++,Gl().set(Fl)}function Gl(){return Bi.subState("historyChangesCount")}var Zl,Yl={},Xl=new lr;function Jl(){var t=So(void 0,(function(){return na(qu())}))||"";t!==Zl&&(Yl={},Zl=t)}var tc=function(){return tc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},tc.apply(this,arguments)},ec=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const nc=function(){function t(t,e){var n={};e._scrivitoPrivateSchema&&Mt(n,e._scrivitoPrivateSchema.attributes),t.attributes&&Ze(t.attributes,(function(t,e){n[e]=function(t){if("string"==typeof t)return[t];return[t[0],ic(t[1])]}(t)}));var r=t.onlyInside;this.definition=tc(tc({},t),r?{attributes:n,onlyInside:G(r)?r:[r]}:{attributes:n})}return t.forInstance=function(t){return this.forClass(t.constructor)},t.forClass=function(t){return t._scrivitoPrivateSchema},t.basicFieldFor=function(e,n){var r=t.forInstance(e);if(r){var i=r.attributes[n];if(i)return new Vs(e._scrivitoPrivateContent,n,i)}},Object.defineProperty(t.prototype,"attributes",{get:function(){return this.definition.attributes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.definition.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onlyInside",{get:function(){return this.definition.onlyInside},enumerable:!1,configurable:!0}),t.prototype.isBinary=function(){var t=this.definition.attributes.blob;return!!t&&"binary"===t[0]},t}();function rc(t){return!(!t||!t._scrivitoPrivateSchema)}function ic(t){if(!("only"in t))return t;var e=t.only,n=ec(t,["only"]),r="string"==typeof e?[e]:e;return tc(tc({},n),{validClasses:r})}function oc(t,e){if(G(e))return Ye(e,(function(e){return oc(t,e)}));if(e instanceof rl)return ac(e,t.objClassFor(e.objClass()));if(e instanceof Uu){var n=e.objClass();return ac(e,t.widgetClassFor(n))}if(e instanceof fl){var r=Object.create(t.defaultClassForLinks.prototype);return r._scrivitoPrivateContent=e,r}return e}function ac(t,e){var n=Object.create(e.prototype);return n._scrivitoPrivateContent=t,n}function sc(t){return G(t)?Ye(t,sc):t&&t._scrivitoPrivateContent?t._scrivitoPrivateContent:t}function uc(t,e,n){return ee(t,(function(t,r){if(Tr(r))return[t];var i=e.attributes[r];if(!i)throw new Jn('Attribute "'+r+'" is not defined for CMS object class "'+n+'".');return[sc(t),i]}))}var lc=function(){function t(t){this._registry=t}return t.prototype.getObj=function(t,e){var n=rl.get(e);return this._checkObjClassAndWrapInAppClass(t,n)},t.prototype.getObjIncludingDeleted=function(t,e){var n=rl.getIncludingDeleted(e);return this._checkObjClassAndWrapInAppClass(t,n)},t.prototype.read=function(t,e){var n=nc.basicFieldFor(t,e);if(!n)return null;var r=n.get();return oc(this._registry,r)},t.prototype.update=function(t,e){var n=this._registry.objClassNameFor(t.constructor);if(!n){var r=void 0;throw r=t.constructor===this._registry.defaultClassForObjs?"Obj":"Widget",new Jn('Updating is not supported on the base class "'+r+'".')}if(e.constructor!==Object)throw new Jn("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");var i=uc(e,nc.forInstance(t),n);t._scrivitoPrivateContent.update(i)},t.prototype.wrapInAppClass=function(t){return oc(this._registry,t)},t.prototype._checkObjClassAndWrapInAppClass=function(t,e){if(!e)return null;var n=this._registry.objClassNameFor(t);if(n&&n!==e.objClass())throw new er('Obj with id "'+e.id()+'" is not of type "'+n+'".');return this.wrapInAppClass(e)},t}();const cc=lc;function fc(t){return function(){function e(){}return e.prototype.id=function(){return this._scrivitoPrivateContent.id()},e.prototype.objClass=function(){return this._scrivitoPrivateContent.objClass()},e.prototype.finishSaving=function(){return this._scrivitoPrivateContent.finishSaving()},e.prototype.get=function(e){if(!xr(e))throw new Jn("Attribute names have to be in camel case.");if(Tr(e))throw new Jn('Attribute name "'+e+'" is not a valid custom attribute name.');return t.read(this,e)},e.prototype.update=function(e){t.update(this,e)},e}()}function dc(t,e,n,r){var i={};return Object.keys(n.definition.attributes).forEach((function(n){if(!Object.prototype.hasOwnProperty.call(t,n)){var o=e.initialContentFor(r,n);void 0!==o&&(i[n]=o)}})),i}var pc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function hc(t){var e=new cc(t);function n(e,n){var r=new t.ObjSearch;return e&&r.and("_objClass","equals",e),n&&r._scrivitoPrivateContent.batchSize(n),r}function r(e){return oc(t,e)}var i=function(i){function o(){return null!==i&&i.apply(this,arguments)||this}return pc(o,i),o.get=function(t){return e.getObj(this,t)},o.getIncludingDeleted=function(t){return e.getObjIncludingDeleted(this,t)},o.getByPath=function(t){return r(rl.getByPath(t))},o.getByPermalink=function(t){return r(rl.getByPermalink(t))},o.all=function(){return n(t.objClassNameFor(this),1e3)},o.root=function(){return r(rl.root())},o.where=function(e,r,i,o){return void 0===o&&(o=null),n(t.objClassNameFor(this)).and(e,r,i,o)},o.create=function(t){void 0===t&&(t={}),vc(t,this._appClassName());var e=this._prepareAttributesForCreate(t);return r(rl.create(e))},o.createFromFile=function(t,e){void 0===e&&(e={}),function(t){if(!Or.is(t)){if(Sr.is(t))throw new Jn('Creating CMS objects from file is only available with instances of "File", but an instance of "Blob" is given');throw new Jn('Creating CMS objects from file is only available with instances of "File"')}}(t),function(t,e,n){if(vc(t,e),Object.prototype.hasOwnProperty.call(t,"blob"))throw new Jn('Setting attribute "blob" is not allowed when creating CMS objects from file, because the file will be assigned to that attribute');if(!n.isBinary())throw new Jn('Creating CMS objects from file is only available for classes with a binary attribute "blob"')}(e,this._appClassName(),this._schema());var n=this._prepareAttributesForCreate(e);return rl.createFromFile(t,n).then((function(t){return r(t)}))},o.prototype.lastChanged=function(){return this._scrivitoPrivateContent.lastChanged()},o.prototype.path=function(){return this._scrivitoPrivateContent.path()},o.prototype.parent=function(){return r(this._scrivitoPrivateContent.parent())},o.prototype.ancestors=function(){return r(this._scrivitoPrivateContent.ancestors())},o.prototype.backlinks=function(){return r(this._scrivitoPrivateContent.backlinks())},o.prototype.children=function(){return r(this._scrivitoPrivateContent.children())},o.prototype.orderedChildren=function(){return r(this._scrivitoPrivateContent.orderedChildren())},o.prototype.permalink=function(){return this._scrivitoPrivateContent.permalink()},o.prototype.slug=function(){return this._scrivitoPrivateContent.slug()},o.prototype.isBinary=function(){var t=nc.forInstance(this);return!!t&&t.isBinary()},o.prototype.isRestricted=function(){return this._scrivitoPrivateContent.isRestricted()},o.prototype.contentLength=function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0},o.prototype.contentType=function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():""},o.prototype.contentUrl=function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():""},o.prototype.metadata=function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new ku},o.prototype.restrict=function(){this._scrivitoPrivateContent.restrict()},o.prototype.unrestrict=function(){this._scrivitoPrivateContent.unrestrict()},o.prototype.widget=function(t){return r(this._scrivitoPrivateContent.widget(t))},o.prototype.widgets=function(){return r(this._scrivitoPrivateContent.widgets())},o.prototype.destroy=function(){this._scrivitoPrivateContent.destroy()},o._prepareAttributesForCreate=function(e){var n=this._schema(),r=this._appClassName(),i=dc(e,t,n,r);return uc(Mt({},e,i,{_objClass:r}),n,r)},o._appClassName=function(){return t.objClassNameFor(this)},o._schema=function(){return nc.forClass(this)},o}(fc(e));return i}function vc(t,e){if(!e)throw new Jn("Creating CMS objects is not supported for the class Obj or abstract classes.");if(t.constructor!==Object)throw new Jn("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(t._objClass)throw new Jn('Invalid attribute "_objClass". "'+t._objClass+'.create" will automatically set the CMS object class correctly.')}var mc=function(){function t(t,e){this._registry=t,this._basicObjFacetValue=e}return t.prototype.name=function(){return this._basicObjFacetValue.name()},t.prototype.count=function(){return this._basicObjFacetValue.count()},t.prototype.includedObjs=function(){var t=this._basicObjFacetValue.includedObjs();return oc(this._registry,t)},t}();const gc=mc;function yc(t){return G(t)?t.map((function(t){return sc(t)})):sc(t)}var bc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function wc(t){return function(e){function n(n){void 0===n&&(n={});var r=e.call(this)||this,i=nc.forInstance(r),o=t.objClassNameFor(r.constructor),a=r._prepareAttributesForConstructor(n,i,o),s=new Uu(a);return s.onDidPersist((function(e){var n=oc(t,e),r=dc(a,t,i,o);n.update(r)})),r._scrivitoPrivateContent=s,r}return bc(n,e),n.prototype.obj=function(){var e=this._scrivitoPrivateContent.obj();return oc(t,e)},n.prototype.copy=function(){var e=t.widgetClassFor(this.objClass());return ac(this._scrivitoPrivateContent.copy(),e)},n.prototype.destroy=function(){this._scrivitoPrivateContent.remove()},n.prototype._prepareAttributesForConstructor=function(t,e,n){return function(t,e){if(!t)throw new Jn("Creating widgets is not supported for the class Widget or abstract classes.");if(e.constructor!==Object)throw new Jn("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(e._objClass)throw new Jn('Invalid attribute "_objClass". "new '+e._objClass+'" will automatically set the CMS object class correctly.')}(n,t),uc(Mt({},t,{_objClass:n}),e,n)},n}(fc(new cc(t)))}var _c=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var kc=["hash","obj","query","rel","target","title","url"];function xc(t){return function(t){var n=Ln.apply(e,_c([ct(t)],kc));if(!ft(n))throw new Jn("Unexpected attributes "+Qn(n)+". Available attributes: "+Qn(kc))}(t),Qt(t,"obj")?Mt({},t,{objId:Ec(t.obj)}):t}function Ec(t){return t?sc(t).id():null}var Cc=function(){function t(){this.mapping={},this.defaultClassForObjs=hc(this),this.defaultClassForWidgets=wc(this),this.defaultClassForLinks=function(t){return function(){function e(t){var e=xc(t);this._scrivitoPrivateContent=new fl(e)}return e.prototype.title=function(){return this._scrivitoPrivateContent.title()},e.prototype.query=function(){return this._scrivitoPrivateContent.query()},e.prototype.hash=function(){return this._scrivitoPrivateContent.hash()},e.prototype.rel=function(){return this._scrivitoPrivateContent.rel()},e.prototype.target=function(){return this._scrivitoPrivateContent.target()},e.prototype.url=function(){return this._scrivitoPrivateContent.url()},e.prototype.obj=function(){var e=this._scrivitoPrivateContent.obj();return e?oc(t,e):null},e.prototype.queryParameters=function(){return this._scrivitoPrivateContent.queryParameters()},e.prototype.copy=function(e){var n=this._scrivitoPrivateContent.copy(xc(e)),r=Object.create(t.defaultClassForLinks.prototype);return r._scrivitoPrivateContent=n,r},e.prototype.isExternal=function(){return this._scrivitoPrivateContent.isExternal()},e.prototype.isInternal=function(){return this._scrivitoPrivateContent.isInternal()},e}()}(this),this.ObjSearch=function(t){var e=function(){function e(){this._scrivitoPrivateContent=new nu}return e.prototype.and=function(t,n,r,i){if(t instanceof e){var o=t;this._scrivitoPrivateContent.and(o._scrivitoPrivateContent)}else{if(void 0===n)throw new Jn("Missing operator to search with");if(void 0===r)throw new Jn('Missing value to search (specify "null" for missing)');var a=yc(r),s=t;this._scrivitoPrivateContent.and(s,n,a,i)}return this},e.prototype.andNot=function(t,e,n){var r=yc(n);return this._scrivitoPrivateContent.andNot(t,e,r),this},e.prototype.facet=function(e,n){return this._scrivitoPrivateContent.facet(e,n).map((function(e){return new gc(t,e)}))},e.prototype.first=function(){var e=this._scrivitoPrivateContent.first();return e?oc(t,e):null},e.prototype.take=function(e){return this._scrivitoPrivateContent.take(e).map((function(e){return oc(t,e)}))},e.prototype.toArray=function(){return this._scrivitoPrivateContent.take().map((function(e){return oc(t,e)}))},e.prototype.offset=function(t){return this._scrivitoPrivateContent.offset(t),this},e.prototype.order=function(t,e){return this._scrivitoPrivateContent.order(t,e),this},e.prototype.count=function(){return this._scrivitoPrivateContent.count()},e}();if("function"==typeof Symbol){var n=Symbol.iterator;n&&(e.prototype[n]=function(){var e=this._scrivitoPrivateContent.iterator();return{next:function(){var n=e.next();return n.done?{done:n.done}:{done:n.done,value:oc(t,n.value)}}}})}return e}(this)}return t.prototype.register=function(t,e){this.mapping[t]=e},t.prototype.getClass=function(t){return this.mapping[t]||null},t.prototype.allObjClasses=function(){var t=this;return En(this.mapping,(function(e){return t.defaultClassForObjs.isPrototypeOf(e)}))},t.prototype.allWidgetClasses=function(){var t=this;return En(this.mapping,(function(e){return t.defaultClassForWidgets.isPrototypeOf(e)}))},t.prototype.objClassFor=function(t){return this.appClassFor(t,this.defaultClassForObjs)},t.prototype.widgetClassFor=function(t){return this.appClassFor(t,this.defaultClassForWidgets)},t.prototype.objClassNameFor=function(t){return Fe(this.mapping,(function(e){return e===t}))},t.prototype.setInitialContentFor=function(t){this.initialContentForFunction=t},t.prototype.initialContentFor=function(t,e){if(this.initialContentForFunction)return this.initialContentForFunction(t,e)},t.prototype.appClassFor=function(t,e){var n=this.getClass(t);return n&&e.isPrototypeOf(n)?n:e},t}();const Sc=Cc;var Oc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Tc(t,e){if(e.extend&&!jc(e.extend,t.defaultClassForObjs))throw new Jn('Invalid value for "extend": not a Scrivito Obj class');var n=e.extend||t.defaultClassForObjs,r=new nc(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Oc(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!1,configurable:!0}),e}(n)}function Ac(t,e){if(e.extend&&!jc(e.extend,t.defaultClassForWidgets))throw new Jn('Invalid value for "extend": not a Scrivito Widget class');var n=e.extend||t.defaultClassForWidgets,r=new nc(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Oc(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!1,configurable:!0}),e}(n)}function Nc(t,e,n){var r=function(t,e,n){if(rc(n))return n;var r=Mt({},n,{name:e});return Tc(t,r)}(t,e,n);return t.register(e,r),r}function Pc(t,e,n){var r=function(t,e,n){if(rc(n))return n;var r=Mt({},n,{name:e});return Ac(t,r)}(t,e,n);return t.register(e,r),r}function jc(t,e){return!!t&&(t===e||t.prototype instanceof e)}var Lc=nr.refinement(nr.Function,rc,"ObjClass"),Ic=nr.interface({attributes:nr.maybe(nr.dict(nr.refinement(nr.String,(function(t){return/^[a-z](_+[A-Z0-9]|[A-Za-z0-9])*$/.test(t)}),"String (alphanumeric, starting with a lower-case character)"),nr.union([nr.enums.of(["binary","date","float","html","integer","link","linklist","reference","referencelist","string","stringlist","widgetlist"]),nr.tuple([nr.enums.of(["enum","multienum"]),nr.interface({values:nr.list(nr.String)})]),nr.tuple([nr.enums.of(["reference","referencelist"]),nr.interface({only:nr.union([nr.String,nr.list(nr.String)])})]),nr.tuple([nr.enums.of(["widgetlist"]),nr.interface({only:nr.union([nr.String,nr.list(nr.String)])})])]),"Attributes Specification")),extend:nr.maybe(Lc)}),Dc=nr.refinement(nr.Function,rc,"WidgetClass"),Mc=nr.interface({attributes:Ic.meta.props.attributes,extend:nr.maybe(Dc),onlyInside:nr.maybe(nr.union([nr.String,nr.Array]))}),Rc=sr("createObjClass",[["options",Ic]],{docPermalink:"js-sdk/createObjClass"}),qc=sr("createWidgetClass",[["options",Mc]],{docPermalink:"js-sdk/createWidgetClass"}),Bc=nr.union([Ic,Lc]),Fc=sr("provideObjClass",[["name",nr.String],["objClassOrDefinition",Bc]],{docPermalink:"js-sdk/provideObjClass"}),zc=nr.union([Dc,Mc]),Uc=sr("provideWidgetClass",[["name",nr.String],["widgetClassOrDefinition",zc]],{docPermalink:"js-sdk/provideWidgetClass"});var Hc=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Wc=function(){function t(){this._registry=new Sc,this.appModelAccessor=new cc(this._registry)}return t.init=function(e){var n=new t;return e.Obj=n.Obj,e.Widget=n.Widget,e.Link=n.Link,e.ObjSearch=n.ObjSearch,e.appModelAccessor=n.appModelAccessor,e.provideObjClass=function(t,e){return n.provideObjClass(t,e)},e.provideWidgetClass=function(t,e){return n.provideWidgetClass(t,e)},e.createObjClass=function(t){return n.createObjClass(t)},e.createWidgetClass=function(t){return n.createWidgetClass(t)},e.getClass=function(t){return n.getClass(t)},e.allObjClasses=function(){return n.allObjClasses()},e.allWidgetClasses=function(){return n.allWidgetClasses()},e._privateRealm=n,n},Object.defineProperty(t.prototype,"Obj",{get:function(){return this._registry.defaultClassForObjs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Widget",{get:function(){return this._registry.defaultClassForWidgets},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Link",{get:function(){return this._registry.defaultClassForLinks},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ObjSearch",{get:function(){return this._registry.ObjSearch},enumerable:!1,configurable:!0}),t.prototype.provideObjClass=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return Fc.apply(void 0,Hc([t,e],n)),Nc(this._registry,t,e)},t.prototype.provideWidgetClass=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return Uc.apply(void 0,Hc([t,e],n)),Pc(this._registry,t,e)},t.prototype.createObjClass=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Rc.apply(void 0,Hc([t],e)),Tc(this._registry,t)},t.prototype.createWidgetClass=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return qc.apply(void 0,Hc([t],e)),Ac(this._registry,t)},t.prototype.getClass=function(t){return this._registry.getClass(t)},t.prototype.allObjClasses=function(){return this._registry.allObjClasses()},t.prototype.allWidgetClasses=function(){return this._registry.allWidgetClasses()},t.prototype.setInitialContentFor=function(t){this._registry.setInitialContentFor(t)},t}();const Vc=Wc;var Kc=nr.list(nr.union([nr.Function,nr.list(nr.union([nr.String,nr.Function,nr.Object]))]));var Qc=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},$c={};function Gc(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];nf.apply(void 0,Qc([t,e],n)),$c[t]=e}function Zc(t,e){var n=$c[t];if(n)return n[e]}var Yc=nr.struct({value:nr.String,title:nr.String}),Xc=nr.dict(nr.String,nr.struct({title:nr.maybe(nr.String),description:nr.maybe(nr.String),values:nr.maybe(nr.list(Yc))})),Jc=nr.list(nr.struct({title:nr.String,component:nr.maybe(nr.String),properties:nr.maybe(nr.list(nr.String))})),tf=nr.dict(nr.String,nr.union([fu,nr.Date,nr.Function,nr.Nil,nr.Number,nr.String,nr.list(fu),nr.list(cu),nr.list(nr.String)])),ef=nr.struct({attributes:nr.maybe(Xc),propertiesGroups:nr.maybe(Jc),title:nr.maybe(nr.String),description:nr.maybe(nr.String),thumbnail:nr.maybe(nr.String),titleForContent:nr.maybe(nr.Function),descriptionForContent:nr.maybe(nr.Function),hideInSelectionDialogs:nr.maybe(nr.Boolean),properties:nr.maybe(nr.list(nr.String)),initialContent:nr.maybe(tf),validations:nr.maybe(Kc)}),nf=sr("provideEditingConfig",[["className",nr.String],["editingConfig",ef]],{docPermalink:"js-sdk/provideEditingConfig"});function rf(t,e){var n,r=Zc(t,"initialContent");if(r){var i=r[e];if(H(i))return i();if(G(n=i)&&rn(n,of)){var o=cf();return i.map((function(t){var e=t._scrivitoPrivateContent.copy();return oc(o,e)}))}return i}}function of(t){return t._scrivitoPrivateContent&&t._scrivitoPrivateContent instanceof Uu}function af(t){var e=t.objClass(),n=lf().getClass(e)._scrivitoPrivateSchema,r={};Ze(n.attributes,(function(n,i){if(ft(t.get(i,n))){var o=rf(e,i);o&&(r[i]=o)}}));var i=uc(r,n,e);t.update(i)}var sf,uf={};function lf(){return uf}function cf(){return lf()._privateRealm._registry}function ff(t){sf=t}function df(){return sf?sf():null}Vc.init(uf).setInitialContentFor(rf);var pf,hf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vf=function(t){function e(e){return t.call(this,e)||this}return hf(e,t),e}(Xn);function mf(){return!!pf}function gf(t){var e=pf(oc(cf(),t));return"string"==typeof e&&e.length>0?e:null}function yf(t){if(!pf)throw new vf("Scrivito.unstable_selectSiteId is only available in the multi-site mode");if(bf())throw new vf("Scrivito.unstable_selectSiteId can be called only once");if("string"!=typeof t||!t)throw new vf("Scrivito.unstable_selectSiteId can only be called with a non-empty string");_f().set(t)}function bf(){if(!pf)throw new tr("Calling getSelectedSiteId is only available in multi-site mode");return _f().get()||null}function wf(t){if(!bf())throw new vf("Used "+t+" in the multi-site mode, but the site ID is not yet selected. Forgot to use Scrivito.unstable_selectSiteId?")}function _f(){return Bi.subState("selectedSiteId")}function kf(t){if(!(t instanceof rl))throw new Jn("Parameter obj needs to be a BasicObj.");if(function(t){var e=So(null,df);if(!e)return!1;return e.id()===t.id()}(t))return"/";var e=t.permalink();if(e){if(!mf())return Ef(t,e);if(wf("routing-related API (e.g. Scrivito.navigateTo)"),function(t){var e=gf(t),n=bf();return!e||e===n}(t))return Ef(t,e)}var n=function(t){var e=cf(),n=oc(e,t);if(function(t){var e=t;return e.slug&&"function"==typeof e.slug}(n)){var r=n.slug();if("string"==typeof r)return r}}(t);return n?"/"+n+"-"+t.id():"/"+t.id()}function xf(t){var e=t.replace(new RegExp("^/+|/+$","g"),"");if(""===e)return df();var n=function(t){if(t.length<16)return null;if(t.length>16&&"-"!==t.slice(-17,-16))return null;var e=t.slice(-16);if(e.match(/[^0-9a-f]/))return null;return e}(e);return n?rl.get(n):function(t){var e=function(t){if(!Xl.current())return Jl(),Yl[t]}(t);if(e)return rl.get(e);if(mf())return function(t){wf("routing-related API (e.g. Scrivito.currentPage, Scrivito.urlFor)");var e=bf(),n=rl.getAllByPermalink(t);return $e(n,(function(t){var n=gf(t);return!n||n===e}))||null}(t);return rl.getByPermalink(t)}(e)}function Ef(t,e){return function(t,e){Xl.current()||(Jl(),Yl[e]=t)}(t.id(),e),"/"+e}var Cf="",Sf=!1;function Of(t){var e=t.obj,n=t.queryParameters,r=t.hash,i=t.origin;Pf("generateUrl");var o=jf({path:kf(e),queryParameters:n,hash:r});return i&&o.origin(i),o.toString()}function Tf(t){var e=t.path;return Pf("generatePath"),jf({path:e})}function Af(t){Pf("recognize");var e="string"==typeof t?pa(t):t,n=function(t){if(Nf(t))return function(t){var e=t.path();if(e.substring(0,Cf.length)!==Cf)return null;return e.substring(Cf.length)}(t);return null}(e),r=e.query(!0),i=function(t){var e=t.hash();if(""===e)return null;return e}(e);return I(n)?{path:n,obj:xf(n),queryParameters:r,hash:i}:{path:n,obj:null,queryParameters:r,hash:i}}function Nf(t){return!t.is("absolute")||t.origin()===Lf()}function Pf(t){if(!Sf)throw pr("Error from Scrivito SDK: No application configured, cannot initialize routing."),new tr(t+" can't be called before init.")}function jf(t){var e=t.path,n=t.queryParameters,r=t.hash,i=("/"+Cf+"/"+e).replace(/\/+/g,"/"),o=pa("").pathname(i);return n&&o.query(n),r&&o.hash(r),o}function Lf(){return pa(Da()).origin()}function If(t){vl?vl.navigateToExternalUrl(t):Df(t)}function Df(t){window.location.assign(t)}function Mf(t,e){window.open(t,e)}function Rf(t){vl&&function(t){return Nf(pa(t))}(t)?vl.openInNewUiWindow(t):Mf(t,"_blank")}function qf(t){var e=t.objClass();if(!e)return!1;var n=lf().getClass(e);return!!n&&nc.forClass(n).isBinary()}var Bf=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Ff={type:"not found",page:null},zf={type:"not responsible"};function Uf(){var t=So(void 0,(function(){return new xo({state:Bi.subState("currentPage"),invalidation:function(){return Gl().get()||0},loader:Vf}).get()}));if(t&&Hf(t)&&!rl.get(t.objId))return Ff;return t}function Hf(t){return"page"===t.type}function Wf(t){return"not found"===t.type}function Vf(){return ao((function(){return function(){var t=Ul();return{route:Af(t),location:t}}()})).then(Kf)}function Kf(t){var e=t.route,n=t.location;if(null===e.path)return zf;var r=e.obj;if(!r)return Ff;if(!qf(r)){var i=e.queryParameters,o=(i._scrivito_workspace_id,i._scrivito_editing,i._scrivito_comparison,Bf(i,["_scrivito_workspace_id","_scrivito_editing","_scrivito_comparison"]));return{type:"page",objId:r.id(),queryParameters:o,location:n}}var a=ao((function(){return function(t){var e=t.get("blob",["binary"]),n=e?e.url():null;if(!n)return Ff;return{type:"binary",objId:t.id(),url:n,page:!1}}(r)}));return a.then(Qf),a}function Qf(t){"binary"===t.type&&If(t.url)}function $f(t){var e;return io((function(){return bi(Uf).result}),(function(n){void 0!==n&&(void 0!==e&&function(t,e){if(Hf(t))return!!Hf(e)&&(t.objId===e.objId&&t.location===e.location);if(Hf(e))return!1;return Wf(t)===Wf(e)}(e,n)||(e=n,t(n)))}))}function Gf(t){if(Hf(t)){var e=t.location;ao((function(){if(Ul()===e){var n=Of({obj:rl.get(t.objId)});return pa(e).path(n).toString()}})).then((function(t){if(t){var n=Ul();e===n&&t!==n&&Vl(t)}}))}}function Zf(t){(Hf(t)||Wf(t))&&window.scrollTo(0,0)}var Yf=!1,Xf=!1;function Jf(){var t=function(t){return new pa(t).query(!0)}(Da().href),e=t._scrivito_workspace_id||"published";"string"==typeof e?(Bu(e),"published"!==e&&(Yf=t.hasOwnProperty("_scrivito_editing"),Xf=!Yf&&t.hasOwnProperty("_scrivito_comparison"))):ar(new tr("Expected value of _scrivito_workspace_id to be a string, but it is "+typeof e))}function td(){return Yf}function ed(){return Xf}function nd(){if(!vl)throw new Error("Not expected to be rendered without UI");return vl}function rd(){var t=Ra();t.addEventListener("dragover",(function(t){return function(t){t.dataTransfer.dropEffect="move",t.preventDefault();var e={x:t.pageX,y:t.pageY};nd().dragTo(e)}(t)})),t.addEventListener("drop",(function(){nd().drop()}))}function id(){Ra().addEventListener("dragover",(function(t){var e=t.clientY,n=window.pageXOffset,r=window.pageYOffset;r>0&&e<30?Ba(n,r-25):window.document.body.scrollHeight>r+qa()&&e>qa()-30&&Ba(n,r+25)}))}function od(){jo(ad,(function(t){var e;t.allDataLoaded&&((e=t.result).workspaceId===qu()&&e.inPlaceEditingActive===td()&&e.comparisonActive===ed()||function(t){var e=function(t,e){var n=e.workspaceId,r=e.inPlaceEditingActive,i=e.comparisonActive,o={_scrivito_workspace_id:n};return r?o._scrivito_editing="true":i&&(o._scrivito_comparison="true"),new pa(t).removeSearch(["_scrivito_workspace_id","_scrivito_editing","_scrivito_comparison"]).addSearch(o)}(Hl(),t);Df(e.toString())}(e))}))}function ad(){var t=nd();return{workspaceId:t.currentWorkspaceId(),inPlaceEditingActive:t.isInPlaceEditingActive(),comparisonActive:t.isComparisonActive()}}window.scrivito||(window.scrivito={}),scrivito.registerEditor=function(t){var e=++gl;yl[e]=t;var n=bl(),r=n.get()||[];n.set(ml(r,[e]))},scrivito.openContentBrowser=function(t){if(void 0===t&&(t={}),!vl)throw new Error("Cannot open ContentBrowser without UI present");return vl.openContentBrowser(hl(t))};var sd=function(){function t(t){var e=t.controller;this._controller=e}return t.canEdit=function(t){return!1},t.prototype.onClick=function(t){},t.prototype.contentDidChange=function(){},t.prototype.editorWillBeActivated=function(){},t.prototype.editorWillBeDeactivated=function(){},t.prototype.editorDomWasMounted=function(t){},t.prototype.editorDomWasUnmounted=function(){},t}();const ud=sd;var ld=n(94707),cd=n.n(ld),fd=n(91058),dd=n.n(fd),pd=n(70908);var hd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var vd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hd(e,t),e.create=function(e){var n=t.create.call(this,e);return n.removeAttribute("target"),n},e.prototype.format=function(e,n){return e!==this.statics.blotName||n||this.domNode.removeAttribute("target"),t.prototype.format.call(this,e,n)},e}(dd().import("formats/link")),md=function(t){var e=this,n=t.getModule("scrivitoApi").getTooltip(),r=n.hide.bind(n);n.hide=function(){var i=!n.root.classList.contains("ql-hidden"),o=n.root.classList.contains("ql-editing"),a=n.linkRange||e.lastActiveRange;i&&o&&a&&(n.textbox.value&&t.formatText(a.index,a.length,"link",n.textbox.value,"user"),gd(t,a)),delete e.lastActiveRange,r()};var i=n.root.querySelector("a.ql-svt-browse"),o=n.root.querySelector("a.ql-svt-target");i.addEventListener("click",(function(e){t.getModule("scrivitoInternalLink").fromContentBrowser(),e.preventDefault()})),o.addEventListener("click",(function(e){var r=n.root.getAttribute("data-svt-target")?"":"_blank";n.root.setAttribute("data-svt-target",r),gd(t,n.linkRange),e.preventDefault()})),t.on("selection-change",(function(r){if(r){e.lastActiveRange=r;var i=t.getFormat(r).link,o=t.getModule("scrivitoApi").getLinkRange(r);if(o&&i){var a=t.getFormat(o).target||"";!function(t,e,n){t.linkRange=e,t.root.setAttribute("data-svt-target",n)}(n,o,a)}else!function(t){t.root.setAttribute("data-mode",""),t.root.setAttribute("data-svt-target",""),delete t.linkRange}(n)}}))};function gd(t,e){if(e&&t.getFormat(e).link){var n=t.getModule("scrivitoApi").getTooltip().root.getAttribute("data-svt-target");t.formatText(e.index,e.length,"target",n||"","user")}}dd().register("modules/scrivitoLinkTooltip",md);var yd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bd=dd().import("core/module"),wd=dd().import("formats/link"),_d=function(t){function e(e){var n=t.call(this,e)||this;return n.setHtml=function(t){var n=0===e.history.stack.undo.length,r=e.clipboard;e.setContents(r.convert(t),"silent"),n&&e.history.clear()},n.getTooltip=function(){return e.theme.tooltip},n.getLinkRange=function(t){if(t){var n=e.scroll.scroll.descendant(wd,t.index),r=n[0],i=n[1];return r?{index:t.index-i,length:r.length()}:void 0}},n}return yd(e,t),e}(bd);var kd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xd=function(t){function e(e){var n=t.call(this,e)||this;return n.fromContentBrowser=function(){return function(t){scrivito.openContentBrowser({selection:[],selectionMode:"single"}).then((function(e){if(e.isSelected&&e.selection.length){var n=e.selection[0];t.getModule("scrivitoApi").getTooltip().edit("link","/"+n)}}))}(e)},n}return kd(e,t),e}(dd().import("core/module"));dd().register("modules/scrivitoInternalLink",xd);var Ed=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cd=dd().import("themes/bubble"),Sd=dd().import("themes/snow"),Od=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.snowTheme=new Sd(e,n),r}return Ed(e,t),e.prototype.extendToolbar=function(e){this.snowTheme.extendToolbar(e),this.snowTheme.tooltip.root.classList.add("ql-svt-tooltip-snow"),t.prototype.extendToolbar.call(this,e),this.tooltip.root.classList.add("ql-svt-tooltip-bubble"),this.tooltip=this.snowTheme.tooltip,this.tooltip.textbox.setAttribute("data-link","Paste or type a link"),this.tooltip.textbox.insertAdjacentHTML("beforebegin",Td),this.tooltip.textbox.insertAdjacentHTML("afterend",Ad)},e}(Cd),Td='\n <a class="ql-svt ql-svt-browse" title="Browse">\n <i class="scrivito_icon scrivito_icon_content_browser"></i>\n </a>\n',Ad='\n <a class="ql-svt ql-svt-target" title="Open link in new tab">\n <i class="scrivito_icon scrivito_icon_new_window"></i>\n <i class="scrivito_icon scrivito_icon_ok"></i>\n </a>\n';dd().register("themes/scrivito",Od);var Nd,Pd,jd=function(t){t.on("selection-change",(function(e){if(t.root.parentElement){var n=!t.getModule("scrivitoApi").getTooltip().root.classList.contains("ql-hidden"),r=e&&e.length>0;t.root.parentElement.setAttribute("data-scrivito-ql-tools",r||n?"visible":"")}}))};dd().register({"formats/target":(Nd=dd().import("parchment"),Pd=new Nd.Attributor.Attribute("target","target",{scope:Nd.Scope.INLINE}),Pd)}),dd().register(vd,!0),dd().register("modules/scrivitoApi",_d),dd().register("modules/scrivitoZIndex",jd);const Ld=function(t,e){var n=document.createElement("div");n.classList.add("ql-svt-container"),t.appendChild(n);var r=new(dd())(n,{formats:["blockquote","bold","code","code-block","header","image","indent","italic","link","list","script","strike","target","underline","video"],modules:{scrivitoApi:!0,scrivitoInternalLink:!0,scrivitoLinkTooltip:!0,scrivitoZIndex:!0,toolbar:{container:["bold","italic",window.ScrivitoEditors&&window.ScrivitoEditors._config&&window.ScrivitoEditors._config.showHtmlEditorCodeButton?"code":void 0,"link",{header:2},{header:3},{list:"bullet"},{list:"ordered"}]}},placeholder:"Click to edit",theme:"scrivito"});return r.getModule("scrivitoApi").setHtml(e.getContent()),r.on("text-change",(function(){return e.setContent(function(t){if("\n"===t.getText())return"";var e=t.getContents().ops;return new pd.Ss(e,{linkTarget:"",multiLineParagraph:!1}).convert()}(r))})),r};const Id=function(t){t.getAttribute("data-scrivito-editors-placeholder")||t.setAttribute("data-scrivito-editors-placeholder","Click to edit")};var Dd=n(93392),Md=n.n(Dd);const Rd=function(){function t(t,e){this.domNode=t,this.controller=e}return t.prototype.content=function(){return this.controller.getContent()},t.prototype.idFromPath=function(t){if(t.match(/^objid:/))return t.replace(/^objid:/,"")},t.prototype.edQuery=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Md().apply(void 0,t)},t.prototype.jQueryElement=function(){return this.edQuery(this.domNode)},t.prototype.pathForId=function(t){return"objid:"+t},t.prototype.save=function(t){this.controller.setContent(t);var e={done:function(t){return t(),e}};return e},t.prototype.trigger=function(){},t}();var qd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qd(e,t),e.canEdit=function(t){return"html"===t.type},e.prototype.contentDidChange=function(){this._updateContent&&this._updateContent()},e.prototype.editorWillBeActivated=function(){this._controller.setDomMode("Replace")},e.prototype.editorDomWasMounted=function(t){var e=this;if(Id(t),"yes"===window.top.localStorage.getItem("__scrivito_enable_quill")){var n=Ld(t,this._controller);this._updateContent=function(){var t=n.getSelection();n.getModule("scrivitoApi").setHtml(e._controller.getContent()),n.hasFocus()&&n.setSelection(t)}}else{t.innerHTML=this._controller.getContent();var r=new Rd(t,this._controller),i=cd()(r);this._updateContent=function(){var n=i.exportSelection();t.innerHTML=e._controller.getContent(),i.importSelection(n)}}},e.prototype.editorDomWasUnmounted=function(){this._updateContent=void 0},e}(ud);const Fd=Bd;var zd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ud=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zd(e,t),e.canEdit=function(t){return"reference"===t.type},e.prototype.onClick=function(t){var e=this;scrivito.openContentBrowser({selection:this.currentSelection(),selectionMode:"single",validObjClasses:this._controller.validObjClasses()}).then((function(t){t.isSelected&&e._controller.setContent(t.selection[0]||null)}))},e.prototype.currentSelection=function(){var t=this._controller.getContent();return t?[t.id()]:[]},e}(ud);const Hd=Ud;function Wd(t,e){var n=e.jQueryElement();switch(t.keyCode||t.which){case 13:$d(n)||(t.preventDefault(),n.blur());break;case 27:t.stopPropagation(),n.blur()}}function Vd(t){!function(t){var e=document.getSelection();if(!e.anchorNode||!e.focusNode)return;t.find(e.anchorNode).addBack(e.anchorNode).length&&t.find(e.focusNode).addBack(e.focusNode).length||e.selectAllChildren(t[0])}(t.jQueryElement())}function Kd(t){var e,n=(Qd(e=t.jQueryElement()),e[0].innerText.replace(/\r\n/g,"\n").replace(/\n+$/,""));return t.save(n).done((function(){return t.trigger("scrivito_editors:save")}))}function Qd(t){var e=function(t){var e=t.data("scrivito_editors_siblings_before_edit"),n=t.siblings(),r=!e||n.filter(e).length<e.length;if(r)return t.data("scrivito_editors_siblings_before_edit",n);return t.siblings().addBack().not(e)}(t),n=e.not(t);n.length>0&&(n.remove(),t.text(e.text()))}function $d(t){return!0===t.data("scrivitoEditorsMultiline")||!1!==t.data("scrivitoEditorsMultiline")&&t.css("white-space").match(/pre/)}function Gd(t){if($d(t)&&!t.data("scrivito_editors_prepared_for_editing")){t.data("scrivito_editors_prepared_for_editing",!0);var e=t.html(),n=e.replace(/\r?\n/g,"<br />");e!==n&&t.html(n)}}const Zd=function(t){var e=t.jQueryElement();e.attr("contenteditable","true").blur((function(){return function(t){Kd(t).done((function(){return t.trigger("scrivito_editors:blur")})),function(t){var e=t.jQueryElement();e.data("scrivito_editors_prepared_for_editing",!1),e.text(t.content())}(t),Gd(t.jQueryElement())}(t)})).click((function(){return Vd(t)})).focus((function(){return function(t){Gd(t.jQueryElement())}(t)})).keypress((function(e){return Wd(e,t)})).keyup((function(e){return Wd(e,t)})),"false"!==e.attr("data-scrivito-editors-autosave")&&e.on("cut input keypress keyup paste",(function(){return function(t){Kd(t)}(t)})),Gd(e),e.on("click",(function(t){e.attr("contenteditable","true"),Qd(e),t.timeStamp-e.data("scrivito_editors_last_click")>=300&&t.preventDefault(),e.data("scrivito_editors_last_click",t.timeStamp)}))};var Yd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Yd(e,t),e.canEdit=function(t){return"string"===t.type},e.prototype.contentDidChange=function(){this._setCurrentContent()},e.prototype.editorWillBeActivated=function(){this._controller.setDomMode("Replace")},e.prototype.editorDomWasMounted=function(t){this._currentDomNode=t,Id(t);var e=new Rd(t,this._controller);this._setCurrentContent(),Zd(e)},e.prototype.editorDomWasUnmounted=function(){this._currentDomNode=void 0},e.prototype._setCurrentContent=function(){this._currentDomNode&&(this._currentDomNode.textContent=this._controller.getContent())},e}(ud);const Jd=Xd;var tp,ep={descriptionForObj:Lo,getClasses:Lo,getContentBrowserConfiguration:Lo,getHomepageId:Lo,getSiteIdForObj:Lo,replaceInternalLinks:Lo,titleForObj:Lo,titleForWidget:Lo,getElementBoundaries:Lo,getContentZoneData:Lo,getCustomComponentDimensions:Lo,getScrollPosition:Lo,getApplicationUrl:Lo,getCurrentPageId:Lo,executeCustomCommand:Io,initializeContentForObj:Io,initializeContentForWidget:Io,navigateTo:Io,resolveUrl:Io,showCustomComponent:Io,urlFor:Io};function np(t,e){!function(t,e){void 0===e&&(e=window.document);var n=e.createElement("link");n.rel="stylesheet",n.href=t,mr(e.head,n)}(t+"/scrivito_editing.css",e),vr(t+"/scrivito_editing.js",e)}var rp=function(){return rp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},rp.apply(this,arguments)};function ip(t,e){return void 0===e&&(e={}),up(t),ap(t,{origin:e.origin||Lf(),query:e.query,hash:e.hash})}function op(t,e){return up(t),ap(t,e)}function ap(t,e){return t instanceof fl?function(t,e){void 0===e&&(e={});if(t.isExternal())return t.url();var n=t.obj();if(!n)throw new Jn("Missing link target.");var r=rp({},e);e.queryParameters||"string"==typeof e.query||(r.query=t.query()||void 0);"string"!=typeof e.hash&&(r.hash=t.hash()||void 0);return sp(n,r)}(t,e):t instanceof Su?lp(t):sp(t,e)}function sp(t,e){return qf(t)?function(t,e){var n=t.get("blob",["binary"]);if(n)return lp(n);return cp(t,e)}(t,e):cp(t,e)}function up(t){if(!t)throw new Jn("Missing target.");if(!(t instanceof fl||t instanceof rl||t instanceof Su))throw new Jn("Target is invalid. Valid targets are instances of Obj or Link.")}function lp(t){return t.url()}function cp(t,e){void 0===e&&(e={});var n=e.origin,r=e.query,i=e.queryParameters,o=e.hash;return Of({obj:t,origin:n,queryParameters:i||r&&Ks(r)||void 0,hash:o})}var fp,dp=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function pp(t,e){for(var n,r,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return aa("Scrivito.urlFor"),mp.apply(void 0,dp([t,e],i)),e&&(n=e.query,r=e.hasOwnProperty("hash")?e.hash:e.fragment),ip(sc(t),{origin:fp,query:n,hash:r})}var hp=nr.union([lu,fu,pu]),vp=nr.struct({query:nr.maybe(nr.String),hash:nr.maybe(nr.String),fragment:nr.maybe(nr.String)}),mp=sr("urlFor",[["target",hp],["options",nr.maybe(vp)]],{docPermalink:"js-sdk/urlFor"}),gp=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},yp=0;function bp(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=++yp;if(Zi("navigateTo"),null!==t){var o,a;if(Op.apply(void 0,gp([t,e],n)),e){var s=Cn(e,"hash","params");Tp(t,s),o=Mt(s,e.params||{}),a=e.hash}ao((function(){return H(t)?t():t})).then((function(t){var e=function(t,e,n){Ap(t);var r=sc(t);if(r instanceof rl)return ao((function(){return _p(r,e,n||null)}));if(r instanceof fl)return ao((function(){return function(t,e,n){if(t.isExternal())return{url:t.url()};var r,i=n||t.hash();r=e&&!ft(e)?e:t.queryParameters();var o=t.obj();if(!o){var a=t.objId();return a?{objId:a,queryParameters:r,hash:i}:{}}return _p(o,r,i)}(r,e,n||null)})).then(wp)}(t,o,a);if(e)return e.then((function(t){yp===i&&function(t){kp(t)?function(t){var e=Of(t),n=Ul();e===n?Vl(e):Wl(e)}(t):xp(t)?If(t.url):function(t){var e=t.objId;if(t.isBinary){ar(new Jn("The target provided to navigateTo leads to the binary obj "+e+" which has no binary data."))}else{var n=Tf({path:e});t.queryParameters&&n.query(t.queryParameters),t.hash&&n.hash(t.hash),Wl(n.resource())}}(t)}(t)}))})).catch((function(t){yp===i&&ar(t)}))}else or((function(){return Op.apply(void 0,gp([t,e],n))}))}function wp(t){if(kp(t)||xp(t)||function(t){return!!t.objId}(t))return t;throw new Jn("The link provided to navigateTo has no destination.")}function _p(t,e,n){if(qf(t)){var r=t.get("blob",["binary"]);return r?{url:r.url()}:{isBinary:!0,objId:t.id(),queryParameters:e,hash:n}}return{obj:t,queryParameters:e,hash:n}}function kp(t){return!!t.obj}function xp(t){return!!t.url}var Ep=nr.union([lu,fu]),Cp=nr.union([nr.Function,Ep]),Sp=nr.dict(nr.String,nr.maybe(nr.union([nr.String,nr.list(nr.String),nr.Nil]))),Op=sr("navigateTo",[["target",Cp],["options",nr.maybe(nr.struct({hash:nr.maybe(nr.String),params:nr.maybe(Sp)},{strict:!1}))]],{docPermalink:"js-sdk/navigateTo"}),Tp=sr("navigateTo",[["target",Cp],["options",nr.maybe(Sp)]],{docPermalink:"js-sdk/navigateTo"}),Ap=sr("navigateTo",[["target",Ep]],{docPermalink:"js-sdk/navigateTo"});function Np(t,e,n){var r=Zc(t,e);if("function"==typeof r)try{return r(n)}catch(t){ar(t)}}var Pp,jp=n(63696),Lp=0;function Ip(){return Pp||(Pp=new cr,or(Mp)),Pp.promise}function Dp(){return Lp+=1,t=!1,function(){if(t)throw new tr("Unregister must not be called twice");t=!0,0==(Lp-=1)&&or(Mp)};var t}function Mp(){Pp&&0===Lp&&(Pp.resolve(void 0),Pp=void 0)}const Rp=function(t){return t.displayName||t.name};function qp(t){if(jp.isValidElement(t))return t.props.__scrivitoForwardElementType||t.type}var Bp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fp=function(){return Fp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Fp.apply(this,arguments)};function zp(t){if("function"!=typeof t)throw new Jn("Scrivito.connect expects either a plain function or a subclass of React.Component");return function(t){return!0===t._isScrivitoConnectedComponent}(t)?t:function(t){return"function"==typeof t&&t.prototype&&t.prototype.isReactComponent}(t)?Up(t):Up((e=t,n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Bp(n,t),n.prototype.render=function(){return e(this.props)},n}(jp.Component),n.displayName=Rp(e),n));var e,n}function Up(t){var e,n=((e=function(t){function e(e){var n=t.call(this,e)||this;return n._scrivitoPrivateConnector=new Wp(n),n}return Bp(e,t),e.prototype.componentDidMount=function(){this._scrivitoPrivateConnector.componentDidMount(),t.prototype.componentDidMount&&t.prototype.componentDidMount.call(this)},e.prototype.componentWillUnmount=function(){this._scrivitoPrivateConnector.componentWillUnmount(),t.prototype.componentWillUnmount&&t.prototype.componentWillUnmount.call(this)},e.prototype.render=function(){var e=this;return this._scrivitoPrivateConnector.render((function(){return t.prototype.render.call(e)}))},e}(t))._isScrivitoConnectedComponent=!0,e);return n.displayName=Rp(t),n}var Hp=jp.createContext(0),Wp=function(){function t(t){this.component=t,this.isMounted=!1,this.loadingSubscriber=new xi}return t.prototype.componentDidMount=function(){var t=this;if(void 0===this.hierachyLevel)throw new tr;if(this.stateSubscriber=Xi((function(){return t.component.forceUpdate()}),this.hierachyLevel),this.isMounted=!0,this.onMount){var e=this.onMount.bind(this);delete this.onMount,e()}},t.prototype.componentWillUnmount=function(){this.stateSubscriber&&this.stateSubscriber.unsubscribe(),this.unregisterLoadingActivity(),this.isMounted=!1,this.loadingSubscriber.unsubscribe()},t.prototype.render=function(t){var e=this,n=this.renderLoadingAware(t);return jp.createElement(Hp.Consumer,Fp({},{__scrivitoForwardElementType:qp(n)}),(function(t){return e.grabHierarchyLevel(t,jp.createElement(Hp.Provider,{value:t+1},n))}))},t.prototype.grabHierarchyLevel=function(t,e){return this.hierachyLevel=t,e},t.prototype.renderLoadingAware=function(t){var e=this;if(_i())return Vp(t);var n=bi((function(){return $i((function(){return Vp(t)}))})),r=n.result,i=r.accessedState,o=r.result;return this.whenMounted((function(){if(!e.stateSubscriber)throw new tr;e.stateSubscriber.subscribeChanges(i),n.subscribeLoading(e.loadingSubscriber),n.isAllDataLoaded()?e.unregisterLoadingActivity():e.unregisterLoadingActivityCallback||(e.unregisterLoadingActivityCallback=Dp())})),n.isAllDataLoaded()?o:this.handleLoading(o)},t.prototype.whenMounted=function(t){this.isMounted?t():this.onMount=t},t.prototype.handleLoading=function(t){return this.component._scrivitoRenderWhileLoading?this.component._scrivitoRenderWhileLoading():t},t.prototype.unregisterLoadingActivity=function(){var t=this.unregisterLoadingActivityCallback;t&&(delete this.unregisterLoadingActivityCallback,t())},t}();function Vp(t){var e=Oo((function(){return Gi({contextName:"React.Component#render",message:"Use one of the React lifecycle hooks."},t)}));return e.success?e.result:null}function Kp(t){if(t instanceof rl)return t.id();if(t instanceof Uu)return t.obj().id()+"|"+t.id();var e=Qn(t).substr(0,100);throw new tr('keyForBasicContent called with "'+e+'". Expected an instance of BasicObj or BasicWidget.')}var Qp,$p={};function Gp(t,e){$p[t]=e}function Zp(t){return $p[t]||null}function Yp(t){return Zp(Xp(t))}function Xp(t){return"appClass-"+t}var Jp=0,th={};const eh=function(t){t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain",t.target.id)}catch(t){}};function nh(t,e){return rh(qu(),t,e)}function rh(t,e,n){var r=rl.getIncludingDeletedInWorkspace(t,e);if(null!==r){var i,o=r.widget(n);if(null!==o)return function(t){var e=oc(cf(),t),n=t.objClass();return Np(n,"titleForContent",e)}(o)||(Zc(i=o.objClass(),"title")||i.replace(_r," ").replace(kr,(function(t){return" "+t.toLowerCase()})).replace(br,(function(t){return" "+t})).trim().replace(/./,(function(t){return t.toUpperCase()})))}}var ih={};function oh(t){return ih[t]?function(t){return new xo({state:ah(t),stream:new di((function(e){var n=function(){var n=ih[t];e.next(n?function(t){var e=t.getBoundingClientRect(),n=e.left,r=e.top,i=e.width,o=e.height;return{x:n+window.pageXOffset,y:r+window.pageYOffset,width:i,height:o}}(n):null)};n();var r=window.setInterval(n,1e3);return function(){return window.clearInterval(r)}}))})}(t).get():null}function ah(t){return Bi.subState("elementBoundaries").subState(t.toString())}var sh=function(){return sh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},sh.apply(this,arguments)};function uh(t){var e=sh({},lh());t(e),ch().set(e)}function lh(){return ch().get()||{}}function ch(){return Bi.subState("contentZoneRegistry")}var fh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function dh(t){var e;return(e=function(e){function n(t){var n=e.call(this,t)||this;return n.registeredElement=new mh,n}return fh(n,e),n.prototype.render=function(){return jp.createElement(t,fi({},this.props,{registeredElement:this.registeredElement}))},n}(jp.Component)).displayName=Rp(t)+"WithRegisteredElement",e}function ph(t,e){var n;return n=function(n){function r(t){var e=n.call(this,t)||this;return e.registeredElement=new mh,e}return fh(r,n),r.prototype.componentDidMount=function(){var e,n,r;this.unregisterContentZone=(e=this.registeredElement.id(),n=t(this.props),r=this.context,or((function(){return uh((function(t){t[e]={content:n,parentElementId:r}}))})),function(){return or((function(){return uh((function(t){delete t[e]}))}))})},r.prototype.componentWillUnmount=function(){this.unregisterContentZone&&this.unregisterContentZone()},r.prototype.render=function(){return jp.createElement(vh.Provider,{value:this.registeredElement.id()},jp.createElement(e,fi({},this.props,{registeredElement:this.registeredElement})))},r}(jp.Component),n.displayName=Rp(e)+"WithContentZone",n.contextType=vh,n}var hh,vh=jp.createContext(void 0),mh=function(){function t(){this.elementId=t.generateId()}return t.generateId=function(){return this.currentId++,this.currentId},t.prototype.id=function(){return this.elementId},t.prototype.set=function(t){var e;t?function(t,e){ih[t]=e}(this.elementId,t):(e=this.elementId,delete ih[e])},t.currentId=0,t}(),gh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const yh=dh(zp(((hh=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n.onDragStart=n.onDragStart.bind(n),n.onDragEnd=n.onDragEnd.bind(n),n}return gh(e,t),e.prototype.render=function(){var t=this;return jp.createElement("span",{ref:function(e){return t.props.registeredElement.set(e)},className:"scrivito_editing_marker",onClick:this.onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,draggable:!0,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd},jp.createElement("i",{className:"scrivito_icon"}),jp.createElement("span",{className:"scrivito_editing_marker_title"},this.title()))},e.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),nd().showWidgetMenu(this.props.registeredElement.id(),this.props.widget.obj().id(),this.props.widget.id())},e.prototype.onDragStart=function(t){eh(t),nd().startDrag(this.props.widget.obj().id(),this.props.widget.id()),this.props.setDragState(!0)},e.prototype.onDragEnd=function(){nd().endDrag(),this.props.setDragState(!1)},e.prototype.title=function(){return nh(this.props.widget.obj().id(),this.props.widget.id())},e}(jp.Component)).displayName="Scrivito.ContentTag.EditingMenuMarker",hh)));var bh,wh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const _h=dh(zp((bh=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return wh(e,t),e.prototype.render=function(){var t,e=this,n=function(t,e){var n={iconClassName:"scrivito_icon",markerClassName:"scrivito_editing_marker"};switch(t){case"new":n.iconClassName+=" scrivito_icon_inv_plus",n.tooltip=kh("widget_is_new");break;case"edited":switch(n.iconClassName+=" scrivito_icon_edited",e){case"new":n.markerClassName+=" scrivito_widget_moved_icon",n.tooltip=kh("widget_is_edited_and_dragged_here");break;case"deleted":n.markerClassName+=" scrivito_widget_moved_icon",n.tooltip=kh("widget_is_edited_and_dragged_away"),n.disableMenu=!0;break;default:n.tooltip=kh("widget_is_edited")}break;case"deleted":n.iconClassName+=" scrivito_icon_trash",n.tooltip=kh("widget_is_deleted");break;default:switch(n.iconClassName+=" scrivito_icon_moved",e){case"new":n.tooltip=kh("widget_is_dragged_here");break;case"deleted":n.tooltip=kh("widget_is_dragged_away"),n.disableMenu=!0}}return n}(this.props.modification,this.props.placementModification),r=n.iconClassName,i=n.markerClassName,o=n.tooltip,a=n.disableMenu?void 0:this.onClick;return jp.createElement("span",{ref:function(t){return e.props.registeredElement.set(t)},className:a?i:i+" scrivito_disabled",title:o,onClick:a,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},jp.createElement("i",{className:r}),jp.createElement("span",{className:"scrivito_editing_marker_title"},rh((t=this.props.widget).workspaceId(),t.obj().id(),t.id())||""))},e.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),nd().showWidgetMenu(this.props.registeredElement.id(),this.props.widget.obj().id(),this.props.widget.id())},e}(jp.Component),bh.displayName="Scrivito.ContentTag.ComparisonMenuMarker",bh)));function kh(t){return function(t){if(vl)return vl.translate(t)}("widget_marker."+t)}var xh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Eh=function(t){function e(e){var n=t.call(this,e)||this;return n._onClick=n._onClick.bind(n),n}return xh(e,t),e.prototype.render=function(){var t="scrivito_option_marker scrivito_"+this.props.position;return this.props.isAlwaysShown&&(t+=" scrivito_visible"),jp.createElement("span",{className:t,onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},jp.createElement("i",{className:"scrivito_icon scrivito_icon_marker_plus"}))},e.prototype._onClick=function(t){t.preventDefault(),t.stopPropagation(),this.props.insertWidget(this.props.widget,this.props.position)},e}(jp.Component);Eh.displayName="Scrivito.OptionMarker";const Ch=zp(Eh);function Sh(t){var e=zp((function(t){return(0,t.callback)(t.value)}));return function(n){var r=n.children;return jp.createElement(t,null,(function(t){return jp.createElement(e,{callback:r,value:t})}))}}var Oh,Th=(Oh=function(t){var e=jp.createContext(t);return{Provider:e.Provider,Consumer:Sh(e.Consumer)}}(!0),Oh.Consumer),Ah=Oh.Provider,Nh=!1;function Ph(){Nh=!0}var jh,Lh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ih=function(){return Ih=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ih.apply(this,arguments)},Dh=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Mh=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Rh=jp.createContext({});const qh=zp((function(t){var e=Ih({},t);return delete e.widget,delete e.placementModification,delete e.registeredElement,jp.createElement(Rh.Consumer,null,(function(t){return jp.createElement(Bh,Ih({},t,e))}))}));var Bh=ph((function(t){var e=t.widget;if(!e)throw new tr("Missing widget");return{type:"widget",objId:e.obj().id(),widgetId:e.id()}}),zp((jh=function(t){function e(e){var n=t.call(this,e)||this;return n.state={hasFocus:!1,isDragging:!1,isFocusFadedOut:!0},n.onMouseOver=n.onMouseOver.bind(n),n.onMouseOut=n.onMouseOut.bind(n),n.onWidgetFocus=n.onWidgetFocus.bind(n),n.onWidgetBlur=n.onWidgetBlur.bind(n),n.lockFocus=n.lockFocus.bind(n),n.unlockFocus=n.unlockFocus.bind(n),n.setDragState=n.setDragState.bind(n),n}return Lh(e,t),e.prototype.componentDidMount=function(){var t,e;this.focusToken=(t={onFocus:this.onWidgetFocus,onBlur:this.onWidgetBlur},th[e=Jp]=t,Jp+=1,e)},e.prototype.componentWillUnmount=function(){var t;t=this.focusToken,delete th[t]},e.prototype.render=function(){var t=this;if(td())return jp.createElement(Th,null,(function(e){return e?t.renderWithEditingMarker():t.renderWithoutMarker()}));if(ed()){var e=this.getWidget().modification(),n=this.props.placementModification;if((e||n)&&!this.isChildOfDeletedWidget(e,n))return this.renderWithComparisonMarker(e,n)}return this.renderWithoutMarker()},e.prototype.isChildOfDeletedWidget=function(t,e){return"deleted"===t&&!e},e.prototype.renderWithEditingMarker=function(){var t=this;return jp.createElement(this.props.tag,Ih(Ih(Ih({},this.forwardedPropsWithMarker()),{ref:function(e){return t.props.registeredElement.set(e)},className:this.className(),style:this.style(),onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,children:Mh([jp.createElement(yh,{key:"menuMarker",widget:this.getWidget(),setDragState:this.setDragState,onMouseOver:this.lockFocus,onMouseOut:this.unlockFocus})],jp.Children.toArray(this.props.children),[this.renderOptionMarker("top"),this.renderOptionMarker("bottom")])}),this.dataProps()))},e.prototype.renderWithComparisonMarker=function(t,e){return jp.createElement(this.props.tag,Ih(Ih(Ih({},this.forwardedPropsWithMarker()),{className:this.className(),style:this.style(),onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,children:Mh([jp.createElement(_h,{key:"menuMarker",widget:this.getWidget(),modification:t,placementModification:e,onMouseOver:this.lockFocus,onMouseOut:this.unlockFocus})],jp.Children.toArray(this.props.children))}),this.dataProps(t||e)))},e.prototype.renderWithoutMarker=function(){return jp.createElement(this.props.tag,this.forwardedProps())},e.prototype.getWidget=function(){var t=this.props.widget;if(!t)throw new Xn("Detected inappropriate placing of Scrivito.WidgetTag: It is intended to be used exclusively as top-level element inside a Widget component.");return t},e.prototype.forwardedProps=function(){var t=this.props;t.tag,t.widget,t.placementModification,t.registeredElement;return Dh(t,["tag","widget","placementModification","registeredElement"])},e.prototype.forwardedPropsWithMarker=function(){var t=this.forwardedProps();t.className,t.style;return Dh(t,["className","style"])},e.prototype.setDragState=function(t){this.setState({isDragging:t})},e.prototype.className=function(){var t=this.props.className||"";return td()&&this.hasVisibleFocus()&&(t+=" scrivito_active scrivito_entered"),ed()&&this.isDeleted()&&(t+=" scrivito_modification_opacity"),t},e.prototype.hasVisibleFocus=function(){return this.state.hasFocus&&!this.state.isFocusFadedOut},e.prototype.isDeleted=function(){return"deleted"===this.props.placementModification||"deleted"===this.getWidget().modification()},e.prototype.dataProps=function(t){var e={"data-scrivito-private-widget":"true","data-scrivito-private-dropzone":"true"};return this.isStructureWidget()&&(e["data-scrivito-private-structure-widget"]="true"),t&&(e["data-scrivito-private-widget-modification"]=t),e},e.prototype.style=function(){return this.state.isDragging?this.props.style?Ih(Ih({},this.props.style),{opacity:.5}):{opacity:.5}:this.props.style},e.prototype.isStructureWidget=function(){var t=cf(),e=this.getWidget();if(e){var n=t.widgetClassFor(e.objClass()),r=nc.forClass(n);if(r)return on(r.attributes,(function(t,e){return"widgetlist"===t[0]}))}return!1},e.prototype.onMouseOver=function(t){var e,n;t.stopPropagation(),e=this.focusToken,(n=th[Qp=e])&&n.onFocus()},e.prototype.onMouseOut=function(t){t.stopPropagation(),function(t){if(t===Qp){var e=th[t];e&&e.onBlur()}}(this.focusToken)},e.prototype.onWidgetFocus=function(){var t=this;this.setState({hasFocus:!0,isFocusFadedOut:!1}),this.fadeOutFocusTimeout&&window.clearTimeout(this.fadeOutFocusTimeout),this.isStructureWidget()||(this.fadeOutFocusTimeout=window.setTimeout((function(){return t.fadeOutFocus()}),1e3))},e.prototype.fadeOutFocus=function(){this.state.isFocusFadedOut||this.isFocusLocked||this.setState({isFocusFadedOut:!0})},e.prototype.lockFocus=function(){this.isFocusLocked=!0},e.prototype.unlockFocus=function(){this.isFocusLocked=!1},e.prototype.onWidgetBlur=function(){this.setState({hasFocus:!1})},e.prototype.renderOptionMarker=function(t){return jp.createElement(Ch,{key:"optionMarker-"+t,position:t,widget:this.getWidget(),insertWidget:Fh,isAlwaysShown:Nh,onMouseOver:this.lockFocus,onMouseOut:this.unlockFocus})},e}(jp.Component),jh.displayName="Scrivito.WidgetTag",jh.defaultProps={tag:"div"},jh)));function Fh(t,e){vl.insertWidget(t.obj().id(),t.id(),e)}var zh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Uh(t,e){!function(t){if("function"!=typeof t)throw new Jn("Scrivito.provideComponent expected a valid React component, but received "+Qn(t))}(e),function(t){return!(t.displayName||t.name&&"_class"!==t.name&&"class_"!==t.name.substring(0,6))}(e)&&(e.displayName=t);var n=function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zh(e,t),e.prototype.render=function(){if(this.props.widget){var e=t.prototype.render.call(this);return qp(e)!==qh?jp.createElement(qh,{children:e}):e}return t.prototype.render.call(this)},e}(t);return e.displayName=Rp(t),e}(zp(e));!function(t,e){Gp(Xp(t),e)}(t,n)}function Hh(t,e){Gp(t,zp(e))}var Wh,Vh=n(78325);function Kh(t,e){var n=Zp(t);!function(t,e){if(!t)throw new Jn('Component with ID "'+e+'" not found. Please make sure you registered it using "Scrivito.registerComponent".')}(n,t);var r=function(t){if(t.widgetId)return function(t){var e=rl.get(t.objId),n=e.widget(t.widgetId);return{widget:oc(cf(),n)}}(t);if(t.objId)return function(t){var e=rl.get(t.objId),n=oc(cf(),e);return{obj:n,page:n}}(t)}(e);Wh?(0,Vh.render)(jp.createElement(n,r),Wh):Wh=function(t,e,n){var r=t.createElement("div");return t.body.innerHTML="",t.body.appendChild(r),(0,Vh.render)(jp.createElement(e,n),r),r}(Ra(),n,r)}var Qh=new lr,$h=128;function Gh(t){if(t.isRaw()||t.isExplicitlyTransformed())return{initialUrl:t.url()};var e=function(t){return t.optimizeFor({width:$h})}(t).url();if(Qh.current())return{initialUrl:e};var n=function(t){return t.optimizeFor({width:Ma().width*Ia()})}(t).urlWithoutPlaceholder();return n&&e!==n?{initialUrl:e,highResUrlToDecode:n}:{initialUrl:e}}var Zh=n(27580);function Yh(t){var e=new Image;return Xh(e)?function(t,e){if(!Xh(t))throw new Error("Browser does not support decode!");return t.src=e,function(t){return t.decode&&t.decode.bind(t)}(t)().then((function(){return t}))}(e,t):function(t,e){return new ai((function(n,r){t.onload=function(){return n(t)},t.onerror=function(t){return r(t)},t.src=e}))}(e,t)}function Xh(t){return!!t.decode}function Jh(t,e,n,r){if(!tv())throw new Error("Browser does not support getCSSCanvasContext!");return tv()(t,e,n,r)}function tv(){return document.getCSSCanvasContext&&document.getCSSCanvasContext.bind(document)}function ev(){return!!nv()}function nv(){return document.mozSetImageElement&&document.mozSetImageElement.bind(document)}function rv(t){var e=document.createElement("canvas");return e.height=t.height,e.width=t.width,iv(t,e.getContext("2d")),e}function iv(t,e){e.drawImage(t,0,0)}function ov(t){return Yh(t).then((function(e){return ev()?function(t){var e=rv(t),n="ScrivitoBackgroundImage"+sv();return function(t,e){if(!ev())throw new Error("Browser does not support mozSetImageElement!");nv()(t,e)}(n,e),{decodedBackgroundUrl:"-moz-element(#"+n+")",clear:function(){return function(t){if(!ev())throw new Error("Browser does not support mozSetImageElement!");nv()(t,null)}(n)}}}(e):tv()?function(t){var e="ScrivitoBackgroundImage"+sv(),n=Jh("2d",e,t.width,t.height);return iv(t,n),{decodedBackgroundUrl:"-webkit-canvas("+e+")",clear:function(){Jh("2d",e,0,0)}}}(e):Xh(e)?{decodedBackgroundUrl:"url("+t+")"}:function(t){return rv(t),{decodedBackgroundUrl:"url("+t.src+")"}}(e)})).catch((function(){return{decodedBackgroundUrl:"url("+t+")"}}))}var av=0;function sv(){return av+=1}var uv=function(){function t(t){this.onUpdateCallback=t,this.decodedUrls={},this.loadingRegistry={},this.clears=[]}return t.prototype.getBackgroundImage=function(t){var e=this.decodedUrls[t];return e||this.ensureLoading(t),e},t.prototype.clear=function(){this.clears.map((function(t){return t()}))},t.prototype.ensureLoading=function(t){var e=this;if(!this.decodedUrls[t]&&!this.loadingRegistry[t]){var n=ov(t).then((function(n){var r=n.decodedBackgroundUrl,i=n.clear;i&&e.clears.push(i),e.decodedUrls[t]=r,e.onUpdateCallback()}));this.loadingRegistry[t]=Vr(n,(function(){return delete e.loadingRegistry[t]}))}},t}(),lv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cv=function(){return cv=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},cv.apply(this,arguments)},fv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},dv=nr.struct({image:nr.String,attachment:nr.maybe(nr.String),clip:nr.maybe(nr.String),color:nr.maybe(nr.String),origin:nr.maybe(nr.String),position:nr.maybe(nr.String),repeat:nr.maybe(nr.String),size:nr.maybe(nr.String)}),pv=nr.struct({image:nr.union([pu,lu,nr.String,nr.Nil]),attachment:nr.maybe(nr.enums.of(["fixed","scroll"])),clip:nr.maybe(nr.enums.of(["border-box"])),color:nr.maybe(nr.enums.of(["transparent"])),origin:nr.maybe(nr.enums.of(["padding-box"])),position:nr.maybe(nr.enums.of(["center","left","right","top","bottom"])),repeat:nr.maybe(nr.enums.of(["no-repeat"])),size:nr.maybe(nr.enums.of(["contain","cover"]))}),hv=nr.union([dv,pv]);hv.dispatch=function(t){return Cv(t)?dv:pv};var vv=nr.list(hv),mv=nr.union([hv,vv]);mv.dispatch=function(t){return G(t)?vv:hv};var gv=function(t){function e(e){var n=t.call(this,e)||this;return n.decoder=new uv((function(){return n.forceUpdate()})),n.binaryToUrl=n.binaryToUrl.bind(n),n}return lv(e,t),e.prototype.componentWillUnmount=function(){this.decoder.clear()},e.prototype.render=function(){var t=this.props,e=t.style,n=t.tag,r=fv(t,["style","tag"]),i=n;return function(t){if(T(t))for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n[e];r.match(/^background.+/)&&ar(new Jn('Invalid background related CSS property "'+r+'". Expected property "background" alongside with any non-background propertiesFor further details, see https://www.scrivito.com/js-sdk/background-image-tag'))}}(e),jp.createElement(i,cv({},r,{style:bv(e,this.binaryToUrl)}))},e.prototype.binaryToUrl=function(t){var e=Gh(t),n=e.initialUrl,r=e.highResUrlToDecode;return r&&this.decoder.getBackgroundImage(r)||"url("+n+")"},e.displayName="Scrivito.BackgroundImageTag",e.propTypes=(0,Zh.propTypes)({tag:nr.maybe(nr.String),style:nr.maybe(nr.interface({background:nr.maybe(mv)},{strict:!1}))},{strict:!1}),e.defaultProps={tag:"div",style:{}},e}(jp.Component);const yv=zp(gv);function bv(t,e){if(T(t)){var n=t,r=n.background,i=fv(n,["background"]);return cv(cv({},i),function(t,e){if(void 0===t)return{};if(G(t))return{backgroundImage:wv(n=t.map((function(t){return kv(t,e)})),"backgroundImage"),backgroundAttachment:wv(n,"backgroundAttachment"),backgroundClip:wv(n,"backgroundClip"),backgroundOrigin:wv(n,"backgroundOrigin"),backgroundPosition:wv(n,"backgroundPosition"),backgroundRepeat:wv(n,"backgroundRepeat"),backgroundSize:wv(n,"backgroundSize"),backgroundColor:_v(n)};var n;return kv(t,e)}(r,e))}return{}}function wv(t,e){return t.map((function(t){return t[e]})).join(", ")}function _v(t){var e=An(t);if(e)return e.backgroundColor}function kv(t,e){return Cv(t)?xv(t):function(t,e){var n=t.image;if(n instanceof Su)return Ev(n,t,e);if(n instanceof lf().Obj){var r=sc(n);if(qf(r)){var i=r.get("blob",["binary"]);if(i)return Ev(i,t,e)}}return xv({image:"none"})}(t,e)}function xv(t){return{backgroundImage:t.image,backgroundAttachment:t.attachment||"scroll",backgroundClip:t.clip||"border-box",backgroundColor:t.color||"transparent",backgroundOrigin:t.origin||"padding-box",backgroundPosition:t.position||"0% 0%",backgroundRepeat:t.repeat||"repeat",backgroundSize:t.size||"auto"}}function Ev(t,e,n){return{backgroundImage:n(t),backgroundAttachment:e.attachment||"scroll",backgroundClip:e.clip||"border-box",backgroundColor:e.color||"transparent",backgroundOrigin:e.origin||"padding-box",backgroundPosition:e.position||"center center",backgroundRepeat:e.repeat||"no-repeat",backgroundSize:e.size||"cover"}}function Cv(t){return I(t.image)}var Sv=Object.freeze({}),Ov=new lr;function Tv(){aa("Scrivito.currentPage");var t=Nv();return t.page?oc(cf(),t.page):null}function Av(){return aa("Scrivito.currentPageParams"),Nv().queryParameters||Sv}function Nv(){return Ov.current()||function(){var t=Uf();if(void 0===t)return;if(!Hf(t))return{page:t.page};return{page:rl.get(t.objId),queryParameters:t.queryParameters}}()||{}}function Pv(t){return t.ctrlKey||t.metaKey||t.shiftKey||2===t.which}var jv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lv=function(){return Lv=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Lv.apply(this,arguments)},Iv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Dv=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return jv(e,t),e.prototype.render=function(){var t=this.props,e=t.children,n=t.to,r=t.params,i=Iv(t,["children","to","params"]),o=Lv(Lv({},i),{href:n&&this.hrefFor(n,r)||"#",onClick:this.onClick,rel:this.rel(),target:this.target()});return jp.createElement("a",Lv({},o),e)},e.prototype.hrefFor=function(t,e){return"string"==typeof t?t:this.urlFor(t,e||void 0)},e.prototype.onClick=function(t){if(!this.props.onClick||(this.props.onClick(t),!t.defaultPrevented)){t.preventDefault();var e=this.props.to;if(e)if("string"!=typeof e){var n=this.props.params||void 0,r=this.urlFor(e,n);if(r){var i=this.target();"_blank"===i||Pv(t)?Rf(r):i?Mf(r,i):bp(e,{params:n})}}else Rf(e)}},e.prototype.target=function(){if(this.props.target)return this.props.target;var t=Mv(this.props.to);return t&&t.target()||void 0},e.prototype.rel=function(){if("rel"in this.props)return this.props.rel;var t=Mv(this.props.to);return t&&t.rel()||void 0},e.prototype.urlFor=function(t,e){var n=sc(t);if(n instanceof rl||n instanceof fl)return op(n,{queryParameters:e||void 0})},e.displayName="Scrivito.LinkTag",e.propTypes=(0,Zh.propTypes)({to:nr.maybe(nr.union([lu,fu,nr.String])),params:nr.union([nr.dict(nr.String,nr.union([nr.Nil,nr.String,nr.list(nr.String)])),nr.maybe(nr.irreducible("false",(function(t){return!1===t})))]),onClick:nr.maybe(nr.Function)},{strict:!1}),e}(jp.Component);function Mv(t){if(t){var e=sc(t);return e instanceof fl?e:void 0}}const Rv=zp(Dv);function qv(t){var e=t.child,n=t.renderChild,r=lf().appModelAccessor.wrapInAppClass(e);return n?n(r):jp.createElement("li",null,jp.createElement(Rv,{to:r},e.get("title","string")))}qv.displayName="Scrivito.ChildListTag.ChildItem";const Bv=zp(qv);var Fv,zv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Uv=dh(zp(((Fv=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return zv(e,t),e.prototype.render=function(){var t=this;return jp.createElement("span",{ref:function(e){return t.props.registeredElement.set(e)},className:"scrivito_editing_marker",onClick:this.onClick},jp.createElement("i",{className:"scrivito_icon"}),jp.createElement("span",{className:"scrivito_editing_marker_title"},this.props.parent.objClass()))},e.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),nd().showChildListMenu(this.props.registeredElement.id(),this.props.parent.id())},e}(jp.Component)).displayName="Scrivito.ChildListTag.MenuMarker",Fv)));var Hv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wv=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Vv=function(t){function e(e){var n=t.call(this,e)||this;return n.state={hasFocus:!1},n._onMouseOver=n._onMouseOver.bind(n),n._onMouseOut=n._onMouseOut.bind(n),n}return Hv(e,t),e.prototype.render=function(){var t=this,e=this.props.parent||Tv();if(!e)return null;e=e._scrivitoPrivateContent;var n=Cn(this.props,"parent","tag","renderChild"),r=e.orderedChildren();return jp.createElement(Th,null,(function(i){var o;return td()&&i&&(n.onMouseOver=t._onMouseOver,n.onMouseOut=t._onMouseOut,n["data-scrivito-private-child-list-path"]=!0,t.state.hasFocus&&(n.className="scrivito_active scrivito_entered "+n.className),o=jp.createElement(Uv,{parent:e,key:"menuMarker"})),jp.createElement(t.props.tag,n,Wv([o],r.map((function(e){return jp.createElement(Bv,{key:e.id(),child:e,renderChild:t.props.renderChild})}))))}))},e.prototype._onMouseOver=function(t){t.stopPropagation(),this.setState({hasFocus:!0})},e.prototype._onMouseOut=function(t){t.stopPropagation(),this.setState({hasFocus:!1})},e}(jp.Component);Vv.displayName="Scrivito.ChildListTag",Vv.defaultProps={tag:"ul"};const Kv=zp(Vv);var Qv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$v=function(){return $v=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},$v.apply(this,arguments)},Gv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Zv=function(t){function e(e){var n=t.call(this,e)||this;return n.state={hasError:!1},n}return Qv(e,t),e.prototype.componentDidCatch=function(t){ar(t),this.setState({hasError:!0})},e.prototype.shouldComponentUpdate=function(t){return this.props.widget.equals(t.widget)},e.prototype.render=function(){return this.state.hasError?td()?Xv(this.props.widget,jp.createElement(qh,null,jp.createElement("div",{className:"content_error"},"Widget could not be rendered due to application error.")),this.props.placementModification):Xv(this.props.widget,jp.createElement(qh,null),this.props.placementModification):jp.createElement(Yv,{widget:this.props.widget,widgetProps:this.props.widgetProps,placementModification:this.props.placementModification})},e.displayName="Scrivito.ContentTag.WidgetContent",e}(jp.Component),Yv=function(t){function e(e){return t.call(this,e)||this}return Qv(e,t),e.prototype.render=function(){return Xv(this.props.widget,jp.createElement(this.getAppWidgetComponent(),this.getAppWidgetProps()),this.props.placementModification)},e.prototype.getAppWidgetComponent=function(){var t=this.props.widget.objClass(),e=Yp(t);if(!e)throw new Jn('No component registered for widget class "'+t+'"');return e},e.prototype.getAppWidgetProps=function(){var t={widget:oc(cf(),this.props.widget)};if(this.props.widgetProps&&this.props.widgetProps.hasOwnProperty("widget")){ar(new Jn('The prop "widget" is not allowed inside "widgetProps"'));var e=this.props.widgetProps,n=(e.widget,Gv(e,["widget"]));return $v($v({},t),n)}return $v($v({},t),this.props.widgetProps)},e}(jp.Component);function Xv(t,e,n){return jp.createElement(Rh.Provider,{value:{widget:t,placementModification:n},children:e})}const Jv=zp(Zv);var tm,em=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nm=function(){return nm=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},nm.apply(this,arguments)};const rm=ph((function(t){return nm({type:"widgetlist"},im(t.field))}),zp((tm=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return em(e,t),e.prototype.render=function(){var t=this;return jp.createElement("div",{ref:function(e){t.widgetlistPlaceholder=e,t.props.registeredElement.set(e)},className:"scrivito_empty_widget_field","data-scrivito-private-dropzone":"true",onClick:this.onClick})},e.prototype.onClick=function(t){if(t.preventDefault(),t.stopPropagation(),this.widgetlistPlaceholder){var e=im(this.props.field),n=e.objId,r=e.widgetId,i=e.attributeName;nd().showWidgetlistMenu(this.props.registeredElement.id(),function(t,e){var n=t.clientX,r=t.clientY,i=e.getBoundingClientRect();return{x:n-i.left,y:r-i.top}}(t,this.widgetlistPlaceholder),n,i,r)}},e}(jp.Component),tm.displayName="Scrivito.ContentTag.WidgetlistPlaceholder",tm)));function im(t){var e=t.getContainer();return e instanceof rl?{objId:e.id(),attributeName:t.name()}:{objId:e.obj().id(),widgetId:e.id(),attributeName:t.name()}}function om(t){return am(t.target,t.currentTarget,Pv(t))}function am(t,e,n){if(t===e)return null;if("A"===t.nodeName){var r=t.href,i=pa(r);return Nf(i)?n||"_blank"===t.getAttribute("target")?{openInNewWindow:r}:{openInCurrentWindow:i.resource()}:null}return t.parentNode?am(t.parentNode,e,n):null}var sm=/\bobjid:[a-f0-9]{16}\b[^"']*/g;function um(t){return t.replace(sm,(function(t){return function(t){var e,n,r=t.slice(6,22),i=rl.get(r);i?n=Nf(e=pa(op(i))):(e=Tf({path:r}),n=!0);if(n){var o=pa(t);e.query(o.query()).hash(o.hash())}return e}(t).toString()}))}var lm,cm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const fm=zp((lm=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return cm(e,t),e.prototype.render=function(){switch(this.props.field.type()){case"html":return this.renderHtml();case"string":return this.renderString();case"float":case"integer":return this.renderNumber();case"widgetlist":return this.renderWidgetlist();default:return this.renderContent({children:this.props.children})}},e.prototype.renderHtml=function(){if(this.props.children)return this.renderContent({children:this.props.children});var t=this.attributeValue();return this.renderContent({props:{dangerouslySetInnerHTML:{__html:um(ed()&&this.getHtmlDiffContent()||t)},onClick:this.onClick}})},e.prototype.renderString=function(){if(this.props.children)return this.renderContent({children:this.props.children});if(ed()){var t=this.getHtmlDiffContent();if(t)return this.renderContent({props:{dangerouslySetInnerHTML:{__html:t}}})}return this.renderContent({children:this.attributeValue()})},e.prototype.renderNumber=function(){var t=this.props.children||this.attributeValue();return this.renderContent({children:t})},e.prototype.renderWidgetlist=function(){return this.renderContent({children:this.widgetlistChildren()})},e.prototype.widgetlistChildren=function(){var t=this;if(ed()&&"published"!==this.props.field.workspaceId())return this.widgetlistChildrenForComparison();var e=this.attributeValue();return e.length?e.map((function(e){return jp.createElement(Jv,{key:e.id(),widget:e,widgetProps:t.props.widgetProps})})):this.renderPlaceholderIfEditable()},e.prototype.widgetlistChildrenForComparison=function(){var t=this,e=dl(this.props.field);if(e.length)return e.map((function(e){return jp.createElement(Jv,{key:e.widget.id()+"-"+e.modification,widget:e.widget,widgetProps:t.props.widgetProps,placementModification:e.modification})}))},e.prototype.renderPlaceholderIfEditable=function(){var t=this;if(td())return jp.createElement(Th,null,(function(e){return e&&jp.createElement(rm,{field:t.props.field})}))},e.prototype.renderContent=function(t){var e=Mt({},this.props.customProps,t.props,this.editingProps());return t.children&&(e.children=t.children),jp.createElement(this.props.tag,e)},e.prototype.onClick=function(t){var e,n=om(t);n&&((e=n)&&e.openInNewWindow?this.openInNewWindow(t,n):this.openInCurrentWindow(t,n))},e.prototype.openInNewWindow=function(t,e){var n=e.openInNewWindow;vl&&(t.preventDefault(),t.stopPropagation(),Rf(n))},e.prototype.openInCurrentWindow=function(t,e){var n=e.openInCurrentWindow;t.preventDefault(),t.stopPropagation(),Wl(n)},e.prototype.editingProps=function(){return this.props.onClick?{onClick:this.props.onClick,"data-scrivito-is-clickable":!0}:{}},e.prototype.attributeValue=function(){return this.props.field.get()},e.prototype.getHtmlDiffContent=function(){var t=this.props.field.getDiff();if(t&&"html"===t.format)return t.content},e}(jp.Component),lm.displayName="Scrivito.ContentTag.AttributeValue",lm));var dm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pm=function(){return pm=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},pm.apply(this,arguments)},hm=function(t){function e(e){var n=t.call(this,e)||this;n._field=n.props.field,n.state={domMode:"None"},n._isPendingUpdate=!1;var r=n.props.editorClass;if(r){var i={getContent:n._getContent.bind(n),setContent:n._setContent.bind(n),setDomMode:n._setDomMode.bind(n),validObjClasses:n.validObjClasses.bind(n)};n._editor=new r({controller:i})}return n}return dm(e,t),e.prototype.componentDidMount=function(){var t=this;this._editorWillBeActivated();var e,n,r,i,o,a=(e=function(){return t._getContent()},n=function(e){if(t._isPendingUpdate&&t._pendingUpdateValue===e)return t._isPendingUpdate=!1,void(t._pendingUpdateValue=void 0);t._contentDidChange()},r=$i((function(){return Gi({contextName:"observeSync",message:"Use non-sync observe or nextTick"},e)})),i=r.result,(o=Xi((function(){var t=$i(e);o.subscribeChanges(t.accessedState);var r=t.result;Hr(r,i)||(n(r),i=r)}))).subscribeChanges(r.accessedState),{initialValue:i,unsubscribe:function(){o.unsubscribe()}});this._unsubscribe=a.unsubscribe,"Replace"===this.state.domMode&&this._editorDomWasMounted()},e.prototype.componentDidUpdate=function(t,e){var n=e.domMode,r=this.state.domMode;n!==r&&("Replace"===r?this._editorDomWasMounted():this._editorDomWasUnmounted())},e.prototype.componentWillUnmount=function(){this._editorWillBeDeactivated(),this._unsubscribe&&this._unsubscribe()},e.prototype.render=function(){var t,e=this;if("Replace"===this.state.domMode)return jp.createElement(this.props.tag,pm(pm({},Cn(this.props.customProps,"children")),{ref:function(t){e._editorComponent=t}}));var n=this._editor;n&&n.onClick&&(t=function(t){var e={stopPropagation:t.stopPropagation.bind(t),preventDefault:t.preventDefault.bind(t)};n.onClick(e)});var r={ref:function(t){e._editorComponent=t},children:this.props.children,widgetProps:this.props.widgetProps,customProps:this.props.customProps,field:this.props.field,key:this.state.domMode,tag:this.props.tag,onClick:t};return jp.createElement(fm,r)},e.prototype._contentDidChange=function(){this._editor&&this._editor.contentDidChange()},e.prototype._editorWillBeActivated=function(){this._editor&&this._editor.editorWillBeActivated()},e.prototype._editorWillBeDeactivated=function(){this._editor&&this._editor.editorWillBeDeactivated()},e.prototype._editorDomWasMounted=function(){if(this._editor&&this._editorComponent){var t=(0,Vh.findDOMNode)(this._editorComponent);this._editor.editorDomWasMounted(t)}},e.prototype._editorDomWasUnmounted=function(){this._editor&&this._editor.editorDomWasUnmounted()},e.prototype._setDomMode=function(t){this.setState({domMode:t})},e.prototype._getContent=function(){var t=this;return bi((function(){var e=t._field.get();"html"===t._field.type()&&(e=um(e));return e})).result},e.prototype._setContent=function(t){this._isPendingUpdate=!0,this._pendingUpdateValue=t,this._field.update(t)},e.prototype.validObjClasses=function(){return this._field.validClasses()},e.displayName="Scrivito.ContentTag.Editor",e}(jp.Component);const vm=zp(hm);var mm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gm=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},ym=function(t){function e(e){return t.call(this,e)||this}return mm(e,t),e.prototype.render=function(){var t=this,e=this.props,n=e.content,r=e.attribute,i=e.tag,o=(e.widgetProps,gm(e,["content","attribute","tag","widgetProps"]));if(!n)return null;var a=nc.basicFieldFor(n,r);if(!a)return ar(new Jn('Component "Scrivito.ContentTag" received prop "attribute" with invalid value: Attribute "'+r+'" is not defined for content specified in prop "content".')),null;var s=a.type();return jp.createElement(Th,null,(function(e){if(td()&&e){var r=void 0,u=void 0,l=function(t){var e=t.type,n=t.tag,r=bl().get();if(r){var i=$e(r,(function(t){return yl[t]&&yl[t].canEdit({type:e,tag:n})}));if(i)return{id:i,editorClass:yl[i]}}}({type:s,tag:i});if(l)return r=l.id,u=l.editorClass,jp.createElement(vm,{key:t.editorKey(r),field:a,editorClass:u,tag:i,widgetProps:t.widgetProps(s),customProps:o,content:n},t.props.children)}return jp.createElement(fm,{field:a,tag:i,widgetProps:t.widgetProps(s),customProps:o},t.props.children)}))},e.prototype.widgetProps=function(t){if(this.props.widgetProps){if("widgetlist"===t)return this.props.widgetProps;ar(new Jn('The prop "widgetProps" is only allowed for widgetlist attributes'))}},e.prototype.editorKey=function(t){var e=sc(this.props.content);return[this.props.tag,Kp(e),this.props.attribute,t].join("|")},e.displayName="Scrivito.ContentTag",e.defaultProps={tag:"div"},e}(jp.Component);const bm=zp(ym);var wm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wm(e,t),e.prototype.render=function(){var t=Tv(),e=Av();if(!t)return null;var n=t.objClass(),r=Yp(n);if(!r)throw new Jn('No component registered for obj class "'+n+'"');return jp.createElement(r,{page:t,params:e})},e}(jp.Component);_m.displayName="Scrivito.CurrentPage";const km=zp(_m);var xm=new lr,Em=1448;function Cm(t){return t.isRaw()||t.isExplicitlyTransformed()?t.url():xm.current()?Sm(t).url():function(t){var e=(n=function(){return Sm(t).urlWithoutPlaceholder()},bi(n).result);var n;if(e&&function(t){var e=Om[t];void 0===e&&(e=function(t){var e=new Image;return e.src=t,e.complete}(t),Om[t]=e);return e}(e))return e}(t)||function(t){return t.optimizeFor({width:Ma().width*Ia()}).url()}(t)}function Sm(t){return t.optimizeFor({width:Em})}var Om={};var Tm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Am=function(){return Am=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Am.apply(this,arguments)},Nm=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Pm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Tm(e,t),e.prototype.render=function(){var t=this.props,e=t.content,n=t.attribute,r=Nm(t,["content","attribute"]);if(!e)return null;if(e instanceof Su)return jp.createElement("img",Am({src:Cm(e)},r));var i,o=function(t,e){var n=nc.forInstance(t);if(!n)return;var r=sc(t),i=n.attributes[e];if(!i)return void ar(new Jn('Component "Scrivito.ImageTag" received prop "content" with an object missing attribute "'+e+'".'));var o=i[0];if("binary"===o)return r.get(e,"binary");if("reference"===o)return function(t){if(t){var e=t.get("blob","binary");if(e)return e}return null}(r.get(e,"reference"));ar(new Jn('Component "Scrivito.ImageTag" received prop "content" with an object, whose attribute "'+e+'" is of unexpected type "'+o+'". Valid attribute types are "binary" and "reference".'))}(e,n);return void 0===o?null:(null===o?(i="data:image/gif;base64,R0lGODlhyADIAIAAAP///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMjEgNzkuMTU0OTExLCAyMDEzLzEwLzI5LTExOjQ3OjE2ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDBEQjBEMDdFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDBEQjBEMDhFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMERCMEQwNUU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMERCMEQwNkU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAAAALAAAAADIAMgAAAL/hI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpfMpvMJjUqn1Kr1is1qt9yu9wsOi8fksvmMTqvX7Lb7DY/L5/S6/Y7P6/f8vv8PGCg4SFhoeIiYqLjI2Oj4CBkpOUlZaXmJmam5ydnp+QkaKjpKWmp6ipqqusra6voKGys7S1tre4ubq7vL2+v7CxwsPExcbHyMnKy8zNzs/AwdLT1NXW19jZ2tvc3d7f0NHi4+Tl5ufo6err7O3u7+Dh8vP09fb3+Pn6+/z9/v/w8woMCBBAsaPIgwocKFDBs6fAgxosSJFCtavIgxo8aNBhw7eixTAAA7",r["data-scrivito-image-placeholder"]=!0):i=Cm(o),jp.createElement(bm,Am({attribute:n,content:e,tag:"img",src:i},r)))},e.displayName="Scrivito.ImageTag",e.defaultProps={attribute:"blob"},e}(jp.Component);const jm=zp(Pm);var Lm=function(t){var e=t.children;return td()?jp.createElement(Ah,{children:e,value:!1}):e},Im=function(t){var e=t.children;return td()?jp.createElement(Ah,{children:e,value:!0}):e},Dm=function(t){var e=t.children;return null===Nv().page?e?jp.createElement("div",null,e):jp.createElement("div",null,jp.createElement("h1",null,"The page you were looking for doesn't exist."),jp.createElement("p",null,"You may have mistyped the address or the page may have moved.")):null};Dm.displayName="Scrivito.NotFoundErrorPage";const Mm=zp(Dm);var Rm,qm,Bm=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function Fm(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(vl){try{ng.apply(void 0,Bm([t],e))}catch(t){throw new Jn(t.message.replace(/key 'filters.\d/,"key 'filters"))}t.filters&&(Rm=t.filters,"function"==typeof Rm?(qm=Rm,Rm=void 0):(Rm=t.filters,qm=void 0));var r=t.baseFilter;if(r){var i=r.query;i&&vl.configureContentBrowser(hl({baseQuery:i}))}}}var zm=nr.union([nr.String,nr.list(nr.String)]),Um=nr.enums.of(Mn(Ys,["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan"])),Hm=nr.union([nr.String,nr.Date,nr.Nil,nr.Number,nr.list(nr.union([nr.String,nr.Nil])),nr.list(nr.union([nr.Date,nr.Nil])),nr.list(nr.union([nr.Number,nr.Nil]))],"SearchValue"),Wm=nr.struct({title:nr.maybe(nr.String)}),Vm=Wm.extend({field:nr.maybe(zm),operator:nr.maybe(Um),expanded:nr.maybe(nr.Boolean)}),Km=Wm.extend({value:nr.maybe(Hm),query:nr.maybe(du),selected:nr.maybe(nr.Boolean)}),Qm=Vm.extend({type:nr.enums.of(["radioButton"]),options:nr.dict(nr.String,Km)},"RadioFilterDefinition"),$m=Wm.extend({value:nr.maybe(Hm),selected:nr.maybe(nr.Boolean)}),Gm=Vm.extend({type:nr.enums.of(["checkbox"]),options:nr.dict(nr.String,$m)},"CheckboxFilterDefinition"),Zm=nr.declare("TreeFilterDefinition");Zm.define(Wm.extend({type:nr.maybe(nr.enums.of(["tree"])),icon:nr.maybe(nr.String),query:nr.maybe(du),expanded:nr.maybe(nr.Boolean),value:nr.maybe(Hm),field:nr.maybe(zm),operator:nr.maybe(Um),selected:nr.maybe(nr.Boolean),options:nr.maybe(nr.dict(nr.String,Zm))}));var Ym={tree:Zm,radioButton:Qm,checkbox:Gm},Xm=nr.union([Ym.tree,Ym.checkbox,Ym.radioButton]);Xm.dispatch=function(t){return Ym[t.type||"tree"]};var Jm=nr.dict(nr.String,Xm),tg=nr.union([nr.Function,Jm]);tg.dispatch=function(t){return nr.Function.is(t)?tg.meta.types[0]:tg.meta.types[1]};var eg=nr.struct({query:du}),ng=sr("configureContentBrowser",[["configuration",nr.struct({filters:nr.maybe(tg),baseFilter:nr.maybe(eg)},"Configuration")]],{docPermalink:"js-sdk/configureContentBrowser"}),rg=[];function ig(){return rg}var og=function(){function t(t){this.id=t}return t.prototype.insert=function(t){t&&t.id===this.id&&(this.onClick=t.onClick)},t.prototype.modify=function(){},t.prototype.remove=function(){},t.prototype.onClickHandler=function(){return this.onClick},t}();function ag(){var t=window.navigator.userAgent;return t.indexOf("MSIE")>=0||t.indexOf("Trident")>=0}function sg(t,e){var n=t;if(!n._scrivitoResizeListeners){n._scrivitoResizeListeners=[],t.style.position="relative";var r=function(t){var e=document.createElement("object");return e.observedElement=t,e.type="text/html",e.onload=function(){return function(t){var e=t.contentDocument;if(!e)throw new tr("Trigger object is missing the content document");var n=e.defaultView;n&&(n._scrivitoObservedElement=t.observedElement,n.addEventListener("resize",ug))}(e)},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e}(n);n._scrivitoResizeTrigger=r,ag()&&t.appendChild(r),r.data="about:blank",ag()||t.appendChild(r)}return n._scrivitoResizeListeners.push(e),function(){n._scrivitoResizeListeners.splice(n._scrivitoResizeListeners.indexOf(e),1)}}function ug(t){var e=t.target||t.srcElement;if(!e)throw new tr("Resize event is missing a target");if(function(t){return!!t._scrivitoObservedElement}(e)){var n=e._scrivitoObservedElement;n&&n._scrivitoResizeListeners.forEach((function(t){return t()}))}}function lg(t){return function(t){return new xo({state:Bi.subState("customComponentDimensions"),stream:new di((function(e){var n=function(){var n=t.getBoundingClientRect(),r=n.width,i=n.height;e.next({width:r,height:i})};return n(),sg(t,n)}))})}(t).get()||null}function cg(t){return function(t){return new xo({state:Bi.subState("scrollPosition"),stream:new di((function(e){var n=function(){e.next({x:t.scrollLeft,y:t.scrollTop})};n();var r=window.setInterval(n,1e3);return function(){return window.clearInterval(r)}}))})}(t).get()||null}function fg(){return new xo({state:Bi.subState("applicationUrl"),stream:new di((function(t){var e=function(){return t.next(Hl())};e();var n=$f(e);return function(){return n.unsubscribe()}}))}).get()||null}var dg=function(){function t(){}return t.prototype.getContentBrowserConfiguration=function(t){return hl(function(t){if(qm){var e={};t&&(e._validObjClasses=t);var n=qm(e);if(n)return{filters:n}}else if(Rm)return{filters:Rm}}(t))},t.prototype.titleForObj=function(t){return vg("titleForContent",t)},t.prototype.descriptionForObj=function(t){return vg("descriptionForContent",t)},t.prototype.executeCustomCommand=function(t){var e=function(t){var e=new og(t);return ig().forEach((function(t){return t.call(null,e)})),e.onClickHandler()}(t);e&&e.call(null)},t.prototype.titleForWidget=function(t,e){return nh(t,e)},t.prototype.initializeContentForObj=function(t){!function(t){af(rl.get(t))}(t)},t.prototype.initializeContentForWidget=function(t,e){!function(t,e){af(rl.get(t).widget(e))}(t,e)},t.prototype.getClasses=function(){var t=lf(),e=[];return Ze(t.allObjClasses(),(function(t,n){return e.push(function(t,e){var n=nc.forClass(e);return En({name:t,type:"Obj",attributes:hg(n.attributes,Zc(t,"attributes")),description:Zc(t,"description"),hideInSelectionDialogs:Zc(t,"hideInSelectionDialogs"),properties:Zc(t,"properties"),propertiesGroups:Zc(t,"propertiesGroups"),thumbnail:Zc(t,"thumbnail"),title:Zc(t,"title")},$t)}(n,t))})),Ze(t.allWidgetClasses(),(function(t,n){return e.push(function(t,e){var n=nc.forClass(e);return En({name:t,type:"Widget",attributes:hg(n.attributes,Zc(t,"attributes")),onlyInside:n.onlyInside,description:Zc(t,"description"),hideInSelectionDialogs:Zc(t,"hideInSelectionDialogs"),properties:Zc(t,"properties"),propertiesGroups:Zc(t,"propertiesGroups"),thumbnail:Zc(t,"thumbnail"),title:Zc(t,"title")},$t)}(n,t))})),e},t.prototype.navigateTo=function(t){ao((function(){var e=rl.get(t);if(e)return oc(cf(),e)})).then((function(t){t&&bp(t)}))},t.prototype.showCustomComponent=function(t,e){Kh(t,e)},t.prototype.urlFor=function(t){return ao((function(){var e=rl.getIncludingDeleted(t);return e?ip(e):null}))},t.prototype.resolveUrl=function(t){return function(t){var e=pa(t);return ao((function(){return Af(e)})).then((function(t){return t&&t.path?an(["/",""],t.path)?null:{obj:t.obj,url:e}:null}))}(t).then((function(t){if(!t||!t.obj)return null;var e=t.obj,n=t.url.fragment(),r=t.url.search(),i={obj_id:e.id()};return n&&(i.fragment=n),r&&(i.query=r),i}))},t.prototype.replaceInternalLinks=function(t){return um(t)},t.prototype.getHomepageId=function(){var t=df();return t?t.id():null},t.prototype.getSiteIdForObj=function(t){if(mf()){var e=rl.get(t);if(e)return gf(e)}return null},t.prototype.getElementBoundaries=function(t){return oh(t)},t.prototype.getContentZoneData=function(){return function(){var t=lh();return Object.keys(t).map((function(e){var n=parseInt(e,10);return sh({elementId:n},t[n])}))}()},t.prototype.getCustomComponentDimensions=function(){return lg(Ra().querySelector("html"))},t.prototype.getScrollPosition=function(){return cg(Ra().querySelector("html"))},t.prototype.getApplicationUrl=function(){return fg()},t.prototype.getCurrentPageId=function(){return(t=Uf())&&Hf(t)?t.objId:null;var t},t}();const pg=dg;function hg(t,e){var n=Ye(t,(function(t,e){var n={name:e,type:t[0]};if(t.length>1){var r=t[1];"validClasses"in r&&r.validClasses&&(n.validClasses=r.validClasses),"values"in r&&r.values&&(n.values=r.values)}return n}));return e&&Object.keys(e).forEach((function(t){var r=Ge(n,{name:t});if(r){var i=e[t],o=i.title,a=i.description,s=i.values;Mt(r,s?{title:o,description:a,valuesLocalization:s}:{title:o,description:a})}})),n}function vg(t,e){var n=rl.getIncludingDeleted(e);if(n){var r=oc(cf(),n);return Np(n.objClass(),t,r)}}function mg(t){0}var gg=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},yg=nr.refinement(nr.String,(function(t){return pa(t).origin()===t})),bg=sr("configure",[["configuration",nr.struct({tenant:nr.String,endpoint:nr.maybe(nr.String),homepage:nr.maybe(nr.Function),origin:nr.maybe(yg),routingBasePath:nr.maybe(nr.String),constraintsValidation:nr.maybe(nr.Function),unstable:nr.maybe(nr.Object)})]],{docPermalink:"js-sdk/configure"}),wg=!1;function _g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(bg.apply(void 0,gg([t],e)),wg)throw new Xn("Scrivito.configure has already been called.");wg=!0;var r=t.unstable;if(r){var i=r.getSiteIdForObj;i&&(pf=i)}if(t.tenant===ia)oa=!0,ws.disableReplication();else{var o=t.tenant,a=t.endpoint||"api.scrivito.com";vl?(!function(t,e,n,r){var i={tenant:e,endpoint:t};if(r){var o=r.assetUrlBase,a=r.useRailsAuth;a&&(i.useRailsAuth=a),o&&function(t){if(tp)throw new Error("Refusing attempt to reconfigure asset url base (again or after first access).");tp=t}(o)}n.configureTenant(i),mf()?function(t){var e=setTimeout((function(){pr("Warning: No site ID was selected within 30 seconds. In the multi-site mode a site ID must be selected before Scrivito can render content. Forgot to use Scrivito.unstable_selectSiteId?")}),3e4);(n=bf,new ai((function(t){var e=io(n,(function(n){null!=n&&(e.unsubscribe(),t(n))}))}))).then((function(){clearTimeout(e),kg(t)}));var n}(n):kg(n)}(a,o,vl,r),np((tp||(tp="https://assets.scrivito.com/sjs/"+hr()),tp))):Za.init(a,o)}!function(t){var e=t.homepage,n=t.routingBasePath,r=e?function(){return sc(e())}:function(){return rl.root()};(function(t){var e=void 0===t?{}:t,n=e.routingBasePath,r=e.homepageCallback;Sf=!0,Cf=n||"",r&&ff(r)})({routingBasePath:n,homepageCallback:r}),i=t.origin||void 0,fp=i;var i}(t),function(t){var e=t.constraintsValidation;e&&mg(e)}(t)}function kg(t){var e,n,r,i=new MessageChannel,o=(e=new pg,{stream:function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=e[t];return new di((function(t){return jo((function(){return i.call.apply(i,Ro([e],n))}),(function(e){e.allDataLoaded&&t.next(e.result)})).unsubscribe}))},send:function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=e[t],o=new ai((function(t){or((function(){return t(i.call.apply(i,Ro([e],n)))}))}));return o}});r=i.port1,n={incomingMessages:new di((function(t){function e(e){t.next({data:e.data})}return r.addEventListener("message",e),r.start(),function(){r.removeEventListener("message",e)}})),sendMessage:function(t){r.postMessage(t.data,t.transfer)}},new Xo(n,o,ep).start(),t.setAppAdapter(hr(),i.port2)}var xg=function(){return xg=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},xg.apply(this,arguments)},Eg=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};const Cg=function(){function t(){this.patch={insertIds:[],removeIds:[],items:{},modifyItems:{}}}return t.prototype.insert=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Tg.apply(void 0,Eg([t],e)),this.patch.insertIds=In(Eg(this.patch.insertIds,[t.id])),this.patch.items[t.id]=xg(xg({},En(t,"description","group","icon","position","title")),ee(En(t,"enabled"),(function(t){return!!t})))},t.prototype.modify=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Ag.apply(void 0,Eg([t],e)),this.patch.modifyItems[t.id]=xg(xg({},this.patch.modifyItems[t.id]),En(t,"group","icon","position","title"))},t.prototype.remove=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Ng.apply(void 0,Eg([t],e)),this.patch.removeIds.push(t)},t.prototype.getPatch=function(){return this.patch},t}();var Sg,Og=nr.struct({after:nr.maybe(nr.String),before:nr.maybe(nr.String)}),Tg=sr("menu.insert",[["options",nr.struct({id:nr.String,description:nr.maybe(nr.String),enabled:nr.maybe(nr.Boolean),group:nr.maybe(nr.String),icon:nr.maybe(nr.String),onClick:nr.maybe(nr.Function),position:nr.maybe(Og),title:nr.maybe(nr.String)})]],{docPermalink:"js-sdk/extendMenu"}),Ag=sr("menu.modify",[["options",nr.struct({id:nr.String,group:nr.maybe(nr.String),icon:nr.maybe(nr.String),position:nr.maybe(Og),title:nr.maybe(nr.String)})]],{docPermalink:"js-sdk/extendMenu"}),Ng=sr("menu.remove",[["id",nr.String]],{docPermalink:"js-sdk/extendMenu"});function Pg(){var t=new Cg;return ig().forEach((function(e){return e.call(null,t)})),t.getPatch()}function jg(){Sg&&Sg.forceRefresh()}var Lg=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function Ig(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Dg.apply(void 0,Lg([t],e)),vl&&(Sg||(Sg=jo((function(){return fr(Pg)}),(function(t){if(t.allDataLoaded&&vl){var e=t.result;if(e.errorThrown)throw vl.updateMenu({}),e.error;vl.updateMenu(e.result)}}))),function(t){rg.push(t)}(t),jg())}var Dg=sr("extendMenu",[["menuCallback",nr.Function]],{docPermalink:"js-sdk/extendMenu"});function Mg(){vl&&jg()}function Rg(t){return e={version:hr(),recording:(n=t,n.map(Po))},JSON.stringify(e);var e,n}function qg(t){var e,n=function(t){var e=function(t){try{return JSON.parse(t)}catch(t){return}}(t);if("object"!=typeof e||null===e||Array.isArray(e))return;if(function(t){return!!t.version}(e))return e}(t);n?n.version===hr()?(e=n.recording,Qi((function(){return e.forEach(No)}))):pr("could not preload: dump is from version "+n.version+", this is version "+hr()):pr("could not preload: parsing dump failed")}var Bg=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function Fg(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];aa("Scrivito.renderPage"),zg.apply(void 0,Bg([t,e],n));var i=sc(t);return ao((function(){return t=function(){return function(t){var e;e=function(){return xf(kf(t))},Xl.runWith(!0,e)}(i),function(t,e){return Ov.runWith({page:t,queryParameters:Sv},e)}(i,(function(){return t=e,Qh.runWith(!0,t);var t}))},r={},{result:Eo.runWith(r,t),usedData:(n=r,Object.keys(n).map((function(t){return n[t]})))};var t,n,r})).then((function(t){return{result:t.result,preloadDump:Rg(t.usedData)}}))}var zg=sr("renderPage",[["page",lu],["render",nr.Function]],{docPermalink:"js-sdk/renderPage"}),Ug=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function Hg(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Wg.apply(void 0,Ug([t],e)),ai.resolve().then((function(){return vl||qg(t),ao((function(){Tv()}))}))}var Wg=sr("preload",[["preloadDump",nr.String]],{docPermalink:"js-sdk/preload"}),Vg=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function Kg(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];Qg.apply(void 0,Vg([t],e)),vl&&vl.openCustomDialog(t)}var Qg=sr("openDialog",[["name",nr.String]],{docPermalink:"js-sdk/openDialog"});function $g(){return!!vl}function Gg(){Za.enableForceVerification()}function Zg(){return Za.currentPublicAuthorizationState()}var Yg=lf(),Xg=Yg.Link,Jg=Yg.Obj,ty=Yg.ObjSearch,ey=Yg.Widget,ny=Yg.createObjClass,ry=Yg.createWidgetClass,iy=Yg.getClass,oy=Yg.provideObjClass,ay=Yg.provideWidgetClass;window.Scrivito=a,function(t){if(Wi(t),t){var e=(i=ea,o=t.uiAdapter(),a=Mo++,s={},Object.keys(i).forEach((function(t){var e=i[t];e===Lo&&(s[t]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Bi.subState("adapters").subState(a.toString()),i=t,s=r.subState(i).subState(li(e));return new xo({state:s,stream:o.stream.apply(o,Do([i],e))}).get()}),e===Io&&(s[t]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o.send.apply(o,Do([t],e))})})),s);vl=e,ns=e,vu=e,function(t){sl=t}(e),function(t){ta=t}(e),r=t.getObjReplicationPool(),ws=r,Jf(),od(),rd(),id(),(n=Ra().body).classList.add("scrivito_editing_active"),td()&&n.setAttribute("data-scrivito-editing",""),ed()&&n.setAttribute("data-scrivito-comparison","")}var n,r,i,o,a,s;$f(Gf),$f(Zf),window.addEventListener("unload",(function(){Vi&&Vi(),Bi.clear()}))}(function(){var t=function(){if(window.parent!==window){var t;try{t=window.parent.connectAppDocument}catch(t){}return t?t(window.document):void 0}}();return t?t.installRailsApi():function(){window.scrivito||(window.scrivito={});var t=window.scrivito;t.on||(t.on=function(t,e){"content"===t&&function(t,e){"interactive"===t.readyState||"complete"===t.readyState?e():t.addEventListener("DOMContentLoaded",e)}(document,(function(){return e(window.document)}))});t.in_editable_view||(t.in_editable_view=function(){return!1})}(),t}()),scrivito.registerEditor(Fd),scrivito.registerEditor(Hd),scrivito.registerEditor(Jd)})()})();