(self.webpackChunknew_whitelabel=self.webpackChunknew_whitelabel||[]).push([[13],{88292:function(t,e){var n,r,o,i;function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/(javascript|data|vbscript):/gi,"$1%3A")},v=function(t,e){var n=d(e),r={boolean:function(){return e?"".concat(t):""},number:function(){return"".concat(t,'="').concat(e,'"')},string:function(){return"".concat(t,'="').concat(m(e),'"')},object:function(){return"".concat(t,'="').concat(m(JSON.stringify(e)),'"')}};return r[n]?r[n]():""},b=function(t){return null==t?"":h(t,(function(e,n){return[].concat(g(e),[v(n,t[n])])}),[""]).join(" ")},T=function(t,e){var n=function(t){return h(t,(function(e,n){return t[n]===n?t[n]:null}),null)}(e);if(n){var r=v(t,n),o=l({},e);delete o[n];var i=b(o);return"".concat(r).concat(i)}return"".concat(t).concat(b(e))},x=function(){function t(e,n,r){a(this,t),this.tag=e,this.attrs=n,this.content=Array.isArray(r)?r:[r]}return c(t,[{key:"attr",value:function(t,e){return void 0!==e&&(this.attrs[t]=e),this.attrs[t]}},{key:"append",value:function(t){return function(t,e){t.content.push(e)}(this,t)}},{key:"length",get:function(){return y(this)}},{key:"toTagStart",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.openTag,n=void 0===e?i:e,r=t.closeTag,o=void 0===r?u:r,a=T(this.tag,this.attrs);return"".concat(n).concat(a).concat(o)}},{key:"toTagEnd",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.openTag,n=void 0===e?i:e,r=t.closeTag,o=void 0===r?u:r;return"".concat(n).concat(s).concat(this.tag).concat(o)}},{key:"toTagNode",value:function(){return new t(this.tag.toLowerCase(),this.attrs,this.content)}},{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.openTag,n=void 0===e?i:e,r=t.closeTag,o=void 0===r?u:r,a=0===this.content.length,c=this.content.reduce((function(t,e){return t+e.toString({openTag:n,closeTag:o})}),""),s=this.toTagStart({openTag:n,closeTag:o});return a?s:"".concat(s).concat(c).concat(this.toTagEnd({openTag:n,closeTag:o}))}}]),t}();x.create=function(t){return new x(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])},x.isOf=function(t,e){return t.tag===e};var O="type",k="value",S="line",w=function(t){return t&&void 0!==t[k]?t[k]:""},E=function(t){return w(t).charCodeAt(0)===s.charCodeAt(0)},A=function(){function t(e,n,r,o){a(this,t),this[O]=Number(e),this[k]=String(n),this[S]=Number(r),this.row=Number(o)}return c(t,[{key:"isEmpty",value:function(){return isNaN(this[O])}},{key:"isText",value:function(){return!(!(t=this)||void 0===t[O]||5!==t[O]&&6!==t[O]&&1!==t[O]);var t}},{key:"isTag",value:function(){return!(!(t=this)||void 0===t[O])&&2===t[O];var t}},{key:"isAttrName",value:function(){return!(!(t=this)||void 0===t[O])&&3===t[O];var t}},{key:"isAttrValue",value:function(){return!(!(t=this)||void 0===t[O])&&4===t[O];var t}},{key:"isStart",value:function(){return!E(this)}},{key:"isEnd",value:function(){return E(this)}},{key:"getName",value:function(){return e=w(t=this),E(t)?e.slice(1):e;var t,e}},{key:"getValue",value:function(){return w(this)}},{key:"getLine",value:function(){return(t=this)&&t[S]||0;var t}},{key:"getColumn",value:function(){return(t=this)&&t.row||0;var t}},{key:"toString",value:function(){return t=i,(t+=w(this))+u;var t}}]),t}();function P(t,e){var n={pos:0,len:t.length},r=function(){return n.len>n.pos},o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,r=arguments.length>1?arguments[1]:void 0;n.pos+=t,e&&e.onSkip&&!r&&e.onSkip()},i=function(){return t[n.pos]};this.skip=o,this.hasNext=r,this.getCurr=i,this.getRest=function(){return t.substring(n.pos)},this.getNext=function(){var e=n.pos+1;return e<=t.length-1?t[e]:null},this.getPrev=function(){var e=n.pos-1;return void 0!==t[e]?t[e]:null},this.isLast=function(){return n.pos===n.len},this.includes=function(e){return t.indexOf(e,n.pos)>=0},this.grabWhile=function(e,a){var u=0;if(r())for(u=n.pos;r()&&e(i());)o(1,a);return t.substring(u,n.pos)},this.grabN=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t.substring(n.pos,n.pos+e)},this.substrUntilChar=function(e){var r=n.pos,o=t.indexOf(e,r);return o>=0?t.substring(r,o):""}}var j=function(t,e){return new P(t,e)};function C(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.push=function(e){return t.push(e)},this.toArray=function(){return t},this.getLast=function(){return Array.isArray(t)&&t.length>0&&void 0!==t[t.length-1]?t[t.length-1]:null},this.flushLast=function(){return!!t.length&&t.pop()}}var N=function(){return new C(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])};function D(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=0,l=1,p=2,g=0,h=1,d=2,y=0,m=0,v=-1,b=c,T=g,x="",O=new Array(Math.floor(t.length)),k=a.openTag||i,S=a.closeTag||u,w=!!a.enableEscapeTags,E=a.contextFreeTags||[],P=a.onToken||function(){},C=[S,k,r,f,o,e,n,"\n","!"],N=[k,o,e,"\n"],D=[o,e],_=[n,o,e],L=function(t){return C.indexOf(t)>=0},M=function(t){return"\n"===t},R=function(t){return D.indexOf(t)>=0},I=function(t){return-1===N.indexOf(t)},F=function(t){return _.indexOf(t)>=0},V=function(t){return t===k||t===S||t===f},U=function(t){return t===f},B=function(){m++},z=function(t){return function(t,e){for(;t.charAt(0)===e;)t=t.substring(1);for(;t.charAt(t.length-1)===e;)t=t.substring(0,t.length-1);return t}(t,r).replace(f+r,r)},H=function(t,e){""!==x&&e&&(x=""),""===x&&E.includes(t)&&(x=t)},W=j(t,{onSkip:B});function q(t,e){var n=function(t,e){return new A(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)}(t,e,y,m);P(n),O[v+=1]=n}function X(t,e){if(T===h){var o=t.grabWhile((function(t){return!(t===n||R(t))})),i=t.isLast(),a=t.getCurr()!==n;return t.skip(),i||a?q(4,z(o)):q(3,o),i?g:a?h:d}if(T===d){var u=!1,c=t.grabWhile((function(o){var i=o===r,a=t.getPrev(),c=t.getNext(),s=a===f,l=c===n,p=R(o),g=R(c);return!(!u||!F(o))||!!(!i||s||(u=!u)||l||g)&&(!!e||!1===p)}));return t.skip(),q(4,z(c)),t.isLast()?g:h}var s=t.grabWhile((function(e){return!(e===n||R(e)||t.isLast())}));return q(2,s),H(s),t.skip(),e?d:t.includes(n)?h:d}function Y(){var t=W.getCurr(),e=W.getNext();W.skip();var r=W.substrUntilChar(S),o=0===r.length||r.indexOf(k)>=0;if(L(e)||o||W.isLast())return q(1,t),c;var i=-1===r.indexOf(n),a=r[0]===s;if(i||a){var u=W.grabWhile((function(t){return t!==S}));return W.skip(),q(2,u),H(u,a),c}return p}function $(){var t=W.grabWhile((function(t){return t!==S}),!0),e=j(t,{onSkip:B}),n=e.includes(o);for(T=g;e.hasNext();)T=X(e,!n);return W.skip(),c}function G(){if(M(W.getCurr()))return q(6,W.getCurr()),W.skip(),m=0,y++,c;if(R(W.getCurr()))return q(5,W.grabWhile(R)),c;if(W.getCurr()===k){if(x){var t=k.length+1+x.length,e="".concat(k).concat(s).concat(x);if(W.grabN(t)===e)return l}else if(W.includes(S))return l;return q(1,W.getCurr()),W.skip(),c}if(w){if(U(W.getCurr())){var n=W.getCurr(),r=W.getNext();return W.skip(),V(r)?(W.skip(),q(1,r),c):(q(1,n),c)}return q(1,W.grabWhile((function(t){return I(t)&&!U(t)}))),c}return q(1,W.grabWhile(I)),c}return{tokenize:function(){for(b=c;W.hasNext();)switch(b){case l:b=Y();break;case p:b=$();break;default:b=G()}return O.length=v+1,O},isTokenNested:function(e){var n=k+s+e.getValue();return t.indexOf(n)>-1}}}var _=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e,r=n.openTag||i,o=n.closeTag||u,a=null,c=N(),s=N(),l=N(),f=N(),g=new Set,h=function(){l.flushLast()&&f.flushLast()},d=function(t){var e,i,a=(e=s.getLast())&&Array.isArray(e.content)?e.content:c.toArray();Array.isArray(a)&&(p(t)?(i=t.tag,!n.onlyAllowTags||!n.onlyAllowTags.length||n.onlyAllowTags.indexOf(i)>=0?a.push(t.toTagNode()):(a.push(t.toTagStart({openTag:r,closeTag:o})),t.content.length&&(t.content.forEach((function(t){a.push(t)})),a.push(t.toTagEnd({openTag:r,closeTag:o}))))):a.push(t))},y=function(t){h();var e=x.create(t.getValue()),n=function(t){var e=t.getValue();return!g.has(e)&&a.isTokenNested&&a.isTokenNested(t)?(g.add(e),!0):g.has(e)}(t);l.push(e),n?s.push(e):d(e)},m=function(t){t.isStart()&&y(t),t.isEnd()&&function(t){h();var e=s.flushLast();if(e)d(e);else if("function"==typeof n.onError){var r=t.getValue(),o=t.getLine(),i=t.getColumn();n.onError({message:"Inconsistent tag '".concat(r,"' on line ").concat(o," and column ").concat(i),tagName:r,lineNumber:o,columnNumber:i})}}(t)},v=function(t){var e,n=l.getLast(),r=t.getValue(),o=(e=t,Boolean(g.has(e)));if(n)if(t.isAttrName())f.push(r),n.attr(f.getLast(),"");else if(t.isAttrValue()){var i=f.getLast();i?(n.attr(i,r),f.flushLast()):n.attr(r,r)}else t.isText()?o?n.append(r):d(r):t.isTag()&&d(t.toString());else t.isText()?d(r):t.isTag()&&d(t.toString())};return(a=(e.createTokenizer?e.createTokenizer:D)(t,{onToken:function(t){t.isTag()?m(t):v(t)},openTag:r,closeTag:o,onlyAllowTags:n.onlyAllowTags,contextFreeTags:n.contextFreeTags,enableEscapeTags:n.enableEscapeTags})).tokenize(),c.toArray()},L=function(t){return"object"===d(t)},M=function(t){return"boolean"==typeof t};function R(t,e){var n=t;if(Array.isArray(n))for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{}).stripTags,n=void 0!==e&&e;return[].concat(t).reduce((function(t,e){return t+W(e,{stripTags:n})}),"")},X=q;t.default=function(t,e,n){return function(t){var e="function"==typeof t?[t]:t||[],n={skipParse:!1};return{process:function(t,r){var o=(n=r||{}).parser||_,i=n.render,a=n.data||null;if("function"!=typeof o)throw new Error('"parser" is not a function, please pass to "process(input, { parser })" right function');var u=n.skipParse?t||[]:o(t,n),c=u;return u.messages=[],u.options=n,u.walk=V,u.match=F,e.forEach((function(t){u=t(u,{parse:o,render:i,iterate:R,match:F,data:a})||u})),{get html(){if("function"!=typeof i)throw new Error('"render" function not defined, please pass to "process(input, { render })"');return i(u,u.options)},tree:u,raw:c,messages:u.messages}}}}(e).process(t,l(l({},n),{},{render:q})).html},t.render=X,Object.defineProperty(t,"__esModule",{value:!0})},"object"===d(e)?i(e):(r=[e],void 0===(o="function"==typeof(n=i)?n.apply(e,r):n)||(t.exports=o))},9603:function(t,e){var n,r,o,i;function a(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/(javascript|data|vbscript):/gi,"$1%3A")},g=function(t,e){var n=p(e),r={boolean:function(){return e?"".concat(t):""},number:function(){return"".concat(t,'="').concat(e,'"')},string:function(){return"".concat(t,'="').concat(f(e),'"')},object:function(){return"".concat(t,'="').concat(f(JSON.stringify(e)),'"')}};return r[n]?r[n]():""},h=function(t){return null==t?"":i(t,(function(e,n){return[].concat(l(e),[g(n,t[n])])}),[""]).join(" ")},d=function(t){return i(t,(function(e,n){return t[n]===n?t[n]:null}),null)},y=function(t,e){var n=d(e);if(n){var r=g(t,n),o=function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.openTag,n=void 0===e?"[":e,r=t.closeTag,o=void 0===r?"]":r,i=y(this.tag,this.attrs);return"".concat(n).concat(i).concat(o)}},{key:"toTagEnd",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.openTag,n=void 0===e?"[":e,r=t.closeTag,o=void 0===r?"]":r;return"".concat(n).concat("/").concat(this.tag).concat(o)}},{key:"toTagNode",value:function(){return new t(this.tag.toLowerCase(),this.attrs,this.content)}},{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.openTag,n=void 0===e?"[":e,r=t.closeTag,o=void 0===r?"]":r,i=0===this.content.length,a=this.content.reduce((function(t,e){return t+e.toString({openTag:n,closeTag:o})}),""),u=this.toTagStart({openTag:n,closeTag:o});return i?u:"".concat(u).concat(a).concat(this.toTagEnd({openTag:n,closeTag:o}))}}],n&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();m.create=function(t){return new m(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])},m.isOf=function(t,e){return t.tag===e};var v={color:function(t){return"color:".concat(t,";")},size:function(t){return"font-size:".concat(t,";")}},b=function(t,e){return d(t.attrs)?d(t.attrs):e(t.content)},T=function(t,e,n){return{tag:t,attrs:e,content:n}},x=function(t){return{style:t}},O=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,o=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.options=Object.assign(t.options||{},n);var o=function(n,o){return r(e,n,o,t.options)};return o.options=t.options,o};return o.extend=function(n){return t(n(e,o.options),r)},o}({b:function(t){return T("span",x("font-weight: bold;"),t.content)},i:function(t){return T("span",x("font-style: italic;"),t.content)},u:function(t){return T("span",x("text-decoration: underline;"),t.content)},s:function(t){return T("span",x("text-decoration: line-through;"),t.content)},url:function(t,e,n){var r=e.render;return T("a",{href:b(t,r)},t.content)},img:function(t,e){var n=e.render;return T("img",{src:n(t.content)},null)},quote:function(t){return T("blockquote",{},[T("p",{},t.content)])},code:function(t){return T("pre",{},t.content)},style:function(t){return T("span",x((e=t.attrs,Object.keys(e).reduce((function(t,n){return v[n]?t.concat(v[n](e[n])):t}),[]).join(" "))),t.content);var e},list:function(t){var e,n,i,a,u,c,s=d(t.attrs);return T(s?"ol":"ul",s?{type:s}:{},(e=t.content,n=0,i=[],a=function(){return m.create("li")},u=function(t){i[n]=i[n]||t},c=function(t){i[n]&&i[n].content?i[n].content=i[n].content.concat(t):i[n]=i[n].concat(t)},e.forEach((function(t){var e;o(t)&&(e="*",t[0]===e)?(i[n]&&n++,u(a()),c(t.substr(1))):r(t)&&m.isOf(t,"*")?(i[n]&&n++,u(a())):r(i[n])?i[n]?c(t):u(t):(n++,u(t))})),[].concat(i)))}});t.default=O,Object.defineProperty(t,"__esModule",{value:!0})},"object"===p(e)?i(e):(r=[e],void 0===(o="function"==typeof(n=i)?n.apply(e,r):n)||(t.exports=o))},83019:(t,e,n)=>{"use strict";n.r(e),n.d(e,{clearKeySign:()=>h,defaultTagProps:()=>d,defaultTags:()=>y,getUniqAttr:()=>g,plugins:()=>m,setPlugins:()=>v});var r=n(88292),o=n.n(r),i=n(9603);function a(t){return a="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},a(t)}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return o()(this.toString(),t(m()))}},1087:(t,e,n)=>{String.prototype.toJSX=String.prototype.toJSX||function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n(92820);return("function"==typeof e?e:e.default)(this.toString().replace(/{([\w.]*)}/g,(function(e,n){return t&&t[n]?"".concat(n,""):e})),{replace:function(e){if("tag"!==e.type||"stub"!==e.name||!e.children||!e.children.length)return e;var n=e.children[0];if("text"!==n.type)return e;var r=n.data,o=t[r];return o||e}})}},10581:(t,e,n)=>{t.exports=n(83019)},23203:(t,e,n)=>{t.exports=n(1087)},40737:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"}(n=e.ElementType||(e.ElementType={})),e.isTag=function(t){return t.type===n.Tag||t.type===n.Script||t.type===n.Style},e.Root=n.Root,e.Text=n.Text,e.Directive=n.Directive,e.Comment=n.Comment,e.Script=n.Script,e.Style=n.Style,e.Tag=n.Tag,e.CDATA=n.CDATA,e.Doctype=n.Doctype},38139:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),e}(c);e.NodeWithChildren=g;var h=function(t){function e(e){return t.call(this,a.ElementType.Root,e)||this}return o(e,t),e}(g);e.Document=h;var d=function(t){function e(e,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===e?a.ElementType.Script:"style"===e?a.ElementType.Style:a.ElementType.Tag);var i=t.call(this,o,r)||this;return i.name=e,i.attribs=n,i}return o(e,t),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map((function(e){var n,r;return{name:e,value:t.attribs[e],namespace:null===(n=t["x-attribsNamespace"])||void 0===n?void 0:n[e],prefix:null===(r=t["x-attribsPrefix"])||void 0===r?void 0:r[e]}}))},enumerable:!1,configurable:!0}),e}(g);function y(t){return(0,a.isTag)(t)}function m(t){return t.type===a.ElementType.CDATA}function v(t){return t.type===a.ElementType.Text}function b(t){return t.type===a.ElementType.Comment}function T(t){return t.type===a.ElementType.Directive}function x(t){return t.type===a.ElementType.Root}function O(t,e){var n;if(void 0===e&&(e=!1),v(t))n=new l(t.data);else if(b(t))n=new f(t.data);else if(y(t)){var r=e?k(t.children):[],o=new d(t.name,i({},t.attribs),r);r.forEach((function(t){return t.parent=o})),null!=t.namespace&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},t["x-attribsPrefix"])),n=o}else if(m(t)){r=e?k(t.children):[];var u=new g(a.ElementType.CDATA,r);r.forEach((function(t){return t.parent=u})),n=u}else if(x(t)){r=e?k(t.children):[];var c=new h(r);r.forEach((function(t){return t.parent=c})),t["x-mode"]&&(c["x-mode"]=t["x-mode"]),n=c}else{if(!T(t))throw new Error("Not implemented yet: ".concat(t.type));var s=new p(t.name,t.data);null!=t["x-name"]&&(s["x-name"]=t["x-name"],s["x-publicId"]=t["x-publicId"],s["x-systemId"]=t["x-systemId"]),n=s}return n.startIndex=t.startIndex,n.endIndex=t.endIndex,null!=t.sourceCodeLocation&&(n.sourceCodeLocation=t.sourceCodeLocation),n}function k(t){for(var e=t.map((function(t){return O(t,!0)})),n=1;n{t.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},32190:(t,e,n)=>{var r="html",o="head",i="body",a=/<([a-zA-Z]+[0-9]?)/,u=//i,c=//i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var f=new window.DOMParser;s=l=function(t,e){return e&&(t="<"+e+">"+t+""),f.parseFromString(t,"text/html")}}if(document.implementation){var p=n(36194).isIE,g=document.implementation.createHTMLDocument(p()?"html-dom-parser":void 0);s=function(t,e){return e?(g.documentElement.getElementsByTagName(e)[0].innerHTML=t,g):(g.documentElement.innerHTML=t,g)}}var h,d=document.createElement("template");d.content&&(h=function(t){return d.innerHTML=t,d.content.childNodes}),t.exports=function(t){var e,n,f,p,g=t.match(a);switch(g&&g[1]&&(e=g[1].toLowerCase()),e){case r:return n=l(t),u.test(t)||(f=n.getElementsByTagName(o)[0])&&f.parentNode.removeChild(f),c.test(t)||(f=n.getElementsByTagName(i)[0])&&f.parentNode.removeChild(f),n.getElementsByTagName(r);case o:case i:return p=s(t).getElementsByTagName(e),c.test(t)&&u.test(t)?p[0].parentNode.childNodes:p;default:return h?h(t):s(t,i).getElementsByTagName(i)[0].childNodes}}},57905:(t,e,n)=>{var r=n(32190),o=n(36194).formatDOM,i=/<(![a-zA-Z\s]+)>/;t.exports=function(t){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(""===t)return[];var e,n=t.match(i);return n&&n[1]&&(e=n[1]),o(r(t),null,e)}},36194:(t,e,n)=>{for(var r,o=n(47625),i=n(38139),a=o.CASE_SENSITIVE_TAG_NAMES,u=i.Comment,c=i.Element,s=i.ProcessingInstruction,l=i.Text,f={},p=0,g=a.length;p{var r=n(6311),o=n(22943),i=n(57905),a={lowerCaseAttributeNames:!1};function u(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");return""===t?[]:r(i(t,(e=e||{}).htmlparser2||a),e)}u.domToReact=r,u.htmlToDOM=i,u.attributesToProps=o,t.exports=u,t.exports.default=u},22943:(t,e,n)=>{var r=n(85580),o=n(62798),i=o.setStyleProp,a=r.html,u=r.svg,c=r.isCustomAttribute,s=Object.prototype.hasOwnProperty;t.exports=function(t){var e,n,r,l;t=t||{};var f={};for(e in t)r=t[e],c(e)?f[e]=r:(n=e.toLowerCase(),s.call(a,n)?f[(l=a[n]).propertyName]=!!(l.hasBooleanValue||l.hasOverloadedBooleanValue&&!r)||r:s.call(u,e)?f[(l=u[e]).propertyName]=r:o.PRESERVE_CUSTOM_ATTRIBUTES&&(f[e]=r));return i(t.style,f),f}},6311:(t,e,n)=>{var r=n(35921),o=n(22943),i=n(62798),a=i.setStyleProp;function u(t){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===t.type&&i.isCustomComponent(t.name,t.attribs)}t.exports=function t(e,n){for(var i,c,s,l,f=(n=n||{}).library||r,p=f.cloneElement,g=f.createElement,h=f.isValidElement,d=[],y="function"==typeof n.replace,m=n.trim,v=0,b=e.length;v1&&(c=p(c,{key:c.key||v})),d.push(c);else if("text"!==i.type){switch(s=i.attribs,u(i)?a(s.style,s):s&&(s=o(s)),l=null,i.type){case"script":case"style":i.children[0]&&(s.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?s.defaultValue=i.children[0].data:i.children&&i.children.length&&(l=t(i.children,n));break;default:continue}b>1&&(s.key=v),d.push(g(i.name,s,l))}else m?i.data.trim()&&d.push(i.data):d.push(i.data);return 1===d.length?d[0]:d}},62798:(t,e,n)=>{function r(t){return 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},r(t)}var o=n(35921),i=n(568).default;var a={reactCompat:!0};var u=o.version.split(".")[0]>=16;t.exports={PRESERVE_CUSTOM_ATTRIBUTES:u,invertObject:function(t,e){if(!t||"object"!==r(t))throw new TypeError("First argument must be an object");var n,o,i="function"==typeof e,a={},u={};for(n in t)o=t[n],i&&(a=e(n,o))&&2===a.length?u[a[0]]=a[1]:"string"==typeof o&&(u[o]=n);return u},isCustomComponent:function(t,e){if(-1===t.indexOf("-"))return e&&"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}},setStyleProp:function(t,e){null!=t&&(e.style=i(t,a))}}},9279:t=>{var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,s="";function l(t){return t?t.replace(c,s):s}t.exports=function(t,c){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];c=c||{};var f=1,p=1;function g(t){var e=t.match(n);e&&(f+=e.length);var r=t.lastIndexOf("\n");p=~r?t.length-r:p+t.length}function h(){var t={line:f,column:p};return function(e){return e.position=new d(t),b(),e}}function d(t){this.start=t,this.end={line:f,column:p},this.source=c.source}d.prototype.content=t;var y=[];function m(e){var n=new Error(c.source+":"+f+":"+p+": "+e);if(n.reason=e,n.filename=c.source,n.line=f,n.column=p,n.source=t,!c.silent)throw n;y.push(n)}function v(e){var n=e.exec(t);if(n){var r=n[0];return g(r),t=t.slice(r.length),n}}function b(){v(r)}function T(t){var e;for(t=t||[];e=x();)!1!==e&&t.push(e);return t}function x(){var e=h();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;s!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,s===t.charAt(n-1))return m("End of comment missing");var r=t.slice(2,n-2);return p+=2,g(r),t=t.slice(n),p+=2,e({type:"comment",comment:r})}}function O(){var t=h(),n=v(o);if(n){if(x(),!v(i))return m("property missing ':'");var r=v(a),c=t({type:"declaration",property:l(n[0].replace(e,s)),value:r?l(r[0].replace(e,s)):s});return v(u),c}}return b(),function(){var t,e=[];for(T(e);t=O();)!1!==t&&(e.push(t),T(e));return e}()}},85580:(t,e,n)=>{var r=n(39204),o=n(51463),i=n(65794),a=i.MUST_USE_PROPERTY,u=i.HAS_BOOLEAN_VALUE,c=i.HAS_NUMERIC_VALUE,s=i.HAS_POSITIVE_NUMERIC_VALUE,l=i.HAS_OVERLOADED_BOOLEAN_VALUE;function f(t,e){return(t&e)===e}function p(t,e,n){var r,o,i,p=t.Properties,g=t.DOMAttributeNames;for(o in p)r=g[o]||(n?o:o.toLowerCase()),i=p[o],e[r]={attributeName:r,propertyName:o,mustUseProperty:f(i,a),hasBooleanValue:f(i,u),hasNumericValue:f(i,c),hasPositiveNumericValue:f(i,s),hasOverloadedBooleanValue:f(i,l)}}var g={};p(r,g);var h={};p(o,h,!0);var d={};p(r,d),p(o,d,!0);t.exports={html:g,svg:h,properties:d,isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-[: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]*$"))}},39204:t=>{t.exports={Properties:{autoFocus:4,accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:4,allowTransparency:0,alt:0,as:0,async:4,autoComplete:0,autoPlay:4,capture:4,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:5,cite:0,classID:0,className:0,cols:24,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:4,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:4,defer:4,dir:0,disabled:4,download:32,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:4,formTarget:0,frameBorder:0,headers:0,height:0,hidden:4,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:4,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:5,muted:5,name:0,nonce:0,noValidate:4,open:4,optimum:0,pattern:0,placeholder:0,playsInline:4,poster:0,preload:0,profile:0,radioGroup:0,readOnly:4,referrerPolicy:0,rel:0,required:4,reversed:4,role:0,rows:24,rowSpan:8,sandbox:0,scope:0,scoped:4,scrolling:0,seamless:4,selected:5,shape:0,size:24,sizes:0,span:24,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:8,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:4,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}}},51463:t=>{t.exports={Properties:{accentHeight:0,accumulate:0,additive:0,alignmentBaseline:0,allowReorder:0,alphabetic:0,amplitude:0,arabicForm:0,ascent:0,attributeName:0,attributeType:0,autoReverse:0,azimuth:0,baseFrequency:0,baseProfile:0,baselineShift:0,bbox:0,begin:0,bias:0,by:0,calcMode:0,capHeight:0,clip:0,clipPath:0,clipRule:0,clipPathUnits:0,colorInterpolation:0,colorInterpolationFilters:0,colorProfile:0,colorRendering:0,contentScriptType:0,contentStyleType:0,cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:0,direction:0,display:0,divisor:0,dominantBaseline:0,dur:0,dx:0,dy:0,edgeMode:0,elevation:0,enableBackground:0,end:0,exponent:0,externalResourcesRequired:0,fill:0,fillOpacity:0,fillRule:0,filter:0,filterRes:0,filterUnits:0,floodColor:0,floodOpacity:0,focusable:0,fontFamily:0,fontSize:0,fontSizeAdjust:0,fontStretch:0,fontStyle:0,fontVariant:0,fontWeight:0,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:0,glyphOrientationHorizontal:0,glyphOrientationVertical:0,glyphRef:0,gradientTransform:0,gradientUnits:0,hanging:0,horizAdvX:0,horizOriginX:0,ideographic:0,imageRendering:0,in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:0,kernelUnitLength:0,kerning:0,keyPoints:0,keySplines:0,keyTimes:0,lengthAdjust:0,letterSpacing:0,lightingColor:0,limitingConeAngle:0,local:0,markerEnd:0,markerMid:0,markerStart:0,markerHeight:0,markerUnits:0,markerWidth:0,mask:0,maskContentUnits:0,maskUnits:0,mathematical:0,mode:0,numOctaves:0,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:0,overlineThickness:0,paintOrder:0,panose1:0,pathLength:0,patternContentUnits:0,patternTransform:0,patternUnits:0,pointerEvents:0,points:0,pointsAtX:0,pointsAtY:0,pointsAtZ:0,preserveAlpha:0,preserveAspectRatio:0,primitiveUnits:0,r:0,radius:0,refX:0,refY:0,renderingIntent:0,repeatCount:0,repeatDur:0,requiredExtensions:0,requiredFeatures:0,restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:0,slope:0,spacing:0,specularConstant:0,specularExponent:0,speed:0,spreadMethod:0,startOffset:0,stdDeviation:0,stemh:0,stemv:0,stitchTiles:0,stopColor:0,stopOpacity:0,strikethroughPosition:0,strikethroughThickness:0,string:0,stroke:0,strokeDasharray:0,strokeDashoffset:0,strokeLinecap:0,strokeLinejoin:0,strokeMiterlimit:0,strokeOpacity:0,strokeWidth:0,surfaceScale:0,systemLanguage:0,tableValues:0,targetX:0,targetY:0,textAnchor:0,textDecoration:0,textRendering:0,textLength:0,to:0,transform:0,u1:0,u2:0,underlinePosition:0,underlineThickness:0,unicode:0,unicodeBidi:0,unicodeRange:0,unitsPerEm:0,vAlphabetic:0,vHanging:0,vIdeographic:0,vMathematical:0,values:0,vectorEffect:0,version:0,vertAdvY:0,vertOriginX:0,vertOriginY:0,viewBox:0,viewTarget:0,visibility:0,widths:0,wordSpacing:0,writingMode:0,x:0,xHeight:0,x1:0,x2:0,xChannelSelector:0,xlinkActuate:0,xlinkArcrole:0,xlinkHref:0,xlinkRole:0,xlinkShow:0,xlinkTitle:0,xlinkType:0,xmlBase:0,xmlns:0,xmlnsXlink:0,xmlLang:0,xmlSpace:0,y:0,y1:0,y2:0,yChannelSelector:0,z:0,zoomAndPan:0},DOMAttributeNames:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space"}}},65794:t=>{t.exports={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32}},568:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};e.__esModule=!0;var o=r(n(90725)),i=n(9802);e.default=function(t,e){var n={};return t&&"string"==typeof t?(o.default(t,(function(t,r){t&&r&&(n[i.camelCase(t,e)]=r)})),n):n}},9802:(t,e)=>{"use strict";e.__esModule=!0,e.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=function(t,e){return e.toUpperCase()},u=function(t,e){return e+"-"};e.camelCase=function(t,e){return void 0===e&&(e={}),function(t){return!t||o.test(t)||n.test(t)}(t)?t:(t=t.toLowerCase(),e.reactCompat||(t=t.replace(i,u)),t.replace(r,a))}},90725:(t,e,n)=>{var r=n(9279);t.exports=function(t,e){var n,o=null;if(!t||"string"!=typeof t)return o;for(var i,a,u=r(t),c="function"==typeof e,s=0,l=u.length;s{"use strict";n.r(e),n.d(e,{attributesToProps:()=>a,default:()=>u,domToReact:()=>o,htmlToDOM:()=>i});var r=n(26919),o=r.domToReact,i=r.htmlToDOM,a=r.attributesToProps;const u=r}}]);